summaryrefslogtreecommitdiffstats
path: root/MdePkg/Include/Ppi/SecPlatformInformation.h
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Include/Ppi/SecPlatformInformation.h')
-rw-r--r--MdePkg/Include/Ppi/SecPlatformInformation.h65
1 files changed, 31 insertions, 34 deletions
diff --git a/MdePkg/Include/Ppi/SecPlatformInformation.h b/MdePkg/Include/Ppi/SecPlatformInformation.h
index b7f8ac0a4b..02b0711f18 100644
--- a/MdePkg/Include/Ppi/SecPlatformInformation.h
+++ b/MdePkg/Include/Ppi/SecPlatformInformation.h
@@ -26,7 +26,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
typedef struct _EFI_SEC_PLATFORM_INFORMATION_PPI EFI_SEC_PLATFORM_INFORMATION_PPI;
-
///
/// EFI_HEALTH_FLAGS
/// Contains information generated by microcode, hardware, and/or the Itanium
@@ -37,32 +36,32 @@ typedef union {
///
/// A 2-bit field indicating self-test state after reset.
///
- UINT32 Status : 2;
+ UINT32 Status : 2;
///
/// A 1-bit field indicating whether testing has occurred.
/// If this field is zero, the processor has not been tested,
/// and no further fields in the self-test State parameter are valid.
///
- UINT32 Tested : 1;
+ UINT32 Tested : 1;
///
/// Reserved 13 bits.
///
- UINT32 Reserved1 :13;
+ UINT32 Reserved1 : 13;
///
/// A 1-bit field. If set to 1, this indicates that virtual
/// memory features are not available.
///
- UINT32 VirtualMemoryUnavailable : 1;
+ UINT32 VirtualMemoryUnavailable : 1;
///
/// A 1-bit field. If set to 1, this indicates that IA-32 execution
/// is not available.
///
- UINT32 Ia32ExecutionUnavailable : 1;
+ UINT32 Ia32ExecutionUnavailable : 1;
///
/// A 1-bit field. If set to 1, this indicates that the floating
/// point unit is not available.
///
- UINT32 FloatingPointUnavailable : 1;
+ UINT32 FloatingPointUnavailable : 1;
///
/// A 1-bit field. If set to 1, this indicates miscellaneous
/// functional failure other than vm, ia, or fp.
@@ -71,17 +70,17 @@ typedef union {
/// performance restricted or functionally restricted.
/// The value returned is implementation dependent.
///
- UINT32 MiscFeaturesUnavailable : 1;
+ UINT32 MiscFeaturesUnavailable : 1;
///
/// Reserved 12 bits.
///
- UINT32 Reserved2 :12;
+ UINT32 Reserved2 : 12;
} Bits;
- UINT32 Uint32;
+ UINT32 Uint32;
} EFI_HEALTH_FLAGS;
-#define NORMAL_BOOT_CALL 0x0
-#define RECOVERY_CHECK_CALL 0x3
+#define NORMAL_BOOT_CALL 0x0
+#define RECOVERY_CHECK_CALL 0x3
typedef EFI_HEALTH_FLAGS X64_HANDOFF_STATUS;
typedef EFI_HEALTH_FLAGS IA32_HANDOFF_STATUS;
@@ -93,49 +92,49 @@ typedef struct {
/// SALE_ENTRY state : 3 = Recovery_Check
/// and 0 = RESET or Normal_Boot phase.
///
- UINT8 BootPhase;
+ UINT8 BootPhase;
///
/// Firmware status on entry to SALE.
///
- UINT8 FWStatus;
- UINT16 Reserved1;
- UINT32 Reserved2;
+ UINT8 FWStatus;
+ UINT16 Reserved1;
+ UINT32 Reserved2;
///
/// Geographically significant unique processor ID assigned by PAL.
///
- UINT16 ProcId;
- UINT16 Reserved3;
- UINT8 IdMask;
- UINT8 EidMask;
- UINT16 Reserved4;
+ UINT16 ProcId;
+ UINT16 Reserved3;
+ UINT8 IdMask;
+ UINT8 EidMask;
+ UINT16 Reserved4;
///
/// Address to make PAL calls.
///
- UINT64 PalCallAddress;
+ UINT64 PalCallAddress;
///
/// If the entry state is RECOVERY_CHECK, this contains the PAL_RESET
/// return address, and if entry state is RESET, this contains
/// address for PAL_authentication call.
///
- UINT64 PalSpecialAddress;
+ UINT64 PalSpecialAddress;
///
/// GR35 from PALE_EXIT state.
///
- UINT64 SelfTestStatus;
+ UINT64 SelfTestStatus;
///
/// GR37 from PALE_EXIT state.
///
- UINT64 SelfTestControl;
- UINT64 MemoryBufferRequired;
+ UINT64 SelfTestControl;
+ UINT64 MemoryBufferRequired;
} ITANIUM_HANDOFF_STATUS;
///
/// EFI_SEC_PLATFORM_INFORMATION_RECORD.
///
typedef union {
- IA32_HANDOFF_STATUS IA32HealthFlags;
- X64_HANDOFF_STATUS x64HealthFlags;
- ITANIUM_HANDOFF_STATUS ItaniumHealthFlags;
+ IA32_HANDOFF_STATUS IA32HealthFlags;
+ X64_HANDOFF_STATUS x64HealthFlags;
+ ITANIUM_HANDOFF_STATUS ItaniumHealthFlags;
} EFI_SEC_PLATFORM_INFORMATION_RECORD;
/**
@@ -164,8 +163,7 @@ EFI_STATUS
IN CONST EFI_PEI_SERVICES **PeiServices,
IN OUT UINT64 *StructureSize,
OUT EFI_SEC_PLATFORM_INFORMATION_RECORD *PlatformInformationRecord
-);
-
+ );
///
/// This service abstracts platform-specific information. It is necessary
@@ -173,10 +171,9 @@ EFI_STATUS
/// discover where to begin dispatching PEIMs.
///
struct _EFI_SEC_PLATFORM_INFORMATION_PPI {
- EFI_SEC_PLATFORM_INFORMATION PlatformInformation;
+ EFI_SEC_PLATFORM_INFORMATION PlatformInformation;
};
-
-extern EFI_GUID gEfiSecPlatformInformationPpiGuid;
+extern EFI_GUID gEfiSecPlatformInformationPpiGuid;
#endif