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