diff options
author | Michael Kubacki <michael.kubacki@microsoft.com> | 2021-12-05 14:53:59 -0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-12-07 17:24:28 +0000 |
commit | 111f2228ddf487b0ac3491e416bb3dcdcfa4f979 (patch) | |
tree | 27e94e32b6773d887d66706d7c8643d2d32be008 /IntelFsp2Pkg/Tools | |
parent | 45ce0a67bb4ee80f27da93777c623f51f344f23b (diff) | |
download | edk2-111f2228ddf487b0ac3491e416bb3dcdcfa4f979.tar.gz edk2-111f2228ddf487b0ac3491e416bb3dcdcfa4f979.tar.bz2 edk2-111f2228ddf487b0ac3491e416bb3dcdcfa4f979.zip |
IntelFsp2Pkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737
Apply uncrustify changes to .c/.h files in the IntelFsp2Pkg 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: Chasel Chiu <chasel.chiu@intel.com>
Diffstat (limited to 'IntelFsp2Pkg/Tools')
-rw-r--r-- | IntelFsp2Pkg/Tools/Tests/ExpectedFspUpd.h | 6 | ||||
-rw-r--r-- | IntelFsp2Pkg/Tools/Tests/ExpectedFspmUpd.h | 99 | ||||
-rw-r--r-- | IntelFsp2Pkg/Tools/Tests/ExpectedFspsUpd.h | 87 | ||||
-rw-r--r-- | IntelFsp2Pkg/Tools/Tests/ExpectedFsptUpd.h | 98 |
4 files changed, 140 insertions, 150 deletions
diff --git a/IntelFsp2Pkg/Tools/Tests/ExpectedFspUpd.h b/IntelFsp2Pkg/Tools/Tests/ExpectedFspUpd.h index be2ed8aa99..10bb0c60f3 100644 --- a/IntelFsp2Pkg/Tools/Tests/ExpectedFspUpd.h +++ b/IntelFsp2Pkg/Tools/Tests/ExpectedFspUpd.h @@ -5,11 +5,11 @@ #pragma pack(1)
-#define FSPT_UPD_SIGNATURE 0x545F4450554D4551 /* 'QEMUPD_T' */
+#define FSPT_UPD_SIGNATURE 0x545F4450554D4551 /* 'QEMUPD_T' */
-#define FSPM_UPD_SIGNATURE 0x4D5F4450554D4551 /* 'QEMUPD_M' */
+#define FSPM_UPD_SIGNATURE 0x4D5F4450554D4551 /* 'QEMUPD_M' */
-#define FSPS_UPD_SIGNATURE 0x535F4450554D4551 /* 'QEMUPD_S' */
+#define FSPS_UPD_SIGNATURE 0x535F4450554D4551 /* 'QEMUPD_S' */
#pragma pack()
diff --git a/IntelFsp2Pkg/Tools/Tests/ExpectedFspmUpd.h b/IntelFsp2Pkg/Tools/Tests/ExpectedFspmUpd.h index 49dadbac62..0000ea7e60 100644 --- a/IntelFsp2Pkg/Tools/Tests/ExpectedFspmUpd.h +++ b/IntelFsp2Pkg/Tools/Tests/ExpectedFspmUpd.h @@ -5,69 +5,66 @@ #pragma pack(1)
-
/** Fsp M Configuration
**/
typedef struct {
-
-/** Offset 0x00C8 - Debug Serial Port Base address
- Debug serial port base address. This option will be used only when the 'Serial Port
- Debug Device' option is set to 'External Device'. 0x00000000(Default).
-**/
- UINT32 SerialDebugPortAddress;
-
-/** Offset 0x00CC - Debug Serial Port Type
- 16550 compatible debug serial port resource type. NONE means no serial port support.
- 0x02:MMIO(Default).
- 0:NONE, 1:I/O, 2:MMIO
-**/
- UINT8 SerialDebugPortType;
-
-/** Offset 0x00CD - Serial Port Debug Device
- Select active serial port device for debug.For SOC UART devices,'Debug Serial Port
- Base' options will be ignored. 0x02:SOC UART2(Default).
- 0:SOC UART0, 1:SOC UART1, 2:SOC UART2, 3:External Device
-**/
- UINT8 SerialDebugPortDevice;
-
-/** Offset 0x00CE - Debug Serial Port Stride Size
- Debug serial port register map stride size in bytes. 0x00:1, 0x02:4(Default).
- 0:1, 2:4
-**/
- UINT8 SerialDebugPortStrideSize;
-
-/** Offset 0x00CF
-**/
- UINT8 UnusedUpdSpace2[1];
-
-/** Offset 0x00D0
-**/
- UINT8 ReservedFspmUpd[4];
+ /** Offset 0x00C8 - Debug Serial Port Base address
+ Debug serial port base address. This option will be used only when the 'Serial Port
+ Debug Device' option is set to 'External Device'. 0x00000000(Default).
+ **/
+ UINT32 SerialDebugPortAddress;
+
+ /** Offset 0x00CC - Debug Serial Port Type
+ 16550 compatible debug serial port resource type. NONE means no serial port support.
+ 0x02:MMIO(Default).
+ 0:NONE, 1:I/O, 2:MMIO
+ **/
+ UINT8 SerialDebugPortType;
+
+ /** Offset 0x00CD - Serial Port Debug Device
+ Select active serial port device for debug.For SOC UART devices,'Debug Serial Port
+ Base' options will be ignored. 0x02:SOC UART2(Default).
+ 0:SOC UART0, 1:SOC UART1, 2:SOC UART2, 3:External Device
+ **/
+ UINT8 SerialDebugPortDevice;
+
+ /** Offset 0x00CE - Debug Serial Port Stride Size
+ Debug serial port register map stride size in bytes. 0x00:1, 0x02:4(Default).
+ 0:1, 2:4
+ **/
+ UINT8 SerialDebugPortStrideSize;
+
+ /** Offset 0x00CF
+ **/
+ UINT8 UnusedUpdSpace2[1];
+
+ /** Offset 0x00D0
+ **/
+ UINT8 ReservedFspmUpd[4];
} FSP_M_CONFIG;
/** Fsp M UPD Configuration
**/
typedef struct {
+ /** Offset 0x0000
+ **/
+ FSP_UPD_HEADER FspUpdHeader;
-/** Offset 0x0000
-**/
- FSP_UPD_HEADER FspUpdHeader;
+ /** Offset 0x00A8
+ **/
+ FSPM_ARCH_UPD FspmArchUpd;
-/** Offset 0x00A8
-**/
- FSPM_ARCH_UPD FspmArchUpd;
+ /** Offset 0x00C8
+ **/
+ FSP_M_CONFIG FspmConfig;
-/** Offset 0x00C8
-**/
- FSP_M_CONFIG FspmConfig;
-
-/** Offset 0x00D4
-**/
- UINT8 UnusedUpdSpace3[2];
+ /** Offset 0x00D4
+ **/
+ UINT8 UnusedUpdSpace3[2];
-/** Offset 0x00D6
-**/
- UINT16 UpdTerminator;
+ /** Offset 0x00D6
+ **/
+ UINT16 UpdTerminator;
} FSPM_UPD;
#pragma pack()
diff --git a/IntelFsp2Pkg/Tools/Tests/ExpectedFspsUpd.h b/IntelFsp2Pkg/Tools/Tests/ExpectedFspsUpd.h index e2bc54a61d..5ada5c910a 100644 --- a/IntelFsp2Pkg/Tools/Tests/ExpectedFspsUpd.h +++ b/IntelFsp2Pkg/Tools/Tests/ExpectedFspsUpd.h @@ -5,63 +5,60 @@ #pragma pack(1)
-
/** Fsp S Configuration
**/
typedef struct {
-
-/** Offset 0x0118 - BMP Logo Data Size
- BMP logo data buffer size. 0x00000000(Default).
-**/
- UINT32 LogoSize;
-
-/** Offset 0x011C - BMP Logo Data Pointer
- BMP logo data pointer to a BMP format buffer. 0x00000000(Default).
-**/
- UINT32 LogoPtr;
-
-/** Offset 0x0120 - Graphics Configuration Data Pointer
- Graphics configuration data used for initialization. 0x00000000(Default).
-**/
- UINT32 GraphicsConfigPtr;
-
-/** Offset 0x0124 - PCI GFX Temporary MMIO Base
- PCI Temporary PCI GFX Base used before full PCI enumeration. 0x80000000(Default).
-**/
- UINT32 PciTempResourceBase;
-
-/** Offset 0x0128
-**/
- UINT8 UnusedUpdSpace1[3];
-
-/** Offset 0x012B
-**/
- UINT8 ReservedFspsUpd;
+ /** Offset 0x0118 - BMP Logo Data Size
+ BMP logo data buffer size. 0x00000000(Default).
+ **/
+ UINT32 LogoSize;
+
+ /** Offset 0x011C - BMP Logo Data Pointer
+ BMP logo data pointer to a BMP format buffer. 0x00000000(Default).
+ **/
+ UINT32 LogoPtr;
+
+ /** Offset 0x0120 - Graphics Configuration Data Pointer
+ Graphics configuration data used for initialization. 0x00000000(Default).
+ **/
+ UINT32 GraphicsConfigPtr;
+
+ /** Offset 0x0124 - PCI GFX Temporary MMIO Base
+ PCI Temporary PCI GFX Base used before full PCI enumeration. 0x80000000(Default).
+ **/
+ UINT32 PciTempResourceBase;
+
+ /** Offset 0x0128
+ **/
+ UINT8 UnusedUpdSpace1[3];
+
+ /** Offset 0x012B
+ **/
+ UINT8 ReservedFspsUpd;
} FSP_S_CONFIG;
/** Fsp S UPD Configuration
**/
typedef struct {
+ /** Offset 0x0000
+ **/
+ FSP_UPD_HEADER FspUpdHeader;
-/** Offset 0x0000
-**/
- FSP_UPD_HEADER FspUpdHeader;
+ /** Offset 0x00F8
+ **/
+ FSPS_ARCH_UPD FspsArchUpd;
-/** Offset 0x00F8
-**/
- FSPS_ARCH_UPD FspsArchUpd;
+ /** Offset 0x0118
+ **/
+ FSP_S_CONFIG FspsConfig;
-/** Offset 0x0118
-**/
- FSP_S_CONFIG FspsConfig;
-
-/** Offset 0x012C
-**/
- UINT8 UnusedUpdSpace2[2];
+ /** Offset 0x012C
+ **/
+ UINT8 UnusedUpdSpace2[2];
-/** Offset 0x012E
-**/
- UINT16 UpdTerminator;
+ /** Offset 0x012E
+ **/
+ UINT16 UpdTerminator;
} FSPS_UPD;
#pragma pack()
diff --git a/IntelFsp2Pkg/Tools/Tests/ExpectedFsptUpd.h b/IntelFsp2Pkg/Tools/Tests/ExpectedFsptUpd.h index 25b8a7d63a..48310b4fc1 100644 --- a/IntelFsp2Pkg/Tools/Tests/ExpectedFsptUpd.h +++ b/IntelFsp2Pkg/Tools/Tests/ExpectedFsptUpd.h @@ -5,81 +5,77 @@ #pragma pack(1)
-
/** Fsp T Common UPD
**/
typedef struct {
+ /** Offset 0x0040
+ **/
+ UINT8 Revision;
-/** Offset 0x0040
-**/
- UINT8 Revision;
+ /** Offset 0x0041
+ **/
+ UINT8 Reserved[3];
-/** Offset 0x0041
-**/
- UINT8 Reserved[3];
-
-/** Offset 0x0044
-**/
- UINT32 MicrocodeRegionBase;
+ /** Offset 0x0044
+ **/
+ UINT32 MicrocodeRegionBase;
-/** Offset 0x0048
-**/
- UINT32 MicrocodeRegionLength;
+ /** Offset 0x0048
+ **/
+ UINT32 MicrocodeRegionLength;
-/** Offset 0x004C
-**/
- UINT32 CodeRegionBase;
+ /** Offset 0x004C
+ **/
+ UINT32 CodeRegionBase;
-/** Offset 0x0050
-**/
- UINT32 CodeRegionLength;
+ /** Offset 0x0050
+ **/
+ UINT32 CodeRegionLength;
-/** Offset 0x0054
-**/
- UINT8 Reserved1[12];
+ /** Offset 0x0054
+ **/
+ UINT8 Reserved1[12];
} FSPT_COMMON_UPD;
/** Fsp T Configuration
**/
typedef struct {
-
-/** Offset 0x0060 - Chicken bytes to test Hex config
- This option shows how to present option for 4 bytes data
-**/
- UINT32 ChickenBytes;
-
-/** Offset 0x0064
-**/
- UINT8 ReservedFsptUpd1[28];
+ /** Offset 0x0060 - Chicken bytes to test Hex config
+ This option shows how to present option for 4 bytes data
+ **/
+ UINT32 ChickenBytes;
+
+ /** Offset 0x0064
+ **/
+ UINT8 ReservedFsptUpd1[28];
} FSP_T_CONFIG;
/** Fsp T UPD Configuration
**/
typedef struct {
+ /** Offset 0x0000
+ **/
+ FSP_UPD_HEADER FspUpdHeader;
-/** Offset 0x0000
-**/
- FSP_UPD_HEADER FspUpdHeader;
-
-/** Offset 0x0020
-**/
- FSPT_ARCH_UPD FsptArchUpd;
+ /** Offset 0x0020
+ **/
+ FSPT_ARCH_UPD FsptArchUpd;
-/** Offset 0x0040
-**/
- FSPT_COMMON_UPD FsptCommonUpd;
+ /** Offset 0x0040
+ **/
+ FSPT_COMMON_UPD FsptCommonUpd;
-/** Offset 0x0060
-**/
- FSP_T_CONFIG FsptConfig;
+ /** Offset 0x0060
+ **/
+ FSP_T_CONFIG FsptConfig;
-/** Offset 0x0080
-**/
- UINT8 UnusedUpdSpace0[6];
+ /** Offset 0x0080
+ **/
+ UINT8 UnusedUpdSpace0[6];
-/** Offset 0x0086
-**/
- UINT16 UpdTerminator;
+ /** Offset 0x0086
+ **/
+ UINT16 UpdTerminator;
} FSPT_UPD;
#pragma pack()
|