]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Protocol/LegacyRegion2.h
MdePkg: Apply uncrustify changes
[mirror_edk2.git] / MdePkg / Include / Protocol / LegacyRegion2.h
index eca59175378c92917173336443f076f85be641d6..764998d7e8b65cc6d98e9f605e1046d23436d1ca 100644 (file)
@@ -14,7 +14,6 @@
 #ifndef __LEGACY_REGION2_H__\r
 #define __LEGACY_REGION2_H__\r
 \r
-\r
 #define EFI_LEGACY_REGION2_PROTOCOL_GUID \\r
 { \\r
   0x70101eaf, 0x85, 0x440c, {0xb3, 0x56, 0x8e, 0xe3, 0x6f, 0xef, 0x24, 0xf0 } \\r
@@ -49,13 +48,12 @@ typedef struct _EFI_LEGACY_REGION2_PROTOCOL EFI_LEGACY_REGION2_PROTOCOL;
 typedef\r
 EFI_STATUS\r
 (EFIAPI *EFI_LEGACY_REGION2_DECODE)(\r
- IN  EFI_LEGACY_REGION2_PROTOCOL  *This,\r
- IN  UINT32                       Start,\r
- IN  UINT32                       Length,\r
- OUT UINT32                       *Granularity,\r
- IN  BOOLEAN                      *On\r
- );\r
-\r
+  IN  EFI_LEGACY_REGION2_PROTOCOL  *This,\r
+  IN  UINT32                       Start,\r
+  IN  UINT32                       Length,\r
+  OUT UINT32                       *Granularity,\r
+  IN  BOOLEAN                      *On\r
+  );\r
 \r
 /**\r
   Modify the hardware to disallow memory writes in a region.\r
@@ -80,12 +78,11 @@ EFI_STATUS
 typedef\r
 EFI_STATUS\r
 (EFIAPI *EFI_LEGACY_REGION2_LOCK)(\r
- IN  EFI_LEGACY_REGION2_PROTOCOL   *This,\r
- IN  UINT32                        Start,\r
- IN  UINT32                        Length,\r
- OUT UINT32                        *Granularity\r
- );\r
-\r
+  IN  EFI_LEGACY_REGION2_PROTOCOL   *This,\r
+  IN  UINT32                        Start,\r
+  IN  UINT32                        Length,\r
+  OUT UINT32                        *Granularity\r
+  );\r
 \r
 /**\r
   Modify the hardware to disallow memory attribute changes in a region.\r
@@ -121,7 +118,6 @@ EFI_STATUS
   OUT UINT32                              *Granularity OPTIONAL\r
   );\r
 \r
-\r
 /**\r
   Modify the hardware to allow memory writes in a region.\r
 \r
@@ -145,12 +141,11 @@ EFI_STATUS
 typedef\r
 EFI_STATUS\r
 (EFIAPI *EFI_LEGACY_REGION2_UNLOCK)(\r
- IN  EFI_LEGACY_REGION2_PROTOCOL  *This,\r
- IN  UINT32                       Start,\r
- IN  UINT32                       Length,\r
- OUT UINT32                       *Granularity\r
- );\r
-\r
+  IN  EFI_LEGACY_REGION2_PROTOCOL  *This,\r
+  IN  UINT32                       Start,\r
+  IN  UINT32                       Length,\r
+  OUT UINT32                       *Granularity\r
+  );\r
 \r
 typedef enum {\r
   LegacyRegionDecoded,         ///< This region is currently set to allow reads.\r
@@ -162,30 +157,28 @@ typedef enum {
   LegacyRegionNotLocked        ///< This region's attributes are not locked.\r
 } EFI_LEGACY_REGION_ATTRIBUTE;\r
 \r
-\r
 typedef struct {\r
   ///\r
   /// The beginning of the physical address of this\r
   /// region.\r
   ///\r
-  UINT32                      Start;\r
+  UINT32                         Start;\r
   ///\r
   /// The number of bytes in this region.\r
   ///\r
-  UINT32                      Length;\r
+  UINT32                         Length;\r
   ///\r
   /// Attribute of the Legacy Region Descriptor that\r
   /// describes the capabilities for that memory region.\r
   ///\r
-  EFI_LEGACY_REGION_ATTRIBUTE Attribute;\r
+  EFI_LEGACY_REGION_ATTRIBUTE    Attribute;\r
   ///\r
   /// Describes the byte length programmability\r
   /// associated with the Start address and the specified\r
   /// Attribute setting.\r
-  UINT32                      Granularity;\r
+  UINT32                         Granularity;\r
 } EFI_LEGACY_REGION_DESCRIPTOR;\r
 \r
-\r
 /**\r
   Get region information for the attributes of the Legacy Region.\r
 \r
@@ -213,7 +206,6 @@ EFI_STATUS
   OUT EFI_LEGACY_REGION_DESCRIPTOR  **Descriptor\r
   );\r
 \r
-\r
 ///\r
 /// The EFI_LEGACY_REGION2_PROTOCOL is used to abstract the hardware control of the memory\r
 /// attributes of the Option ROM shadowing region, 0xC0000 to 0xFFFFF.\r
@@ -221,13 +213,13 @@ EFI_STATUS
 /// boot-lock. These protocols may be set in any combination.\r
 ///\r
 struct _EFI_LEGACY_REGION2_PROTOCOL {\r
-  EFI_LEGACY_REGION2_DECODE     Decode;\r
-  EFI_LEGACY_REGION2_LOCK       Lock;\r
-  EFI_LEGACY_REGION2_BOOT_LOCK  BootLock;\r
-  EFI_LEGACY_REGION2_UNLOCK     UnLock;\r
-  EFI_LEGACY_REGION_GET_INFO    GetInfo;\r
+  EFI_LEGACY_REGION2_DECODE       Decode;\r
+  EFI_LEGACY_REGION2_LOCK         Lock;\r
+  EFI_LEGACY_REGION2_BOOT_LOCK    BootLock;\r
+  EFI_LEGACY_REGION2_UNLOCK       UnLock;\r
+  EFI_LEGACY_REGION_GET_INFO      GetInfo;\r
 };\r
 \r
-extern EFI_GUID gEfiLegacyRegion2ProtocolGuid;\r
+extern EFI_GUID  gEfiLegacyRegion2ProtocolGuid;\r
 \r
 #endif\r