MdeModulePkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the MdeModulePkg package Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
committed by
mergify[bot]
parent
7c7184e201
commit
1436aea4d5
@@ -12,44 +12,43 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
#include <Library/BaseLib.h>
|
||||
|
||||
#define SMM_S3_RESUME_SMM_32 SIGNATURE_64 ('S','M','M','S','3','_','3','2')
|
||||
#define SMM_S3_RESUME_SMM_64 SIGNATURE_64 ('S','M','M','S','3','_','6','4')
|
||||
#define SMM_S3_RESUME_SMM_32 SIGNATURE_64 ('S','M','M','S','3','_','3','2')
|
||||
#define SMM_S3_RESUME_SMM_64 SIGNATURE_64 ('S','M','M','S','3','_','6','4')
|
||||
|
||||
#pragma pack(1)
|
||||
|
||||
typedef struct {
|
||||
UINT64 Signature;
|
||||
EFI_PHYSICAL_ADDRESS SmmS3ResumeEntryPoint;
|
||||
EFI_PHYSICAL_ADDRESS SmmS3StackBase;
|
||||
UINT64 SmmS3StackSize;
|
||||
UINT64 SmmS3Cr0;
|
||||
UINT64 SmmS3Cr3;
|
||||
UINT64 SmmS3Cr4;
|
||||
UINT16 ReturnCs;
|
||||
EFI_PHYSICAL_ADDRESS ReturnEntryPoint;
|
||||
EFI_PHYSICAL_ADDRESS ReturnContext1;
|
||||
EFI_PHYSICAL_ADDRESS ReturnContext2;
|
||||
EFI_PHYSICAL_ADDRESS ReturnStackPointer;
|
||||
EFI_PHYSICAL_ADDRESS Smst;
|
||||
UINT64 Signature;
|
||||
EFI_PHYSICAL_ADDRESS SmmS3ResumeEntryPoint;
|
||||
EFI_PHYSICAL_ADDRESS SmmS3StackBase;
|
||||
UINT64 SmmS3StackSize;
|
||||
UINT64 SmmS3Cr0;
|
||||
UINT64 SmmS3Cr3;
|
||||
UINT64 SmmS3Cr4;
|
||||
UINT16 ReturnCs;
|
||||
EFI_PHYSICAL_ADDRESS ReturnEntryPoint;
|
||||
EFI_PHYSICAL_ADDRESS ReturnContext1;
|
||||
EFI_PHYSICAL_ADDRESS ReturnContext2;
|
||||
EFI_PHYSICAL_ADDRESS ReturnStackPointer;
|
||||
EFI_PHYSICAL_ADDRESS Smst;
|
||||
} SMM_S3_RESUME_STATE;
|
||||
|
||||
|
||||
typedef struct {
|
||||
EFI_PHYSICAL_ADDRESS AcpiFacsTable;
|
||||
EFI_PHYSICAL_ADDRESS IdtrProfile;
|
||||
EFI_PHYSICAL_ADDRESS S3NvsPageTableAddress;
|
||||
EFI_PHYSICAL_ADDRESS BootScriptStackBase;
|
||||
UINT64 BootScriptStackSize;
|
||||
EFI_PHYSICAL_ADDRESS S3DebugBufferAddress;
|
||||
EFI_PHYSICAL_ADDRESS AcpiFacsTable;
|
||||
EFI_PHYSICAL_ADDRESS IdtrProfile;
|
||||
EFI_PHYSICAL_ADDRESS S3NvsPageTableAddress;
|
||||
EFI_PHYSICAL_ADDRESS BootScriptStackBase;
|
||||
UINT64 BootScriptStackSize;
|
||||
EFI_PHYSICAL_ADDRESS S3DebugBufferAddress;
|
||||
} ACPI_S3_CONTEXT;
|
||||
|
||||
typedef struct {
|
||||
UINT16 ReturnCs;
|
||||
UINT64 ReturnStatus;
|
||||
EFI_PHYSICAL_ADDRESS ReturnEntryPoint;
|
||||
EFI_PHYSICAL_ADDRESS ReturnStackPointer;
|
||||
EFI_PHYSICAL_ADDRESS AsmTransferControl;
|
||||
IA32_DESCRIPTOR Idtr;
|
||||
UINT16 ReturnCs;
|
||||
UINT64 ReturnStatus;
|
||||
EFI_PHYSICAL_ADDRESS ReturnEntryPoint;
|
||||
EFI_PHYSICAL_ADDRESS ReturnStackPointer;
|
||||
EFI_PHYSICAL_ADDRESS AsmTransferControl;
|
||||
IA32_DESCRIPTOR Idtr;
|
||||
} PEI_S3_RESUME_STATE;
|
||||
|
||||
#pragma pack()
|
||||
@@ -59,8 +58,8 @@ typedef struct {
|
||||
0xef98d3a, 0x3e33, 0x497a, {0xa4, 0x1, 0x77, 0xbe, 0x3e, 0xb7, 0x4f, 0x38} \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEfiAcpiS3ContextGuid;
|
||||
extern EFI_GUID gEfiAcpiS3ContextGuid;
|
||||
|
||||
extern EFI_GUID gEfiAcpiVariableGuid;
|
||||
extern EFI_GUID gEfiAcpiVariableGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -11,13 +11,13 @@
|
||||
#ifndef BOOT_DISCOVERY_POLICY_UI_LIB_H_
|
||||
#define BOOT_DISCOVERY_POLICY_UI_LIB_H_
|
||||
|
||||
#define BDP_CONNECT_MINIMAL 0 /* Do not connect any additional devices */
|
||||
#define BDP_CONNECT_NET 1
|
||||
#define BDP_CONNECT_ALL 2
|
||||
#define BDP_CONNECT_MINIMAL 0 /* Do not connect any additional devices */
|
||||
#define BDP_CONNECT_NET 1
|
||||
#define BDP_CONNECT_ALL 2
|
||||
|
||||
#define BOOT_DISCOVERY_POLICY_MGR_FORMSET_GUID { 0x5b6f7107, 0xbb3c, 0x4660, { 0x92, 0xcd, 0x54, 0x26, 0x90, 0x28, 0x0b, 0xbd } }
|
||||
|
||||
#define BOOT_DISCOVERY_POLICY_VAR L"BootDiscoveryPolicy"
|
||||
#define BOOT_DISCOVERY_POLICY_OLD_VAR L"BootDiscoveryPolicyOld"
|
||||
#define BOOT_DISCOVERY_POLICY_VAR L"BootDiscoveryPolicy"
|
||||
#define BOOT_DISCOVERY_POLICY_OLD_VAR L"BootDiscoveryPolicyOld"
|
||||
|
||||
#endif
|
||||
|
@@ -23,20 +23,20 @@
|
||||
#pragma pack(1)
|
||||
|
||||
typedef struct {
|
||||
EFI_PHYSICAL_ADDRESS BootScriptExecutorEntrypoint;
|
||||
EFI_PHYSICAL_ADDRESS BootScriptExecutorEntrypoint;
|
||||
} BOOT_SCRIPT_EXECUTOR_VARIABLE;
|
||||
|
||||
#pragma pack()
|
||||
|
||||
#define BOOT_SCRIPT_EXECUTOR_VARIABLE_NAME L"BootScriptExecutorVariable"
|
||||
|
||||
extern EFI_GUID gEfiBootScriptExecutorVariableGuid;
|
||||
extern EFI_GUID gEfiBootScriptExecutorVariableGuid;
|
||||
|
||||
#define EFI_BOOT_SCRIPT_EXECUTOR_CONTEXT_GUID \
|
||||
{ \
|
||||
0x79cb58c4, 0xac51, 0x442f, {0xaf, 0xd7, 0x98, 0xe4, 0x7d, 0x2e, 0x99, 0x8} \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEfiBootScriptExecutorContextGuid;
|
||||
extern EFI_GUID gEfiBootScriptExecutorContextGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -30,7 +30,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
///
|
||||
/// Name of capsule variable.
|
||||
///
|
||||
#define EFI_CAPSULE_VARIABLE_NAME L"CapsuleUpdateData"
|
||||
#define EFI_CAPSULE_VARIABLE_NAME L"CapsuleUpdateData"
|
||||
|
||||
///
|
||||
/// The data structure of the capsule guid hob entry.
|
||||
@@ -38,22 +38,22 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
/// UEFI_CAPSULE_HOB instead.
|
||||
///
|
||||
typedef struct {
|
||||
EFI_PHYSICAL_ADDRESS BaseAddress; ///< Capsule data start address.
|
||||
UINT32 Length; ///< Length of capsule data.
|
||||
EFI_PHYSICAL_ADDRESS BaseAddress; ///< Capsule data start address.
|
||||
UINT32 Length; ///< Length of capsule data.
|
||||
} CAPSULE_HOB_INFO;
|
||||
|
||||
//
|
||||
// The variable describes the long mode buffer used by IA32 Capsule PEIM
|
||||
// to call X64 CapsuleCoalesce code to handle >4GB capsule blocks.
|
||||
//
|
||||
#define EFI_CAPSULE_LONG_MODE_BUFFER_NAME L"CapsuleLongModeBuffer"
|
||||
#define EFI_CAPSULE_LONG_MODE_BUFFER_NAME L"CapsuleLongModeBuffer"
|
||||
|
||||
typedef struct {
|
||||
EFI_PHYSICAL_ADDRESS PageTableAddress;
|
||||
EFI_PHYSICAL_ADDRESS StackBaseAddress;
|
||||
UINT64 StackSize;
|
||||
EFI_PHYSICAL_ADDRESS PageTableAddress;
|
||||
EFI_PHYSICAL_ADDRESS StackBaseAddress;
|
||||
UINT64 StackSize;
|
||||
} EFI_CAPSULE_LONG_MODE_BUFFER;
|
||||
|
||||
extern EFI_GUID gEfiCapsuleVendorGuid;
|
||||
extern EFI_GUID gEfiCapsuleVendorGuid;
|
||||
|
||||
#endif // #ifndef _EFI_CAPSULE_VENDOR_GUID_H_
|
||||
|
@@ -13,6 +13,6 @@
|
||||
#define CONNECT_CONIN_EVENT_GUID \
|
||||
{ 0xdb4e8151, 0x57ed, 0x4bed, { 0x88, 0x33, 0x67, 0x51, 0xb5, 0xd1, 0xa8, 0xd7 }}
|
||||
|
||||
extern EFI_GUID gConnectConInEventGuid;
|
||||
extern EFI_GUID gConnectConInEventGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -13,6 +13,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#define EFI_CONSOLE_IN_DEVICE_GUID \
|
||||
{ 0xd3b36f2b, 0xd551, 0x11d4, {0x9a, 0x46, 0x0, 0x90, 0x27, 0x3f, 0xc1, 0x4d } }
|
||||
|
||||
extern EFI_GUID gEfiConsoleInDeviceGuid;
|
||||
extern EFI_GUID gEfiConsoleInDeviceGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -12,6 +12,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#define EFI_CONSOLE_OUT_DEVICE_GUID \
|
||||
{ 0xd3b36f2c, 0xd551, 0x11d4, {0x9a, 0x46, 0x0, 0x90, 0x27, 0x3f, 0xc1, 0x4d } }
|
||||
|
||||
extern EFI_GUID gEfiConsoleOutDeviceGuid;
|
||||
extern EFI_GUID gEfiConsoleOutDeviceGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -13,6 +13,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#define EFI_CRC32_GUIDED_SECTION_EXTRACTION_GUID \
|
||||
{ 0xFC1BCDB0, 0x7D31, 0x49aa, {0x93, 0x6A, 0xA4, 0x60, 0x0D, 0x9D, 0xD0, 0x83 } }
|
||||
|
||||
extern EFI_GUID gEfiCrc32GuidedSectionExtractionGuid;
|
||||
extern EFI_GUID gEfiCrc32GuidedSectionExtractionGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -19,26 +19,26 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
///
|
||||
/// Forward reference for pure ANSI compatability
|
||||
///
|
||||
typedef struct _EFI_DEBUG_MASK_PROTOCOL EFI_DEBUG_MASK_PROTOCOL;
|
||||
typedef struct _EFI_DEBUG_MASK_PROTOCOL EFI_DEBUG_MASK_PROTOCOL;
|
||||
|
||||
///
|
||||
///
|
||||
///
|
||||
#define EFI_DEBUG_MASK_REVISION 0x00010000
|
||||
#define EFI_DEBUG_MASK_REVISION 0x00010000
|
||||
|
||||
//
|
||||
// DebugMask member functions definition
|
||||
//
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI * EFI_GET_DEBUG_MASK) (
|
||||
(EFIAPI *EFI_GET_DEBUG_MASK)(
|
||||
IN EFI_DEBUG_MASK_PROTOCOL *This,
|
||||
IN OUT UINTN *CurrentDebugMask
|
||||
);
|
||||
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_SET_DEBUG_MASK) (
|
||||
(EFIAPI *EFI_SET_DEBUG_MASK)(
|
||||
IN EFI_DEBUG_MASK_PROTOCOL *This,
|
||||
IN UINTN NewDebugMask
|
||||
);
|
||||
@@ -47,12 +47,12 @@ EFI_STATUS
|
||||
/// DebugMask protocol definition
|
||||
///
|
||||
struct _EFI_DEBUG_MASK_PROTOCOL {
|
||||
INT64 Revision;
|
||||
EFI_GET_DEBUG_MASK GetDebugMask;
|
||||
EFI_SET_DEBUG_MASK SetDebugMask;
|
||||
INT64 Revision;
|
||||
EFI_GET_DEBUG_MASK GetDebugMask;
|
||||
EFI_SET_DEBUG_MASK SetDebugMask;
|
||||
};
|
||||
|
||||
extern EFI_GUID gEfiDebugMaskProtocolGuid;
|
||||
extern EFI_GUID gEfiDebugMaskProtocolGuid;
|
||||
|
||||
///
|
||||
/// GUID used to store the global debug mask in an the "EFIDebug" EFI Variabe
|
||||
@@ -63,6 +63,6 @@ extern EFI_GUID gEfiDebugMaskProtocolGuid;
|
||||
|
||||
#define DEBUG_MASK_VARIABLE_NAME L"EFIDebug"
|
||||
|
||||
extern EFI_GUID gEfiGenericVariableGuid;
|
||||
extern EFI_GUID gEfiGenericVariableGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -24,8 +24,8 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
0xF5E655D9, 0x02A6, 0x46f2, {0x9E, 0x76, 0xB8, 0xBE, 0x8E, 0x60, 0xAB, 0x22} \
|
||||
}
|
||||
|
||||
extern EFI_GUID gDriverSampleFormSetGuid;
|
||||
extern EFI_GUID gDriverSampleInventoryGuid;
|
||||
extern EFI_GUID gEfiIfrRefreshIdOpGuid;
|
||||
extern EFI_GUID gDriverSampleFormSetGuid;
|
||||
extern EFI_GUID gDriverSampleInventoryGuid;
|
||||
extern EFI_GUID gEfiIfrRefreshIdOpGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -15,6 +15,6 @@
|
||||
0x96f5296d, 0x05f7, 0x4f3c, {0x84, 0x67, 0xe4, 0x56, 0x89, 0x0e, 0x0c, 0xb5 } \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEdkiiEndOfS3ResumeGuid;
|
||||
extern EFI_GUID gEdkiiEndOfS3ResumeGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -13,6 +13,6 @@
|
||||
#define EVENT_GROUP_EXIT_BOOT_SERVICES_FAILED \
|
||||
{ 0x4f6c5507, 0x232f, 0x4787, { 0xb9, 0x5e, 0x72, 0xf8, 0x62, 0x49, 0xc, 0xb1 } }
|
||||
|
||||
extern EFI_GUID gEventExitBootServicesFailedGuid;
|
||||
extern EFI_GUID gEventExitBootServicesFailedGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -15,26 +15,26 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
//
|
||||
// Known performance tokens
|
||||
//
|
||||
#define SEC_TOK "SEC" ///< SEC Phase
|
||||
#define DXE_TOK "DXE" ///< DXE Phase
|
||||
#define PEI_TOK "PEI" ///< PEI Phase
|
||||
#define BDS_TOK "BDS" ///< BDS Phase
|
||||
#define DRIVERBINDING_START_TOK "DB:Start:" ///< Driver Binding Start() function call
|
||||
#define DRIVERBINDING_SUPPORT_TOK "DB:Support:" ///< Driver Binding Support() function call
|
||||
#define DRIVERBINDING_STOP_TOK "DB:Stop:" ///< Driver Binding Stop() function call
|
||||
#define LOAD_IMAGE_TOK "LoadImage:" ///< Load a dispatched module
|
||||
#define START_IMAGE_TOK "StartImage:" ///< Dispatched Modules Entry Point execution
|
||||
#define PEIM_TOK "PEIM" ///< PEIM Modules Entry Point execution
|
||||
#define SEC_TOK "SEC" ///< SEC Phase
|
||||
#define DXE_TOK "DXE" ///< DXE Phase
|
||||
#define PEI_TOK "PEI" ///< PEI Phase
|
||||
#define BDS_TOK "BDS" ///< BDS Phase
|
||||
#define DRIVERBINDING_START_TOK "DB:Start:" ///< Driver Binding Start() function call
|
||||
#define DRIVERBINDING_SUPPORT_TOK "DB:Support:" ///< Driver Binding Support() function call
|
||||
#define DRIVERBINDING_STOP_TOK "DB:Stop:" ///< Driver Binding Stop() function call
|
||||
#define LOAD_IMAGE_TOK "LoadImage:" ///< Load a dispatched module
|
||||
#define START_IMAGE_TOK "StartImage:" ///< Dispatched Modules Entry Point execution
|
||||
#define PEIM_TOK "PEIM" ///< PEIM Modules Entry Point execution
|
||||
|
||||
//
|
||||
// Misc defines
|
||||
//
|
||||
#define FPDT_RECORD_REVISION_1 (0x01)
|
||||
#define FPDT_RECORD_REVISION_1 (0x01)
|
||||
|
||||
//
|
||||
// Length field in EFI_ACPI_5_0_FPDT_PERFORMANCE_RECORD_HEADER is a UINT8, thus:
|
||||
//
|
||||
#define FPDT_MAX_PERF_RECORD_SIZE (MAX_UINT8)
|
||||
#define FPDT_MAX_PERF_RECORD_SIZE (MAX_UINT8)
|
||||
|
||||
//
|
||||
// FPDT Record Types
|
||||
@@ -48,168 +48,168 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
//
|
||||
// EDKII extended Fpdt record structures
|
||||
//
|
||||
#define FPDT_STRING_EVENT_RECORD_NAME_LENGTH 24
|
||||
#define FPDT_STRING_EVENT_RECORD_NAME_LENGTH 24
|
||||
|
||||
#pragma pack(1)
|
||||
//
|
||||
// FPDT Boot Performance Guid Event Record Structure
|
||||
//
|
||||
typedef struct {
|
||||
EFI_ACPI_5_0_FPDT_PERFORMANCE_RECORD_HEADER Header;
|
||||
EFI_ACPI_5_0_FPDT_PERFORMANCE_RECORD_HEADER Header;
|
||||
///
|
||||
/// ProgressID < 0x10 are reserved for core performance entries.
|
||||
/// Start measurement point shall have lowered one nibble set to zero and
|
||||
/// corresponding end points shall have lowered one nibble set to non-zero value;
|
||||
/// keeping other nibbles same as start point.
|
||||
///
|
||||
UINT16 ProgressID;
|
||||
UINT16 ProgressID;
|
||||
///
|
||||
/// APIC ID for the processor in the system used as a timestamp clock source.
|
||||
/// If only one timestamp clock source is used, this field is Reserved and populated as 0.
|
||||
///
|
||||
UINT32 ApicID;
|
||||
UINT32 ApicID;
|
||||
///
|
||||
/// 64-bit value (nanosecond) describing elapsed time since the most recent deassertion of processor reset.
|
||||
///
|
||||
UINT64 Timestamp;
|
||||
UINT64 Timestamp;
|
||||
///
|
||||
/// If ProgressID < 0x10, GUID of the referenced module; otherwise, GUID of the module logging the event.
|
||||
///
|
||||
EFI_GUID Guid;
|
||||
EFI_GUID Guid;
|
||||
} FPDT_GUID_EVENT_RECORD;
|
||||
|
||||
//
|
||||
// FPDT Boot Performance Dynamic String Event Record Structure
|
||||
//
|
||||
typedef struct {
|
||||
EFI_ACPI_5_0_FPDT_PERFORMANCE_RECORD_HEADER Header;
|
||||
EFI_ACPI_5_0_FPDT_PERFORMANCE_RECORD_HEADER Header;
|
||||
///
|
||||
/// ProgressID < 0x10 are reserved for core performance entries.
|
||||
/// Start measurement point shall have lowered one nibble set to zero and
|
||||
/// corresponding end points shall have lowered one nibble set to non-zero value;
|
||||
/// keeping other nibbles same as start point.
|
||||
///
|
||||
UINT16 ProgressID;
|
||||
UINT16 ProgressID;
|
||||
///
|
||||
/// APIC ID for the processor in the system used as a timestamp clock source.
|
||||
/// If only one timestamp clock source is used, this field is Reserved and populated as 0.
|
||||
///
|
||||
UINT32 ApicID;
|
||||
UINT32 ApicID;
|
||||
///
|
||||
/// 64-bit value (nanosecond) describing elapsed time since the most recent deassertion of processor reset.
|
||||
///
|
||||
UINT64 Timestamp;
|
||||
UINT64 Timestamp;
|
||||
///
|
||||
/// If ProgressID < 0x10, GUID of the referenced module; otherwise, GUID of the module logging the event.
|
||||
///
|
||||
EFI_GUID Guid;
|
||||
EFI_GUID Guid;
|
||||
///
|
||||
/// ASCII string describing the module. Padding supplied at the end if necessary with null characters (0x00).
|
||||
/// It may be module name, function name, or token name.
|
||||
///
|
||||
CHAR8 String[0];
|
||||
CHAR8 String[0];
|
||||
} FPDT_DYNAMIC_STRING_EVENT_RECORD;
|
||||
|
||||
//
|
||||
// FPDT Boot Performance Dual GUID String Event Record Structure
|
||||
//
|
||||
typedef struct {
|
||||
EFI_ACPI_5_0_FPDT_PERFORMANCE_RECORD_HEADER Header;
|
||||
EFI_ACPI_5_0_FPDT_PERFORMANCE_RECORD_HEADER Header;
|
||||
///
|
||||
/// ProgressID < 0x10 are reserved for core performance entries.
|
||||
/// Start measurement point shall have lowered one nibble set to zero and
|
||||
/// corresponding end points shall have lowered one nibble set to non-zero value;
|
||||
/// keeping other nibbles same as start point.
|
||||
///
|
||||
UINT16 ProgressID;
|
||||
UINT16 ProgressID;
|
||||
///
|
||||
/// APIC ID for the processor in the system used as a timestamp clock source.
|
||||
/// If only one timestamp clock source is used, this field is Reserved and populated as 0.
|
||||
///
|
||||
UINT32 ApicID;
|
||||
UINT32 ApicID;
|
||||
///
|
||||
/// 64-bit value (nanosecond) describing elapsed time since the most recent deassertion of processor reset.
|
||||
///
|
||||
UINT64 Timestamp;
|
||||
UINT64 Timestamp;
|
||||
///
|
||||
/// GUID of the module logging the event.
|
||||
///
|
||||
EFI_GUID Guid1;
|
||||
EFI_GUID Guid1;
|
||||
///
|
||||
/// Event or Ppi or Protocol GUID for Callback.
|
||||
///
|
||||
EFI_GUID Guid2;
|
||||
EFI_GUID Guid2;
|
||||
///
|
||||
/// ASCII string describing the module. Padding supplied at the end if necessary with null characters (0x00).
|
||||
/// It is the function name.
|
||||
///
|
||||
CHAR8 String[0];
|
||||
CHAR8 String[0];
|
||||
} FPDT_DUAL_GUID_STRING_EVENT_RECORD;
|
||||
|
||||
//
|
||||
// FPDT Boot Performance GUID Qword Event Record Structure
|
||||
//
|
||||
typedef struct {
|
||||
EFI_ACPI_5_0_FPDT_PERFORMANCE_RECORD_HEADER Header;
|
||||
EFI_ACPI_5_0_FPDT_PERFORMANCE_RECORD_HEADER Header;
|
||||
///
|
||||
/// ProgressID < 0x10 are reserved for core performance entries.
|
||||
/// Start measurement point shall have lowered one nibble set to zero and
|
||||
/// corresponding end points shall have lowered one nibble set to non-zero value;
|
||||
/// keeping other nibbles same as start point.
|
||||
///
|
||||
UINT16 ProgressID;
|
||||
UINT16 ProgressID;
|
||||
///
|
||||
/// APIC ID for the processor in the system used as a timestamp clock source.
|
||||
/// If only one timestamp clock source is used, this field is Reserved and populated as 0.
|
||||
///
|
||||
UINT32 ApicID;
|
||||
UINT32 ApicID;
|
||||
///
|
||||
/// 64-bit value (nanosecond) describing elapsed time since the most recent deassertion of processor reset.
|
||||
///
|
||||
UINT64 Timestamp;
|
||||
UINT64 Timestamp;
|
||||
///
|
||||
/// GUID of the module logging the event
|
||||
///
|
||||
EFI_GUID Guid;
|
||||
EFI_GUID Guid;
|
||||
///
|
||||
/// Qword of misc data, meaning depends on the ProgressId
|
||||
///
|
||||
UINT64 Qword;
|
||||
UINT64 Qword;
|
||||
} FPDT_GUID_QWORD_EVENT_RECORD;
|
||||
|
||||
//
|
||||
// FPDT Boot Performance GUID Qword String Event Record Structure
|
||||
//
|
||||
typedef struct {
|
||||
EFI_ACPI_5_0_FPDT_PERFORMANCE_RECORD_HEADER Header;
|
||||
EFI_ACPI_5_0_FPDT_PERFORMANCE_RECORD_HEADER Header;
|
||||
///
|
||||
/// ProgressID < 0x10 are reserved for core performance entries.
|
||||
/// Start measurement point shall have lowered one nibble set to zero and
|
||||
/// corresponding end points shall have lowered one nibble set to non-zero value;
|
||||
/// keeping other nibbles same as start point.
|
||||
///
|
||||
UINT16 ProgressID;
|
||||
UINT16 ProgressID;
|
||||
///
|
||||
/// APIC ID for the processor in the system used as a timestamp clock source.
|
||||
/// If only one timestamp clock source is used, this field is Reserved and populated as 0.
|
||||
///
|
||||
UINT32 ApicID;
|
||||
UINT32 ApicID;
|
||||
///
|
||||
/// 64-bit value (nanosecond) describing elapsed time since the most recent deassertion of processor reset.
|
||||
///
|
||||
UINT64 Timestamp;
|
||||
UINT64 Timestamp;
|
||||
///
|
||||
/// GUID of the module logging the event
|
||||
///
|
||||
EFI_GUID Guid;
|
||||
EFI_GUID Guid;
|
||||
///
|
||||
/// Qword of misc data, meaning depends on the ProgressId
|
||||
///
|
||||
UINT64 Qword;
|
||||
UINT64 Qword;
|
||||
///
|
||||
/// ASCII string describing the module. Padding supplied at the end if necessary with null characters (0x00).
|
||||
///
|
||||
CHAR8 String[0];
|
||||
CHAR8 String[0];
|
||||
} FPDT_GUID_QWORD_STRING_EVENT_RECORD;
|
||||
|
||||
#pragma pack()
|
||||
@@ -218,24 +218,24 @@ typedef struct {
|
||||
// Union of all FPDT records
|
||||
//
|
||||
typedef union {
|
||||
EFI_ACPI_5_0_FPDT_PERFORMANCE_RECORD_HEADER RecordHeader;
|
||||
FPDT_GUID_EVENT_RECORD GuidEvent;
|
||||
FPDT_DYNAMIC_STRING_EVENT_RECORD DynamicStringEvent;
|
||||
FPDT_DUAL_GUID_STRING_EVENT_RECORD DualGuidStringEvent;
|
||||
FPDT_GUID_QWORD_EVENT_RECORD GuidQwordEvent;
|
||||
FPDT_GUID_QWORD_STRING_EVENT_RECORD GuidQwordStringEvent;
|
||||
EFI_ACPI_5_0_FPDT_PERFORMANCE_RECORD_HEADER RecordHeader;
|
||||
FPDT_GUID_EVENT_RECORD GuidEvent;
|
||||
FPDT_DYNAMIC_STRING_EVENT_RECORD DynamicStringEvent;
|
||||
FPDT_DUAL_GUID_STRING_EVENT_RECORD DualGuidStringEvent;
|
||||
FPDT_GUID_QWORD_EVENT_RECORD GuidQwordEvent;
|
||||
FPDT_GUID_QWORD_STRING_EVENT_RECORD GuidQwordStringEvent;
|
||||
} FPDT_RECORD;
|
||||
|
||||
//
|
||||
// Union of all pointers to FPDT records
|
||||
//
|
||||
typedef union {
|
||||
EFI_ACPI_5_0_FPDT_PERFORMANCE_RECORD_HEADER *RecordHeader;
|
||||
FPDT_GUID_EVENT_RECORD *GuidEvent;
|
||||
FPDT_DYNAMIC_STRING_EVENT_RECORD *DynamicStringEvent;
|
||||
FPDT_DUAL_GUID_STRING_EVENT_RECORD *DualGuidStringEvent;
|
||||
FPDT_GUID_QWORD_EVENT_RECORD *GuidQwordEvent;
|
||||
FPDT_GUID_QWORD_STRING_EVENT_RECORD *GuidQwordStringEvent;
|
||||
EFI_ACPI_5_0_FPDT_PERFORMANCE_RECORD_HEADER *RecordHeader;
|
||||
FPDT_GUID_EVENT_RECORD *GuidEvent;
|
||||
FPDT_DYNAMIC_STRING_EVENT_RECORD *DynamicStringEvent;
|
||||
FPDT_DUAL_GUID_STRING_EVENT_RECORD *DualGuidStringEvent;
|
||||
FPDT_GUID_QWORD_EVENT_RECORD *GuidQwordEvent;
|
||||
FPDT_GUID_QWORD_STRING_EVENT_RECORD *GuidQwordStringEvent;
|
||||
} FPDT_RECORD_PTR;
|
||||
|
||||
///
|
||||
@@ -244,11 +244,11 @@ typedef union {
|
||||
/// Data - FPDT_PEI_EXT_PERF_HEADER + one or more FPDT records
|
||||
///
|
||||
typedef struct {
|
||||
UINT32 SizeOfAllEntries;
|
||||
UINT32 LoadImageCount;
|
||||
UINT32 HobIsFull;
|
||||
UINT32 SizeOfAllEntries;
|
||||
UINT32 LoadImageCount;
|
||||
UINT32 HobIsFull;
|
||||
} FPDT_PEI_EXT_PERF_HEADER;
|
||||
|
||||
extern EFI_GUID gEdkiiFpdtExtendedFirmwarePerformanceGuid;
|
||||
extern EFI_GUID gEdkiiFpdtExtendedFirmwarePerformanceGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -24,16 +24,16 @@ typedef struct {
|
||||
///
|
||||
/// Target address to be updated in FTW last write.
|
||||
///
|
||||
EFI_PHYSICAL_ADDRESS TargetAddress;
|
||||
EFI_PHYSICAL_ADDRESS TargetAddress;
|
||||
///
|
||||
/// Spare address to back up the updated buffer.
|
||||
///
|
||||
EFI_PHYSICAL_ADDRESS SpareAddress;
|
||||
EFI_PHYSICAL_ADDRESS SpareAddress;
|
||||
///
|
||||
/// The length of data that have been backed up in spare block.
|
||||
/// It is also the length of target block that has been erased.
|
||||
///
|
||||
UINT64 Length;
|
||||
UINT64 Length;
|
||||
} FAULT_TOLERANT_WRITE_LAST_WRITE_DATA;
|
||||
|
||||
//
|
||||
@@ -43,6 +43,6 @@ typedef struct {
|
||||
// It means the target buffer has been backed up in spare block, then target block has been erased,
|
||||
// but the target buffer has not been writen in target block from spare block.
|
||||
//
|
||||
extern EFI_GUID gEdkiiFaultTolerantWriteGuid;
|
||||
extern EFI_GUID gEdkiiFaultTolerantWriteGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -60,9 +60,9 @@
|
||||
/// This structure will be installed into ACPI table as FPDT in normal boot path.
|
||||
///
|
||||
typedef struct {
|
||||
EFI_ACPI_DESCRIPTION_HEADER Header; ///< Common ACPI description table header.
|
||||
EFI_ACPI_5_0_FPDT_BOOT_PERFORMANCE_TABLE_POINTER_RECORD BootPointerRecord; ///< Basic Boot Performance Table Pointer record.
|
||||
EFI_ACPI_5_0_FPDT_S3_PERFORMANCE_TABLE_POINTER_RECORD S3PointerRecord; ///< S3 Performance Table Pointer record.
|
||||
EFI_ACPI_DESCRIPTION_HEADER Header; ///< Common ACPI description table header.
|
||||
EFI_ACPI_5_0_FPDT_BOOT_PERFORMANCE_TABLE_POINTER_RECORD BootPointerRecord; ///< Basic Boot Performance Table Pointer record.
|
||||
EFI_ACPI_5_0_FPDT_S3_PERFORMANCE_TABLE_POINTER_RECORD S3PointerRecord; ///< S3 Performance Table Pointer record.
|
||||
} FIRMWARE_PERFORMANCE_TABLE;
|
||||
|
||||
///
|
||||
@@ -71,9 +71,9 @@ typedef struct {
|
||||
/// suspend and S3 resume boot path.
|
||||
///
|
||||
typedef struct {
|
||||
EFI_ACPI_5_0_FPDT_PERFORMANCE_TABLE_HEADER Header; ///< Common ACPI table header.
|
||||
EFI_ACPI_5_0_FPDT_S3_RESUME_RECORD S3Resume; ///< Basic S3 Resume performance record.
|
||||
EFI_ACPI_5_0_FPDT_S3_SUSPEND_RECORD S3Suspend; ///< Basic S3 Suspend performance record.
|
||||
EFI_ACPI_5_0_FPDT_PERFORMANCE_TABLE_HEADER Header; ///< Common ACPI table header.
|
||||
EFI_ACPI_5_0_FPDT_S3_RESUME_RECORD S3Resume; ///< Basic S3 Resume performance record.
|
||||
EFI_ACPI_5_0_FPDT_S3_SUSPEND_RECORD S3Suspend; ///< Basic S3 Suspend performance record.
|
||||
} S3_PERFORMANCE_TABLE;
|
||||
|
||||
///
|
||||
@@ -81,8 +81,8 @@ typedef struct {
|
||||
/// This structure contains BasicBoot performance record.
|
||||
///
|
||||
typedef struct {
|
||||
EFI_ACPI_5_0_FPDT_PERFORMANCE_TABLE_HEADER Header; ///< Common ACPI table header.
|
||||
EFI_ACPI_5_0_FPDT_FIRMWARE_BASIC_BOOT_RECORD BasicBoot; ///< Basic Boot Resume performance record.
|
||||
EFI_ACPI_5_0_FPDT_PERFORMANCE_TABLE_HEADER Header; ///< Common ACPI table header.
|
||||
EFI_ACPI_5_0_FPDT_FIRMWARE_BASIC_BOOT_RECORD BasicBoot; ///< Basic Boot Resume performance record.
|
||||
//
|
||||
// one or more boot performance records.
|
||||
//
|
||||
@@ -93,7 +93,7 @@ typedef struct {
|
||||
///
|
||||
///
|
||||
typedef struct {
|
||||
EFI_ACPI_5_0_FPDT_PERFORMANCE_TABLE_HEADER Header; ///< Common ACPI table header.
|
||||
EFI_ACPI_5_0_FPDT_PERFORMANCE_TABLE_HEADER Header; ///< Common ACPI table header.
|
||||
//
|
||||
// one or more boot performance records.
|
||||
//
|
||||
@@ -103,8 +103,8 @@ typedef struct {
|
||||
/// Performance data pointed by Performance Pointer Record.
|
||||
///
|
||||
typedef struct {
|
||||
BOOT_PERFORMANCE_TABLE BootPerformance; ///< Basic Boot Performance.
|
||||
S3_PERFORMANCE_TABLE S3Performance; ///< S3 performance.
|
||||
BOOT_PERFORMANCE_TABLE BootPerformance; ///< Basic Boot Performance.
|
||||
S3_PERFORMANCE_TABLE S3Performance; ///< S3 performance.
|
||||
} FIRMWARE_PERFORMANCE_RUNTIME_DATA;
|
||||
|
||||
///
|
||||
@@ -112,8 +112,8 @@ typedef struct {
|
||||
/// This Variable is produced by FPDT DXE module.
|
||||
///
|
||||
typedef struct {
|
||||
EFI_PHYSICAL_ADDRESS BootPerformanceTablePointer; ///< Pointer to Boot Performance Table.
|
||||
EFI_PHYSICAL_ADDRESS S3PerformanceTablePointer; ///< Pointer to S3 Performance Table.
|
||||
EFI_PHYSICAL_ADDRESS BootPerformanceTablePointer; ///< Pointer to Boot Performance Table.
|
||||
EFI_PHYSICAL_ADDRESS S3PerformanceTablePointer; ///< Pointer to S3 Performance Table.
|
||||
} FIRMWARE_PERFORMANCE_VARIABLE;
|
||||
|
||||
#pragma pack()
|
||||
@@ -121,19 +121,19 @@ typedef struct {
|
||||
//
|
||||
// Log BOOT RECORD from SMM driver on boot time.
|
||||
//
|
||||
#define SMM_FPDT_FUNCTION_GET_BOOT_RECORD_SIZE 1
|
||||
#define SMM_FPDT_FUNCTION_GET_BOOT_RECORD_DATA 2
|
||||
#define SMM_FPDT_FUNCTION_GET_BOOT_RECORD_DATA_BY_OFFSET 3
|
||||
#define SMM_FPDT_FUNCTION_GET_BOOT_RECORD_SIZE 1
|
||||
#define SMM_FPDT_FUNCTION_GET_BOOT_RECORD_DATA 2
|
||||
#define SMM_FPDT_FUNCTION_GET_BOOT_RECORD_DATA_BY_OFFSET 3
|
||||
|
||||
typedef struct {
|
||||
UINTN Function;
|
||||
EFI_STATUS ReturnStatus;
|
||||
UINTN BootRecordSize;
|
||||
VOID *BootRecordData;
|
||||
UINTN BootRecordOffset;
|
||||
UINTN Function;
|
||||
EFI_STATUS ReturnStatus;
|
||||
UINTN BootRecordSize;
|
||||
VOID *BootRecordData;
|
||||
UINTN BootRecordOffset;
|
||||
} SMM_BOOT_RECORD_COMMUNICATE;
|
||||
|
||||
extern EFI_GUID gEfiFirmwarePerformanceGuid;
|
||||
extern EFI_GUID gFirmwarePerformanceS3PointerGuid;
|
||||
extern EFI_GUID gEfiFirmwarePerformanceGuid;
|
||||
extern EFI_GUID gFirmwarePerformanceS3PointerGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -6,7 +6,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
**/
|
||||
|
||||
|
||||
#ifndef __HII_BOOT_MAINTENANCE_FORMSET_H__
|
||||
#define __HII_BOOT_MAINTENANCE_FORMSET_H__
|
||||
|
||||
@@ -16,7 +15,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#define EFI_IFR_BOOT_MAINTENANCE_GUID \
|
||||
{ 0xb2dedc91, 0xd59f, 0x48d2, { 0x89, 0x8a, 0x12, 0x49, 0xc, 0x74, 0xa4, 0xe0 } }
|
||||
|
||||
|
||||
extern EFI_GUID gEfiIfrBootMaintenanceGuid;
|
||||
extern EFI_GUID gEfiIfrBootMaintenanceGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -12,6 +12,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#define HII_RESOURCE_SAMPLE_FORM_SET_GUID \
|
||||
{ 0x4f4ef7f0, 0xaa29, 0x4ce9, { 0xba, 0x41, 0x64, 0x3e, 0x1, 0x23, 0xa9, 0x9f }}
|
||||
|
||||
extern EFI_GUID gHiiResourceSamleFormSetGuid;
|
||||
extern EFI_GUID gHiiResourceSamleFormSetGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -13,6 +13,6 @@
|
||||
#define IDLE_LOOP_EVENT_GUID \
|
||||
{ 0x3c8d294c, 0x5fc3, 0x4451, { 0xbb, 0x31, 0xc4, 0xc0, 0x32, 0x29, 0x5e, 0x6c } }
|
||||
|
||||
extern EFI_GUID gIdleLoopEventGuid;
|
||||
extern EFI_GUID gIdleLoopEventGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -17,8 +17,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#define EFI_LOAD_FIXED_ADDRESS_CONFIGURATION_TABLE_GUID \
|
||||
{ 0x2CA88B53,0xD296,0x4080, { 0xA4,0xA5,0xCA,0xD9,0xBA,0xE2,0x4B,0x9} }
|
||||
|
||||
|
||||
extern EFI_GUID gLoadFixedAddressConfigurationTableGuid;
|
||||
extern EFI_GUID gLoadFixedAddressConfigurationTableGuid;
|
||||
|
||||
typedef struct {
|
||||
EFI_PHYSICAL_ADDRESS DxeCodeTopAddress; ///< The top address below which the Dxe runtime code and below which the Dxe runtime/boot code and PEI code.
|
||||
|
@@ -23,7 +23,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#define LZMAF86_CUSTOM_DECOMPRESS_GUID \
|
||||
{ 0xD42AE6BD, 0x1352, 0x4bfb, { 0x90, 0x9A, 0xCA, 0x72, 0xA6, 0xEA, 0xE8, 0x89 } }
|
||||
|
||||
extern GUID gLzmaCustomDecompressGuid;
|
||||
extern GUID gLzmaF86CustomDecompressGuid;
|
||||
extern GUID gLzmaCustomDecompressGuid;
|
||||
extern GUID gLzmaF86CustomDecompressGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -9,9 +9,9 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#ifndef __MDEMODULE_HII_H__
|
||||
#define __MDEMODULE_HII_H__
|
||||
|
||||
#define NARROW_CHAR 0xFFF0
|
||||
#define WIDE_CHAR 0xFFF1
|
||||
#define NON_BREAKING_CHAR 0xFFF2
|
||||
#define NARROW_CHAR 0xFFF0
|
||||
#define WIDE_CHAR 0xFFF1
|
||||
#define NON_BREAKING_CHAR 0xFFF2
|
||||
|
||||
///
|
||||
/// State defined for password statemachine .
|
||||
@@ -30,91 +30,91 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
///
|
||||
/// EDKII implementation extension opcodes, new extension can be added here later.
|
||||
///
|
||||
#define EFI_IFR_EXTEND_OP_LABEL 0x0
|
||||
#define EFI_IFR_EXTEND_OP_BANNER 0x1
|
||||
#define EFI_IFR_EXTEND_OP_TIMEOUT 0x2
|
||||
#define EFI_IFR_EXTEND_OP_CLASS 0x3
|
||||
#define EFI_IFR_EXTEND_OP_SUBCLASS 0x4
|
||||
#define EFI_IFR_EXTEND_OP_LABEL 0x0
|
||||
#define EFI_IFR_EXTEND_OP_BANNER 0x1
|
||||
#define EFI_IFR_EXTEND_OP_TIMEOUT 0x2
|
||||
#define EFI_IFR_EXTEND_OP_CLASS 0x3
|
||||
#define EFI_IFR_EXTEND_OP_SUBCLASS 0x4
|
||||
|
||||
///
|
||||
/// Label opcode.
|
||||
///
|
||||
typedef struct _EFI_IFR_GUID_LABEL {
|
||||
EFI_IFR_OP_HEADER Header;
|
||||
EFI_IFR_OP_HEADER Header;
|
||||
///
|
||||
/// EFI_IFR_TIANO_GUID.
|
||||
///
|
||||
EFI_GUID Guid;
|
||||
EFI_GUID Guid;
|
||||
///
|
||||
/// EFI_IFR_EXTEND_OP_LABEL.
|
||||
///
|
||||
UINT8 ExtendOpCode;
|
||||
UINT8 ExtendOpCode;
|
||||
///
|
||||
/// Label Number.
|
||||
///
|
||||
UINT16 Number;
|
||||
UINT16 Number;
|
||||
} EFI_IFR_GUID_LABEL;
|
||||
|
||||
#define EFI_IFR_BANNER_ALIGN_LEFT 0
|
||||
#define EFI_IFR_BANNER_ALIGN_CENTER 1
|
||||
#define EFI_IFR_BANNER_ALIGN_RIGHT 2
|
||||
#define EFI_IFR_BANNER_ALIGN_LEFT 0
|
||||
#define EFI_IFR_BANNER_ALIGN_CENTER 1
|
||||
#define EFI_IFR_BANNER_ALIGN_RIGHT 2
|
||||
|
||||
///
|
||||
/// Banner opcode.
|
||||
///
|
||||
typedef struct _EFI_IFR_GUID_BANNER {
|
||||
EFI_IFR_OP_HEADER Header;
|
||||
EFI_IFR_OP_HEADER Header;
|
||||
///
|
||||
/// EFI_IFR_TIANO_GUID.
|
||||
///
|
||||
EFI_GUID Guid;
|
||||
EFI_GUID Guid;
|
||||
///
|
||||
/// EFI_IFR_EXTEND_OP_BANNER
|
||||
///
|
||||
UINT8 ExtendOpCode;
|
||||
EFI_STRING_ID Title; ///< The string token for the banner title.
|
||||
UINT16 LineNumber; ///< 1-based line number.
|
||||
UINT8 Alignment; ///< left, center, or right-aligned.
|
||||
UINT8 ExtendOpCode;
|
||||
EFI_STRING_ID Title; ///< The string token for the banner title.
|
||||
UINT16 LineNumber; ///< 1-based line number.
|
||||
UINT8 Alignment; ///< left, center, or right-aligned.
|
||||
} EFI_IFR_GUID_BANNER;
|
||||
|
||||
///
|
||||
/// Timeout opcode.
|
||||
///
|
||||
typedef struct _EFI_IFR_GUID_TIMEOUT {
|
||||
EFI_IFR_OP_HEADER Header;
|
||||
EFI_IFR_OP_HEADER Header;
|
||||
///
|
||||
/// EFI_IFR_TIANO_GUID.
|
||||
///
|
||||
EFI_GUID Guid;
|
||||
EFI_GUID Guid;
|
||||
///
|
||||
/// EFI_IFR_EXTEND_OP_TIMEOUT.
|
||||
///
|
||||
UINT8 ExtendOpCode;
|
||||
UINT16 TimeOut; ///< TimeOut Value.
|
||||
UINT8 ExtendOpCode;
|
||||
UINT16 TimeOut; ///< TimeOut Value.
|
||||
} EFI_IFR_GUID_TIMEOUT;
|
||||
|
||||
#define EFI_NON_DEVICE_CLASS 0x00
|
||||
#define EFI_DISK_DEVICE_CLASS 0x01
|
||||
#define EFI_VIDEO_DEVICE_CLASS 0x02
|
||||
#define EFI_NETWORK_DEVICE_CLASS 0x04
|
||||
#define EFI_INPUT_DEVICE_CLASS 0x08
|
||||
#define EFI_ON_BOARD_DEVICE_CLASS 0x10
|
||||
#define EFI_OTHER_DEVICE_CLASS 0x20
|
||||
#define EFI_NON_DEVICE_CLASS 0x00
|
||||
#define EFI_DISK_DEVICE_CLASS 0x01
|
||||
#define EFI_VIDEO_DEVICE_CLASS 0x02
|
||||
#define EFI_NETWORK_DEVICE_CLASS 0x04
|
||||
#define EFI_INPUT_DEVICE_CLASS 0x08
|
||||
#define EFI_ON_BOARD_DEVICE_CLASS 0x10
|
||||
#define EFI_OTHER_DEVICE_CLASS 0x20
|
||||
|
||||
///
|
||||
/// Device Class opcode.
|
||||
///
|
||||
typedef struct _EFI_IFR_GUID_CLASS {
|
||||
EFI_IFR_OP_HEADER Header;
|
||||
EFI_IFR_OP_HEADER Header;
|
||||
///
|
||||
/// EFI_IFR_TIANO_GUID.
|
||||
///
|
||||
EFI_GUID Guid;
|
||||
EFI_GUID Guid;
|
||||
///
|
||||
/// EFI_IFR_EXTEND_OP_CLASS.
|
||||
///
|
||||
UINT8 ExtendOpCode;
|
||||
UINT16 Class; ///< Device Class from the above.
|
||||
UINT8 ExtendOpCode;
|
||||
UINT16 Class; ///< Device Class from the above.
|
||||
} EFI_IFR_GUID_CLASS;
|
||||
|
||||
#define EFI_SETUP_APPLICATION_SUBCLASS 0x00
|
||||
@@ -126,16 +126,16 @@ typedef struct _EFI_IFR_GUID_CLASS {
|
||||
/// SubClass opcode
|
||||
///
|
||||
typedef struct _EFI_IFR_GUID_SUBCLASS {
|
||||
EFI_IFR_OP_HEADER Header;
|
||||
EFI_IFR_OP_HEADER Header;
|
||||
///
|
||||
/// EFI_IFR_TIANO_GUID.
|
||||
///
|
||||
EFI_GUID Guid;
|
||||
EFI_GUID Guid;
|
||||
///
|
||||
/// EFI_IFR_EXTEND_OP_SUBCLASS.
|
||||
///
|
||||
UINT8 ExtendOpCode;
|
||||
UINT16 SubClass; ///< Sub Class type from the above.
|
||||
UINT8 ExtendOpCode;
|
||||
UINT16 SubClass; ///< Sub Class type from the above.
|
||||
} EFI_IFR_GUID_SUBCLASS;
|
||||
|
||||
///
|
||||
@@ -149,60 +149,60 @@ typedef struct _EFI_IFR_GUID_SUBCLASS {
|
||||
/// One is for framework OneOf question Option Key value;
|
||||
/// another is for framework vareqval.
|
||||
///
|
||||
#define EFI_IFR_EXTEND_OP_OPTIONKEY 0x0
|
||||
#define EFI_IFR_EXTEND_OP_VAREQNAME 0x1
|
||||
#define EFI_IFR_EXTEND_OP_OPTIONKEY 0x0
|
||||
#define EFI_IFR_EXTEND_OP_VAREQNAME 0x1
|
||||
|
||||
///
|
||||
/// Store the framework vfr option key value.
|
||||
///
|
||||
typedef struct _EFI_IFR_GUID_OPTIONKEY {
|
||||
EFI_IFR_OP_HEADER Header;
|
||||
EFI_IFR_OP_HEADER Header;
|
||||
///
|
||||
/// EFI_IFR_FRAMEWORK_GUID.
|
||||
///
|
||||
EFI_GUID Guid;
|
||||
EFI_GUID Guid;
|
||||
///
|
||||
/// EFI_IFR_EXTEND_OP_OPTIONKEY.
|
||||
///
|
||||
UINT8 ExtendOpCode;
|
||||
UINT8 ExtendOpCode;
|
||||
///
|
||||
/// OneOf Questiond ID binded by OneOf Option.
|
||||
///
|
||||
EFI_QUESTION_ID QuestionId;
|
||||
EFI_QUESTION_ID QuestionId;
|
||||
///
|
||||
/// The OneOf Option Value.
|
||||
///
|
||||
EFI_IFR_TYPE_VALUE OptionValue;
|
||||
EFI_IFR_TYPE_VALUE OptionValue;
|
||||
///
|
||||
/// The Framework OneOf Option Key Value.
|
||||
///
|
||||
UINT16 KeyValue;
|
||||
UINT16 KeyValue;
|
||||
} EFI_IFR_GUID_OPTIONKEY;
|
||||
|
||||
///
|
||||
/// Store the framework vfr vareqval name number.
|
||||
///
|
||||
typedef struct _EFI_IFR_GUID_VAREQNAME {
|
||||
EFI_IFR_OP_HEADER Header;
|
||||
EFI_IFR_OP_HEADER Header;
|
||||
///
|
||||
/// EFI_IFR_FRAMEWORK_GUID.
|
||||
///
|
||||
EFI_GUID Guid;
|
||||
EFI_GUID Guid;
|
||||
///
|
||||
/// EFI_IFR_EXTEND_OP_VAREQNAME.
|
||||
///
|
||||
UINT8 ExtendOpCode;
|
||||
UINT8 ExtendOpCode;
|
||||
///
|
||||
/// Question ID of the Numeric Opcode created.
|
||||
///
|
||||
EFI_QUESTION_ID QuestionId;
|
||||
EFI_QUESTION_ID QuestionId;
|
||||
///
|
||||
/// For vareqval (0x100), NameId is 0x100.
|
||||
/// This value will convert to a Unicode String following this rule;
|
||||
/// sprintf(StringBuffer, "%d", NameId) .
|
||||
/// The the Unicode String will be used as a EFI Variable Name.
|
||||
///
|
||||
UINT16 NameId;
|
||||
UINT16 NameId;
|
||||
} EFI_IFR_GUID_VAREQNAME;
|
||||
|
||||
///
|
||||
@@ -215,18 +215,17 @@ typedef struct _EFI_IFR_GUID_VAREQNAME {
|
||||
/// EDKII implementation extension flags, used to indaicate the disply style and bit width for bit filed storage.
|
||||
/// Two high bits for display style and the low six bits for bit width.
|
||||
///
|
||||
#define EDKII_IFR_DISPLAY_BIT 0xC0
|
||||
#define EDKII_IFR_DISPLAY_INT_DEC_BIT 0x00
|
||||
#define EDKII_IFR_DISPLAY_UINT_DEC_BIT 0x40
|
||||
#define EDKII_IFR_DISPLAY_UINT_HEX_BIT 0x80
|
||||
#define EDKII_IFR_DISPLAY_BIT 0xC0
|
||||
#define EDKII_IFR_DISPLAY_INT_DEC_BIT 0x00
|
||||
#define EDKII_IFR_DISPLAY_UINT_DEC_BIT 0x40
|
||||
#define EDKII_IFR_DISPLAY_UINT_HEX_BIT 0x80
|
||||
|
||||
#define EDKII_IFR_NUMERIC_SIZE_BIT 0x3F
|
||||
#define EDKII_IFR_NUMERIC_SIZE_BIT 0x3F
|
||||
|
||||
#pragma pack()
|
||||
|
||||
extern EFI_GUID gEfiIfrTianoGuid;
|
||||
extern EFI_GUID gEfiIfrFrameworkGuid;
|
||||
extern EFI_GUID gEdkiiIfrBitVarstoreGuid;
|
||||
extern EFI_GUID gEfiIfrTianoGuid;
|
||||
extern EFI_GUID gEfiIfrFrameworkGuid;
|
||||
extern EFI_GUID gEdkiiIfrBitVarstoreGuid;
|
||||
|
||||
#endif
|
||||
|
||||
|
@@ -14,6 +14,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
0xA1AFF049, 0xFDEB, 0x442a, { 0xB3, 0x20, 0x13, 0xAB, 0x4C, 0xB7, 0x2B, 0xBC } \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEfiMdeModulePkgTokenSpaceGuid;
|
||||
extern EFI_GUID gEfiMdeModulePkgTokenSpaceGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -18,52 +18,52 @@
|
||||
//
|
||||
|
||||
typedef struct {
|
||||
UINT32 Signature;
|
||||
UINT16 Length;
|
||||
UINT16 Revision;
|
||||
UINT32 Signature;
|
||||
UINT16 Length;
|
||||
UINT16 Revision;
|
||||
} MEMORY_PROFILE_COMMON_HEADER;
|
||||
|
||||
#define MEMORY_PROFILE_CONTEXT_SIGNATURE SIGNATURE_32 ('M','P','C','T')
|
||||
#define MEMORY_PROFILE_CONTEXT_REVISION 0x0002
|
||||
#define MEMORY_PROFILE_CONTEXT_SIGNATURE SIGNATURE_32 ('M','P','C','T')
|
||||
#define MEMORY_PROFILE_CONTEXT_REVISION 0x0002
|
||||
|
||||
typedef struct {
|
||||
MEMORY_PROFILE_COMMON_HEADER Header;
|
||||
UINT64 CurrentTotalUsage;
|
||||
UINT64 PeakTotalUsage;
|
||||
UINT64 CurrentTotalUsageByType[EfiMaxMemoryType + 2];
|
||||
UINT64 PeakTotalUsageByType[EfiMaxMemoryType + 2];
|
||||
UINT64 TotalImageSize;
|
||||
UINT32 ImageCount;
|
||||
UINT32 SequenceCount;
|
||||
MEMORY_PROFILE_COMMON_HEADER Header;
|
||||
UINT64 CurrentTotalUsage;
|
||||
UINT64 PeakTotalUsage;
|
||||
UINT64 CurrentTotalUsageByType[EfiMaxMemoryType + 2];
|
||||
UINT64 PeakTotalUsageByType[EfiMaxMemoryType + 2];
|
||||
UINT64 TotalImageSize;
|
||||
UINT32 ImageCount;
|
||||
UINT32 SequenceCount;
|
||||
} MEMORY_PROFILE_CONTEXT;
|
||||
|
||||
#define MEMORY_PROFILE_DRIVER_INFO_SIGNATURE SIGNATURE_32 ('M','P','D','I')
|
||||
#define MEMORY_PROFILE_DRIVER_INFO_REVISION 0x0003
|
||||
#define MEMORY_PROFILE_DRIVER_INFO_SIGNATURE SIGNATURE_32 ('M','P','D','I')
|
||||
#define MEMORY_PROFILE_DRIVER_INFO_REVISION 0x0003
|
||||
|
||||
typedef struct {
|
||||
MEMORY_PROFILE_COMMON_HEADER Header;
|
||||
EFI_GUID FileName;
|
||||
PHYSICAL_ADDRESS ImageBase;
|
||||
UINT64 ImageSize;
|
||||
PHYSICAL_ADDRESS EntryPoint;
|
||||
UINT16 ImageSubsystem;
|
||||
EFI_FV_FILETYPE FileType;
|
||||
UINT8 Reserved[1];
|
||||
UINT32 AllocRecordCount;
|
||||
UINT64 CurrentUsage;
|
||||
UINT64 PeakUsage;
|
||||
UINT64 CurrentUsageByType[EfiMaxMemoryType + 2];
|
||||
UINT64 PeakUsageByType[EfiMaxMemoryType + 2];
|
||||
UINT16 PdbStringOffset;
|
||||
UINT8 Reserved2[6];
|
||||
//CHAR8 PdbString[];
|
||||
MEMORY_PROFILE_COMMON_HEADER Header;
|
||||
EFI_GUID FileName;
|
||||
PHYSICAL_ADDRESS ImageBase;
|
||||
UINT64 ImageSize;
|
||||
PHYSICAL_ADDRESS EntryPoint;
|
||||
UINT16 ImageSubsystem;
|
||||
EFI_FV_FILETYPE FileType;
|
||||
UINT8 Reserved[1];
|
||||
UINT32 AllocRecordCount;
|
||||
UINT64 CurrentUsage;
|
||||
UINT64 PeakUsage;
|
||||
UINT64 CurrentUsageByType[EfiMaxMemoryType + 2];
|
||||
UINT64 PeakUsageByType[EfiMaxMemoryType + 2];
|
||||
UINT16 PdbStringOffset;
|
||||
UINT8 Reserved2[6];
|
||||
// CHAR8 PdbString[];
|
||||
} MEMORY_PROFILE_DRIVER_INFO;
|
||||
|
||||
typedef enum {
|
||||
MemoryProfileActionAllocatePages = 1,
|
||||
MemoryProfileActionFreePages = 2,
|
||||
MemoryProfileActionAllocatePool = 3,
|
||||
MemoryProfileActionFreePool = 4,
|
||||
MemoryProfileActionFreePages = 2,
|
||||
MemoryProfileActionAllocatePool = 3,
|
||||
MemoryProfileActionFreePool = 4,
|
||||
} MEMORY_PROFILE_ACTION;
|
||||
|
||||
//
|
||||
@@ -82,7 +82,7 @@ typedef enum {
|
||||
// 3 : AllocatePool
|
||||
// 4 : FreePool
|
||||
//
|
||||
#define MEMORY_PROFILE_ACTION_BASIC_MASK 0xF
|
||||
#define MEMORY_PROFILE_ACTION_BASIC_MASK 0xF
|
||||
|
||||
//
|
||||
// Extension
|
||||
@@ -101,27 +101,27 @@ typedef enum {
|
||||
//
|
||||
// Extension (used by memory allocation lib)
|
||||
//
|
||||
#define MEMORY_PROFILE_ACTION_LIB_ALLOCATE_PAGES 0x8001
|
||||
#define MEMORY_PROFILE_ACTION_LIB_ALLOCATE_RUNTIME_PAGES 0x8011
|
||||
#define MEMORY_PROFILE_ACTION_LIB_ALLOCATE_RESERVED_PAGES 0x8021
|
||||
#define MEMORY_PROFILE_ACTION_LIB_FREE_PAGES 0x8002
|
||||
#define MEMORY_PROFILE_ACTION_LIB_ALLOCATE_ALIGNED_PAGES 0x8041
|
||||
#define MEMORY_PROFILE_ACTION_LIB_ALLOCATE_ALIGNED_RUNTIME_PAGES 0x8051
|
||||
#define MEMORY_PROFILE_ACTION_LIB_ALLOCATE_ALIGNED_RESERVED_PAGES 0x8061
|
||||
#define MEMORY_PROFILE_ACTION_LIB_FREE_ALIGNED_PAGES 0x8042
|
||||
#define MEMORY_PROFILE_ACTION_LIB_ALLOCATE_POOL 0x8003
|
||||
#define MEMORY_PROFILE_ACTION_LIB_ALLOCATE_RUNTIME_POOL 0x8013
|
||||
#define MEMORY_PROFILE_ACTION_LIB_ALLOCATE_RESERVED_POOL 0x8023
|
||||
#define MEMORY_PROFILE_ACTION_LIB_FREE_POOL 0x8004
|
||||
#define MEMORY_PROFILE_ACTION_LIB_ALLOCATE_ZERO_POOL 0x8083
|
||||
#define MEMORY_PROFILE_ACTION_LIB_ALLOCATE_RUNTIME_ZERO_POOL 0x8093
|
||||
#define MEMORY_PROFILE_ACTION_LIB_ALLOCATE_RESERVED_ZERO_POOL 0x80a3
|
||||
#define MEMORY_PROFILE_ACTION_LIB_ALLOCATE_COPY_POOL 0x8103
|
||||
#define MEMORY_PROFILE_ACTION_LIB_ALLOCATE_RUNTIME_COPY_POOL 0x8113
|
||||
#define MEMORY_PROFILE_ACTION_LIB_ALLOCATE_RESERVED_COPY_POOL 0x8123
|
||||
#define MEMORY_PROFILE_ACTION_LIB_REALLOCATE_POOL 0x8203
|
||||
#define MEMORY_PROFILE_ACTION_LIB_REALLOCATE_RUNTIME_POOL 0x8213
|
||||
#define MEMORY_PROFILE_ACTION_LIB_REALLOCATE_RESERVED_POOL 0x8223
|
||||
#define MEMORY_PROFILE_ACTION_LIB_ALLOCATE_PAGES 0x8001
|
||||
#define MEMORY_PROFILE_ACTION_LIB_ALLOCATE_RUNTIME_PAGES 0x8011
|
||||
#define MEMORY_PROFILE_ACTION_LIB_ALLOCATE_RESERVED_PAGES 0x8021
|
||||
#define MEMORY_PROFILE_ACTION_LIB_FREE_PAGES 0x8002
|
||||
#define MEMORY_PROFILE_ACTION_LIB_ALLOCATE_ALIGNED_PAGES 0x8041
|
||||
#define MEMORY_PROFILE_ACTION_LIB_ALLOCATE_ALIGNED_RUNTIME_PAGES 0x8051
|
||||
#define MEMORY_PROFILE_ACTION_LIB_ALLOCATE_ALIGNED_RESERVED_PAGES 0x8061
|
||||
#define MEMORY_PROFILE_ACTION_LIB_FREE_ALIGNED_PAGES 0x8042
|
||||
#define MEMORY_PROFILE_ACTION_LIB_ALLOCATE_POOL 0x8003
|
||||
#define MEMORY_PROFILE_ACTION_LIB_ALLOCATE_RUNTIME_POOL 0x8013
|
||||
#define MEMORY_PROFILE_ACTION_LIB_ALLOCATE_RESERVED_POOL 0x8023
|
||||
#define MEMORY_PROFILE_ACTION_LIB_FREE_POOL 0x8004
|
||||
#define MEMORY_PROFILE_ACTION_LIB_ALLOCATE_ZERO_POOL 0x8083
|
||||
#define MEMORY_PROFILE_ACTION_LIB_ALLOCATE_RUNTIME_ZERO_POOL 0x8093
|
||||
#define MEMORY_PROFILE_ACTION_LIB_ALLOCATE_RESERVED_ZERO_POOL 0x80a3
|
||||
#define MEMORY_PROFILE_ACTION_LIB_ALLOCATE_COPY_POOL 0x8103
|
||||
#define MEMORY_PROFILE_ACTION_LIB_ALLOCATE_RUNTIME_COPY_POOL 0x8113
|
||||
#define MEMORY_PROFILE_ACTION_LIB_ALLOCATE_RESERVED_COPY_POOL 0x8123
|
||||
#define MEMORY_PROFILE_ACTION_LIB_REALLOCATE_POOL 0x8203
|
||||
#define MEMORY_PROFILE_ACTION_LIB_REALLOCATE_RUNTIME_POOL 0x8213
|
||||
#define MEMORY_PROFILE_ACTION_LIB_REALLOCATE_RESERVED_POOL 0x8223
|
||||
|
||||
//
|
||||
// User defined: 0x80000000~0xFFFFFFFF
|
||||
@@ -131,52 +131,52 @@ typedef enum {
|
||||
// and the type is pages (can be freed partially)
|
||||
// or pool (cannot be freed partially).
|
||||
//
|
||||
#define MEMORY_PROFILE_ACTION_USER_DEFINED_MASK 0x80000000
|
||||
#define MEMORY_PROFILE_ACTION_USER_DEFINED_MASK 0x80000000
|
||||
|
||||
#define MEMORY_PROFILE_ALLOC_INFO_SIGNATURE SIGNATURE_32 ('M','P','A','I')
|
||||
#define MEMORY_PROFILE_ALLOC_INFO_REVISION 0x0002
|
||||
#define MEMORY_PROFILE_ALLOC_INFO_SIGNATURE SIGNATURE_32 ('M','P','A','I')
|
||||
#define MEMORY_PROFILE_ALLOC_INFO_REVISION 0x0002
|
||||
|
||||
typedef struct {
|
||||
MEMORY_PROFILE_COMMON_HEADER Header;
|
||||
PHYSICAL_ADDRESS CallerAddress;
|
||||
UINT32 SequenceId;
|
||||
UINT8 Reserved[2];
|
||||
UINT16 ActionStringOffset;
|
||||
MEMORY_PROFILE_ACTION Action;
|
||||
EFI_MEMORY_TYPE MemoryType;
|
||||
PHYSICAL_ADDRESS Buffer;
|
||||
UINT64 Size;
|
||||
//CHAR8 ActionString[];
|
||||
MEMORY_PROFILE_COMMON_HEADER Header;
|
||||
PHYSICAL_ADDRESS CallerAddress;
|
||||
UINT32 SequenceId;
|
||||
UINT8 Reserved[2];
|
||||
UINT16 ActionStringOffset;
|
||||
MEMORY_PROFILE_ACTION Action;
|
||||
EFI_MEMORY_TYPE MemoryType;
|
||||
PHYSICAL_ADDRESS Buffer;
|
||||
UINT64 Size;
|
||||
// CHAR8 ActionString[];
|
||||
} MEMORY_PROFILE_ALLOC_INFO;
|
||||
|
||||
#define MEMORY_PROFILE_DESCRIPTOR_SIGNATURE SIGNATURE_32 ('M','P','D','R')
|
||||
#define MEMORY_PROFILE_DESCRIPTOR_REVISION 0x0001
|
||||
#define MEMORY_PROFILE_DESCRIPTOR_SIGNATURE SIGNATURE_32 ('M','P','D','R')
|
||||
#define MEMORY_PROFILE_DESCRIPTOR_REVISION 0x0001
|
||||
|
||||
typedef struct {
|
||||
MEMORY_PROFILE_COMMON_HEADER Header;
|
||||
PHYSICAL_ADDRESS Address;
|
||||
UINT64 Size;
|
||||
MEMORY_PROFILE_COMMON_HEADER Header;
|
||||
PHYSICAL_ADDRESS Address;
|
||||
UINT64 Size;
|
||||
} MEMORY_PROFILE_DESCRIPTOR;
|
||||
|
||||
#define MEMORY_PROFILE_FREE_MEMORY_SIGNATURE SIGNATURE_32 ('M','P','R','M')
|
||||
#define MEMORY_PROFILE_FREE_MEMORY_REVISION 0x0001
|
||||
#define MEMORY_PROFILE_FREE_MEMORY_SIGNATURE SIGNATURE_32 ('M','P','R','M')
|
||||
#define MEMORY_PROFILE_FREE_MEMORY_REVISION 0x0001
|
||||
|
||||
typedef struct {
|
||||
MEMORY_PROFILE_COMMON_HEADER Header;
|
||||
UINT64 TotalFreeMemoryPages;
|
||||
UINT32 FreeMemoryEntryCount;
|
||||
UINT8 Reserved[4];
|
||||
//MEMORY_PROFILE_DESCRIPTOR MemoryDescriptor[FreeMemoryEntryCount];
|
||||
MEMORY_PROFILE_COMMON_HEADER Header;
|
||||
UINT64 TotalFreeMemoryPages;
|
||||
UINT32 FreeMemoryEntryCount;
|
||||
UINT8 Reserved[4];
|
||||
// MEMORY_PROFILE_DESCRIPTOR MemoryDescriptor[FreeMemoryEntryCount];
|
||||
} MEMORY_PROFILE_FREE_MEMORY;
|
||||
|
||||
#define MEMORY_PROFILE_MEMORY_RANGE_SIGNATURE SIGNATURE_32 ('M','P','M','R')
|
||||
#define MEMORY_PROFILE_MEMORY_RANGE_REVISION 0x0001
|
||||
#define MEMORY_PROFILE_MEMORY_RANGE_SIGNATURE SIGNATURE_32 ('M','P','M','R')
|
||||
#define MEMORY_PROFILE_MEMORY_RANGE_REVISION 0x0001
|
||||
|
||||
typedef struct {
|
||||
MEMORY_PROFILE_COMMON_HEADER Header;
|
||||
UINT32 MemoryRangeCount;
|
||||
UINT8 Reserved[4];
|
||||
//MEMORY_PROFILE_DESCRIPTOR MemoryDescriptor[MemoryRangeCount];
|
||||
MEMORY_PROFILE_COMMON_HEADER Header;
|
||||
UINT32 MemoryRangeCount;
|
||||
UINT8 Reserved[4];
|
||||
// MEMORY_PROFILE_DESCRIPTOR MemoryDescriptor[MemoryRangeCount];
|
||||
} MEMORY_PROFILE_MEMORY_RANGE;
|
||||
|
||||
//
|
||||
@@ -219,7 +219,7 @@ EFI_STATUS
|
||||
(EFIAPI *EDKII_MEMORY_PROFILE_GET_DATA)(
|
||||
IN EDKII_MEMORY_PROFILE_PROTOCOL *This,
|
||||
IN OUT UINT64 *ProfileSize,
|
||||
OUT VOID *ProfileBuffer
|
||||
OUT VOID *ProfileBuffer
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -270,8 +270,8 @@ EFI_STATUS
|
||||
IN UINT64 ImageSize
|
||||
);
|
||||
|
||||
#define MEMORY_PROFILE_RECORDING_ENABLE TRUE
|
||||
#define MEMORY_PROFILE_RECORDING_DISABLE FALSE
|
||||
#define MEMORY_PROFILE_RECORDING_ENABLE TRUE
|
||||
#define MEMORY_PROFILE_RECORDING_DISABLE FALSE
|
||||
|
||||
/**
|
||||
Get memory profile recording state.
|
||||
@@ -286,7 +286,7 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EDKII_MEMORY_PROFILE_GET_RECORDING_STATE) (
|
||||
(EFIAPI *EDKII_MEMORY_PROFILE_GET_RECORDING_STATE)(
|
||||
IN EDKII_MEMORY_PROFILE_PROTOCOL *This,
|
||||
OUT BOOLEAN *RecordingState
|
||||
);
|
||||
@@ -303,7 +303,7 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EDKII_MEMORY_PROFILE_SET_RECORDING_STATE) (
|
||||
(EFIAPI *EDKII_MEMORY_PROFILE_SET_RECORDING_STATE)(
|
||||
IN EDKII_MEMORY_PROFILE_PROTOCOL *This,
|
||||
IN BOOLEAN RecordingState
|
||||
);
|
||||
@@ -333,7 +333,7 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EDKII_MEMORY_PROFILE_RECORD) (
|
||||
(EFIAPI *EDKII_MEMORY_PROFILE_RECORD)(
|
||||
IN EDKII_MEMORY_PROFILE_PROTOCOL *This,
|
||||
IN PHYSICAL_ADDRESS CallerAddress,
|
||||
IN MEMORY_PROFILE_ACTION Action,
|
||||
@@ -344,12 +344,12 @@ EFI_STATUS
|
||||
);
|
||||
|
||||
struct _EDKII_MEMORY_PROFILE_PROTOCOL {
|
||||
EDKII_MEMORY_PROFILE_GET_DATA GetData;
|
||||
EDKII_MEMORY_PROFILE_REGISTER_IMAGE RegisterImage;
|
||||
EDKII_MEMORY_PROFILE_UNREGISTER_IMAGE UnregisterImage;
|
||||
EDKII_MEMORY_PROFILE_GET_RECORDING_STATE GetRecordingState;
|
||||
EDKII_MEMORY_PROFILE_SET_RECORDING_STATE SetRecordingState;
|
||||
EDKII_MEMORY_PROFILE_RECORD Record;
|
||||
EDKII_MEMORY_PROFILE_GET_DATA GetData;
|
||||
EDKII_MEMORY_PROFILE_REGISTER_IMAGE RegisterImage;
|
||||
EDKII_MEMORY_PROFILE_UNREGISTER_IMAGE UnregisterImage;
|
||||
EDKII_MEMORY_PROFILE_GET_RECORDING_STATE GetRecordingState;
|
||||
EDKII_MEMORY_PROFILE_SET_RECORDING_STATE SetRecordingState;
|
||||
EDKII_MEMORY_PROFILE_RECORD Record;
|
||||
};
|
||||
|
||||
//
|
||||
@@ -386,22 +386,22 @@ struct _EDKII_MEMORY_PROFILE_PROTOCOL {
|
||||
//
|
||||
// SMRAM profile command
|
||||
//
|
||||
#define SMRAM_PROFILE_COMMAND_GET_PROFILE_INFO 0x1
|
||||
#define SMRAM_PROFILE_COMMAND_GET_PROFILE_DATA 0x2
|
||||
#define SMRAM_PROFILE_COMMAND_GET_PROFILE_INFO 0x1
|
||||
#define SMRAM_PROFILE_COMMAND_GET_PROFILE_DATA 0x2
|
||||
//
|
||||
// Below 2 commands have been deprecated. They may not be re-used.
|
||||
//
|
||||
#define SMRAM_PROFILE_COMMAND_DEPRECATED1 0x3
|
||||
#define SMRAM_PROFILE_COMMAND_DEPRECATED2 0x4
|
||||
#define SMRAM_PROFILE_COMMAND_DEPRECATED1 0x3
|
||||
#define SMRAM_PROFILE_COMMAND_DEPRECATED2 0x4
|
||||
|
||||
#define SMRAM_PROFILE_COMMAND_GET_PROFILE_DATA_BY_OFFSET 0x5
|
||||
#define SMRAM_PROFILE_COMMAND_GET_RECORDING_STATE 0x6
|
||||
#define SMRAM_PROFILE_COMMAND_SET_RECORDING_STATE 0x7
|
||||
#define SMRAM_PROFILE_COMMAND_GET_PROFILE_DATA_BY_OFFSET 0x5
|
||||
#define SMRAM_PROFILE_COMMAND_GET_RECORDING_STATE 0x6
|
||||
#define SMRAM_PROFILE_COMMAND_SET_RECORDING_STATE 0x7
|
||||
|
||||
typedef struct {
|
||||
UINT32 Command;
|
||||
UINT32 DataLength;
|
||||
UINT64 ReturnStatus;
|
||||
UINT32 Command;
|
||||
UINT32 DataLength;
|
||||
UINT64 ReturnStatus;
|
||||
} SMRAM_PROFILE_PARAMETER_HEADER;
|
||||
|
||||
typedef struct {
|
||||
@@ -449,20 +449,18 @@ typedef struct {
|
||||
UINT64 NumberOfPage;
|
||||
} SMRAM_PROFILE_PARAMETER_UNREGISTER_IMAGE;
|
||||
|
||||
|
||||
#define EDKII_MEMORY_PROFILE_GUID { \
|
||||
#define EDKII_MEMORY_PROFILE_GUID {\
|
||||
0x821c9a09, 0x541a, 0x40f6, { 0x9f, 0x43, 0xa, 0xd1, 0x93, 0xa1, 0x2c, 0xfe } \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEdkiiMemoryProfileGuid;
|
||||
extern EFI_GUID gEdkiiMemoryProfileGuid;
|
||||
|
||||
typedef EDKII_MEMORY_PROFILE_PROTOCOL EDKII_SMM_MEMORY_PROFILE_PROTOCOL;
|
||||
|
||||
#define EDKII_SMM_MEMORY_PROFILE_GUID { \
|
||||
#define EDKII_SMM_MEMORY_PROFILE_GUID {\
|
||||
0xe22bbcca, 0x516a, 0x46a8, { 0x80, 0xe2, 0x67, 0x45, 0xe8, 0x36, 0x93, 0xbd } \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEdkiiSmmMemoryProfileGuid;
|
||||
extern EFI_GUID gEdkiiSmmMemoryProfileGuid;
|
||||
|
||||
#endif
|
||||
|
||||
|
@@ -39,15 +39,15 @@ typedef struct {
|
||||
///
|
||||
/// Index of the packet.
|
||||
///
|
||||
UINT16 PacketIndex;
|
||||
UINT16 PacketIndex;
|
||||
///
|
||||
/// The number of active records in the packet.
|
||||
///
|
||||
UINT16 RecordIndex;
|
||||
UINT16 RecordIndex;
|
||||
///
|
||||
/// The maximum number of records that the packet can store.
|
||||
///
|
||||
UINT32 MaxRecordsNumber;
|
||||
UINT32 MaxRecordsNumber;
|
||||
} MEMORY_STATUSCODE_PACKET_HEADER;
|
||||
|
||||
///
|
||||
@@ -58,15 +58,15 @@ typedef struct {
|
||||
///
|
||||
/// The index pointing to the last recored being stored.
|
||||
///
|
||||
UINT32 RecordIndex;
|
||||
UINT32 RecordIndex;
|
||||
///
|
||||
/// The number of records being stored.
|
||||
///
|
||||
UINT32 NumberOfRecords;
|
||||
UINT32 NumberOfRecords;
|
||||
///
|
||||
/// The maximum number of records that can be stored.
|
||||
///
|
||||
UINT32 MaxRecordsNumber;
|
||||
UINT32 MaxRecordsNumber;
|
||||
} RUNTIME_MEMORY_STATUSCODE_HEADER;
|
||||
|
||||
///
|
||||
@@ -77,21 +77,21 @@ typedef struct {
|
||||
///
|
||||
/// Status Code type to be reported.
|
||||
///
|
||||
EFI_STATUS_CODE_TYPE CodeType;
|
||||
EFI_STATUS_CODE_TYPE CodeType;
|
||||
|
||||
///
|
||||
/// An operation, plus value information about the class and subclass, used to
|
||||
/// classify the hardware and software entity.
|
||||
///
|
||||
EFI_STATUS_CODE_VALUE Value;
|
||||
EFI_STATUS_CODE_VALUE Value;
|
||||
|
||||
///
|
||||
/// The enumeration of a hardware or software entity within
|
||||
/// the system. Valid instance numbers start with the number 1.
|
||||
///
|
||||
UINT32 Instance;
|
||||
UINT32 Instance;
|
||||
} MEMORY_STATUSCODE_RECORD;
|
||||
|
||||
extern EFI_GUID gMemoryStatusCodeRecordGuid;
|
||||
extern EFI_GUID gMemoryStatusCodeRecordGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -18,13 +18,13 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#define EFI_MEMORY_TYPE_INFORMATION_GUID \
|
||||
{ 0x4c19049f,0x4137,0x4dd3, { 0x9c,0x10,0x8b,0x97,0xa8,0x3f,0xfd,0xfa } }
|
||||
|
||||
#define EFI_MEMORY_TYPE_INFORMATION_VARIABLE_NAME L"MemoryTypeInformation"
|
||||
#define EFI_MEMORY_TYPE_INFORMATION_VARIABLE_NAME L"MemoryTypeInformation"
|
||||
|
||||
extern EFI_GUID gEfiMemoryTypeInformationGuid;
|
||||
extern EFI_GUID gEfiMemoryTypeInformationGuid;
|
||||
|
||||
typedef struct {
|
||||
UINT32 Type; ///< EFI memory type defined in UEFI specification.
|
||||
UINT32 NumberOfPages; ///< The pages of this type memory.
|
||||
UINT32 Type; ///< EFI memory type defined in UEFI specification.
|
||||
UINT32 NumberOfPages; ///< The pages of this type memory.
|
||||
} EFI_MEMORY_TYPE_INFORMATION;
|
||||
|
||||
#endif
|
||||
|
@@ -10,13 +10,12 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#define __EDKII_MIGRATED_FV_INFO_GUID_H__
|
||||
|
||||
typedef struct {
|
||||
UINT32 FvOrgBase; // original FV address
|
||||
UINT32 FvNewBase; // new FV address
|
||||
UINT32 FvDataBase; // original FV data
|
||||
UINT32 FvLength; // Fv Length
|
||||
UINT32 FvOrgBase; // original FV address
|
||||
UINT32 FvNewBase; // new FV address
|
||||
UINT32 FvDataBase; // original FV data
|
||||
UINT32 FvLength; // Fv Length
|
||||
} EDKII_MIGRATED_FV_INFO;
|
||||
|
||||
extern EFI_GUID gEdkiiMigratedFvInfoGuid;
|
||||
extern EFI_GUID gEdkiiMigratedFvInfoGuid;
|
||||
|
||||
#endif // #ifndef __EDKII_MIGRATED_FV_INFO_GUID_H__
|
||||
|
||||
|
@@ -18,8 +18,8 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
//
|
||||
// Name of the variable for the high part of monotonic counter
|
||||
//
|
||||
#define MTC_VARIABLE_NAME L"MTC"
|
||||
#define MTC_VARIABLE_NAME L"MTC"
|
||||
|
||||
extern EFI_GUID gMtcVendorGuid;
|
||||
extern EFI_GUID gMtcVendorGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -38,15 +38,14 @@
|
||||
#define EDKII_NON_DISCOVERABLE_XHCI_DEVICE_GUID \
|
||||
{ 0xB1BE0BC5, 0x6C28, 0x442D, {0xAA, 0x37, 0x15, 0x1B, 0x42, 0x57, 0xBD, 0x78 } }
|
||||
|
||||
|
||||
extern EFI_GUID gEdkiiNonDiscoverableAhciDeviceGuid;
|
||||
extern EFI_GUID gEdkiiNonDiscoverableAmbaDeviceGuid;
|
||||
extern EFI_GUID gEdkiiNonDiscoverableEhciDeviceGuid;
|
||||
extern EFI_GUID gEdkiiNonDiscoverableNvmeDeviceGuid;
|
||||
extern EFI_GUID gEdkiiNonDiscoverableOhciDeviceGuid;
|
||||
extern EFI_GUID gEdkiiNonDiscoverableSdhciDeviceGuid;
|
||||
extern EFI_GUID gEdkiiNonDiscoverableUfsDeviceGuid;
|
||||
extern EFI_GUID gEdkiiNonDiscoverableUhciDeviceGuid;
|
||||
extern EFI_GUID gEdkiiNonDiscoverableXhciDeviceGuid;
|
||||
extern EFI_GUID gEdkiiNonDiscoverableAhciDeviceGuid;
|
||||
extern EFI_GUID gEdkiiNonDiscoverableAmbaDeviceGuid;
|
||||
extern EFI_GUID gEdkiiNonDiscoverableEhciDeviceGuid;
|
||||
extern EFI_GUID gEdkiiNonDiscoverableNvmeDeviceGuid;
|
||||
extern EFI_GUID gEdkiiNonDiscoverableOhciDeviceGuid;
|
||||
extern EFI_GUID gEdkiiNonDiscoverableSdhciDeviceGuid;
|
||||
extern EFI_GUID gEdkiiNonDiscoverableUfsDeviceGuid;
|
||||
extern EFI_GUID gEdkiiNonDiscoverableUhciDeviceGuid;
|
||||
extern EFI_GUID gEdkiiNonDiscoverableXhciDeviceGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -14,6 +14,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
0xEA296D92, 0x0B69, 0x423C, { 0x8C, 0x28, 0x33, 0xB4, 0xE0, 0xA9, 0x12, 0x68 } \
|
||||
}
|
||||
|
||||
extern EFI_GUID gPcdDataBaseHobGuid;
|
||||
extern EFI_GUID gPcdDataBaseHobGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -12,21 +12,21 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#define PCD_DATA_BASE_SIGNATURE_GUID \
|
||||
{ 0x3c7d193c, 0x682c, 0x4c14, { 0xa6, 0x8f, 0x55, 0x2d, 0xea, 0x4f, 0x43, 0x7e } }
|
||||
|
||||
extern EFI_GUID gPcdDataBaseSignatureGuid;
|
||||
extern EFI_GUID gPcdDataBaseSignatureGuid;
|
||||
|
||||
//
|
||||
// Common definitions
|
||||
//
|
||||
typedef UINT64 SKU_ID;
|
||||
|
||||
#define PCD_TYPE_SHIFT 28
|
||||
#define PCD_TYPE_SHIFT 28
|
||||
|
||||
#define PCD_TYPE_DATA (0x0U << PCD_TYPE_SHIFT)
|
||||
#define PCD_TYPE_HII (0x8U << PCD_TYPE_SHIFT)
|
||||
#define PCD_TYPE_VPD (0x4U << PCD_TYPE_SHIFT)
|
||||
#define PCD_TYPE_STRING (0x1U << PCD_TYPE_SHIFT)
|
||||
#define PCD_TYPE_DATA (0x0U << PCD_TYPE_SHIFT)
|
||||
#define PCD_TYPE_HII (0x8U << PCD_TYPE_SHIFT)
|
||||
#define PCD_TYPE_VPD (0x4U << PCD_TYPE_SHIFT)
|
||||
#define PCD_TYPE_STRING (0x1U << PCD_TYPE_SHIFT)
|
||||
|
||||
#define PCD_TYPE_ALL_SET (PCD_TYPE_DATA | PCD_TYPE_HII | PCD_TYPE_VPD | PCD_TYPE_STRING)
|
||||
#define PCD_TYPE_ALL_SET (PCD_TYPE_DATA | PCD_TYPE_HII | PCD_TYPE_VPD | PCD_TYPE_STRING)
|
||||
|
||||
#define PCD_DATUM_TYPE_SHIFT 24
|
||||
|
||||
@@ -42,30 +42,30 @@ typedef UINT64 SKU_ID;
|
||||
PCD_DATUM_TYPE_UINT32 | \
|
||||
PCD_DATUM_TYPE_UINT64)
|
||||
|
||||
#define PCD_DATUM_TYPE_SHIFT2 20
|
||||
#define PCD_DATUM_TYPE_SHIFT2 20
|
||||
|
||||
#define PCD_DATUM_TYPE_UINT8_BOOLEAN (0x1U << PCD_DATUM_TYPE_SHIFT2)
|
||||
#define PCD_DATUM_TYPE_UINT8_BOOLEAN (0x1U << PCD_DATUM_TYPE_SHIFT2)
|
||||
|
||||
#define PCD_DATABASE_OFFSET_MASK (~(PCD_TYPE_ALL_SET | PCD_DATUM_TYPE_ALL_SET | PCD_DATUM_TYPE_UINT8_BOOLEAN))
|
||||
#define PCD_DATABASE_OFFSET_MASK (~(PCD_TYPE_ALL_SET | PCD_DATUM_TYPE_ALL_SET | PCD_DATUM_TYPE_UINT8_BOOLEAN))
|
||||
|
||||
typedef struct {
|
||||
UINT32 ExTokenNumber;
|
||||
UINT16 TokenNumber; // Token Number for Dynamic-Ex PCD.
|
||||
UINT16 ExGuidIndex; // Index of GuidTable in units of GUID.
|
||||
UINT32 ExTokenNumber;
|
||||
UINT16 TokenNumber; // Token Number for Dynamic-Ex PCD.
|
||||
UINT16 ExGuidIndex; // Index of GuidTable in units of GUID.
|
||||
} DYNAMICEX_MAPPING;
|
||||
|
||||
typedef struct {
|
||||
UINT32 StringIndex; // Offset in String Table in units of UINT8.
|
||||
UINT32 DefaultValueOffset; // Offset of the Default Value.
|
||||
UINT16 GuidTableIndex; // Offset in Guid Table in units of GUID.
|
||||
UINT16 Offset; // Offset in Variable.
|
||||
UINT32 Attributes; // Variable attributes.
|
||||
UINT16 Property; // Variable property.
|
||||
UINT16 Reserved;
|
||||
UINT32 StringIndex; // Offset in String Table in units of UINT8.
|
||||
UINT32 DefaultValueOffset; // Offset of the Default Value.
|
||||
UINT16 GuidTableIndex; // Offset in Guid Table in units of GUID.
|
||||
UINT16 Offset; // Offset in Variable.
|
||||
UINT32 Attributes; // Variable attributes.
|
||||
UINT16 Property; // Variable property.
|
||||
UINT16 Reserved;
|
||||
} VARIABLE_HEAD;
|
||||
|
||||
typedef struct {
|
||||
UINT32 Offset;
|
||||
UINT32 Offset;
|
||||
} VPD_HEAD;
|
||||
|
||||
typedef UINT32 STRING_HEAD;
|
||||
@@ -73,96 +73,94 @@ typedef UINT32 STRING_HEAD;
|
||||
typedef UINT16 SIZE_INFO;
|
||||
|
||||
typedef struct {
|
||||
UINT32 TokenSpaceCNameIndex; // Offset in String Table in units of UINT8.
|
||||
UINT32 PcdCNameIndex; // Offset in String Table in units of UINT8.
|
||||
UINT32 TokenSpaceCNameIndex; // Offset in String Table in units of UINT8.
|
||||
UINT32 PcdCNameIndex; // Offset in String Table in units of UINT8.
|
||||
} PCD_NAME_INDEX;
|
||||
|
||||
typedef UINT32 TABLE_OFFSET;
|
||||
|
||||
typedef struct {
|
||||
GUID Signature; // PcdDataBaseGuid.
|
||||
UINT32 BuildVersion;
|
||||
UINT32 Length; // Length of DEFAULT SKU PCD DB
|
||||
SKU_ID SystemSkuId; // Current SkuId value.
|
||||
UINT32 LengthForAllSkus; // Length of all SKU PCD DB
|
||||
UINT32 UninitDataBaseSize; // Total size for PCD those default value with 0.
|
||||
TABLE_OFFSET LocalTokenNumberTableOffset;
|
||||
TABLE_OFFSET ExMapTableOffset;
|
||||
TABLE_OFFSET GuidTableOffset;
|
||||
TABLE_OFFSET StringTableOffset;
|
||||
TABLE_OFFSET SizeTableOffset;
|
||||
TABLE_OFFSET SkuIdTableOffset;
|
||||
TABLE_OFFSET PcdNameTableOffset;
|
||||
UINT16 LocalTokenCount; // LOCAL_TOKEN_NUMBER for all.
|
||||
UINT16 ExTokenCount; // EX_TOKEN_NUMBER for DynamicEx.
|
||||
UINT16 GuidTableCount; // The Number of Guid in GuidTable.
|
||||
UINT8 Pad[6]; // Pad bytes to satisfy the alignment.
|
||||
|
||||
//
|
||||
// Default initialized external PCD database binary structure
|
||||
//
|
||||
// Padding is needed to keep necessary alignment
|
||||
//
|
||||
//SKU_ID SkuIdTable[]; // SkuIds system supports.
|
||||
//UINT64 ValueUint64[];
|
||||
//UINT32 ValueUint32[];
|
||||
//VPD_HEAD VpdHead[]; // VPD Offset
|
||||
//DYNAMICEX_MAPPING ExMapTable[]; // DynamicEx PCD mapped to LocalIndex in LocalTokenNumberTable. It can be accessed by the ExMapTableOffset.
|
||||
//UINT32 LocalTokenNumberTable[]; // Offset | DataType | PCD Type. It can be accessed by LocalTokenNumberTableOffset.
|
||||
//GUID GuidTable[]; // GUID for DynamicEx and HII PCD variable Guid. It can be accessed by the GuidTableOffset.
|
||||
//STRING_HEAD StringHead[]; // String PCD
|
||||
//PCD_NAME_INDEX PcdNameTable[]; // PCD name index info. It can be accessed by the PcdNameTableOffset.
|
||||
//VARIABLE_HEAD VariableHead[]; // HII PCD
|
||||
//UINT8 StringTable[]; // String for String PCD value and HII PCD Variable Name. It can be accessed by StringTableOffset.
|
||||
//SIZE_INFO SizeTable[]; // MaxSize and CurSize for String PCD. It can be accessed by SizeTableOffset.
|
||||
//UINT16 ValueUint16[];
|
||||
//UINT8 ValueUint8[];
|
||||
//BOOLEAN ValueBoolean[];
|
||||
GUID Signature; // PcdDataBaseGuid.
|
||||
UINT32 BuildVersion;
|
||||
UINT32 Length; // Length of DEFAULT SKU PCD DB
|
||||
SKU_ID SystemSkuId; // Current SkuId value.
|
||||
UINT32 LengthForAllSkus; // Length of all SKU PCD DB
|
||||
UINT32 UninitDataBaseSize; // Total size for PCD those default value with 0.
|
||||
TABLE_OFFSET LocalTokenNumberTableOffset;
|
||||
TABLE_OFFSET ExMapTableOffset;
|
||||
TABLE_OFFSET GuidTableOffset;
|
||||
TABLE_OFFSET StringTableOffset;
|
||||
TABLE_OFFSET SizeTableOffset;
|
||||
TABLE_OFFSET SkuIdTableOffset;
|
||||
TABLE_OFFSET PcdNameTableOffset;
|
||||
UINT16 LocalTokenCount; // LOCAL_TOKEN_NUMBER for all.
|
||||
UINT16 ExTokenCount; // EX_TOKEN_NUMBER for DynamicEx.
|
||||
UINT16 GuidTableCount; // The Number of Guid in GuidTable.
|
||||
UINT8 Pad[6]; // Pad bytes to satisfy the alignment.
|
||||
|
||||
//
|
||||
// Default initialized external PCD database binary structure
|
||||
//
|
||||
// Padding is needed to keep necessary alignment
|
||||
//
|
||||
// SKU_ID SkuIdTable[]; // SkuIds system supports.
|
||||
// UINT64 ValueUint64[];
|
||||
// UINT32 ValueUint32[];
|
||||
// VPD_HEAD VpdHead[]; // VPD Offset
|
||||
// DYNAMICEX_MAPPING ExMapTable[]; // DynamicEx PCD mapped to LocalIndex in LocalTokenNumberTable. It can be accessed by the ExMapTableOffset.
|
||||
// UINT32 LocalTokenNumberTable[]; // Offset | DataType | PCD Type. It can be accessed by LocalTokenNumberTableOffset.
|
||||
// GUID GuidTable[]; // GUID for DynamicEx and HII PCD variable Guid. It can be accessed by the GuidTableOffset.
|
||||
// STRING_HEAD StringHead[]; // String PCD
|
||||
// PCD_NAME_INDEX PcdNameTable[]; // PCD name index info. It can be accessed by the PcdNameTableOffset.
|
||||
// VARIABLE_HEAD VariableHead[]; // HII PCD
|
||||
// UINT8 StringTable[]; // String for String PCD value and HII PCD Variable Name. It can be accessed by StringTableOffset.
|
||||
// SIZE_INFO SizeTable[]; // MaxSize and CurSize for String PCD. It can be accessed by SizeTableOffset.
|
||||
// UINT16 ValueUint16[];
|
||||
// UINT8 ValueUint8[];
|
||||
// BOOLEAN ValueBoolean[];
|
||||
} PCD_DATABASE_INIT;
|
||||
|
||||
//
|
||||
// PEI and DXE Pcd driver use the same PCD database
|
||||
//
|
||||
typedef PCD_DATABASE_INIT PEI_PCD_DATABASE;
|
||||
typedef PCD_DATABASE_INIT DXE_PCD_DATABASE;
|
||||
|
||||
typedef PCD_DATABASE_INIT PEI_PCD_DATABASE;
|
||||
typedef PCD_DATABASE_INIT DXE_PCD_DATABASE;
|
||||
|
||||
typedef struct {
|
||||
PEI_PCD_DATABASE *PeiDb;
|
||||
DXE_PCD_DATABASE *DxeDb;
|
||||
PEI_PCD_DATABASE *PeiDb;
|
||||
DXE_PCD_DATABASE *DxeDb;
|
||||
} PCD_DATABASE;
|
||||
|
||||
typedef struct {
|
||||
UINT32 Offset:24;
|
||||
UINT32 Value:8;
|
||||
UINT32 Offset : 24;
|
||||
UINT32 Value : 8;
|
||||
} PCD_DATA_DELTA;
|
||||
|
||||
typedef struct {
|
||||
SKU_ID SkuId;
|
||||
UINT16 DefaultId;
|
||||
UINT8 Reserved[6];
|
||||
SKU_ID SkuId;
|
||||
UINT16 DefaultId;
|
||||
UINT8 Reserved[6];
|
||||
} PCD_DEFAULT_INFO;
|
||||
|
||||
typedef struct {
|
||||
//
|
||||
// Full size, it must be at 8 byte alignment.
|
||||
//
|
||||
UINT32 DataSize;
|
||||
UINT32 DataSize;
|
||||
//
|
||||
// HeaderSize includes HeaderSize fields and DefaultInfo arrays
|
||||
//
|
||||
UINT32 HeaderSize;
|
||||
UINT32 HeaderSize;
|
||||
//
|
||||
// DefaultInfo arrays those have the same default setting.
|
||||
//
|
||||
PCD_DEFAULT_INFO DefaultInfo[1];
|
||||
PCD_DEFAULT_INFO DefaultInfo[1];
|
||||
//
|
||||
// Default data is stored as variable storage or the array of DATA_DELTA.
|
||||
//
|
||||
} PCD_DEFAULT_DATA;
|
||||
|
||||
#define PCD_NV_STORE_DEFAULT_BUFFER_SIGNATURE SIGNATURE_32('N', 'S', 'D', 'B')
|
||||
#define PCD_NV_STORE_DEFAULT_BUFFER_SIGNATURE SIGNATURE_32('N', 'S', 'D', 'B')
|
||||
|
||||
typedef struct {
|
||||
//
|
||||
|
@@ -12,39 +12,38 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#ifndef __PERFORMANCE_DATA_H__
|
||||
#define __PERFORMANCE_DATA_H__
|
||||
|
||||
#define PERFORMANCE_PROPERTY_REVISION 0x1
|
||||
#define PERFORMANCE_PROPERTY_REVISION 0x1
|
||||
|
||||
typedef struct {
|
||||
UINT32 Revision;
|
||||
UINT32 Reserved;
|
||||
UINT64 Frequency;
|
||||
UINT64 TimerStartValue;
|
||||
UINT64 TimerEndValue;
|
||||
UINT32 Revision;
|
||||
UINT32 Reserved;
|
||||
UINT64 Frequency;
|
||||
UINT64 TimerStartValue;
|
||||
UINT64 TimerEndValue;
|
||||
} PERFORMANCE_PROPERTY;
|
||||
|
||||
//
|
||||
// PEI_PERFORMANCE_STRING_SIZE must be a multiple of 8.
|
||||
//
|
||||
#define PEI_PERFORMANCE_STRING_SIZE 8
|
||||
#define PEI_PERFORMANCE_STRING_LENGTH (PEI_PERFORMANCE_STRING_SIZE - 1)
|
||||
#define PEI_PERFORMANCE_STRING_SIZE 8
|
||||
#define PEI_PERFORMANCE_STRING_LENGTH (PEI_PERFORMANCE_STRING_SIZE - 1)
|
||||
|
||||
typedef struct {
|
||||
EFI_PHYSICAL_ADDRESS Handle;
|
||||
CHAR8 Token[PEI_PERFORMANCE_STRING_SIZE]; ///< Measured token string name.
|
||||
CHAR8 Module[PEI_PERFORMANCE_STRING_SIZE]; ///< Module string name.
|
||||
UINT64 StartTimeStamp; ///< Start time point.
|
||||
UINT64 EndTimeStamp; ///< End time point.
|
||||
EFI_PHYSICAL_ADDRESS Handle;
|
||||
CHAR8 Token[PEI_PERFORMANCE_STRING_SIZE]; ///< Measured token string name.
|
||||
CHAR8 Module[PEI_PERFORMANCE_STRING_SIZE]; ///< Module string name.
|
||||
UINT64 StartTimeStamp; ///< Start time point.
|
||||
UINT64 EndTimeStamp; ///< End time point.
|
||||
} PEI_PERFORMANCE_LOG_ENTRY;
|
||||
|
||||
//
|
||||
// The header must be aligned at 8 bytes.
|
||||
//
|
||||
typedef struct {
|
||||
UINT32 NumberOfEntries; ///< The number of all performance log entries.
|
||||
UINT32 Reserved;
|
||||
UINT32 NumberOfEntries; ///< The number of all performance log entries.
|
||||
UINT32 Reserved;
|
||||
} PEI_PERFORMANCE_LOG_HEADER;
|
||||
|
||||
|
||||
#define PERFORMANCE_PROTOCOL_GUID \
|
||||
{ 0x76b6bdfa, 0x2acd, 0x4462, { 0x9E, 0x3F, 0xcb, 0x58, 0xC9, 0x69, 0xd9, 0x37 } }
|
||||
|
||||
@@ -54,43 +53,43 @@ typedef struct {
|
||||
//
|
||||
// Forward reference for pure ANSI compatibility
|
||||
//
|
||||
typedef struct _PERFORMANCE_PROTOCOL PERFORMANCE_PROTOCOL;
|
||||
typedef struct _PERFORMANCE_EX_PROTOCOL PERFORMANCE_EX_PROTOCOL;
|
||||
typedef struct _PERFORMANCE_PROTOCOL PERFORMANCE_PROTOCOL;
|
||||
typedef struct _PERFORMANCE_EX_PROTOCOL PERFORMANCE_EX_PROTOCOL;
|
||||
|
||||
//
|
||||
// DXE_PERFORMANCE_STRING_SIZE must be a multiple of 8.
|
||||
//
|
||||
#define DXE_PERFORMANCE_STRING_SIZE 32
|
||||
#define DXE_PERFORMANCE_STRING_LENGTH (DXE_PERFORMANCE_STRING_SIZE - 1)
|
||||
#define DXE_PERFORMANCE_STRING_SIZE 32
|
||||
#define DXE_PERFORMANCE_STRING_LENGTH (DXE_PERFORMANCE_STRING_SIZE - 1)
|
||||
|
||||
//
|
||||
// The default guage entries number for DXE phase.
|
||||
//
|
||||
#define INIT_DXE_GAUGE_DATA_ENTRIES 800
|
||||
#define INIT_DXE_GAUGE_DATA_ENTRIES 800
|
||||
|
||||
typedef struct {
|
||||
EFI_PHYSICAL_ADDRESS Handle;
|
||||
CHAR8 Token[DXE_PERFORMANCE_STRING_SIZE]; ///< Measured token string name.
|
||||
CHAR8 Module[DXE_PERFORMANCE_STRING_SIZE]; ///< Module string name.
|
||||
UINT64 StartTimeStamp; ///< Start time point.
|
||||
UINT64 EndTimeStamp; ///< End time point.
|
||||
EFI_PHYSICAL_ADDRESS Handle;
|
||||
CHAR8 Token[DXE_PERFORMANCE_STRING_SIZE]; ///< Measured token string name.
|
||||
CHAR8 Module[DXE_PERFORMANCE_STRING_SIZE]; ///< Module string name.
|
||||
UINT64 StartTimeStamp; ///< Start time point.
|
||||
UINT64 EndTimeStamp; ///< End time point.
|
||||
} GAUGE_DATA_ENTRY;
|
||||
|
||||
typedef struct {
|
||||
EFI_PHYSICAL_ADDRESS Handle;
|
||||
CHAR8 Token[DXE_PERFORMANCE_STRING_SIZE]; ///< Measured token string name.
|
||||
CHAR8 Module[DXE_PERFORMANCE_STRING_SIZE]; ///< Module string name.
|
||||
UINT64 StartTimeStamp; ///< Start time point.
|
||||
UINT64 EndTimeStamp; ///< End time point.
|
||||
UINT32 Identifier; ///< Identifier.
|
||||
EFI_PHYSICAL_ADDRESS Handle;
|
||||
CHAR8 Token[DXE_PERFORMANCE_STRING_SIZE]; ///< Measured token string name.
|
||||
CHAR8 Module[DXE_PERFORMANCE_STRING_SIZE]; ///< Module string name.
|
||||
UINT64 StartTimeStamp; ///< Start time point.
|
||||
UINT64 EndTimeStamp; ///< End time point.
|
||||
UINT32 Identifier; ///< Identifier.
|
||||
} GAUGE_DATA_ENTRY_EX;
|
||||
|
||||
//
|
||||
// The header must be aligned at 8 bytes
|
||||
//
|
||||
typedef struct {
|
||||
UINT32 NumberOfEntries; ///< The number of all performance gauge entries.
|
||||
UINT32 Reserved;
|
||||
UINT32 NumberOfEntries; ///< The number of all performance gauge entries.
|
||||
UINT32 Reserved;
|
||||
} GAUGE_DATA_HEADER;
|
||||
|
||||
//
|
||||
@@ -106,32 +105,32 @@ typedef struct {
|
||||
//
|
||||
// SMM_PERFORMANCE_STRING_SIZE.
|
||||
//
|
||||
#define SMM_PERFORMANCE_STRING_SIZE 32
|
||||
#define SMM_PERFORMANCE_STRING_LENGTH (SMM_PERFORMANCE_STRING_SIZE - 1)
|
||||
#define SMM_PERFORMANCE_STRING_SIZE 32
|
||||
#define SMM_PERFORMANCE_STRING_LENGTH (SMM_PERFORMANCE_STRING_SIZE - 1)
|
||||
|
||||
//
|
||||
// The default guage entries number for SMM phase.
|
||||
//
|
||||
#define INIT_SMM_GAUGE_DATA_ENTRIES 200
|
||||
#define INIT_SMM_GAUGE_DATA_ENTRIES 200
|
||||
|
||||
typedef struct {
|
||||
UINTN Function;
|
||||
EFI_STATUS ReturnStatus;
|
||||
UINTN NumberOfEntries;
|
||||
UINTN LogEntryKey;
|
||||
GAUGE_DATA_ENTRY *GaugeData;
|
||||
UINTN Function;
|
||||
EFI_STATUS ReturnStatus;
|
||||
UINTN NumberOfEntries;
|
||||
UINTN LogEntryKey;
|
||||
GAUGE_DATA_ENTRY *GaugeData;
|
||||
} SMM_PERF_COMMUNICATE;
|
||||
|
||||
typedef struct {
|
||||
UINTN Function;
|
||||
EFI_STATUS ReturnStatus;
|
||||
UINTN NumberOfEntries;
|
||||
UINTN LogEntryKey;
|
||||
GAUGE_DATA_ENTRY_EX *GaugeDataEx;
|
||||
UINTN Function;
|
||||
EFI_STATUS ReturnStatus;
|
||||
UINTN NumberOfEntries;
|
||||
UINTN LogEntryKey;
|
||||
GAUGE_DATA_ENTRY_EX *GaugeDataEx;
|
||||
} SMM_PERF_COMMUNICATE_EX;
|
||||
|
||||
#define SMM_PERF_FUNCTION_GET_GAUGE_ENTRY_NUMBER 1
|
||||
#define SMM_PERF_FUNCTION_GET_GAUGE_DATA 2
|
||||
#define SMM_PERF_FUNCTION_GET_GAUGE_ENTRY_NUMBER 1
|
||||
#define SMM_PERF_FUNCTION_GET_GAUGE_DATA 2
|
||||
|
||||
/**
|
||||
Adds a record at the end of the performance measurement log
|
||||
@@ -157,7 +156,7 @@ typedef struct {
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI * PERFORMANCE_START_GAUGE)(
|
||||
(EFIAPI *PERFORMANCE_START_GAUGE)(
|
||||
IN CONST VOID *Handle OPTIONAL,
|
||||
IN CONST CHAR8 *Token OPTIONAL,
|
||||
IN CONST CHAR8 *Module OPTIONAL,
|
||||
@@ -190,7 +189,7 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI * PERFORMANCE_END_GAUGE)(
|
||||
(EFIAPI *PERFORMANCE_END_GAUGE)(
|
||||
IN CONST VOID *Handle OPTIONAL,
|
||||
IN CONST CHAR8 *Token OPTIONAL,
|
||||
IN CONST CHAR8 *Module OPTIONAL,
|
||||
@@ -217,7 +216,7 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI * PERFORMANCE_GET_GAUGE)(
|
||||
(EFIAPI *PERFORMANCE_GET_GAUGE)(
|
||||
IN UINTN LogEntryKey,
|
||||
OUT GAUGE_DATA_ENTRY **GaugeDataEntry
|
||||
);
|
||||
@@ -248,7 +247,7 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI * PERFORMANCE_START_GAUGE_EX)(
|
||||
(EFIAPI *PERFORMANCE_START_GAUGE_EX)(
|
||||
IN CONST VOID *Handle OPTIONAL,
|
||||
IN CONST CHAR8 *Token OPTIONAL,
|
||||
IN CONST CHAR8 *Module OPTIONAL,
|
||||
@@ -284,7 +283,7 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI * PERFORMANCE_END_GAUGE_EX)(
|
||||
(EFIAPI *PERFORMANCE_END_GAUGE_EX)(
|
||||
IN CONST VOID *Handle OPTIONAL,
|
||||
IN CONST CHAR8 *Token OPTIONAL,
|
||||
IN CONST CHAR8 *Module OPTIONAL,
|
||||
@@ -312,26 +311,26 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI * PERFORMANCE_GET_GAUGE_EX)(
|
||||
(EFIAPI *PERFORMANCE_GET_GAUGE_EX)(
|
||||
IN UINTN LogEntryKey,
|
||||
OUT GAUGE_DATA_ENTRY_EX **GaugeDataEntryEx
|
||||
);
|
||||
|
||||
struct _PERFORMANCE_PROTOCOL {
|
||||
PERFORMANCE_START_GAUGE StartGauge;
|
||||
PERFORMANCE_END_GAUGE EndGauge;
|
||||
PERFORMANCE_GET_GAUGE GetGauge;
|
||||
PERFORMANCE_START_GAUGE StartGauge;
|
||||
PERFORMANCE_END_GAUGE EndGauge;
|
||||
PERFORMANCE_GET_GAUGE GetGauge;
|
||||
};
|
||||
|
||||
struct _PERFORMANCE_EX_PROTOCOL {
|
||||
PERFORMANCE_START_GAUGE_EX StartGaugeEx;
|
||||
PERFORMANCE_END_GAUGE_EX EndGaugeEx;
|
||||
PERFORMANCE_GET_GAUGE_EX GetGaugeEx;
|
||||
PERFORMANCE_START_GAUGE_EX StartGaugeEx;
|
||||
PERFORMANCE_END_GAUGE_EX EndGaugeEx;
|
||||
PERFORMANCE_GET_GAUGE_EX GetGaugeEx;
|
||||
};
|
||||
|
||||
extern EFI_GUID gPerformanceProtocolGuid;
|
||||
extern EFI_GUID gSmmPerformanceProtocolGuid;
|
||||
extern EFI_GUID gPerformanceExProtocolGuid;
|
||||
extern EFI_GUID gSmmPerformanceExProtocolGuid;
|
||||
extern EFI_GUID gPerformanceProtocolGuid;
|
||||
extern EFI_GUID gSmmPerformanceProtocolGuid;
|
||||
extern EFI_GUID gPerformanceExProtocolGuid;
|
||||
extern EFI_GUID gSmmPerformanceExProtocolGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -63,10 +63,10 @@ EFI_STATUS
|
||||
);
|
||||
|
||||
struct _EDKII_PERFORMANCE_MEASUREMENT_PROTOCOL {
|
||||
CREATE_PERFORMANCE_MEASUREMENT CreatePerformanceMeasurement;
|
||||
CREATE_PERFORMANCE_MEASUREMENT CreatePerformanceMeasurement;
|
||||
};
|
||||
|
||||
extern EFI_GUID gEdkiiPerformanceMeasurementProtocolGuid;
|
||||
extern EFI_GUID gEdkiiSmmPerformanceMeasurementProtocolGuid;
|
||||
extern EFI_GUID gEdkiiPerformanceMeasurementProtocolGuid;
|
||||
extern EFI_GUID gEdkiiSmmPerformanceMeasurementProtocolGuid;
|
||||
|
||||
#endif // _PERFORMANCE_MEASUREMENT_H_
|
||||
|
@@ -8,7 +8,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#ifndef _PI_SMM_COMMUNICATION_REGION_TABLE_H_
|
||||
#define _PI_SMM_COMMUNICATION_REGION_TABLE_H_
|
||||
|
||||
#define EDKII_PI_SMM_COMMUNICATION_REGION_TABLE_GUID {\
|
||||
#define EDKII_PI_SMM_COMMUNICATION_REGION_TABLE_GUID {\
|
||||
0x4e28ca50, 0xd582, 0x44ac, {0xa1, 0x1f, 0xe3, 0xd5, 0x65, 0x26, 0xdb, 0x34} \
|
||||
}
|
||||
|
||||
@@ -43,15 +43,15 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
// to get SMM profile data in SMM.
|
||||
//
|
||||
typedef struct {
|
||||
UINT32 Version;
|
||||
UINT32 NumberOfEntries;
|
||||
UINT32 DescriptorSize;
|
||||
UINT32 Reserved;
|
||||
//EFI_MEMORY_DESCRIPTOR Entry[1];
|
||||
UINT32 Version;
|
||||
UINT32 NumberOfEntries;
|
||||
UINT32 DescriptorSize;
|
||||
UINT32 Reserved;
|
||||
// EFI_MEMORY_DESCRIPTOR Entry[1];
|
||||
} EDKII_PI_SMM_COMMUNICATION_REGION_TABLE;
|
||||
|
||||
#define EDKII_PI_SMM_COMMUNICATION_REGION_TABLE_VERSION 0x00000001
|
||||
|
||||
extern EFI_GUID gEdkiiPiSmmCommunicationRegionTableGuid;
|
||||
extern EFI_GUID gEdkiiPiSmmCommunicationRegionTableGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -10,7 +10,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#ifndef _PI_SMM_MEMORY_ATTRIBUTES_TABLE_H_
|
||||
#define _PI_SMM_MEMORY_ATTRIBUTES_TABLE_H_
|
||||
|
||||
#define EDKII_PI_SMM_MEMORY_ATTRIBUTES_TABLE_GUID {\
|
||||
#define EDKII_PI_SMM_MEMORY_ATTRIBUTES_TABLE_GUID {\
|
||||
0x6b9fd3f7, 0x16df, 0x45e8, {0xbd, 0x39, 0xb9, 0x4a, 0x66, 0x54, 0x1a, 0x5d} \
|
||||
}
|
||||
|
||||
@@ -31,15 +31,15 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
// and it is EFI_MEMORY_XP.
|
||||
//
|
||||
typedef struct {
|
||||
UINT32 Version;
|
||||
UINT32 NumberOfEntries;
|
||||
UINT32 DescriptorSize;
|
||||
UINT32 Reserved;
|
||||
//EFI_MEMORY_DESCRIPTOR Entry[1];
|
||||
UINT32 Version;
|
||||
UINT32 NumberOfEntries;
|
||||
UINT32 DescriptorSize;
|
||||
UINT32 Reserved;
|
||||
// EFI_MEMORY_DESCRIPTOR Entry[1];
|
||||
} EDKII_PI_SMM_MEMORY_ATTRIBUTES_TABLE;
|
||||
|
||||
#define EDKII_PI_SMM_MEMORY_ATTRIBUTES_TABLE_VERSION 0x00000001
|
||||
|
||||
extern EFI_GUID gEdkiiPiSmmMemoryAttributesTableGuid;
|
||||
extern EFI_GUID gEdkiiPiSmmMemoryAttributesTableGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -14,6 +14,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
0x8614567d, 0x35be, 0x4415, {0x8d, 0x88, 0xbd, 0x7d, 0xc, 0x9c, 0x70, 0xc0} \
|
||||
}
|
||||
|
||||
extern EFI_GUID gPlatformOverridesManagerGuid;
|
||||
extern EFI_GUID gPlatformOverridesManagerGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -14,7 +14,6 @@
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
**/
|
||||
|
||||
|
||||
#ifndef __EDKII_PLATFORM_HAS_ACPI_H__
|
||||
#define __EDKII_PLATFORM_HAS_ACPI_H__
|
||||
|
||||
@@ -24,6 +23,6 @@
|
||||
{ 0x96, 0x04, 0x0f, 0xf7, 0xe1, 0x11, 0x96, 0x5a } \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEdkiiPlatformHasAcpiGuid;
|
||||
extern EFI_GUID gEdkiiPlatformHasAcpiGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -14,6 +14,6 @@
|
||||
0x2a46715f, 0x3581, 0x4a55, {0x8e, 0x73, 0x2b, 0x76, 0x9a, 0xaa, 0x30, 0xc5} \
|
||||
}
|
||||
|
||||
extern EFI_GUID gRamDiskFormSetGuid;
|
||||
extern EFI_GUID gRamDiskFormSetGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -53,10 +53,10 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
0xc770a27f, 0x956a, 0x497a, {0x85, 0x48, 0xe0, 0x61, 0x97, 0x58, 0x8b, 0xf6 } \
|
||||
}
|
||||
|
||||
extern EFI_GUID gRecoveryOnDataCdGuid;
|
||||
extern EFI_GUID gRecoveryOnFatFloppyDiskGuid;
|
||||
extern EFI_GUID gRecoveryOnFatIdeDiskGuid;
|
||||
extern EFI_GUID gRecoveryOnFatUsbDiskGuid;
|
||||
extern EFI_GUID gRecoveryOnFatNvmeDiskGuid;
|
||||
extern EFI_GUID gRecoveryOnDataCdGuid;
|
||||
extern EFI_GUID gRecoveryOnFatFloppyDiskGuid;
|
||||
extern EFI_GUID gRecoveryOnFatIdeDiskGuid;
|
||||
extern EFI_GUID gRecoveryOnFatUsbDiskGuid;
|
||||
extern EFI_GUID gRecoveryOnFatNvmeDiskGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -16,6 +16,6 @@
|
||||
0x8f9d4825, 0x797d, 0x48fc, { 0x84, 0x71, 0x84, 0x50, 0x25, 0x79, 0x2e, 0xf6 } \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEdkiiS3SmmInitDoneGuid;
|
||||
extern EFI_GUID gEdkiiS3SmmInitDoneGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -54,4 +54,4 @@
|
||||
//
|
||||
extern EFI_GUID gS3StorageDeviceInitListGuid;
|
||||
|
||||
#endif // __S3_STORAGE_DEVICE_INIT_LIST_H__
|
||||
#endif // __S3_STORAGE_DEVICE_INIT_LIST_H__
|
||||
|
@@ -9,11 +9,11 @@
|
||||
#ifndef __SERIAL_PORT_LIB_VENDOR_H__
|
||||
#define __SERIAL_PORT_LIB_VENDOR_H__
|
||||
|
||||
#define EDKII_SERIAL_PORT_LIB_VENDOR_GUID { \
|
||||
#define EDKII_SERIAL_PORT_LIB_VENDOR_GUID {\
|
||||
0xD3987D4B, 0x971A, 0x435F, \
|
||||
{ 0x8C, 0xAF, 0x49, 0x67, 0xEB, 0x62, 0x72, 0x41 } \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEdkiiSerialPortLibVendorGuid;
|
||||
extern EFI_GUID gEdkiiSerialPortLibVendorGuid;
|
||||
|
||||
#endif // __SERIAL_PORT_LIB_VENDOR_H__
|
||||
|
@@ -20,29 +20,29 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#include <Protocol/SmmUsbDispatch2.h>
|
||||
|
||||
typedef struct {
|
||||
UINT32 Signature;
|
||||
UINT32 Length;
|
||||
UINT32 Revision;
|
||||
UINT8 Reserved[4];
|
||||
UINT32 Signature;
|
||||
UINT32 Length;
|
||||
UINT32 Revision;
|
||||
UINT8 Reserved[4];
|
||||
} SMM_CORE_DATABASE_COMMON_HEADER;
|
||||
|
||||
#define SMM_CORE_IMAGE_DATABASE_SIGNATURE SIGNATURE_32 ('S','C','I','D')
|
||||
#define SMM_CORE_IMAGE_DATABASE_REVISION 0x0001
|
||||
#define SMM_CORE_IMAGE_DATABASE_SIGNATURE SIGNATURE_32 ('S','C','I','D')
|
||||
#define SMM_CORE_IMAGE_DATABASE_REVISION 0x0001
|
||||
|
||||
typedef struct {
|
||||
SMM_CORE_DATABASE_COMMON_HEADER Header;
|
||||
EFI_GUID FileGuid;
|
||||
PHYSICAL_ADDRESS EntryPoint;
|
||||
PHYSICAL_ADDRESS ImageBase;
|
||||
UINT64 ImageSize;
|
||||
UINT32 ImageRef;
|
||||
UINT16 PdbStringOffset;
|
||||
UINT8 Reserved[2];
|
||||
//CHAR8 PdbString[];
|
||||
SMM_CORE_DATABASE_COMMON_HEADER Header;
|
||||
EFI_GUID FileGuid;
|
||||
PHYSICAL_ADDRESS EntryPoint;
|
||||
PHYSICAL_ADDRESS ImageBase;
|
||||
UINT64 ImageSize;
|
||||
UINT32 ImageRef;
|
||||
UINT16 PdbStringOffset;
|
||||
UINT8 Reserved[2];
|
||||
// CHAR8 PdbString[];
|
||||
} SMM_CORE_IMAGE_DATABASE_STRUCTURE;
|
||||
|
||||
#define SMM_CORE_SMI_DATABASE_SIGNATURE SIGNATURE_32 ('S','C','S','D')
|
||||
#define SMM_CORE_SMI_DATABASE_REVISION 0x0001
|
||||
#define SMM_CORE_SMI_DATABASE_SIGNATURE SIGNATURE_32 ('S','C','S','D')
|
||||
#define SMM_CORE_SMI_DATABASE_REVISION 0x0001
|
||||
|
||||
typedef enum {
|
||||
SmmCoreSmiHandlerCategoryRootHandler,
|
||||
@@ -68,32 +68,32 @@ typedef enum {
|
||||
// Other: GUID specific
|
||||
|
||||
typedef struct {
|
||||
EFI_USB_SMI_TYPE Type;
|
||||
UINT32 DevicePathSize;
|
||||
//UINT8 DevicePath[DevicePathSize];
|
||||
EFI_USB_SMI_TYPE Type;
|
||||
UINT32 DevicePathSize;
|
||||
// UINT8 DevicePath[DevicePathSize];
|
||||
} SMI_HANDLER_PROFILE_USB_REGISTER_CONTEXT;
|
||||
|
||||
typedef struct {
|
||||
UINT64 SwSmiInputValue;
|
||||
UINT64 SwSmiInputValue;
|
||||
} SMI_HANDLER_PROFILE_SW_REGISTER_CONTEXT;
|
||||
|
||||
typedef struct {
|
||||
UINT32 Length;
|
||||
UINT32 ImageRef;
|
||||
PHYSICAL_ADDRESS CallerAddr;
|
||||
PHYSICAL_ADDRESS Handler;
|
||||
UINT16 ContextBufferOffset;
|
||||
UINT8 Reserved[2];
|
||||
UINT32 ContextBufferSize;
|
||||
//UINT8 ContextBuffer[];
|
||||
UINT32 Length;
|
||||
UINT32 ImageRef;
|
||||
PHYSICAL_ADDRESS CallerAddr;
|
||||
PHYSICAL_ADDRESS Handler;
|
||||
UINT16 ContextBufferOffset;
|
||||
UINT8 Reserved[2];
|
||||
UINT32 ContextBufferSize;
|
||||
// UINT8 ContextBuffer[];
|
||||
} SMM_CORE_SMI_HANDLER_STRUCTURE;
|
||||
|
||||
typedef struct {
|
||||
SMM_CORE_DATABASE_COMMON_HEADER Header;
|
||||
EFI_GUID HandlerType;
|
||||
UINT32 HandlerCategory;
|
||||
UINT32 HandlerCount;
|
||||
//SMM_CORE_SMI_HANDLER_STRUCTURE Handler[HandlerCount];
|
||||
SMM_CORE_DATABASE_COMMON_HEADER Header;
|
||||
EFI_GUID HandlerType;
|
||||
UINT32 HandlerCategory;
|
||||
UINT32 HandlerCount;
|
||||
// SMM_CORE_SMI_HANDLER_STRUCTURE Handler[HandlerCount];
|
||||
} SMM_CORE_SMI_DATABASE_STRUCTURE;
|
||||
|
||||
//
|
||||
@@ -105,18 +105,16 @@ typedef struct {
|
||||
// +-------------------------------------+
|
||||
//
|
||||
|
||||
|
||||
|
||||
//
|
||||
// SMM_CORE dump command
|
||||
//
|
||||
#define SMI_HANDLER_PROFILE_COMMAND_GET_INFO 0x1
|
||||
#define SMI_HANDLER_PROFILE_COMMAND_GET_DATA_BY_OFFSET 0x2
|
||||
#define SMI_HANDLER_PROFILE_COMMAND_GET_INFO 0x1
|
||||
#define SMI_HANDLER_PROFILE_COMMAND_GET_DATA_BY_OFFSET 0x2
|
||||
|
||||
typedef struct {
|
||||
UINT32 Command;
|
||||
UINT32 DataLength;
|
||||
UINT64 ReturnStatus;
|
||||
UINT32 Command;
|
||||
UINT32 DataLength;
|
||||
UINT64 ReturnStatus;
|
||||
} SMI_HANDLER_PROFILE_PARAMETER_HEADER;
|
||||
|
||||
typedef struct {
|
||||
@@ -139,11 +137,11 @@ typedef struct {
|
||||
UINT64 DataOffset;
|
||||
} SMI_HANDLER_PROFILE_PARAMETER_GET_DATA_BY_OFFSET;
|
||||
|
||||
#define SMI_HANDLER_PROFILE_GUID {0x49174342, 0x7108, 0x409b, {0x8b, 0xbe, 0x65, 0xfd, 0xa8, 0x53, 0x89, 0xf5}}
|
||||
#define SMI_HANDLER_PROFILE_GUID {0x49174342, 0x7108, 0x409b, {0x8b, 0xbe, 0x65, 0xfd, 0xa8, 0x53, 0x89, 0xf5}}
|
||||
|
||||
extern EFI_GUID gSmiHandlerProfileGuid;
|
||||
extern EFI_GUID gSmiHandlerProfileGuid;
|
||||
|
||||
typedef struct _SMI_HANDLER_PROFILE_PROTOCOL SMI_HANDLER_PROFILE_PROTOCOL;
|
||||
typedef struct _SMI_HANDLER_PROFILE_PROTOCOL SMI_HANDLER_PROFILE_PROTOCOL;
|
||||
|
||||
/**
|
||||
This function is called by SmmChildDispatcher module to report
|
||||
@@ -167,7 +165,7 @@ typedef struct _SMI_HANDLER_PROFILE_PROTOCOL SMI_HANDLER_PROFILE_PROTOCOL;
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *SMI_HANDLER_PROFILE_REGISTER_HANDLER) (
|
||||
(EFIAPI *SMI_HANDLER_PROFILE_REGISTER_HANDLER)(
|
||||
IN SMI_HANDLER_PROFILE_PROTOCOL *This,
|
||||
IN EFI_GUID *HandlerGuid,
|
||||
IN EFI_SMM_HANDLER_ENTRY_POINT2 Handler,
|
||||
@@ -195,7 +193,7 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *SMI_HANDLER_PROFILE_UNREGISTER_HANDLER) (
|
||||
(EFIAPI *SMI_HANDLER_PROFILE_UNREGISTER_HANDLER)(
|
||||
IN SMI_HANDLER_PROFILE_PROTOCOL *This,
|
||||
IN EFI_GUID *HandlerGuid,
|
||||
IN EFI_SMM_HANDLER_ENTRY_POINT2 Handler,
|
||||
@@ -204,8 +202,8 @@ EFI_STATUS
|
||||
);
|
||||
|
||||
struct _SMI_HANDLER_PROFILE_PROTOCOL {
|
||||
SMI_HANDLER_PROFILE_REGISTER_HANDLER RegisterHandler;
|
||||
SMI_HANDLER_PROFILE_UNREGISTER_HANDLER UnregisterHandler;
|
||||
SMI_HANDLER_PROFILE_REGISTER_HANDLER RegisterHandler;
|
||||
SMI_HANDLER_PROFILE_UNREGISTER_HANDLER UnregisterHandler;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@@ -17,50 +17,50 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
// Below data structure is used for communication between PEI/DXE to SMM.
|
||||
//
|
||||
|
||||
#define EFI_SMM_LOCK_BOX_COMMAND_SAVE 0x1
|
||||
#define EFI_SMM_LOCK_BOX_COMMAND_UPDATE 0x2
|
||||
#define EFI_SMM_LOCK_BOX_COMMAND_RESTORE 0x3
|
||||
#define EFI_SMM_LOCK_BOX_COMMAND_SET_ATTRIBUTES 0x4
|
||||
#define EFI_SMM_LOCK_BOX_COMMAND_RESTORE_ALL_IN_PLACE 0x5
|
||||
#define EFI_SMM_LOCK_BOX_COMMAND_SAVE 0x1
|
||||
#define EFI_SMM_LOCK_BOX_COMMAND_UPDATE 0x2
|
||||
#define EFI_SMM_LOCK_BOX_COMMAND_RESTORE 0x3
|
||||
#define EFI_SMM_LOCK_BOX_COMMAND_SET_ATTRIBUTES 0x4
|
||||
#define EFI_SMM_LOCK_BOX_COMMAND_RESTORE_ALL_IN_PLACE 0x5
|
||||
|
||||
typedef struct {
|
||||
UINT32 Command;
|
||||
UINT32 DataLength;
|
||||
UINT64 ReturnStatus;
|
||||
UINT32 Command;
|
||||
UINT32 DataLength;
|
||||
UINT64 ReturnStatus;
|
||||
} EFI_SMM_LOCK_BOX_PARAMETER_HEADER;
|
||||
|
||||
typedef struct {
|
||||
EFI_SMM_LOCK_BOX_PARAMETER_HEADER Header;
|
||||
GUID Guid;
|
||||
PHYSICAL_ADDRESS Buffer;
|
||||
UINT64 Length;
|
||||
EFI_SMM_LOCK_BOX_PARAMETER_HEADER Header;
|
||||
GUID Guid;
|
||||
PHYSICAL_ADDRESS Buffer;
|
||||
UINT64 Length;
|
||||
} EFI_SMM_LOCK_BOX_PARAMETER_SAVE;
|
||||
|
||||
typedef struct {
|
||||
EFI_SMM_LOCK_BOX_PARAMETER_HEADER Header;
|
||||
GUID Guid;
|
||||
UINT64 Offset;
|
||||
PHYSICAL_ADDRESS Buffer;
|
||||
UINT64 Length;
|
||||
EFI_SMM_LOCK_BOX_PARAMETER_HEADER Header;
|
||||
GUID Guid;
|
||||
UINT64 Offset;
|
||||
PHYSICAL_ADDRESS Buffer;
|
||||
UINT64 Length;
|
||||
} EFI_SMM_LOCK_BOX_PARAMETER_UPDATE;
|
||||
|
||||
typedef struct {
|
||||
EFI_SMM_LOCK_BOX_PARAMETER_HEADER Header;
|
||||
GUID Guid;
|
||||
PHYSICAL_ADDRESS Buffer;
|
||||
UINT64 Length;
|
||||
EFI_SMM_LOCK_BOX_PARAMETER_HEADER Header;
|
||||
GUID Guid;
|
||||
PHYSICAL_ADDRESS Buffer;
|
||||
UINT64 Length;
|
||||
} EFI_SMM_LOCK_BOX_PARAMETER_RESTORE;
|
||||
|
||||
typedef struct {
|
||||
EFI_SMM_LOCK_BOX_PARAMETER_HEADER Header;
|
||||
GUID Guid;
|
||||
UINT64 Attributes;
|
||||
EFI_SMM_LOCK_BOX_PARAMETER_HEADER Header;
|
||||
GUID Guid;
|
||||
UINT64 Attributes;
|
||||
} EFI_SMM_LOCK_BOX_PARAMETER_SET_ATTRIBUTES;
|
||||
|
||||
typedef struct {
|
||||
EFI_SMM_LOCK_BOX_PARAMETER_HEADER Header;
|
||||
EFI_SMM_LOCK_BOX_PARAMETER_HEADER Header;
|
||||
} EFI_SMM_LOCK_BOX_PARAMETER_RESTORE_ALL_IN_PLACE;
|
||||
|
||||
extern EFI_GUID gEfiSmmLockBoxCommunicationGuid;
|
||||
extern EFI_GUID gEfiSmmLockBoxCommunicationGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -15,7 +15,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#define EFI_SMM_VARIABLE_WRITE_GUID \
|
||||
{ 0x93ba1826, 0xdffb, 0x45dd, { 0x82, 0xa7, 0xe7, 0xdc, 0xaa, 0x3b, 0xbd, 0xf3 } }
|
||||
|
||||
extern EFI_GUID gSmmVariableWriteGuid;
|
||||
extern EFI_GUID gSmmVariableWriteGuid;
|
||||
|
||||
//
|
||||
// This structure is used for SMM variable. the collected statistics data is saved in SMRAM. It can be got from
|
||||
@@ -23,15 +23,15 @@ extern EFI_GUID gSmmVariableWriteGuid;
|
||||
// EFI_MM_COMMUNICATE_HEADER + SMM_VARIABLE_COMMUNICATE_HEADER + payload.
|
||||
//
|
||||
typedef struct {
|
||||
UINTN Function;
|
||||
EFI_STATUS ReturnStatus;
|
||||
UINT8 Data[1];
|
||||
UINTN Function;
|
||||
EFI_STATUS ReturnStatus;
|
||||
UINT8 Data[1];
|
||||
} SMM_VARIABLE_COMMUNICATE_HEADER;
|
||||
|
||||
//
|
||||
// The payload for this function is SMM_VARIABLE_COMMUNICATE_ACCESS_VARIABLE.
|
||||
//
|
||||
#define SMM_VARIABLE_FUNCTION_GET_VARIABLE 1
|
||||
#define SMM_VARIABLE_FUNCTION_GET_VARIABLE 1
|
||||
//
|
||||
// The payload for this function is SMM_VARIABLE_COMMUNICATE_GET_NEXT_VARIABLE_NAME.
|
||||
//
|
||||
@@ -39,44 +39,44 @@ typedef struct {
|
||||
//
|
||||
// The payload for this function is SMM_VARIABLE_COMMUNICATE_ACCESS_VARIABLE.
|
||||
//
|
||||
#define SMM_VARIABLE_FUNCTION_SET_VARIABLE 3
|
||||
#define SMM_VARIABLE_FUNCTION_SET_VARIABLE 3
|
||||
//
|
||||
// The payload for this function is SMM_VARIABLE_COMMUNICATE_QUERY_VARIABLE_INFO.
|
||||
//
|
||||
#define SMM_VARIABLE_FUNCTION_QUERY_VARIABLE_INFO 4
|
||||
#define SMM_VARIABLE_FUNCTION_QUERY_VARIABLE_INFO 4
|
||||
//
|
||||
// It is a notify event, no extra payload for this function.
|
||||
//
|
||||
#define SMM_VARIABLE_FUNCTION_READY_TO_BOOT 5
|
||||
#define SMM_VARIABLE_FUNCTION_READY_TO_BOOT 5
|
||||
//
|
||||
// It is a notify event, no extra payload for this function.
|
||||
//
|
||||
#define SMM_VARIABLE_FUNCTION_EXIT_BOOT_SERVICE 6
|
||||
#define SMM_VARIABLE_FUNCTION_EXIT_BOOT_SERVICE 6
|
||||
//
|
||||
// The payload for this function is VARIABLE_INFO_ENTRY. The GUID in EFI_MM_COMMUNICATE_HEADER
|
||||
// is gEfiSmmVariableProtocolGuid.
|
||||
//
|
||||
#define SMM_VARIABLE_FUNCTION_GET_STATISTICS 7
|
||||
#define SMM_VARIABLE_FUNCTION_GET_STATISTICS 7
|
||||
//
|
||||
// The payload for this function is SMM_VARIABLE_COMMUNICATE_LOCK_VARIABLE
|
||||
//
|
||||
#define SMM_VARIABLE_FUNCTION_LOCK_VARIABLE 8
|
||||
#define SMM_VARIABLE_FUNCTION_LOCK_VARIABLE 8
|
||||
|
||||
#define SMM_VARIABLE_FUNCTION_VAR_CHECK_VARIABLE_PROPERTY_SET 9
|
||||
|
||||
#define SMM_VARIABLE_FUNCTION_VAR_CHECK_VARIABLE_PROPERTY_GET 10
|
||||
|
||||
#define SMM_VARIABLE_FUNCTION_GET_PAYLOAD_SIZE 11
|
||||
#define SMM_VARIABLE_FUNCTION_GET_PAYLOAD_SIZE 11
|
||||
//
|
||||
// The payload for this function is SMM_VARIABLE_COMMUNICATE_RUNTIME_VARIABLE_CACHE_CONTEXT
|
||||
//
|
||||
#define SMM_VARIABLE_FUNCTION_INIT_RUNTIME_VARIABLE_CACHE_CONTEXT 12
|
||||
#define SMM_VARIABLE_FUNCTION_INIT_RUNTIME_VARIABLE_CACHE_CONTEXT 12
|
||||
|
||||
#define SMM_VARIABLE_FUNCTION_SYNC_RUNTIME_CACHE 13
|
||||
#define SMM_VARIABLE_FUNCTION_SYNC_RUNTIME_CACHE 13
|
||||
//
|
||||
// The payload for this function is SMM_VARIABLE_COMMUNICATE_GET_RUNTIME_CACHE_INFO
|
||||
//
|
||||
#define SMM_VARIABLE_FUNCTION_GET_RUNTIME_CACHE_INFO 14
|
||||
#define SMM_VARIABLE_FUNCTION_GET_RUNTIME_CACHE_INFO 14
|
||||
|
||||
///
|
||||
/// Size of SMM communicate header, without including the payload.
|
||||
@@ -112,39 +112,39 @@ typedef struct {
|
||||
/// This structure is used to communicate with SMI handler by QueryVariableInfo.
|
||||
///
|
||||
typedef struct {
|
||||
UINT64 MaximumVariableStorageSize;
|
||||
UINT64 RemainingVariableStorageSize;
|
||||
UINT64 MaximumVariableSize;
|
||||
UINT32 Attributes;
|
||||
UINT64 MaximumVariableStorageSize;
|
||||
UINT64 RemainingVariableStorageSize;
|
||||
UINT64 MaximumVariableSize;
|
||||
UINT32 Attributes;
|
||||
} SMM_VARIABLE_COMMUNICATE_QUERY_VARIABLE_INFO;
|
||||
|
||||
typedef SMM_VARIABLE_COMMUNICATE_GET_NEXT_VARIABLE_NAME SMM_VARIABLE_COMMUNICATE_LOCK_VARIABLE;
|
||||
|
||||
typedef struct {
|
||||
EFI_GUID Guid;
|
||||
UINTN NameSize;
|
||||
VAR_CHECK_VARIABLE_PROPERTY VariableProperty;
|
||||
CHAR16 Name[1];
|
||||
EFI_GUID Guid;
|
||||
UINTN NameSize;
|
||||
VAR_CHECK_VARIABLE_PROPERTY VariableProperty;
|
||||
CHAR16 Name[1];
|
||||
} SMM_VARIABLE_COMMUNICATE_VAR_CHECK_VARIABLE_PROPERTY;
|
||||
|
||||
typedef struct {
|
||||
UINTN VariablePayloadSize;
|
||||
UINTN VariablePayloadSize;
|
||||
} SMM_VARIABLE_COMMUNICATE_GET_PAYLOAD_SIZE;
|
||||
|
||||
typedef struct {
|
||||
BOOLEAN *ReadLock;
|
||||
BOOLEAN *PendingUpdate;
|
||||
BOOLEAN *HobFlushComplete;
|
||||
VARIABLE_STORE_HEADER *RuntimeHobCache;
|
||||
VARIABLE_STORE_HEADER *RuntimeNvCache;
|
||||
VARIABLE_STORE_HEADER *RuntimeVolatileCache;
|
||||
BOOLEAN *ReadLock;
|
||||
BOOLEAN *PendingUpdate;
|
||||
BOOLEAN *HobFlushComplete;
|
||||
VARIABLE_STORE_HEADER *RuntimeHobCache;
|
||||
VARIABLE_STORE_HEADER *RuntimeNvCache;
|
||||
VARIABLE_STORE_HEADER *RuntimeVolatileCache;
|
||||
} SMM_VARIABLE_COMMUNICATE_RUNTIME_VARIABLE_CACHE_CONTEXT;
|
||||
|
||||
typedef struct {
|
||||
UINTN TotalHobStorageSize;
|
||||
UINTN TotalNvStorageSize;
|
||||
UINTN TotalVolatileStorageSize;
|
||||
BOOLEAN AuthenticatedVariableUsage;
|
||||
UINTN TotalHobStorageSize;
|
||||
UINTN TotalNvStorageSize;
|
||||
UINTN TotalVolatileStorageSize;
|
||||
BOOLEAN AuthenticatedVariableUsage;
|
||||
} SMM_VARIABLE_COMMUNICATE_GET_RUNTIME_CACHE_INFO;
|
||||
|
||||
#endif // _SMM_VARIABLE_COMMON_H_
|
||||
|
@@ -13,6 +13,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#define EFI_STANDARD_ERROR_DEVICE_GUID \
|
||||
{ 0xd3b36f2d, 0xd551, 0x11d4, {0x9a, 0x46, 0x0, 0x90, 0x27, 0x3f, 0xc1, 0x4d } }
|
||||
|
||||
extern EFI_GUID gEfiStandardErrorDeviceGuid;
|
||||
extern EFI_GUID gEfiStandardErrorDeviceGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -15,6 +15,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
0xe701458c, 0x4900, 0x4ca5, {0xb7, 0x72, 0x3d, 0x37, 0x94, 0x9f, 0x79, 0x27} \
|
||||
}
|
||||
|
||||
extern EFI_GUID gStatusCodeCallbackGuid;
|
||||
extern EFI_GUID gStatusCodeCallbackGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -21,7 +21,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
///
|
||||
/// The maximum size of an EFI_DEBUG_INFO structure.
|
||||
///
|
||||
#define EFI_STATUS_CODE_DATA_MAX_SIZE 200
|
||||
#define EFI_STATUS_CODE_DATA_MAX_SIZE 200
|
||||
|
||||
///
|
||||
/// This structure contains the ErrorLevel passed into the DEBUG() macro, followed
|
||||
@@ -35,9 +35,9 @@ typedef struct {
|
||||
///
|
||||
/// The debug error level passed into a DEBUG() macro.
|
||||
///
|
||||
UINT32 ErrorLevel;
|
||||
UINT32 ErrorLevel;
|
||||
} EFI_DEBUG_INFO;
|
||||
|
||||
extern EFI_GUID gEfiStatusCodeDataTypeDebugGuid;
|
||||
extern EFI_GUID gEfiStatusCodeDataTypeDebugGuid;
|
||||
|
||||
#endif // _STATUS_CODE_DATA_TYPE_DEBUG_H_
|
||||
|
@@ -20,15 +20,15 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
}
|
||||
|
||||
typedef struct {
|
||||
EFI_GUID Guid;
|
||||
UINTN NameSize;
|
||||
UINTN DataSize;
|
||||
EFI_STATUS SetStatus;
|
||||
UINT32 Attributes;
|
||||
EFI_GUID Guid;
|
||||
UINTN NameSize;
|
||||
UINTN DataSize;
|
||||
EFI_STATUS SetStatus;
|
||||
UINT32 Attributes;
|
||||
// CHAR16 Name[];
|
||||
// UINT8 Data[];
|
||||
} EDKII_SET_VARIABLE_STATUS;
|
||||
|
||||
extern EFI_GUID gEdkiiStatusCodeDataTypeVariableGuid;
|
||||
extern EFI_GUID gEdkiiStatusCodeDataTypeVariableGuid;
|
||||
|
||||
#endif // _STATUS_CODE_DATA_TYPE_VARIABLE_H_
|
||||
|
@@ -18,11 +18,11 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#define EDKII_WORKING_BLOCK_SIGNATURE_GUID \
|
||||
{0x9e58292b, 0x7c68, 0x497d, {0xa0, 0xce, 0x65, 0x0, 0xfd, 0x9f, 0x1b, 0x95} }
|
||||
|
||||
extern EFI_GUID gEfiSystemNvDataFvGuid;
|
||||
extern EFI_GUID gEdkiiWorkingBlockSignatureGuid;
|
||||
extern EFI_GUID gEfiSystemNvDataFvGuid;
|
||||
extern EFI_GUID gEdkiiWorkingBlockSignatureGuid;
|
||||
|
||||
#define WORKING_BLOCK_VALID 0x1
|
||||
#define WORKING_BLOCK_INVALID 0x2
|
||||
#define WORKING_BLOCK_VALID 0x1
|
||||
#define WORKING_BLOCK_INVALID 0x2
|
||||
|
||||
///
|
||||
/// The EDKII Fault tolerant working block header.
|
||||
@@ -34,22 +34,22 @@ typedef struct {
|
||||
/// Its value has be updated from gEfiSystemNvDataFvGuid to gEdkiiWorkingBlockSignatureGuid,
|
||||
/// because its write queue data format has been updated to support the crossing archs.
|
||||
///
|
||||
EFI_GUID Signature;
|
||||
EFI_GUID Signature;
|
||||
///
|
||||
/// 32bit CRC calculated for this header.
|
||||
///
|
||||
UINT32 Crc;
|
||||
UINT32 Crc;
|
||||
///
|
||||
/// Working block valid bit.
|
||||
///
|
||||
UINT8 WorkingBlockValid : 1;
|
||||
UINT8 WorkingBlockInvalid : 1;
|
||||
UINT8 Reserved : 6;
|
||||
UINT8 Reserved3[3];
|
||||
UINT8 WorkingBlockValid : 1;
|
||||
UINT8 WorkingBlockInvalid : 1;
|
||||
UINT8 Reserved : 6;
|
||||
UINT8 Reserved3[3];
|
||||
///
|
||||
/// Total size of the following write queue range.
|
||||
///
|
||||
UINT64 WriteQueueSize;
|
||||
UINT64 WriteQueueSize;
|
||||
///
|
||||
/// Write Queue data.
|
||||
///
|
||||
@@ -61,37 +61,37 @@ typedef struct {
|
||||
///
|
||||
} EFI_FAULT_TOLERANT_WORKING_BLOCK_HEADER;
|
||||
|
||||
#define FTW_VALID_STATE 0
|
||||
#define FTW_INVALID_STATE 1
|
||||
#define FTW_VALID_STATE 0
|
||||
#define FTW_INVALID_STATE 1
|
||||
|
||||
//
|
||||
// EFI Fault tolerant block update write queue entry.
|
||||
//
|
||||
typedef struct {
|
||||
UINT8 HeaderAllocated : 1;
|
||||
UINT8 WritesAllocated : 1;
|
||||
UINT8 Complete : 1;
|
||||
UINT8 Reserved : 5;
|
||||
EFI_GUID CallerId;
|
||||
UINT64 NumberOfWrites;
|
||||
UINT64 PrivateDataSize;
|
||||
UINT8 HeaderAllocated : 1;
|
||||
UINT8 WritesAllocated : 1;
|
||||
UINT8 Complete : 1;
|
||||
UINT8 Reserved : 5;
|
||||
EFI_GUID CallerId;
|
||||
UINT64 NumberOfWrites;
|
||||
UINT64 PrivateDataSize;
|
||||
} EFI_FAULT_TOLERANT_WRITE_HEADER;
|
||||
|
||||
//
|
||||
// EFI Fault tolerant block update write queue record.
|
||||
//
|
||||
typedef struct {
|
||||
UINT8 BootBlockUpdate : 1;
|
||||
UINT8 SpareComplete : 1;
|
||||
UINT8 DestinationComplete : 1;
|
||||
UINT8 Reserved : 5;
|
||||
EFI_LBA Lba;
|
||||
UINT64 Offset;
|
||||
UINT64 Length;
|
||||
UINT8 BootBlockUpdate : 1;
|
||||
UINT8 SpareComplete : 1;
|
||||
UINT8 DestinationComplete : 1;
|
||||
UINT8 Reserved : 5;
|
||||
EFI_LBA Lba;
|
||||
UINT64 Offset;
|
||||
UINT64 Length;
|
||||
//
|
||||
// Relative offset to spare block.
|
||||
//
|
||||
INT64 RelativeOffset;
|
||||
INT64 RelativeOffset;
|
||||
//
|
||||
// UINT8 PrivateData[PrivateDataSize]
|
||||
//
|
||||
|
@@ -27,10 +27,10 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#define EDKII_SCO_TERM_GUID \
|
||||
{0xfc7dd6e0, 0x813c, 0x434d, {0xb4, 0xda, 0x3b, 0xd6, 0x49, 0xe9, 0xe1, 0x5a } }
|
||||
|
||||
extern EFI_GUID gEfiTtyTermGuid;
|
||||
extern EFI_GUID gEdkiiLinuxTermGuid;
|
||||
extern EFI_GUID gEdkiiXtermR6Guid;
|
||||
extern EFI_GUID gEdkiiVT400Guid;
|
||||
extern EFI_GUID gEdkiiSCOTermGuid;
|
||||
extern EFI_GUID gEfiTtyTermGuid;
|
||||
extern EFI_GUID gEdkiiLinuxTermGuid;
|
||||
extern EFI_GUID gEdkiiXtermR6Guid;
|
||||
extern EFI_GUID gEdkiiVT400Guid;
|
||||
extern EFI_GUID gEdkiiSCOTermGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -15,21 +15,21 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#pragma pack(push, 1)
|
||||
|
||||
typedef struct _VAR_CHECK_POLICY_COMM_HEADER {
|
||||
UINT32 Signature;
|
||||
UINT32 Revision;
|
||||
UINT32 Command;
|
||||
EFI_STATUS Result;
|
||||
UINT32 Signature;
|
||||
UINT32 Revision;
|
||||
UINT32 Command;
|
||||
EFI_STATUS Result;
|
||||
} VAR_CHECK_POLICY_COMM_HEADER;
|
||||
|
||||
typedef struct _VAR_CHECK_POLICY_COMM_IS_ENABLED_PARAMS {
|
||||
BOOLEAN State;
|
||||
BOOLEAN State;
|
||||
} VAR_CHECK_POLICY_COMM_IS_ENABLED_PARAMS;
|
||||
|
||||
typedef struct _VAR_CHECK_POLICY_COMM_DUMP_PARAMS {
|
||||
UINT32 PageRequested;
|
||||
UINT32 TotalSize;
|
||||
UINT32 PageSize;
|
||||
BOOLEAN HasMore;
|
||||
UINT32 PageRequested;
|
||||
UINT32 TotalSize;
|
||||
UINT32 PageSize;
|
||||
BOOLEAN HasMore;
|
||||
} VAR_CHECK_POLICY_COMM_DUMP_PARAMS;
|
||||
|
||||
#pragma pack(pop)
|
||||
@@ -45,10 +45,10 @@ STATIC_ASSERT (
|
||||
"an integer underflow may have occurred calculating VAR_CHECK_POLICY_MM_DUMP_BUFFER_SIZE"
|
||||
);
|
||||
|
||||
#define VAR_CHECK_POLICY_COMMAND_DISABLE 0x0001
|
||||
#define VAR_CHECK_POLICY_COMMAND_IS_ENABLED 0x0002
|
||||
#define VAR_CHECK_POLICY_COMMAND_REGISTER 0x0003
|
||||
#define VAR_CHECK_POLICY_COMMAND_DUMP 0x0004
|
||||
#define VAR_CHECK_POLICY_COMMAND_LOCK 0x0005
|
||||
#define VAR_CHECK_POLICY_COMMAND_DISABLE 0x0001
|
||||
#define VAR_CHECK_POLICY_COMMAND_IS_ENABLED 0x0002
|
||||
#define VAR_CHECK_POLICY_COMMAND_REGISTER 0x0003
|
||||
#define VAR_CHECK_POLICY_COMMAND_DUMP 0x0004
|
||||
#define VAR_CHECK_POLICY_COMMAND_LOCK 0x0005
|
||||
|
||||
#endif // _VAR_CHECK_POLICY_MMI_COMMON_H_
|
||||
|
@@ -17,19 +17,18 @@
|
||||
//
|
||||
// If the variable is not present, it has the same meaning with VAR_ERROR_FLAG_NO_ERROR.
|
||||
//
|
||||
#define VAR_ERROR_FLAG_NAME L"VarErrorFlag"
|
||||
#define VAR_ERROR_FLAG_NAME L"VarErrorFlag"
|
||||
|
||||
#define VAR_ERROR_FLAG_NO_ERROR 0xFF // 1111-1111
|
||||
#define VAR_ERROR_FLAG_SYSTEM_ERROR 0xEF // 1110-1111
|
||||
#define VAR_ERROR_FLAG_USER_ERROR 0xFE // 1111-1110
|
||||
#define VAR_ERROR_FLAG_NO_ERROR 0xFF // 1111-1111
|
||||
#define VAR_ERROR_FLAG_SYSTEM_ERROR 0xEF // 1110-1111
|
||||
#define VAR_ERROR_FLAG_USER_ERROR 0xFE // 1111-1110
|
||||
|
||||
typedef UINT8 VAR_ERROR_FLAG;
|
||||
|
||||
#define EDKII_VAR_ERROR_FLAG_GUID { \
|
||||
#define EDKII_VAR_ERROR_FLAG_GUID {\
|
||||
0x4b37fe8, 0xf6ae, 0x480b, { 0xbd, 0xd5, 0x37, 0xd9, 0x8c, 0x5e, 0x89, 0xaa } \
|
||||
};
|
||||
|
||||
extern EFI_GUID gEdkiiVarErrorFlagGuid;
|
||||
extern EFI_GUID gEdkiiVarErrorFlagGuid;
|
||||
|
||||
#endif
|
||||
|
||||
|
@@ -16,22 +16,22 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#define EFI_AUTHENTICATED_VARIABLE_GUID \
|
||||
{ 0xaaf32c78, 0x947b, 0x439a, { 0xa1, 0x80, 0x2e, 0x14, 0x4e, 0xc3, 0x77, 0x92 } }
|
||||
|
||||
extern EFI_GUID gEfiVariableGuid;
|
||||
extern EFI_GUID gEfiAuthenticatedVariableGuid;
|
||||
extern EFI_GUID gEfiVariableGuid;
|
||||
extern EFI_GUID gEfiAuthenticatedVariableGuid;
|
||||
|
||||
///
|
||||
/// Alignment of variable name and data, according to the architecture:
|
||||
/// * For IA-32 and Intel(R) 64 architectures: 1.
|
||||
///
|
||||
#define ALIGNMENT 1
|
||||
#define ALIGNMENT 1
|
||||
|
||||
//
|
||||
// GET_PAD_SIZE calculates the miminal pad bytes needed to make the current pad size satisfy the alignment requirement.
|
||||
//
|
||||
#if (ALIGNMENT == 1)
|
||||
#define GET_PAD_SIZE(a) (0)
|
||||
#define GET_PAD_SIZE(a) (0)
|
||||
#else
|
||||
#define GET_PAD_SIZE(a) (((~a) + 1) & (ALIGNMENT - 1))
|
||||
#define GET_PAD_SIZE(a) (((~a) + 1) & (ALIGNMENT - 1))
|
||||
#endif
|
||||
|
||||
///
|
||||
@@ -52,14 +52,14 @@ typedef enum {
|
||||
|
||||
#pragma pack(1)
|
||||
|
||||
#define VARIABLE_STORE_SIGNATURE EFI_VARIABLE_GUID
|
||||
#define VARIABLE_STORE_SIGNATURE EFI_VARIABLE_GUID
|
||||
#define AUTHENTICATED_VARIABLE_STORE_SIGNATURE EFI_AUTHENTICATED_VARIABLE_GUID
|
||||
|
||||
///
|
||||
/// Variable Store Header Format and State.
|
||||
///
|
||||
#define VARIABLE_STORE_FORMATTED 0x5a
|
||||
#define VARIABLE_STORE_HEALTHY 0xfe
|
||||
#define VARIABLE_STORE_FORMATTED 0x5a
|
||||
#define VARIABLE_STORE_HEALTHY 0xfe
|
||||
|
||||
///
|
||||
/// Variable Store region header.
|
||||
@@ -68,54 +68,54 @@ typedef struct {
|
||||
///
|
||||
/// Variable store region signature.
|
||||
///
|
||||
EFI_GUID Signature;
|
||||
EFI_GUID Signature;
|
||||
///
|
||||
/// Size of entire variable store,
|
||||
/// including size of variable store header but not including the size of FvHeader.
|
||||
///
|
||||
UINT32 Size;
|
||||
UINT32 Size;
|
||||
///
|
||||
/// Variable region format state.
|
||||
///
|
||||
UINT8 Format;
|
||||
UINT8 Format;
|
||||
///
|
||||
/// Variable region healthy state.
|
||||
///
|
||||
UINT8 State;
|
||||
UINT16 Reserved;
|
||||
UINT32 Reserved1;
|
||||
UINT8 State;
|
||||
UINT16 Reserved;
|
||||
UINT32 Reserved1;
|
||||
} VARIABLE_STORE_HEADER;
|
||||
|
||||
///
|
||||
/// Variable data start flag.
|
||||
///
|
||||
#define VARIABLE_DATA 0x55AA
|
||||
#define VARIABLE_DATA 0x55AA
|
||||
|
||||
///
|
||||
/// Variable State flags.
|
||||
///
|
||||
#define VAR_IN_DELETED_TRANSITION 0xfe ///< Variable is in obsolete transition.
|
||||
#define VAR_DELETED 0xfd ///< Variable is obsolete.
|
||||
#define VAR_HEADER_VALID_ONLY 0x7f ///< Variable header has been valid.
|
||||
#define VAR_ADDED 0x3f ///< Variable has been completely added.
|
||||
#define VAR_IN_DELETED_TRANSITION 0xfe ///< Variable is in obsolete transition.
|
||||
#define VAR_DELETED 0xfd ///< Variable is obsolete.
|
||||
#define VAR_HEADER_VALID_ONLY 0x7f ///< Variable header has been valid.
|
||||
#define VAR_ADDED 0x3f ///< Variable has been completely added.
|
||||
|
||||
///
|
||||
/// Variable Attribute combinations.
|
||||
///
|
||||
#define VARIABLE_ATTRIBUTE_NV_BS (EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS)
|
||||
#define VARIABLE_ATTRIBUTE_BS_RT (EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS)
|
||||
#define VARIABLE_ATTRIBUTE_BS_RT_AT (VARIABLE_ATTRIBUTE_BS_RT | EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS)
|
||||
#define VARIABLE_ATTRIBUTE_NV_BS_RT (VARIABLE_ATTRIBUTE_BS_RT | EFI_VARIABLE_NON_VOLATILE)
|
||||
#define VARIABLE_ATTRIBUTE_NV_BS_RT_HR (VARIABLE_ATTRIBUTE_NV_BS_RT | EFI_VARIABLE_HARDWARE_ERROR_RECORD)
|
||||
#define VARIABLE_ATTRIBUTE_NV_BS_RT_AT (VARIABLE_ATTRIBUTE_NV_BS_RT | EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS)
|
||||
#define VARIABLE_ATTRIBUTE_AT EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS
|
||||
#define VARIABLE_ATTRIBUTE_NV_BS_RT_HR_AT (VARIABLE_ATTRIBUTE_NV_BS_RT_HR | VARIABLE_ATTRIBUTE_AT)
|
||||
#define VARIABLE_ATTRIBUTE_NV_BS (EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS)
|
||||
#define VARIABLE_ATTRIBUTE_BS_RT (EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS)
|
||||
#define VARIABLE_ATTRIBUTE_BS_RT_AT (VARIABLE_ATTRIBUTE_BS_RT | EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS)
|
||||
#define VARIABLE_ATTRIBUTE_NV_BS_RT (VARIABLE_ATTRIBUTE_BS_RT | EFI_VARIABLE_NON_VOLATILE)
|
||||
#define VARIABLE_ATTRIBUTE_NV_BS_RT_HR (VARIABLE_ATTRIBUTE_NV_BS_RT | EFI_VARIABLE_HARDWARE_ERROR_RECORD)
|
||||
#define VARIABLE_ATTRIBUTE_NV_BS_RT_AT (VARIABLE_ATTRIBUTE_NV_BS_RT | EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS)
|
||||
#define VARIABLE_ATTRIBUTE_AT EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS
|
||||
#define VARIABLE_ATTRIBUTE_NV_BS_RT_HR_AT (VARIABLE_ATTRIBUTE_NV_BS_RT_HR | VARIABLE_ATTRIBUTE_AT)
|
||||
///
|
||||
/// EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS is deprecated and should be considered as reserved
|
||||
///
|
||||
#define VARIABLE_ATTRIBUTE_AT_AW (EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS | EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS)
|
||||
#define VARIABLE_ATTRIBUTE_NV_BS_RT_AW (VARIABLE_ATTRIBUTE_NV_BS_RT | EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS)
|
||||
#define VARIABLE_ATTRIBUTE_NV_BS_RT_HR_AT_AW (VARIABLE_ATTRIBUTE_NV_BS_RT_HR | VARIABLE_ATTRIBUTE_AT_AW)
|
||||
#define VARIABLE_ATTRIBUTE_AT_AW (EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS | EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS)
|
||||
#define VARIABLE_ATTRIBUTE_NV_BS_RT_AW (VARIABLE_ATTRIBUTE_NV_BS_RT | EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS)
|
||||
#define VARIABLE_ATTRIBUTE_NV_BS_RT_HR_AT_AW (VARIABLE_ATTRIBUTE_NV_BS_RT_HR | VARIABLE_ATTRIBUTE_AT_AW)
|
||||
|
||||
///
|
||||
/// Single Variable Data Header Structure.
|
||||
@@ -199,7 +199,7 @@ typedef struct {
|
||||
|
||||
#pragma pack()
|
||||
|
||||
typedef struct _VARIABLE_INFO_ENTRY VARIABLE_INFO_ENTRY;
|
||||
typedef struct _VARIABLE_INFO_ENTRY VARIABLE_INFO_ENTRY;
|
||||
|
||||
///
|
||||
/// This structure contains the variable list that is put in EFI system table.
|
||||
@@ -207,15 +207,15 @@ typedef struct _VARIABLE_INFO_ENTRY VARIABLE_INFO_ENTRY;
|
||||
/// This is an optional feature to dump all used variables in shell environment.
|
||||
///
|
||||
struct _VARIABLE_INFO_ENTRY {
|
||||
VARIABLE_INFO_ENTRY *Next; ///< Pointer to next entry.
|
||||
EFI_GUID VendorGuid; ///< Guid of Variable.
|
||||
CHAR16 *Name; ///< Name of Variable.
|
||||
UINT32 Attributes; ///< Attributes of variable defined in UEFI specification.
|
||||
UINT32 ReadCount; ///< Number of times to read this variable.
|
||||
UINT32 WriteCount; ///< Number of times to write this variable.
|
||||
UINT32 DeleteCount; ///< Number of times to delete this variable.
|
||||
UINT32 CacheCount; ///< Number of times that cache hits this variable.
|
||||
BOOLEAN Volatile; ///< TRUE if volatile, FALSE if non-volatile.
|
||||
VARIABLE_INFO_ENTRY *Next; ///< Pointer to next entry.
|
||||
EFI_GUID VendorGuid; ///< Guid of Variable.
|
||||
CHAR16 *Name; ///< Name of Variable.
|
||||
UINT32 Attributes; ///< Attributes of variable defined in UEFI specification.
|
||||
UINT32 ReadCount; ///< Number of times to read this variable.
|
||||
UINT32 WriteCount; ///< Number of times to write this variable.
|
||||
UINT32 DeleteCount; ///< Number of times to delete this variable.
|
||||
UINT32 CacheCount; ///< Number of times that cache hits this variable.
|
||||
BOOLEAN Volatile; ///< TRUE if volatile, FALSE if non-volatile.
|
||||
};
|
||||
|
||||
#endif // _EFI_VARIABLE_H_
|
||||
|
@@ -11,31 +11,31 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#define __VARIABLE_INDEX_TABLE_H__
|
||||
|
||||
typedef struct {
|
||||
VARIABLE_HEADER *CurrPtr;
|
||||
VARIABLE_HEADER *EndPtr;
|
||||
VARIABLE_HEADER *StartPtr;
|
||||
VARIABLE_HEADER *CurrPtr;
|
||||
VARIABLE_HEADER *EndPtr;
|
||||
VARIABLE_HEADER *StartPtr;
|
||||
} VARIABLE_POINTER_TRACK;
|
||||
|
||||
#define VARIABLE_INDEX_TABLE_VOLUME 122
|
||||
#define VARIABLE_INDEX_TABLE_VOLUME 122
|
||||
|
||||
#define EFI_VARIABLE_INDEX_TABLE_GUID \
|
||||
{ 0x8cfdb8c8, 0xd6b2, 0x40f3, { 0x8e, 0x97, 0x02, 0x30, 0x7c, 0xc9, 0x8b, 0x7c } }
|
||||
|
||||
extern EFI_GUID gEfiVariableIndexTableGuid;
|
||||
extern EFI_GUID gEfiVariableIndexTableGuid;
|
||||
|
||||
///
|
||||
/// Use this data structure to store variable-related info, which can decrease
|
||||
/// the cost of access to NV.
|
||||
///
|
||||
typedef struct {
|
||||
UINT16 Length;
|
||||
UINT16 GoneThrough;
|
||||
VARIABLE_HEADER *EndPtr;
|
||||
VARIABLE_HEADER *StartPtr;
|
||||
UINT16 Length;
|
||||
UINT16 GoneThrough;
|
||||
VARIABLE_HEADER *EndPtr;
|
||||
VARIABLE_HEADER *StartPtr;
|
||||
///
|
||||
/// This field is used to store the distance of two neighbouring VAR_ADDED type variables.
|
||||
/// The meaning of the field is implement-dependent.
|
||||
UINT16 Index[VARIABLE_INDEX_TABLE_VOLUME];
|
||||
UINT16 Index[VARIABLE_INDEX_TABLE_VOLUME];
|
||||
} VARIABLE_INDEX_TABLE;
|
||||
|
||||
#endif // __VARIABLE_INDEX_TABLE_H__
|
||||
|
@@ -14,6 +14,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
0x0, 0x0, 0x0, {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0} \
|
||||
}
|
||||
|
||||
extern EFI_GUID gZeroGuid;
|
||||
extern EFI_GUID gZeroGuid;
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user