]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Pi/PiPeiCis.h
MdePkg: Apply uncrustify changes
[mirror_edk2.git] / MdePkg / Include / Pi / PiPeiCis.h
index ebfe5981725d867e58f75b6a8a1b29eff8a854ab..69eec2c4733310eafcb741ec31160c18e82b79c2 100644 (file)
@@ -18,28 +18,26 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
 ///\r
 /// The handles of EFI FV.\r
 ///\r
 ///\r
 /// The handles of EFI FV.\r
 ///\r
-typedef VOID    *EFI_PEI_FV_HANDLE;\r
+typedef VOID *EFI_PEI_FV_HANDLE;\r
 \r
 ///\r
 /// The handles of EFI FFS.\r
 ///\r
 \r
 ///\r
 /// The handles of EFI FFS.\r
 ///\r
-typedef VOID    *EFI_PEI_FILE_HANDLE;\r
+typedef VOID *EFI_PEI_FILE_HANDLE;\r
 \r
 ///\r
 /// Declare the forward reference data structure for EFI_PEI_SERVICE.\r
 ///\r
 \r
 ///\r
 /// Declare the forward reference data structure for EFI_PEI_SERVICE.\r
 ///\r
-typedef struct _EFI_PEI_SERVICES          EFI_PEI_SERVICES;\r
+typedef struct _EFI_PEI_SERVICES EFI_PEI_SERVICES;\r
 \r
 ///\r
 /// Declare the forward reference data structure for EFI_PEI_NOTIFY_DESCRIPTOR.\r
 ///\r
 typedef struct _EFI_PEI_NOTIFY_DESCRIPTOR EFI_PEI_NOTIFY_DESCRIPTOR;\r
 \r
 \r
 ///\r
 /// Declare the forward reference data structure for EFI_PEI_NOTIFY_DESCRIPTOR.\r
 ///\r
 typedef struct _EFI_PEI_NOTIFY_DESCRIPTOR EFI_PEI_NOTIFY_DESCRIPTOR;\r
 \r
-\r
 #include <Ppi/CpuIo.h>\r
 #include <Ppi/PciCfg2.h>\r
 \r
 #include <Ppi/CpuIo.h>\r
 #include <Ppi/PciCfg2.h>\r
 \r
-\r
 /**\r
   The PEI Dispatcher will invoke each PEIM one time.  During this pass, the PEI\r
   Dispatcher will pass control to the PEIM at the AddressOfEntryPoint in the PE Header.\r
 /**\r
   The PEI Dispatcher will invoke each PEIM one time.  During this pass, the PEI\r
   Dispatcher will pass control to the PEIM at the AddressOfEntryPoint in the PE Header.\r
@@ -94,15 +92,15 @@ typedef struct {
   /// This field is a set of flags describing the characteristics of this imported table entry.\r
   /// All flags are defined as EFI_PEI_PPI_DESCRIPTOR_***, which can also be combined into one.\r
   ///\r
   /// This field is a set of flags describing the characteristics of this imported table entry.\r
   /// All flags are defined as EFI_PEI_PPI_DESCRIPTOR_***, which can also be combined into one.\r
   ///\r
-  UINTN     Flags;\r
+  UINTN       Flags;\r
   ///\r
   /// The address of the EFI_GUID that names the interface.\r
   ///\r
   ///\r
   /// The address of the EFI_GUID that names the interface.\r
   ///\r
-  EFI_GUID  *Guid;\r
+  EFI_GUID    *Guid;\r
   ///\r
   /// A pointer to the PPI. It contains the information necessary to install a service.\r
   ///\r
   ///\r
   /// A pointer to the PPI. It contains the information necessary to install a service.\r
   ///\r
-  VOID      *Ppi;\r
+  VOID        *Ppi;\r
 } EFI_PEI_PPI_DESCRIPTOR;\r
 \r
 ///\r
 } EFI_PEI_PPI_DESCRIPTOR;\r
 \r
 ///\r
@@ -113,15 +111,15 @@ struct _EFI_PEI_NOTIFY_DESCRIPTOR {
   ///\r
   /// Details if the type of notification are callback or dispatch.\r
   ///\r
   ///\r
   /// Details if the type of notification are callback or dispatch.\r
   ///\r
-  UINTN                       Flags;\r
+  UINTN                          Flags;\r
   ///\r
   /// The address of the EFI_GUID that names the interface.\r
   ///\r
   ///\r
   /// The address of the EFI_GUID that names the interface.\r
   ///\r
-  EFI_GUID                    *Guid;\r
+  EFI_GUID                       *Guid;\r
   ///\r
   /// Address of the notification callback function itself within the PEIM.\r
   ///\r
   ///\r
   /// Address of the notification callback function itself within the PEIM.\r
   ///\r
-  EFI_PEIM_NOTIFY_ENTRY_POINT Notify;\r
+  EFI_PEIM_NOTIFY_ENTRY_POINT    Notify;\r
 };\r
 \r
 ///\r
 };\r
 \r
 ///\r
@@ -132,11 +130,11 @@ typedef union {
   ///\r
   /// The typedef structure of the notification descriptor.\r
   ///\r
   ///\r
   /// The typedef structure of the notification descriptor.\r
   ///\r
-  EFI_PEI_NOTIFY_DESCRIPTOR   Notify;\r
+  EFI_PEI_NOTIFY_DESCRIPTOR    Notify;\r
   ///\r
   /// The typedef structure of the PPI descriptor.\r
   ///\r
   ///\r
   /// The typedef structure of the PPI descriptor.\r
   ///\r
-  EFI_PEI_PPI_DESCRIPTOR      Ppi;\r
+  EFI_PEI_PPI_DESCRIPTOR       Ppi;\r
 } EFI_PEI_DESCRIPTOR;\r
 \r
 /**\r
 } EFI_PEI_DESCRIPTOR;\r
 \r
 /**\r
@@ -487,7 +485,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_PEI_FREE_PAGES) (\r
+(EFIAPI *EFI_PEI_FREE_PAGES)(\r
   IN CONST EFI_PEI_SERVICES     **PeiServices,\r
   IN EFI_PHYSICAL_ADDRESS       Memory,\r
   IN UINTN                      Pages\r
   IN CONST EFI_PEI_SERVICES     **PeiServices,\r
   IN EFI_PHYSICAL_ADDRESS       Memory,\r
   IN UINTN                      Pages\r
@@ -619,7 +617,7 @@ EFI_STATUS
 **/\r
 typedef\r
 VOID\r
 **/\r
 typedef\r
 VOID\r
-(EFIAPI *EFI_PEI_RESET2_SYSTEM) (\r
+(EFIAPI *EFI_PEI_RESET2_SYSTEM)(\r
   IN EFI_RESET_TYPE     ResetType,\r
   IN EFI_STATUS         ResetStatus,\r
   IN UINTN              DataSize,\r
   IN EFI_RESET_TYPE     ResetType,\r
   IN EFI_STATUS         ResetStatus,\r
   IN UINTN              DataSize,\r
@@ -661,25 +659,25 @@ typedef struct {
   ///\r
   /// Name of the file.\r
   ///\r
   ///\r
   /// Name of the file.\r
   ///\r
-  EFI_GUID                FileName;\r
+  EFI_GUID                  FileName;\r
   ///\r
   /// File type.\r
   ///\r
   ///\r
   /// File type.\r
   ///\r
-  EFI_FV_FILETYPE         FileType;\r
+  EFI_FV_FILETYPE           FileType;\r
   ///\r
   /// Attributes of the file.\r
   ///\r
   ///\r
   /// Attributes of the file.\r
   ///\r
-  EFI_FV_FILE_ATTRIBUTES  FileAttributes;\r
+  EFI_FV_FILE_ATTRIBUTES    FileAttributes;\r
   ///\r
   /// Points to the file's data (not the header).\r
   /// Not valid if EFI_FV_FILE_ATTRIB_MEMORY_MAPPED\r
   /// is zero.\r
   ///\r
   ///\r
   /// Points to the file's data (not the header).\r
   /// Not valid if EFI_FV_FILE_ATTRIB_MEMORY_MAPPED\r
   /// is zero.\r
   ///\r
-  VOID                    *Buffer;\r
+  VOID                      *Buffer;\r
   ///\r
   /// Size of the file's data.\r
   ///\r
   ///\r
   /// Size of the file's data.\r
   ///\r
-  UINT32                  BufferSize;\r
+  UINT32                    BufferSize;\r
 } EFI_FV_FILE_INFO;\r
 \r
 ///\r
 } EFI_FV_FILE_INFO;\r
 \r
 ///\r
@@ -689,29 +687,29 @@ typedef struct {
   ///\r
   /// Name of the file.\r
   ///\r
   ///\r
   /// Name of the file.\r
   ///\r
-  EFI_GUID                FileName;\r
+  EFI_GUID                  FileName;\r
   ///\r
   /// File type.\r
   ///\r
   ///\r
   /// File type.\r
   ///\r
-  EFI_FV_FILETYPE         FileType;\r
+  EFI_FV_FILETYPE           FileType;\r
   ///\r
   /// Attributes of the file.\r
   ///\r
   ///\r
   /// Attributes of the file.\r
   ///\r
-  EFI_FV_FILE_ATTRIBUTES  FileAttributes;\r
+  EFI_FV_FILE_ATTRIBUTES    FileAttributes;\r
   ///\r
   /// Points to the file's data (not the header).\r
   /// Not valid if EFI_FV_FILE_ATTRIB_MEMORY_MAPPED\r
   /// is zero.\r
   ///\r
   ///\r
   /// Points to the file's data (not the header).\r
   /// Not valid if EFI_FV_FILE_ATTRIB_MEMORY_MAPPED\r
   /// is zero.\r
   ///\r
-  VOID                    *Buffer;\r
+  VOID                      *Buffer;\r
   ///\r
   /// Size of the file's data.\r
   ///\r
   ///\r
   /// Size of the file's data.\r
   ///\r
-  UINT32                  BufferSize;\r
+  UINT32                    BufferSize;\r
   ///\r
   /// Authentication status for this file.\r
   ///\r
   ///\r
   /// Authentication status for this file.\r
   ///\r
-  UINT32                  AuthenticationStatus;\r
+  UINT32                    AuthenticationStatus;\r
 } EFI_FV_FILE_INFO2;\r
 \r
 /**\r
 } EFI_FV_FILE_INFO2;\r
 \r
 /**\r
@@ -770,25 +768,25 @@ typedef struct {
   ///\r
   /// Attributes of the firmware volume.\r
   ///\r
   ///\r
   /// Attributes of the firmware volume.\r
   ///\r
-  EFI_FVB_ATTRIBUTES_2  FvAttributes;\r
+  EFI_FVB_ATTRIBUTES_2    FvAttributes;\r
   ///\r
   /// Format of the firmware volume.\r
   ///\r
   ///\r
   /// Format of the firmware volume.\r
   ///\r
-  EFI_GUID              FvFormat;\r
+  EFI_GUID                FvFormat;\r
   ///\r
   /// Name of the firmware volume.\r
   ///\r
   ///\r
   /// Name of the firmware volume.\r
   ///\r
-  EFI_GUID              FvName;\r
+  EFI_GUID                FvName;\r
   ///\r
   /// Points to the first byte of the firmware\r
   /// volume, if bit EFI_FVB_MEMORY_MAPPED is\r
   /// set in FvAttributes.\r
   ///\r
   ///\r
   /// Points to the first byte of the firmware\r
   /// volume, if bit EFI_FVB_MEMORY_MAPPED is\r
   /// set in FvAttributes.\r
   ///\r
-  VOID                  *FvStart;\r
+  VOID                    *FvStart;\r
   ///\r
   /// Size of the firmware volume.\r
   ///\r
   ///\r
   /// Size of the firmware volume.\r
   ///\r
-  UINT64                FvSize;\r
+  UINT64                  FvSize;\r
 } EFI_FV_INFO;\r
 \r
 /**\r
 } EFI_FV_INFO;\r
 \r
 /**\r
@@ -845,7 +843,6 @@ EFI_STATUS
   IN  EFI_PEI_FILE_HANDLE FileHandle\r
   );\r
 \r
   IN  EFI_PEI_FILE_HANDLE FileHandle\r
   );\r
 \r
-\r
 //\r
 // PEI Specification Revision information\r
 //\r
 //\r
 // PEI Specification Revision information\r
 //\r
@@ -866,7 +863,7 @@ EFI_STATUS
 /// #define ((PEI_SPECIFICATION_MAJOR_REVISION<<16) |(PEI_SPECIFICATION_MINOR_REVISION))\r
 /// and it should be as follows:\r
 ///\r
 /// #define ((PEI_SPECIFICATION_MAJOR_REVISION<<16) |(PEI_SPECIFICATION_MINOR_REVISION))\r
 /// and it should be as follows:\r
 ///\r
-#define PEI_SERVICES_REVISION   ((PEI_SPECIFICATION_MAJOR_REVISION<<16) | (PEI_SPECIFICATION_MINOR_REVISION))\r
+#define PEI_SERVICES_REVISION  ((PEI_SPECIFICATION_MAJOR_REVISION<<16) | (PEI_SPECIFICATION_MINOR_REVISION))\r
 \r
 ///\r
 /// EFI_PEI_SERVICES is a collection of functions whose implementation is provided by the PEI\r
 \r
 ///\r
 /// EFI_PEI_SERVICES is a collection of functions whose implementation is provided by the PEI\r
@@ -881,75 +878,74 @@ struct _EFI_PEI_SERVICES {
   ///\r
   /// The table header for the PEI Services Table.\r
   ///\r
   ///\r
   /// The table header for the PEI Services Table.\r
   ///\r
-  EFI_TABLE_HEADER                Hdr;\r
+  EFI_TABLE_HEADER                  Hdr;\r
 \r
   //\r
   // PPI Functions\r
   //\r
 \r
   //\r
   // PPI Functions\r
   //\r
-  EFI_PEI_INSTALL_PPI             InstallPpi;\r
-  EFI_PEI_REINSTALL_PPI           ReInstallPpi;\r
-  EFI_PEI_LOCATE_PPI              LocatePpi;\r
-  EFI_PEI_NOTIFY_PPI              NotifyPpi;\r
+  EFI_PEI_INSTALL_PPI               InstallPpi;\r
+  EFI_PEI_REINSTALL_PPI             ReInstallPpi;\r
+  EFI_PEI_LOCATE_PPI                LocatePpi;\r
+  EFI_PEI_NOTIFY_PPI                NotifyPpi;\r
 \r
   //\r
   // Boot Mode Functions\r
   //\r
 \r
   //\r
   // Boot Mode Functions\r
   //\r
-  EFI_PEI_GET_BOOT_MODE           GetBootMode;\r
-  EFI_PEI_SET_BOOT_MODE           SetBootMode;\r
+  EFI_PEI_GET_BOOT_MODE             GetBootMode;\r
+  EFI_PEI_SET_BOOT_MODE             SetBootMode;\r
 \r
   //\r
   // HOB Functions\r
   //\r
 \r
   //\r
   // HOB Functions\r
   //\r
-  EFI_PEI_GET_HOB_LIST            GetHobList;\r
-  EFI_PEI_CREATE_HOB              CreateHob;\r
+  EFI_PEI_GET_HOB_LIST              GetHobList;\r
+  EFI_PEI_CREATE_HOB                CreateHob;\r
 \r
   //\r
   // Firmware Volume Functions\r
   //\r
 \r
   //\r
   // Firmware Volume Functions\r
   //\r
-  EFI_PEI_FFS_FIND_NEXT_VOLUME2   FfsFindNextVolume;\r
-  EFI_PEI_FFS_FIND_NEXT_FILE2     FfsFindNextFile;\r
-  EFI_PEI_FFS_FIND_SECTION_DATA2  FfsFindSectionData;\r
+  EFI_PEI_FFS_FIND_NEXT_VOLUME2     FfsFindNextVolume;\r
+  EFI_PEI_FFS_FIND_NEXT_FILE2       FfsFindNextFile;\r
+  EFI_PEI_FFS_FIND_SECTION_DATA2    FfsFindSectionData;\r
 \r
   //\r
   // PEI Memory Functions\r
   //\r
 \r
   //\r
   // PEI Memory Functions\r
   //\r
-  EFI_PEI_INSTALL_PEI_MEMORY      InstallPeiMemory;\r
-  EFI_PEI_ALLOCATE_PAGES          AllocatePages;\r
-  EFI_PEI_ALLOCATE_POOL           AllocatePool;\r
-  EFI_PEI_COPY_MEM                CopyMem;\r
-  EFI_PEI_SET_MEM                 SetMem;\r
+  EFI_PEI_INSTALL_PEI_MEMORY        InstallPeiMemory;\r
+  EFI_PEI_ALLOCATE_PAGES            AllocatePages;\r
+  EFI_PEI_ALLOCATE_POOL             AllocatePool;\r
+  EFI_PEI_COPY_MEM                  CopyMem;\r
+  EFI_PEI_SET_MEM                   SetMem;\r
 \r
   //\r
   // Status Code\r
   //\r
 \r
   //\r
   // Status Code\r
   //\r
-  EFI_PEI_REPORT_STATUS_CODE      ReportStatusCode;\r
+  EFI_PEI_REPORT_STATUS_CODE        ReportStatusCode;\r
 \r
   //\r
   // Reset\r
   //\r
 \r
   //\r
   // Reset\r
   //\r
-  EFI_PEI_RESET_SYSTEM            ResetSystem;\r
+  EFI_PEI_RESET_SYSTEM              ResetSystem;\r
 \r
   //\r
   // (the following interfaces are installed by publishing PEIM)\r
   // I/O Abstractions\r
   //\r
 \r
   //\r
   // (the following interfaces are installed by publishing PEIM)\r
   // I/O Abstractions\r
   //\r
-  EFI_PEI_CPU_IO_PPI              *CpuIo;\r
-  EFI_PEI_PCI_CFG2_PPI            *PciCfg;\r
+  EFI_PEI_CPU_IO_PPI                *CpuIo;\r
+  EFI_PEI_PCI_CFG2_PPI              *PciCfg;\r
 \r
   //\r
   // Future Installed Services\r
   //\r
 \r
   //\r
   // Future Installed Services\r
   //\r
-  EFI_PEI_FFS_FIND_BY_NAME        FfsFindFileByName;\r
-  EFI_PEI_FFS_GET_FILE_INFO       FfsGetFileInfo;\r
-  EFI_PEI_FFS_GET_VOLUME_INFO     FfsGetVolumeInfo;\r
-  EFI_PEI_REGISTER_FOR_SHADOW     RegisterForShadow;\r
-  EFI_PEI_FFS_FIND_SECTION_DATA3  FindSectionData3;\r
-  EFI_PEI_FFS_GET_FILE_INFO2      FfsGetFileInfo2;\r
-  EFI_PEI_RESET2_SYSTEM           ResetSystem2;\r
-  EFI_PEI_FREE_PAGES              FreePages;\r
+  EFI_PEI_FFS_FIND_BY_NAME          FfsFindFileByName;\r
+  EFI_PEI_FFS_GET_FILE_INFO         FfsGetFileInfo;\r
+  EFI_PEI_FFS_GET_VOLUME_INFO       FfsGetVolumeInfo;\r
+  EFI_PEI_REGISTER_FOR_SHADOW       RegisterForShadow;\r
+  EFI_PEI_FFS_FIND_SECTION_DATA3    FindSectionData3;\r
+  EFI_PEI_FFS_GET_FILE_INFO2        FfsGetFileInfo2;\r
+  EFI_PEI_RESET2_SYSTEM             ResetSystem2;\r
+  EFI_PEI_FREE_PAGES                FreePages;\r
 };\r
 \r
 };\r
 \r
-\r
 ///\r
 /// EFI_SEC_PEI_HAND_OFF structure holds information about\r
 /// PEI core's operating environment, such as the size of location of\r
 ///\r
 /// EFI_SEC_PEI_HAND_OFF structure holds information about\r
 /// PEI core's operating environment, such as the size of location of\r
@@ -959,29 +955,29 @@ typedef struct _EFI_SEC_PEI_HAND_OFF {
   ///\r
   /// Size of the data structure.\r
   ///\r
   ///\r
   /// Size of the data structure.\r
   ///\r
-  UINT16  DataSize;\r
+  UINT16    DataSize;\r
 \r
   ///\r
   /// Points to the first byte of the boot firmware volume,\r
   /// which the PEI Dispatcher should search for\r
   /// PEI modules.\r
   ///\r
 \r
   ///\r
   /// Points to the first byte of the boot firmware volume,\r
   /// which the PEI Dispatcher should search for\r
   /// PEI modules.\r
   ///\r
-  VOID    *BootFirmwareVolumeBase;\r
+  VOID      *BootFirmwareVolumeBase;\r
 \r
   ///\r
   /// Size of the boot firmware volume, in bytes.\r
   ///\r
 \r
   ///\r
   /// Size of the boot firmware volume, in bytes.\r
   ///\r
-  UINTN   BootFirmwareVolumeSize;\r
+  UINTN     BootFirmwareVolumeSize;\r
 \r
   ///\r
   /// Points to the first byte of the temporary RAM.\r
   ///\r
 \r
   ///\r
   /// Points to the first byte of the temporary RAM.\r
   ///\r
-  VOID    *TemporaryRamBase;\r
+  VOID      *TemporaryRamBase;\r
 \r
   ///\r
   /// Size of the temporary RAM, in bytes.\r
   ///\r
 \r
   ///\r
   /// Size of the temporary RAM, in bytes.\r
   ///\r
-  UINTN   TemporaryRamSize;\r
+  UINTN     TemporaryRamSize;\r
 \r
   ///\r
   /// Points to the first byte of the temporary RAM\r
 \r
   ///\r
   /// Points to the first byte of the temporary RAM\r
@@ -992,13 +988,13 @@ typedef struct _EFI_SEC_PEI_HAND_OFF {
   /// overlap with the area reported by StackBase and\r
   /// StackSize.\r
   ///\r
   /// overlap with the area reported by StackBase and\r
   /// StackSize.\r
   ///\r
-  VOID    *PeiTemporaryRamBase;\r
+  VOID     *PeiTemporaryRamBase;\r
 \r
   ///\r
   /// The size of the available temporary RAM available for\r
   /// use by the PEI Foundation, in bytes.\r
   ///\r
 \r
   ///\r
   /// The size of the available temporary RAM available for\r
   /// use by the PEI Foundation, in bytes.\r
   ///\r
-  UINTN   PeiTemporaryRamSize;\r
+  UINTN    PeiTemporaryRamSize;\r
 \r
   ///\r
   /// Points to the first byte of the stack.\r
 \r
   ///\r
   /// Points to the first byte of the stack.\r
@@ -1006,15 +1002,14 @@ typedef struct _EFI_SEC_PEI_HAND_OFF {
   /// TemporaryRamBase and TemporaryRamSize\r
   /// or may be an entirely separate area.\r
   ///\r
   /// TemporaryRamBase and TemporaryRamSize\r
   /// or may be an entirely separate area.\r
   ///\r
-  VOID    *StackBase;\r
+  VOID     *StackBase;\r
 \r
   ///\r
   /// Size of the stack, in bytes.\r
   ///\r
 \r
   ///\r
   /// Size of the stack, in bytes.\r
   ///\r
-  UINTN   StackSize;\r
+  UINTN    StackSize;\r
 } EFI_SEC_PEI_HAND_OFF;\r
 \r
 } EFI_SEC_PEI_HAND_OFF;\r
 \r
-\r
 /**\r
   The entry point of PEI Foundation.\r
 \r
 /**\r
   The entry point of PEI Foundation.\r
 \r
@@ -1056,6 +1051,6 @@ VOID
 (EFIAPI *EFI_PEI_CORE_ENTRY_POINT)(\r
   IN CONST  EFI_SEC_PEI_HAND_OFF    *SecCoreData,\r
   IN CONST  EFI_PEI_PPI_DESCRIPTOR  *PpiList\r
 (EFIAPI *EFI_PEI_CORE_ENTRY_POINT)(\r
   IN CONST  EFI_SEC_PEI_HAND_OFF    *SecCoreData,\r
   IN CONST  EFI_PEI_PPI_DESCRIPTOR  *PpiList\r
-);\r
+  );\r
 \r
 #endif\r
 \r
 #endif\r