From 1436aea4d5707e672672a11bda72be2c63c936c3 Mon Sep 17 00:00:00 2001 From: Michael Kubacki Date: Sun, 5 Dec 2021 14:54:02 -0800 Subject: MdeModulePkg: Apply uncrustify changes REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the MdeModulePkg package Cc: Andrew Fish Cc: Leif Lindholm Cc: Michael D Kinney Signed-off-by: Michael Kubacki Reviewed-by: Liming Gao --- .../PiDxeS3BootScriptLib/InternalBootScriptLib.h | 50 +++++++++++----------- 1 file changed, 24 insertions(+), 26 deletions(-) (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/InternalBootScriptLib.h') diff --git a/MdeModulePkg/Library/PiDxeS3BootScriptLib/InternalBootScriptLib.h b/MdeModulePkg/Library/PiDxeS3BootScriptLib/InternalBootScriptLib.h index 9485994087..b443aec08e 100644 --- a/MdeModulePkg/Library/PiDxeS3BootScriptLib/InternalBootScriptLib.h +++ b/MdeModulePkg/Library/PiDxeS3BootScriptLib/InternalBootScriptLib.h @@ -7,6 +7,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent **/ + #ifndef __INTERNAL_BOOT_SCRIPT_LIB__ #define __INTERNAL_BOOT_SCRIPT_LIB__ @@ -35,12 +36,12 @@ #include "BootScriptInternalFormat.h" -#define MAX_IO_ADDRESS 0xFFFF +#define MAX_IO_ADDRESS 0xFFFF // // Macro to convert a UEFI PCI address + segment to a PCI Segment Library PCI address // -#define PCI_ADDRESS_ENCODE(S, A) PCI_SEGMENT_LIB_ADDRESS( \ +#define PCI_ADDRESS_ENCODE(S, A) PCI_SEGMENT_LIB_ADDRESS(\ S, \ ((((UINTN)(A)) & 0xff000000) >> 24), \ ((((UINTN)(A)) & 0x00ff0000) >> 16), \ @@ -49,57 +50,54 @@ ) typedef union { - UINT8 volatile *Buf; - UINT8 volatile *Uint8; - UINT16 volatile *Uint16; - UINT32 volatile *Uint32; - UINT64 volatile *Uint64; - UINTN volatile Uint; + UINT8 volatile *Buf; + UINT8 volatile *Uint8; + UINT16 volatile *Uint16; + UINT32 volatile *Uint32; + UINT64 volatile *Uint64; + UINTN volatile Uint; } PTR; - // Minimum and maximum length for SMBus bus block protocols defined in SMBus spec 2.0. // -#define MIN_SMBUS_BLOCK_LEN 1 -#define MAX_SMBUS_BLOCK_LEN 32 +#define MIN_SMBUS_BLOCK_LEN 1 +#define MAX_SMBUS_BLOCK_LEN 32 // // The boot script private data. // typedef struct { - UINT8 *TableBase; - UINT32 TableLength; // Record the actual memory length - UINT16 TableMemoryPageNumber; // Record the page number Allocated for the table - BOOLEAN InSmm; // Record if this library is in SMM. - BOOLEAN AtRuntime; // Record if current state is after SmmExitBootServices or SmmLegacyBoot. - UINT32 BootTimeScriptLength; // Maintain boot time script length in LockBox after SmmReadyToLock in SMM. - BOOLEAN SmmLocked; // Record if current state is after SmmReadyToLock - BOOLEAN BackFromS3; // Indicate that the system is back from S3. + UINT8 *TableBase; + UINT32 TableLength; // Record the actual memory length + UINT16 TableMemoryPageNumber; // Record the page number Allocated for the table + BOOLEAN InSmm; // Record if this library is in SMM. + BOOLEAN AtRuntime; // Record if current state is after SmmExitBootServices or SmmLegacyBoot. + UINT32 BootTimeScriptLength; // Maintain boot time script length in LockBox after SmmReadyToLock in SMM. + BOOLEAN SmmLocked; // Record if current state is after SmmReadyToLock + BOOLEAN BackFromS3; // Indicate that the system is back from S3. } SCRIPT_TABLE_PRIVATE_DATA; typedef EFI_STATUS -(EFIAPI *DISPATCH_ENTRYPOINT_FUNC) ( +(EFIAPI *DISPATCH_ENTRYPOINT_FUNC)( IN EFI_HANDLE ImageHandle, IN VOID *Context ); -extern SCRIPT_TABLE_PRIVATE_DATA *mS3BootScriptTablePtr; +extern SCRIPT_TABLE_PRIVATE_DATA *mS3BootScriptTablePtr; // // Define Opcode for Label which is implementation specific and no standard spec define. // -#define S3_BOOT_SCRIPT_LIB_LABEL_OPCODE 0xFE +#define S3_BOOT_SCRIPT_LIB_LABEL_OPCODE 0xFE /// /// The opcode indicate the start of the boot script table. /// -#define S3_BOOT_SCRIPT_LIB_TABLE_OPCODE 0xAA +#define S3_BOOT_SCRIPT_LIB_TABLE_OPCODE 0xAA /// /// The opcode indicate the end of the boot script table. /// -#define S3_BOOT_SCRIPT_LIB_TERMINATE_OPCODE 0xFF - +#define S3_BOOT_SCRIPT_LIB_TERMINATE_OPCODE 0xFF #endif //__INTERNAL_BOOT_SCRIPT_LIB__ - -- cgit v1.2.3