]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Protocol/MpService.h
MdePkg: Apply uncrustify changes
[mirror_edk2.git] / MdePkg / Include / Protocol / MpService.h
index 9445c5567ffb3fb905db4f012db87f4eb6ff81ed..433a6e925990dd7796b7a3c5e37133c6a02440e4 100644 (file)
@@ -50,7 +50,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
 ///\r
 /// Value used in the NumberProcessors parameter of the GetProcessorInfo function\r
 ///\r
-#define CPU_V2_EXTENDED_TOPOLOGY BIT24\r
+#define CPU_V2_EXTENDED_TOPOLOGY  BIT24\r
 \r
 ///\r
 /// Forward declaration for the EFI_MP_SERVICES_PROTOCOL.\r
@@ -60,21 +60,21 @@ typedef struct _EFI_MP_SERVICES_PROTOCOL EFI_MP_SERVICES_PROTOCOL;
 ///\r
 /// Terminator for a list of failed CPUs returned by StartAllAPs().\r
 ///\r
-#define END_OF_CPU_LIST    0xffffffff\r
+#define END_OF_CPU_LIST  0xffffffff\r
 \r
 ///\r
 /// This bit is used in the StatusFlag field of EFI_PROCESSOR_INFORMATION and\r
 /// indicates whether the processor is playing the role of BSP. If the bit is 1,\r
 /// then the processor is BSP. Otherwise, it is AP.\r
 ///\r
-#define PROCESSOR_AS_BSP_BIT         0x00000001\r
+#define PROCESSOR_AS_BSP_BIT  0x00000001\r
 \r
 ///\r
 /// This bit is used in the StatusFlag field of EFI_PROCESSOR_INFORMATION and\r
 /// indicates whether the processor is enabled. If the bit is 1, then the\r
 /// processor is enabled. Otherwise, it is disabled.\r
 ///\r
-#define PROCESSOR_ENABLED_BIT        0x00000002\r
+#define PROCESSOR_ENABLED_BIT  0x00000002\r
 \r
 ///\r
 /// This bit is used in the StatusFlag field of EFI_PROCESSOR_INFORMATION and\r
@@ -90,58 +90,56 @@ typedef struct {
   ///\r
   /// Zero-based physical package number that identifies the cartridge of the processor.\r
   ///\r
-  UINT32  Package;\r
+  UINT32    Package;\r
   ///\r
   /// Zero-based physical core number within package of the processor.\r
   ///\r
-  UINT32  Core;\r
+  UINT32    Core;\r
   ///\r
   /// Zero-based logical thread number within core of the processor.\r
   ///\r
-  UINT32  Thread;\r
+  UINT32    Thread;\r
 } EFI_CPU_PHYSICAL_LOCATION;\r
 \r
 ///\r
 ///  Structure that defines the 6-level physical location of the processor\r
 ///\r
 typedef struct {\r
-///\r
-///    Package     Zero-based physical package number that identifies the cartridge of the processor.\r
-///\r
-UINT32  Package;\r
-///\r
-///    Module      Zero-based physical module number within package of the processor.\r
-///\r
-UINT32  Module;\r
-///\r
-///    Tile        Zero-based physical tile number within module of the processor.\r
-///\r
-UINT32  Tile;\r
-///\r
-///    Die         Zero-based physical die number within tile of the processor.\r
-///\r
-UINT32  Die;\r
-///\r
-///     Core        Zero-based physical core number within die of the processor.\r
-///\r
-UINT32  Core;\r
-///\r
-///     Thread      Zero-based logical thread number within core of the processor.\r
-///\r
-UINT32  Thread;\r
+  ///\r
+  ///    Package     Zero-based physical package number that identifies the cartridge of the processor.\r
+  ///\r
+  UINT32    Package;\r
+  ///\r
+  ///    Module      Zero-based physical module number within package of the processor.\r
+  ///\r
+  UINT32    Module;\r
+  ///\r
+  ///    Tile        Zero-based physical tile number within module of the processor.\r
+  ///\r
+  UINT32    Tile;\r
+  ///\r
+  ///    Die         Zero-based physical die number within tile of the processor.\r
+  ///\r
+  UINT32    Die;\r
+  ///\r
+  ///     Core        Zero-based physical core number within die of the processor.\r
+  ///\r
+  UINT32    Core;\r
+  ///\r
+  ///     Thread      Zero-based logical thread number within core of the processor.\r
+  ///\r
+  UINT32    Thread;\r
 } EFI_CPU_PHYSICAL_LOCATION2;\r
 \r
-\r
 typedef union {\r
   /// The 6-level physical location of the processor, including the\r
   /// physical package number that identifies the cartridge, the physical\r
   /// module number within package, the physical tile number within the module,\r
   /// the physical die number within the tile, the physical core number within\r
   /// package, and logical thread number within core.\r
-  EFI_CPU_PHYSICAL_LOCATION2  Location2;\r
+  EFI_CPU_PHYSICAL_LOCATION2    Location2;\r
 } EXTENDED_PROCESSOR_INFORMATION;\r
 \r
-\r
 ///\r
 /// Structure that describes information about a logical CPU.\r
 ///\r
@@ -152,7 +150,7 @@ typedef struct {
   /// are used, and higher bits are reserved.  For IPF, the lower 16 bits contains\r
   /// id/eid, and higher bits are reserved.\r
   ///\r
-  UINT64                     ProcessorId;\r
+  UINT64    ProcessorId;\r
   ///\r
   /// Flags indicating if the processor is BSP or AP, if the processor is enabled\r
   /// or disabled, and if the processor is healthy. Bits 3..31 are reserved and\r
@@ -171,17 +169,17 @@ typedef struct {
   ///  1      1       1     Healthy Enabled BSP.\r
   /// </pre>\r
   ///\r
-  UINT32                     StatusFlag;\r
+  UINT32                            StatusFlag;\r
   ///\r
   /// The physical location of the processor, including the physical package number\r
   /// that identifies the cartridge, the physical core number within package, and\r
   /// logical thread number within core.\r
   ///\r
-  EFI_CPU_PHYSICAL_LOCATION  Location;\r
+  EFI_CPU_PHYSICAL_LOCATION         Location;\r
   ///\r
   /// The extended information of the processor. This field is filled only when\r
   /// CPU_V2_EXTENDED_TOPOLOGY is set in parameter ProcessorNumber.\r
-  EXTENDED_PROCESSOR_INFORMATION ExtendedInformation;\r
+  EXTENDED_PROCESSOR_INFORMATION    ExtendedInformation;\r
 } EFI_PROCESSOR_INFORMATION;\r
 \r
 /**\r
@@ -662,15 +660,15 @@ EFI_STATUS
 /// UEFI images must be aware that the functionality of this protocol may be reduced.\r
 ///\r
 struct _EFI_MP_SERVICES_PROTOCOL {\r
-  EFI_MP_SERVICES_GET_NUMBER_OF_PROCESSORS  GetNumberOfProcessors;\r
-  EFI_MP_SERVICES_GET_PROCESSOR_INFO        GetProcessorInfo;\r
-  EFI_MP_SERVICES_STARTUP_ALL_APS           StartupAllAPs;\r
-  EFI_MP_SERVICES_STARTUP_THIS_AP           StartupThisAP;\r
-  EFI_MP_SERVICES_SWITCH_BSP                SwitchBSP;\r
-  EFI_MP_SERVICES_ENABLEDISABLEAP           EnableDisableAP;\r
-  EFI_MP_SERVICES_WHOAMI                    WhoAmI;\r
+  EFI_MP_SERVICES_GET_NUMBER_OF_PROCESSORS    GetNumberOfProcessors;\r
+  EFI_MP_SERVICES_GET_PROCESSOR_INFO          GetProcessorInfo;\r
+  EFI_MP_SERVICES_STARTUP_ALL_APS             StartupAllAPs;\r
+  EFI_MP_SERVICES_STARTUP_THIS_AP             StartupThisAP;\r
+  EFI_MP_SERVICES_SWITCH_BSP                  SwitchBSP;\r
+  EFI_MP_SERVICES_ENABLEDISABLEAP             EnableDisableAP;\r
+  EFI_MP_SERVICES_WHOAMI                      WhoAmI;\r
 };\r
 \r
-extern EFI_GUID gEfiMpServiceProtocolGuid;\r
+extern EFI_GUID  gEfiMpServiceProtocolGuid;\r
 \r
 #endif\r