summaryrefslogtreecommitdiff
path: root/ArmVirtPkg/Library/KvmtoolRtcFdtClientLib
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/Library/KvmtoolRtcFdtClientLib
parent40b0b23ed34f48c26d711d3e4613a4bb35eeadff (diff)
downloadedk2-2b16a4fb91b9b31c0d152588f5ac51080c6c0763.zip
edk2-2b16a4fb91b9b31c0d152588f5ac51080c6c0763.tar.gz
edk2-2b16a4fb91b9b31c0d152588f5ac51080c6c0763.tar.bz2
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/Library/KvmtoolRtcFdtClientLib')
-rw-r--r--ArmVirtPkg/Library/KvmtoolRtcFdtClientLib/KvmtoolRtcFdtClientLib.c33
1 files changed, 17 insertions, 16 deletions
diff --git a/ArmVirtPkg/Library/KvmtoolRtcFdtClientLib/KvmtoolRtcFdtClientLib.c b/ArmVirtPkg/Library/KvmtoolRtcFdtClientLib/KvmtoolRtcFdtClientLib.c
index 9371595..89eee75 100644
--- a/ArmVirtPkg/Library/KvmtoolRtcFdtClientLib/KvmtoolRtcFdtClientLib.c
+++ b/ArmVirtPkg/Library/KvmtoolRtcFdtClientLib/KvmtoolRtcFdtClientLib.c
@@ -16,11 +16,11 @@
/** RTC Index register is at offset 0x0
*/
-#define RTC_INDEX_REG_OFFSET 0x0ULL
+#define RTC_INDEX_REG_OFFSET 0x0ULL
/** RTC Target register is at offset 0x1
*/
-#define RTC_TARGET_REG_OFFSET 0x1ULL
+#define RTC_TARGET_REG_OFFSET 0x1ULL
/** Add the RTC controller address range to the memory map.
@@ -34,8 +34,8 @@
STATIC
EFI_STATUS
KvmtoolRtcMapMemory (
- IN EFI_HANDLE ImageHandle,
- IN EFI_PHYSICAL_ADDRESS RtcPageBase
+ IN EFI_HANDLE ImageHandle,
+ IN EFI_PHYSICAL_ADDRESS RtcPageBase
)
{
EFI_STATUS Status;
@@ -48,7 +48,8 @@ KvmtoolRtcMapMemory (
);
if (EFI_ERROR (Status)) {
DEBUG ((
- DEBUG_ERROR, "Failed to add memory space. Status = %r\n",
+ DEBUG_ERROR,
+ "Failed to add memory space. Status = %r\n",
Status
));
return Status;
@@ -117,18 +118,18 @@ KvmtoolRtcMapMemory (
EFI_STATUS
EFIAPI
KvmtoolRtcFdtClientLibConstructor (
- IN EFI_HANDLE ImageHandle,
- IN EFI_SYSTEM_TABLE *SystemTable
+ IN EFI_HANDLE ImageHandle,
+ IN EFI_SYSTEM_TABLE *SystemTable
)
{
- EFI_STATUS Status;
- FDT_CLIENT_PROTOCOL *FdtClient;
- INT32 Node;
- CONST UINT32 *Reg;
- UINT32 RegSize;
- UINT64 RegBase;
- UINT64 Range;
- RETURN_STATUS PcdStatus;
+ EFI_STATUS Status;
+ FDT_CLIENT_PROTOCOL *FdtClient;
+ INT32 Node;
+ CONST UINT32 *Reg;
+ UINT32 RegSize;
+ UINT64 RegBase;
+ UINT64 Range;
+ RETURN_STATUS PcdStatus;
Status = gBS->LocateProtocol (
&gFdtClientProtocolGuid,
@@ -170,7 +171,7 @@ KvmtoolRtcFdtClientLibConstructor (
ASSERT (RegSize == 16);
RegBase = SwapBytes64 (ReadUnaligned64 ((VOID *)&Reg[0]));
- Range = SwapBytes64 (ReadUnaligned64 ((VOID *)&Reg[2]));
+ Range = SwapBytes64 (ReadUnaligned64 ((VOID *)&Reg[2]));
DEBUG ((
DEBUG_INFO,
"Found motorola,mc146818 RTC @ 0x%Lx Range = 0x%x\n",