]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Protocol/Cpu.h
MdePkg: Apply uncrustify changes
[mirror_edk2.git] / MdePkg / Include / Protocol / Cpu.h
index e392f4cd9a132fc302cd362c5263ce5cf67a6b97..3d25ad08f8e78a9ddf96fd50360da8f51f49e4c6 100644 (file)
@@ -16,7 +16,7 @@
 #define EFI_CPU_ARCH_PROTOCOL_GUID \\r
   { 0x26baccb1, 0x6f42, 0x11d4, {0xbc, 0xe7, 0x0, 0x80, 0xc7, 0x3c, 0x88, 0x81 } }\r
 \r
-typedef struct _EFI_CPU_ARCH_PROTOCOL   EFI_CPU_ARCH_PROTOCOL;\r
+typedef struct _EFI_CPU_ARCH_PROTOCOL EFI_CPU_ARCH_PROTOCOL;\r
 \r
 ///\r
 /// The type of flush operation\r
@@ -90,7 +90,6 @@ EFI_STATUS
   IN EFI_CPU_FLUSH_TYPE                 FlushType\r
   );\r
 \r
-\r
 /**\r
   This function enables interrupt processing by the processor.\r
 \r
@@ -106,7 +105,6 @@ EFI_STATUS
   IN EFI_CPU_ARCH_PROTOCOL              *This\r
   );\r
 \r
-\r
 /**\r
   This function disables interrupt processing by the processor.\r
 \r
@@ -122,7 +120,6 @@ EFI_STATUS
   IN EFI_CPU_ARCH_PROTOCOL              *This\r
   );\r
 \r
-\r
 /**\r
   This function retrieves the processor's current interrupt state a returns it in\r
   State. If interrupts are currently enabled, then TRUE is returned. If interrupts\r
@@ -143,7 +140,6 @@ EFI_STATUS
   OUT BOOLEAN                           *State\r
   );\r
 \r
-\r
 /**\r
   This function generates an INIT on the processor. If this function succeeds, then the\r
   processor will be reset, and control will not be returned to the caller. If InitType is\r
@@ -167,7 +163,6 @@ EFI_STATUS
   IN EFI_CPU_INIT_TYPE                  InitType\r
   );\r
 \r
-\r
 /**\r
   This function registers and enables the handler specified by InterruptHandler for a processor\r
   interrupt or exception type specified by InterruptType. If InterruptHandler is NULL, then the\r
@@ -197,7 +192,6 @@ EFI_STATUS
   IN EFI_CPU_INTERRUPT_HANDLER          InterruptHandler\r
   );\r
 \r
-\r
 /**\r
   This function reads the processor timer specified by TimerIndex and returns it in TimerValue.\r
 \r
@@ -224,7 +218,6 @@ EFI_STATUS
   OUT UINT64                            *TimerPeriod OPTIONAL\r
   );\r
 \r
-\r
 /**\r
   This function modifies the attributes for the memory region specified by BaseAddress and\r
   Length from their current attributes to the attributes specified by Attributes.\r
@@ -257,7 +250,6 @@ EFI_STATUS
   IN  UINT64                            Attributes\r
   );\r
 \r
-\r
 ///\r
 /// The EFI_CPU_ARCH_PROTOCOL is used to abstract processor-specific functions from the DXE\r
 /// Foundation. This includes flushing caches, enabling and disabling interrupts, hooking interrupt\r
@@ -265,20 +257,20 @@ EFI_STATUS
 /// determining the processor frequency.\r
 ///\r
 struct _EFI_CPU_ARCH_PROTOCOL {\r
-  EFI_CPU_FLUSH_DATA_CACHE            FlushDataCache;\r
-  EFI_CPU_ENABLE_INTERRUPT            EnableInterrupt;\r
-  EFI_CPU_DISABLE_INTERRUPT           DisableInterrupt;\r
-  EFI_CPU_GET_INTERRUPT_STATE         GetInterruptState;\r
-  EFI_CPU_INIT                        Init;\r
-  EFI_CPU_REGISTER_INTERRUPT_HANDLER  RegisterInterruptHandler;\r
-  EFI_CPU_GET_TIMER_VALUE             GetTimerValue;\r
-  EFI_CPU_SET_MEMORY_ATTRIBUTES       SetMemoryAttributes;\r
+  EFI_CPU_FLUSH_DATA_CACHE              FlushDataCache;\r
+  EFI_CPU_ENABLE_INTERRUPT              EnableInterrupt;\r
+  EFI_CPU_DISABLE_INTERRUPT             DisableInterrupt;\r
+  EFI_CPU_GET_INTERRUPT_STATE           GetInterruptState;\r
+  EFI_CPU_INIT                          Init;\r
+  EFI_CPU_REGISTER_INTERRUPT_HANDLER    RegisterInterruptHandler;\r
+  EFI_CPU_GET_TIMER_VALUE               GetTimerValue;\r
+  EFI_CPU_SET_MEMORY_ATTRIBUTES         SetMemoryAttributes;\r
   ///\r
   /// The number of timers that are available in a processor. The value in this\r
   /// field is a constant that must not be modified after the CPU Architectural\r
   /// Protocol is installed. All consumers must treat this as a read-only field.\r
   ///\r
-  UINT32                              NumberOfTimers;\r
+  UINT32                                NumberOfTimers;\r
   ///\r
   /// The size, in bytes, of the alignment required for DMA buffer allocations.\r
   /// This is typically the size of the largest data cache line in the platform.\r
@@ -286,9 +278,9 @@ struct _EFI_CPU_ARCH_PROTOCOL {
   /// CPU Architectural Protocol is installed. All consumers must treat this as\r
   /// a read-only field.\r
   ///\r
-  UINT32                              DmaBufferAlignment;\r
+  UINT32                                DmaBufferAlignment;\r
 };\r
 \r
-extern EFI_GUID gEfiCpuArchProtocolGuid;\r
+extern EFI_GUID  gEfiCpuArchProtocolGuid;\r
 \r
 #endif\r