summaryrefslogtreecommitdiffstats
path: root/PcAtChipsetPkg/Include
diff options
context:
space:
mode:
authorMichael Kubacki <michael.kubacki@microsoft.com>2021-12-05 14:54:10 -0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-12-07 17:24:28 +0000
commit5220bd211df890f2672c23c050082862cd1e82d6 (patch)
treeef9ce787723fcb52a0e8812d7ce335f9f6614e86 /PcAtChipsetPkg/Include
parentac0a286f4d747a4c6c603a7b225917293cbe1e9f (diff)
downloadedk2-5220bd211df890f2672c23c050082862cd1e82d6.tar.gz
edk2-5220bd211df890f2672c23c050082862cd1e82d6.tar.bz2
edk2-5220bd211df890f2672c23c050082862cd1e82d6.zip
PcAtChipsetPkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the PcAtChipsetPkg 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: Ray Ni <ray.ni@intel.com>
Diffstat (limited to 'PcAtChipsetPkg/Include')
-rw-r--r--PcAtChipsetPkg/Include/Guid/PcAtChipsetTokenSpace.h2
-rw-r--r--PcAtChipsetPkg/Include/Library/IoApicLib.h2
-rw-r--r--PcAtChipsetPkg/Include/Register/Hpet.h72
-rw-r--r--PcAtChipsetPkg/Include/Register/IoApic.h46
4 files changed, 62 insertions, 60 deletions
diff --git a/PcAtChipsetPkg/Include/Guid/PcAtChipsetTokenSpace.h b/PcAtChipsetPkg/Include/Guid/PcAtChipsetTokenSpace.h
index f58c31383e..55647508af 100644
--- a/PcAtChipsetPkg/Include/Guid/PcAtChipsetTokenSpace.h
+++ b/PcAtChipsetPkg/Include/Guid/PcAtChipsetTokenSpace.h
@@ -14,6 +14,6 @@
0x326ae723, 0xae32, 0x4589, { 0x98, 0xb8, 0xca, 0xc2, 0x3c, 0xdc, 0xc1, 0xb1 } \
}
-extern EFI_GUID gPcAtChipsetPkgTokenSpaceGuid;
+extern EFI_GUID gPcAtChipsetPkgTokenSpaceGuid;
#endif
diff --git a/PcAtChipsetPkg/Include/Library/IoApicLib.h b/PcAtChipsetPkg/Include/Library/IoApicLib.h
index 4ee092c0f2..e92198fa28 100644
--- a/PcAtChipsetPkg/Include/Library/IoApicLib.h
+++ b/PcAtChipsetPkg/Include/Library/IoApicLib.h
@@ -8,6 +8,7 @@
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
+
#ifndef __IO_APIC_LIB_H__
#define __IO_APIC_LIB_H__
@@ -96,4 +97,5 @@ IoApicConfigureInterrupt (
IN BOOLEAN LevelTriggered,
IN BOOLEAN AssertionLevel
);
+
#endif
diff --git a/PcAtChipsetPkg/Include/Register/Hpet.h b/PcAtChipsetPkg/Include/Register/Hpet.h
index 8437ec1f2d..9a69f5efc0 100644
--- a/PcAtChipsetPkg/Include/Register/Hpet.h
+++ b/PcAtChipsetPkg/Include/Register/Hpet.h
@@ -20,15 +20,15 @@
///
/// HPET Timer Register Offsets
///
-#define HPET_MAIN_COUNTER_OFFSET 0x0F0
-#define HPET_TIMER_CONFIGURATION_OFFSET 0x100
-#define HPET_TIMER_COMPARATOR_OFFSET 0x108
-#define HPET_TIMER_MSI_ROUTE_OFFSET 0x110
+#define HPET_MAIN_COUNTER_OFFSET 0x0F0
+#define HPET_TIMER_CONFIGURATION_OFFSET 0x100
+#define HPET_TIMER_COMPARATOR_OFFSET 0x108
+#define HPET_TIMER_MSI_ROUTE_OFFSET 0x110
///
/// Stride between sets of HPET Timer Registers
///
-#define HPET_TIMER_STRIDE 0x20
+#define HPET_TIMER_STRIDE 0x20
#pragma pack(1)
@@ -37,15 +37,15 @@
///
typedef union {
struct {
- UINT32 Revision:8;
- UINT32 NumberOfTimers:5;
- UINT32 CounterSize:1;
- UINT32 Reserved0:1;
- UINT32 LegacyRoute:1;
- UINT32 VendorId:16;
- UINT32 CounterClockPeriod:32;
+ UINT32 Revision : 8;
+ UINT32 NumberOfTimers : 5;
+ UINT32 CounterSize : 1;
+ UINT32 Reserved0 : 1;
+ UINT32 LegacyRoute : 1;
+ UINT32 VendorId : 16;
+ UINT32 CounterClockPeriod : 32;
} Bits;
- UINT64 Uint64;
+ UINT64 Uint64;
} HPET_GENERAL_CAPABILITIES_ID_REGISTER;
///
@@ -53,12 +53,12 @@ typedef union {
///
typedef union {
struct {
- UINT32 MainCounterEnable:1;
- UINT32 LegacyRouteEnable:1;
- UINT32 Reserved0:30;
- UINT32 Reserved1:32;
+ UINT32 MainCounterEnable : 1;
+ UINT32 LegacyRouteEnable : 1;
+ UINT32 Reserved0 : 30;
+ UINT32 Reserved1 : 32;
} Bits;
- UINT64 Uint64;
+ UINT64 Uint64;
} HPET_GENERAL_CONFIGURATION_REGISTER;
///
@@ -66,22 +66,22 @@ typedef union {
///
typedef union {
struct {
- UINT32 Reserved0:1;
- UINT32 LevelTriggeredInterrupt:1;
- UINT32 InterruptEnable:1;
- UINT32 PeriodicInterruptEnable:1;
- UINT32 PeriodicInterruptCapability:1;
- UINT32 CounterSizeCapability:1;
- UINT32 ValueSetEnable:1;
- UINT32 Reserved1:1;
- UINT32 CounterSizeEnable:1;
- UINT32 InterruptRoute:5;
- UINT32 MsiInterruptEnable:1;
- UINT32 MsiInterruptCapability:1;
- UINT32 Reserved2:16;
- UINT32 InterruptRouteCapability;
+ UINT32 Reserved0 : 1;
+ UINT32 LevelTriggeredInterrupt : 1;
+ UINT32 InterruptEnable : 1;
+ UINT32 PeriodicInterruptEnable : 1;
+ UINT32 PeriodicInterruptCapability : 1;
+ UINT32 CounterSizeCapability : 1;
+ UINT32 ValueSetEnable : 1;
+ UINT32 Reserved1 : 1;
+ UINT32 CounterSizeEnable : 1;
+ UINT32 InterruptRoute : 5;
+ UINT32 MsiInterruptEnable : 1;
+ UINT32 MsiInterruptCapability : 1;
+ UINT32 Reserved2 : 16;
+ UINT32 InterruptRouteCapability;
} Bits;
- UINT64 Uint64;
+ UINT64 Uint64;
} HPET_TIMER_CONFIGURATION_REGISTER;
///
@@ -89,10 +89,10 @@ typedef union {
///
typedef union {
struct {
- UINT32 Value:32;
- UINT32 Address:32;
+ UINT32 Value : 32;
+ UINT32 Address : 32;
} Bits;
- UINT64 Uint64;
+ UINT64 Uint64;
} HPET_TIMER_MSI_ROUTE_REGISTER;
#pragma pack()
diff --git a/PcAtChipsetPkg/Include/Register/IoApic.h b/PcAtChipsetPkg/Include/Register/IoApic.h
index f9f70b21ec..b6f5a899d2 100644
--- a/PcAtChipsetPkg/Include/Register/IoApic.h
+++ b/PcAtChipsetPkg/Include/Register/IoApic.h
@@ -37,42 +37,42 @@
typedef union {
struct {
- UINT32 Reserved0:24;
- UINT32 Identification:4;
- UINT32 Reserved1:4;
+ UINT32 Reserved0 : 24;
+ UINT32 Identification : 4;
+ UINT32 Reserved1 : 4;
} Bits;
- UINT32 Uint32;
+ UINT32 Uint32;
} IO_APIC_IDENTIFICATION_REGISTER;
typedef union {
struct {
- UINT32 Version:8;
- UINT32 Reserved0:8;
- UINT32 MaximumRedirectionEntry:8;
- UINT32 Reserved1:8;
+ UINT32 Version : 8;
+ UINT32 Reserved0 : 8;
+ UINT32 MaximumRedirectionEntry : 8;
+ UINT32 Reserved1 : 8;
} Bits;
- UINT32 Uint32;
+ UINT32 Uint32;
} IO_APIC_VERSION_REGISTER;
typedef union {
struct {
- UINT32 Vector: 8;
- UINT32 DeliveryMode: 3;
- UINT32 DestinationMode: 1;
- UINT32 DeliveryStatus: 1;
- UINT32 Polarity: 1;
- UINT32 RemoteIRR: 1;
- UINT32 TriggerMode: 1;
- UINT32 Mask: 1;
- UINT32 Reserved0: 15;
- UINT32 Reserved1: 24;
- UINT32 DestinationID: 8;
+ UINT32 Vector : 8;
+ UINT32 DeliveryMode : 3;
+ UINT32 DestinationMode : 1;
+ UINT32 DeliveryStatus : 1;
+ UINT32 Polarity : 1;
+ UINT32 RemoteIRR : 1;
+ UINT32 TriggerMode : 1;
+ UINT32 Mask : 1;
+ UINT32 Reserved0 : 15;
+ UINT32 Reserved1 : 24;
+ UINT32 DestinationID : 8;
} Bits;
struct {
- UINT32 Low;
- UINT32 High;
+ UINT32 Low;
+ UINT32 High;
} Uint32;
- UINT64 Uint64;
+ UINT64 Uint64;
} IO_APIC_REDIRECTION_TABLE_ENTRY;
#pragma pack()