#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
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
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
OUT UINT32 *Granularity OPTIONAL\r
);\r
\r
-\r
/**\r
Modify the hardware to allow memory writes in a region.\r
\r
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
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
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
/// 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