summaryrefslogtreecommitdiffstats
path: root/ArmVirtPkg/CloudHvAcpiPlatformDxe
diff options
context:
space:
mode:
authorMichael Kubacki <michael.kubacki@microsoft.com>2021-12-05 14:53:52 -0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-12-07 17:24:28 +0000
commit2b16a4fb91b9b31c0d152588f5ac51080c6c0763 (patch)
tree72c352a8e807a4720c1675a755969206c6370588 /ArmVirtPkg/CloudHvAcpiPlatformDxe
parent40b0b23ed34f48c26d711d3e4613a4bb35eeadff (diff)
downloadedk2-2b16a4fb91b9b31c0d152588f5ac51080c6c0763.tar.gz
edk2-2b16a4fb91b9b31c0d152588f5ac51080c6c0763.tar.bz2
edk2-2b16a4fb91b9b31c0d152588f5ac51080c6c0763.zip
ArmVirtPkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the ArmVirtPkg package Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
Diffstat (limited to 'ArmVirtPkg/CloudHvAcpiPlatformDxe')
-rw-r--r--ArmVirtPkg/CloudHvAcpiPlatformDxe/CloudHvAcpi.c73
1 files changed, 37 insertions, 36 deletions
diff --git a/ArmVirtPkg/CloudHvAcpiPlatformDxe/CloudHvAcpi.c b/ArmVirtPkg/CloudHvAcpiPlatformDxe/CloudHvAcpi.c
index 0e86e7a036..0595b0e1d3 100644
--- a/ArmVirtPkg/CloudHvAcpiPlatformDxe/CloudHvAcpi.c
+++ b/ArmVirtPkg/CloudHvAcpiPlatformDxe/CloudHvAcpi.c
@@ -26,13 +26,13 @@ FindAcpiTableProtocol (
VOID
)
{
- EFI_STATUS Status;
- EFI_ACPI_TABLE_PROTOCOL *AcpiTable;
+ EFI_STATUS Status;
+ EFI_ACPI_TABLE_PROTOCOL *AcpiTable;
Status = gBS->LocateProtocol (
&gEfiAcpiTableProtocolGuid,
NULL,
- (VOID**)&AcpiTable
+ (VOID **)&AcpiTable
);
ASSERT_EFI_ERROR (Status);
return AcpiTable;
@@ -52,32 +52,32 @@ FindAcpiTableProtocol (
EFI_STATUS
EFIAPI
InstallCloudHvAcpiTables (
- IN EFI_ACPI_TABLE_PROTOCOL *AcpiProtocol
+ IN EFI_ACPI_TABLE_PROTOCOL *AcpiProtocol
)
{
- UINTN InstalledKey;
- UINTN TableSize;
- UINTN AcpiTableLength;
- UINT64 RsdpPtr;
- UINT64 XsdtPtr;
- UINT64 TableOffset;
- UINT64 AcpiTablePtr;
- UINT64 *DsdtPtr;
- EFI_STATUS Status;
+ UINTN InstalledKey;
+ UINTN TableSize;
+ UINTN AcpiTableLength;
+ UINT64 RsdpPtr;
+ UINT64 XsdtPtr;
+ UINT64 TableOffset;
+ UINT64 AcpiTablePtr;
+ UINT64 *DsdtPtr;
+ EFI_STATUS Status;
if (AcpiProtocol == NULL) {
return EFI_INVALID_PARAMETER;
}
- RsdpPtr = PcdGet64 (PcdCloudHvAcpiRsdpBaseAddress);
- XsdtPtr = ((EFI_ACPI_6_3_ROOT_SYSTEM_DESCRIPTION_POINTER *)RsdpPtr)->XsdtAddress;
+ RsdpPtr = PcdGet64 (PcdCloudHvAcpiRsdpBaseAddress);
+ XsdtPtr = ((EFI_ACPI_6_3_ROOT_SYSTEM_DESCRIPTION_POINTER *)RsdpPtr)->XsdtAddress;
AcpiTableLength = ((EFI_ACPI_COMMON_HEADER *)XsdtPtr)->Length;
- TableOffset = sizeof (EFI_ACPI_DESCRIPTION_HEADER);
- DsdtPtr = NULL;
+ TableOffset = sizeof (EFI_ACPI_DESCRIPTION_HEADER);
+ DsdtPtr = NULL;
while (TableOffset < AcpiTableLength) {
AcpiTablePtr = *(UINT64 *)(XsdtPtr + TableOffset);
- TableSize = ((EFI_ACPI_COMMON_HEADER *)AcpiTablePtr)->Length;
+ TableSize = ((EFI_ACPI_COMMON_HEADER *)AcpiTablePtr)->Length;
//
// Install ACPI tables from XSDT
@@ -89,7 +89,7 @@ InstallCloudHvAcpiTables (
&InstalledKey
);
if (EFI_ERROR (Status)) {
- return Status;
+ return Status;
}
//
@@ -97,7 +97,8 @@ InstallCloudHvAcpiTables (
//
if ((DsdtPtr == NULL) &&
(EFI_ACPI_6_3_FIXED_ACPI_DESCRIPTION_TABLE_SIGNATURE ==
- ((EFI_ACPI_COMMON_HEADER *)AcpiTablePtr)->Signature)) {
+ ((EFI_ACPI_COMMON_HEADER *)AcpiTablePtr)->Signature))
+ {
DsdtPtr = (UINT64 *)((EFI_ACPI_6_3_FIXED_ACPI_DESCRIPTION_TABLE *)AcpiTablePtr)->XDsdt;
}
@@ -113,12 +114,12 @@ InstallCloudHvAcpiTables (
// Install DSDT table
//
TableSize = ((EFI_ACPI_COMMON_HEADER *)DsdtPtr)->Length;
- Status = AcpiProtocol->InstallAcpiTable (
- AcpiProtocol,
- DsdtPtr,
- TableSize,
- &InstalledKey
- );
+ Status = AcpiProtocol->InstallAcpiTable (
+ AcpiProtocol,
+ DsdtPtr,
+ TableSize,
+ &InstalledKey
+ );
return Status;
}
@@ -138,22 +139,22 @@ InstallCloudHvAcpiTables (
EFI_STATUS
EFIAPI
CloudHvAcpiPlatformEntryPoint (
- IN EFI_HANDLE ImageHandle,
- IN EFI_SYSTEM_TABLE *SystemTable
+ IN EFI_HANDLE ImageHandle,
+ IN EFI_SYSTEM_TABLE *SystemTable
)
{
- EFI_STATUS Status;
+ EFI_STATUS Status;
Status = InstallCloudHvAcpiTables (FindAcpiTableProtocol ());
if (EFI_ERROR (Status)) {
- DEBUG ((
- DEBUG_ERROR,
- "%a: Fail to install Acpi table: %r\n",
- __FUNCTION__,
- Status
- ));
- CpuDeadLoop ();
+ DEBUG ((
+ DEBUG_ERROR,
+ "%a: Fail to install Acpi table: %r\n",
+ __FUNCTION__,
+ Status
+ ));
+ CpuDeadLoop ();
}
return EFI_SUCCESS;