MdePkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the MdePkg 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
1436aea4d5
commit
2f88bd3a12
@@ -26,15 +26,15 @@
|
||||
0x8868e871, 0xe4f1, 0x11d3, {0xbc, 0x22, 0x0, 0x80, 0xc7, 0x3c, 0x88, 0x81 } \
|
||||
}
|
||||
|
||||
#define ACPI_10_TABLE_GUID ACPI_TABLE_GUID
|
||||
#define ACPI_10_TABLE_GUID ACPI_TABLE_GUID
|
||||
|
||||
//
|
||||
// ACPI 2.0 or newer tables should use EFI_ACPI_TABLE_GUID.
|
||||
//
|
||||
#define EFI_ACPI_20_TABLE_GUID EFI_ACPI_TABLE_GUID
|
||||
#define EFI_ACPI_20_TABLE_GUID EFI_ACPI_TABLE_GUID
|
||||
|
||||
extern EFI_GUID gEfiAcpiTableGuid;
|
||||
extern EFI_GUID gEfiAcpi10TableGuid;
|
||||
extern EFI_GUID gEfiAcpi20TableGuid;
|
||||
extern EFI_GUID gEfiAcpiTableGuid;
|
||||
extern EFI_GUID gEfiAcpi10TableGuid;
|
||||
extern EFI_GUID gEfiAcpi20TableGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -19,6 +19,6 @@
|
||||
0xfc510ee7, 0xffdc, 0x11d4, {0xbd, 0x41, 0x0, 0x80, 0xc7, 0x3c, 0x88, 0x81 } \
|
||||
}
|
||||
|
||||
extern EFI_GUID gAprioriGuid;
|
||||
extern EFI_GUID gAprioriGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -17,7 +17,6 @@
|
||||
#define PEI_APRIORI_FILE_NAME_GUID \
|
||||
{ 0x1b45cc0a, 0x156a, 0x428a, { 0x62, 0XAF, 0x49, 0x86, 0x4d, 0xa0, 0xe6, 0xe6 } }
|
||||
|
||||
|
||||
///
|
||||
/// This file must be of type EFI_FV_FILETYPE_FREEFORM and must
|
||||
/// contain a single section of type EFI_SECTION_RAW. For details on
|
||||
@@ -29,10 +28,9 @@ typedef struct {
|
||||
/// An array of zero or more EFI_GUID type entries that match the file names of PEIM
|
||||
/// modules in the same Firmware Volume. The maximum number of entries.
|
||||
///
|
||||
EFI_GUID FileNamesWithinVolume[1];
|
||||
EFI_GUID FileNamesWithinVolume[1];
|
||||
} PEI_APRIORI_FILE_CONTENTS;
|
||||
|
||||
extern EFI_GUID gPeiAprioriFileNameGuid;
|
||||
extern EFI_GUID gPeiAprioriFileNameGuid;
|
||||
|
||||
#endif
|
||||
|
||||
|
@@ -26,19 +26,19 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
//
|
||||
// Alignment of all BTT structures
|
||||
//
|
||||
#define EFI_BTT_ALIGNMENT 4096
|
||||
#define EFI_BTT_ALIGNMENT 4096
|
||||
|
||||
#define EFI_BTT_INFO_UNUSED_LEN 3968
|
||||
#define EFI_BTT_INFO_UNUSED_LEN 3968
|
||||
|
||||
#define EFI_BTT_INFO_BLOCK_SIG_LEN 16
|
||||
#define EFI_BTT_INFO_BLOCK_SIG_LEN 16
|
||||
|
||||
///
|
||||
/// Indicate inconsistent metadata or lost metadata due to unrecoverable media errors.
|
||||
///
|
||||
#define EFI_BTT_INFO_BLOCK_FLAGS_ERROR 0x00000001
|
||||
#define EFI_BTT_INFO_BLOCK_FLAGS_ERROR 0x00000001
|
||||
|
||||
#define EFI_BTT_INFO_BLOCK_MAJOR_VERSION 2
|
||||
#define EFI_BTT_INFO_BLOCK_MINOR_VERSION 0
|
||||
#define EFI_BTT_INFO_BLOCK_MAJOR_VERSION 2
|
||||
#define EFI_BTT_INFO_BLOCK_MINOR_VERSION 0
|
||||
|
||||
///
|
||||
/// Block Translation Table (BTT) Info Block
|
||||
@@ -48,97 +48,97 @@ typedef struct _EFI_BTT_INFO_BLOCK {
|
||||
/// Signature of the BTT Index Block data structure.
|
||||
/// Shall be "BTT_ARENA_INFO\0\0".
|
||||
///
|
||||
CHAR8 Sig[EFI_BTT_INFO_BLOCK_SIG_LEN];
|
||||
CHAR8 Sig[EFI_BTT_INFO_BLOCK_SIG_LEN];
|
||||
|
||||
///
|
||||
/// UUID identifying this BTT instance.
|
||||
///
|
||||
GUID Uuid;
|
||||
GUID Uuid;
|
||||
|
||||
///
|
||||
/// UUID of containing namespace.
|
||||
///
|
||||
GUID ParentUuid;
|
||||
GUID ParentUuid;
|
||||
|
||||
///
|
||||
/// Attributes of this BTT Info Block.
|
||||
///
|
||||
UINT32 Flags;
|
||||
UINT32 Flags;
|
||||
|
||||
///
|
||||
/// Major version number. Currently at version 2.
|
||||
///
|
||||
UINT16 Major;
|
||||
UINT16 Major;
|
||||
|
||||
///
|
||||
/// Minor version number. Currently at version 0.
|
||||
///
|
||||
UINT16 Minor;
|
||||
UINT16 Minor;
|
||||
|
||||
///
|
||||
/// Advertised LBA size in bytes. I/O requests shall be in this size chunk.
|
||||
///
|
||||
UINT32 ExternalLbaSize;
|
||||
UINT32 ExternalLbaSize;
|
||||
|
||||
///
|
||||
/// Advertised number of LBAs in this arena.
|
||||
///
|
||||
UINT32 ExternalNLba;
|
||||
UINT32 ExternalNLba;
|
||||
|
||||
///
|
||||
/// Internal LBA size shall be greater than or equal to ExternalLbaSize and shall not be smaller than 512 bytes.
|
||||
///
|
||||
UINT32 InternalLbaSize;
|
||||
UINT32 InternalLbaSize;
|
||||
|
||||
///
|
||||
/// Number of internal blocks in the arena data area.
|
||||
///
|
||||
UINT32 InternalNLba;
|
||||
UINT32 InternalNLba;
|
||||
|
||||
///
|
||||
/// Number of free blocks maintained for writes to this arena.
|
||||
///
|
||||
UINT32 NFree;
|
||||
UINT32 NFree;
|
||||
|
||||
///
|
||||
/// The size of this info block in bytes.
|
||||
///
|
||||
UINT32 InfoSize;
|
||||
UINT32 InfoSize;
|
||||
|
||||
///
|
||||
/// Offset of next arena, relative to the beginning of this arena.
|
||||
///
|
||||
UINT64 NextOff;
|
||||
UINT64 NextOff;
|
||||
|
||||
///
|
||||
/// Offset of the data area for this arena, relative to the beginning of this arena.
|
||||
///
|
||||
UINT64 DataOff;
|
||||
UINT64 DataOff;
|
||||
|
||||
///
|
||||
/// Offset of the map for this arena, relative to the beginning of this arena.
|
||||
///
|
||||
UINT64 MapOff;
|
||||
UINT64 MapOff;
|
||||
|
||||
///
|
||||
/// Offset of the flog for this arena, relative to the beginning of this arena.
|
||||
///
|
||||
UINT64 FlogOff;
|
||||
UINT64 FlogOff;
|
||||
|
||||
///
|
||||
/// Offset of the backup copy of this arena's info block, relative to the beginning of this arena.
|
||||
///
|
||||
UINT64 InfoOff;
|
||||
UINT64 InfoOff;
|
||||
|
||||
///
|
||||
/// Shall be zero.
|
||||
///
|
||||
CHAR8 Unused[EFI_BTT_INFO_UNUSED_LEN];
|
||||
CHAR8 Unused[EFI_BTT_INFO_UNUSED_LEN];
|
||||
|
||||
///
|
||||
/// 64-bit Fletcher64 checksum of all fields.
|
||||
///
|
||||
UINT64 Checksum;
|
||||
UINT64 Checksum;
|
||||
} EFI_BTT_INFO_BLOCK;
|
||||
|
||||
///
|
||||
@@ -148,25 +148,25 @@ typedef struct _EFI_BTT_MAP_ENTRY {
|
||||
///
|
||||
/// Post-map LBA number (block number in this arena's data area)
|
||||
///
|
||||
UINT32 PostMapLba : 30;
|
||||
UINT32 PostMapLba : 30;
|
||||
|
||||
///
|
||||
/// When set and Zero is not set, reads on this block return an error.
|
||||
/// When set and Zero is set, indicate a map entry in its normal, non-error state.
|
||||
///
|
||||
UINT32 Error : 1;
|
||||
UINT32 Error : 1;
|
||||
|
||||
///
|
||||
/// When set and Error is not set, reads on this block return a full block of zeros.
|
||||
/// When set and Error is set, indicate a map entry in its normal, non-error state.
|
||||
///
|
||||
UINT32 Zero : 1;
|
||||
UINT32 Zero : 1;
|
||||
} EFI_BTT_MAP_ENTRY;
|
||||
|
||||
///
|
||||
/// Alignment of each flog structure
|
||||
///
|
||||
#define EFI_BTT_FLOG_ENTRY_ALIGNMENT 64
|
||||
#define EFI_BTT_FLOG_ENTRY_ALIGNMENT 64
|
||||
|
||||
///
|
||||
/// The BTT Flog is both a free list and a log.
|
||||
@@ -178,45 +178,45 @@ typedef struct _EFI_BTT_FLOG {
|
||||
///
|
||||
/// Last pre-map LBA written using this flog entry.
|
||||
///
|
||||
UINT32 Lba0;
|
||||
UINT32 Lba0;
|
||||
|
||||
///
|
||||
/// Old post-map LBA.
|
||||
///
|
||||
UINT32 OldMap0;
|
||||
UINT32 OldMap0;
|
||||
|
||||
///
|
||||
/// New post-map LBA.
|
||||
///
|
||||
UINT32 NewMap0;
|
||||
UINT32 NewMap0;
|
||||
|
||||
///
|
||||
/// The Seq0 field in each flog entry is used to determine which set of fields is newer between the two sets
|
||||
/// (Lba0, OldMap0, NewMpa0, Seq0 vs Lba1, Oldmap1, NewMap1, Seq1).
|
||||
///
|
||||
UINT32 Seq0;
|
||||
UINT32 Seq0;
|
||||
|
||||
///
|
||||
/// Alternate lba entry.
|
||||
///
|
||||
UINT32 Lba1;
|
||||
UINT32 Lba1;
|
||||
|
||||
///
|
||||
/// Alternate old entry.
|
||||
///
|
||||
UINT32 OldMap1;
|
||||
UINT32 OldMap1;
|
||||
|
||||
///
|
||||
/// Alternate new entry.
|
||||
///
|
||||
UINT32 NewMap1;
|
||||
UINT32 NewMap1;
|
||||
|
||||
///
|
||||
/// Alternate Seq entry.
|
||||
///
|
||||
UINT32 Seq1;
|
||||
UINT32 Seq1;
|
||||
} EFI_BTT_FLOG;
|
||||
|
||||
extern GUID gEfiBttAbstractionGuid;
|
||||
extern GUID gEfiBttAbstractionGuid;
|
||||
|
||||
#endif //_BTT_H_
|
||||
|
@@ -9,7 +9,6 @@
|
||||
|
||||
**/
|
||||
|
||||
|
||||
#ifndef _CAPSULE_REPORT_GUID_H__
|
||||
#define _CAPSULE_REPORT_GUID_H__
|
||||
|
||||
@@ -21,60 +20,56 @@
|
||||
0x39b68c46, 0xf7fb, 0x441b, {0xb6, 0xec, 0x16, 0xb0, 0xf6, 0x98, 0x21, 0xf3 } \
|
||||
}
|
||||
|
||||
|
||||
typedef struct {
|
||||
|
||||
///
|
||||
/// Size in bytes of the variable including any data beyond header as specified by CapsuleGuid
|
||||
///
|
||||
UINT32 VariableTotalSize;
|
||||
UINT32 VariableTotalSize;
|
||||
|
||||
///
|
||||
/// For alignment
|
||||
///
|
||||
UINT32 Reserved;
|
||||
UINT32 Reserved;
|
||||
|
||||
///
|
||||
/// Guid from EFI_CAPSULE_HEADER
|
||||
///
|
||||
EFI_GUID CapsuleGuid;
|
||||
EFI_GUID CapsuleGuid;
|
||||
|
||||
///
|
||||
/// Timestamp using system time when processing completed
|
||||
///
|
||||
EFI_TIME CapsuleProcessed;
|
||||
EFI_TIME CapsuleProcessed;
|
||||
|
||||
///
|
||||
/// Result of the capsule processing. Exact interpretation of any error code may depend
|
||||
/// upon type of capsule processed
|
||||
///
|
||||
EFI_STATUS CapsuleStatus;
|
||||
EFI_STATUS CapsuleStatus;
|
||||
} EFI_CAPSULE_RESULT_VARIABLE_HEADER;
|
||||
|
||||
|
||||
typedef struct {
|
||||
|
||||
///
|
||||
/// Version of this structure, currently 0x00000001
|
||||
///
|
||||
UINT16 Version;
|
||||
UINT16 Version;
|
||||
|
||||
///
|
||||
/// The index of the payload within the FMP capsule which was processed to generate this report
|
||||
/// Starting from zero
|
||||
///
|
||||
UINT8 PayloadIndex;
|
||||
UINT8 PayloadIndex;
|
||||
|
||||
///
|
||||
/// The UpdateImageIndex from EFI_FIRMWARE_MANAGEMENT_CAPSULE_IMAGE_HEADER
|
||||
/// (after unsigned conversion from UINT8 to UINT16).
|
||||
///
|
||||
UINT8 UpdateImageIndex;
|
||||
UINT8 UpdateImageIndex;
|
||||
|
||||
///
|
||||
/// The UpdateImageTypeId Guid from EFI_FIRMWARE_MANAGEMENT_CAPSULE_IMAGE_HEADER.
|
||||
///
|
||||
EFI_GUID UpdateImageTypeId;
|
||||
EFI_GUID UpdateImageTypeId;
|
||||
|
||||
///
|
||||
/// In case of capsule loaded from disk, the zero-terminated array containing file name of capsule that was processed.
|
||||
@@ -94,7 +89,6 @@ typedef struct {
|
||||
} EFI_CAPSULE_RESULT_VARIABLE_FMP;
|
||||
|
||||
typedef struct {
|
||||
|
||||
///
|
||||
/// Version of this structure, currently 0x00000001
|
||||
///
|
||||
@@ -108,21 +102,21 @@ typedef struct {
|
||||
/// The JSON payload shall conform to a Redfish-defined JSON schema, see DMTF-Redfish
|
||||
/// Specification.
|
||||
///
|
||||
UINT32 CapsuleId;
|
||||
UINT32 CapsuleId;
|
||||
|
||||
///
|
||||
/// The length of Resp in bytes.
|
||||
///
|
||||
UINT32 RespLength;
|
||||
UINT32 RespLength;
|
||||
|
||||
///
|
||||
/// Variable length buffer containing the replied JSON payload to the caller who delivered JSON
|
||||
/// capsule to system. The definition of the JSON schema used in the replied payload is beyond
|
||||
/// the scope of this specification.
|
||||
///
|
||||
UINT8 Resp[];
|
||||
} EFI_CAPSULE_RESULT_VARIABLE_JSON;
|
||||
UINT8 Resp[];
|
||||
} EFI_CAPSULE_RESULT_VARIABLE_JSON;
|
||||
|
||||
extern EFI_GUID gEfiCapsuleReportGuid;
|
||||
extern EFI_GUID gEfiCapsuleReportGuid;
|
||||
|
||||
#endif
|
||||
|
File diff suppressed because it is too large
Load Diff
@@ -22,15 +22,15 @@
|
||||
0x49152e77, 0x1ada, 0x4764, {0xb7, 0xa2, 0x7a, 0xfe, 0xfe, 0xd9, 0x5e, 0x8b } \
|
||||
}
|
||||
|
||||
#define EFI_DEBUG_IMAGE_INFO_UPDATE_IN_PROGRESS 0x01
|
||||
#define EFI_DEBUG_IMAGE_INFO_TABLE_MODIFIED 0x02
|
||||
#define EFI_DEBUG_IMAGE_INFO_UPDATE_IN_PROGRESS 0x01
|
||||
#define EFI_DEBUG_IMAGE_INFO_TABLE_MODIFIED 0x02
|
||||
|
||||
#define EFI_DEBUG_IMAGE_INFO_TYPE_NORMAL 0x01
|
||||
#define EFI_DEBUG_IMAGE_INFO_TYPE_NORMAL 0x01
|
||||
|
||||
typedef struct {
|
||||
UINT64 Signature; ///< A constant UINT64 that has the value EFI_SYSTEM_TABLE_SIGNATURE
|
||||
EFI_PHYSICAL_ADDRESS EfiSystemTableBase; ///< The physical address of the EFI system table.
|
||||
UINT32 Crc32; ///< A 32-bit CRC value that is used to verify the EFI_SYSTEM_TABLE_POINTER structure is valid.
|
||||
UINT64 Signature; ///< A constant UINT64 that has the value EFI_SYSTEM_TABLE_SIGNATURE
|
||||
EFI_PHYSICAL_ADDRESS EfiSystemTableBase; ///< The physical address of the EFI system table.
|
||||
UINT32 Crc32; ///< A 32-bit CRC value that is used to verify the EFI_SYSTEM_TABLE_POINTER structure is valid.
|
||||
} EFI_SYSTEM_TABLE_POINTER;
|
||||
|
||||
typedef struct {
|
||||
@@ -38,37 +38,37 @@ typedef struct {
|
||||
/// Indicates the type of image info structure. For PE32 EFI images,
|
||||
/// this is set to EFI_DEBUG_IMAGE_INFO_TYPE_NORMAL.
|
||||
///
|
||||
UINT32 ImageInfoType;
|
||||
UINT32 ImageInfoType;
|
||||
///
|
||||
/// A pointer to an instance of the loaded image protocol for the associated image.
|
||||
///
|
||||
EFI_LOADED_IMAGE_PROTOCOL *LoadedImageProtocolInstance;
|
||||
EFI_LOADED_IMAGE_PROTOCOL *LoadedImageProtocolInstance;
|
||||
///
|
||||
/// Indicates the image handle of the associated image.
|
||||
///
|
||||
EFI_HANDLE ImageHandle;
|
||||
EFI_HANDLE ImageHandle;
|
||||
} EFI_DEBUG_IMAGE_INFO_NORMAL;
|
||||
|
||||
typedef union {
|
||||
UINT32 *ImageInfoType;
|
||||
EFI_DEBUG_IMAGE_INFO_NORMAL *NormalImage;
|
||||
UINT32 *ImageInfoType;
|
||||
EFI_DEBUG_IMAGE_INFO_NORMAL *NormalImage;
|
||||
} EFI_DEBUG_IMAGE_INFO;
|
||||
|
||||
typedef struct {
|
||||
///
|
||||
/// UpdateStatus is used by the system to indicate the state of the debug image info table.
|
||||
///
|
||||
volatile UINT32 UpdateStatus;
|
||||
volatile UINT32 UpdateStatus;
|
||||
///
|
||||
/// The number of EFI_DEBUG_IMAGE_INFO elements in the array pointed to by EfiDebugImageInfoTable.
|
||||
///
|
||||
UINT32 TableSize;
|
||||
UINT32 TableSize;
|
||||
///
|
||||
/// A pointer to the first element of an array of EFI_DEBUG_IMAGE_INFO structures.
|
||||
///
|
||||
EFI_DEBUG_IMAGE_INFO *EfiDebugImageInfoTable;
|
||||
EFI_DEBUG_IMAGE_INFO *EfiDebugImageInfoTable;
|
||||
} EFI_DEBUG_IMAGE_INFO_TABLE_HEADER;
|
||||
|
||||
extern EFI_GUID gEfiDebugImageInfoTableGuid;
|
||||
extern EFI_GUID gEfiDebugImageInfoTableGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -17,6 +17,6 @@
|
||||
0x5ad34ba, 0x6f02, 0x4214, {0x95, 0x2e, 0x4d, 0xa0, 0x39, 0x8e, 0x2b, 0xb9 } \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEfiDxeServicesTableGuid;
|
||||
extern EFI_GUID gEfiDxeServicesTableGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -9,38 +9,34 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#ifndef __EVENT_GROUP_GUID__
|
||||
#define __EVENT_GROUP_GUID__
|
||||
|
||||
|
||||
#define EFI_EVENT_GROUP_EXIT_BOOT_SERVICES \
|
||||
{ 0x27abf055, 0xb1b8, 0x4c26, { 0x80, 0x48, 0x74, 0x8f, 0x37, 0xba, 0xa2, 0xdf } }
|
||||
|
||||
extern EFI_GUID gEfiEventExitBootServicesGuid;
|
||||
|
||||
extern EFI_GUID gEfiEventExitBootServicesGuid;
|
||||
|
||||
#define EFI_EVENT_GROUP_VIRTUAL_ADDRESS_CHANGE \
|
||||
{ 0x13fa7698, 0xc831, 0x49c7, { 0x87, 0xea, 0x8f, 0x43, 0xfc, 0xc2, 0x51, 0x96 } }
|
||||
|
||||
extern EFI_GUID gEfiEventVirtualAddressChangeGuid;
|
||||
|
||||
extern EFI_GUID gEfiEventVirtualAddressChangeGuid;
|
||||
|
||||
#define EFI_EVENT_GROUP_MEMORY_MAP_CHANGE \
|
||||
{ 0x78bee926, 0x692f, 0x48fd, { 0x9e, 0xdb, 0x1, 0x42, 0x2e, 0xf0, 0xd7, 0xab } }
|
||||
|
||||
extern EFI_GUID gEfiEventMemoryMapChangeGuid;
|
||||
|
||||
extern EFI_GUID gEfiEventMemoryMapChangeGuid;
|
||||
|
||||
#define EFI_EVENT_GROUP_READY_TO_BOOT \
|
||||
{ 0x7ce88fb3, 0x4bd7, 0x4679, { 0x87, 0xa8, 0xa8, 0xd8, 0xde, 0xe5, 0x0d, 0x2b } }
|
||||
|
||||
extern EFI_GUID gEfiEventReadyToBootGuid;
|
||||
extern EFI_GUID gEfiEventReadyToBootGuid;
|
||||
|
||||
#define EFI_EVENT_GROUP_DXE_DISPATCH_GUID \
|
||||
{ 0x7081e22f, 0xcac6, 0x4053, { 0x94, 0x68, 0x67, 0x57, 0x82, 0xcf, 0x88, 0xe5 }}
|
||||
|
||||
extern EFI_GUID gEfiEventDxeDispatchGuid;
|
||||
extern EFI_GUID gEfiEventDxeDispatchGuid;
|
||||
|
||||
#define EFI_END_OF_DXE_EVENT_GROUP_GUID \
|
||||
{ 0x2ce967a, 0xdd7e, 0x4ffc, { 0x9e, 0xe7, 0x81, 0xc, 0xf0, 0x47, 0x8, 0x80 } }
|
||||
|
||||
extern EFI_GUID gEfiEndOfDxeEventGroupGuid;
|
||||
extern EFI_GUID gEfiEndOfDxeEventGroupGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -17,6 +17,6 @@
|
||||
#define EFI_EVENT_LEGACY_BOOT_GUID \
|
||||
{ 0x2a571201, 0x4966, 0x47f6, {0x8b, 0x86, 0xf3, 0x1e, 0x41, 0xf3, 0x2f, 0x10 } }
|
||||
|
||||
extern EFI_GUID gEfiEventLegacyBootGuid;
|
||||
extern EFI_GUID gEfiEventLegacyBootGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -20,35 +20,35 @@ typedef struct {
|
||||
///
|
||||
/// The size of the EFI_FILE_INFO structure, including the Null-terminated FileName string.
|
||||
///
|
||||
UINT64 Size;
|
||||
UINT64 Size;
|
||||
///
|
||||
/// The size of the file in bytes.
|
||||
///
|
||||
UINT64 FileSize;
|
||||
UINT64 FileSize;
|
||||
///
|
||||
/// PhysicalSize The amount of physical space the file consumes on the file system volume.
|
||||
///
|
||||
UINT64 PhysicalSize;
|
||||
UINT64 PhysicalSize;
|
||||
///
|
||||
/// The time the file was created.
|
||||
///
|
||||
EFI_TIME CreateTime;
|
||||
EFI_TIME CreateTime;
|
||||
///
|
||||
/// The time when the file was last accessed.
|
||||
///
|
||||
EFI_TIME LastAccessTime;
|
||||
EFI_TIME LastAccessTime;
|
||||
///
|
||||
/// The time when the file's contents were last modified.
|
||||
///
|
||||
EFI_TIME ModificationTime;
|
||||
EFI_TIME ModificationTime;
|
||||
///
|
||||
/// The attribute bits for the file.
|
||||
///
|
||||
UINT64 Attribute;
|
||||
UINT64 Attribute;
|
||||
///
|
||||
/// The Null-terminated name of the file.
|
||||
///
|
||||
CHAR16 FileName[1];
|
||||
CHAR16 FileName[1];
|
||||
} EFI_FILE_INFO;
|
||||
|
||||
///
|
||||
@@ -58,8 +58,8 @@ typedef struct {
|
||||
/// computes this size correctly no matter how big the FileName array is declared.
|
||||
/// This is required to make the EFI_FILE_INFO data structure ANSI compilant.
|
||||
///
|
||||
#define SIZE_OF_EFI_FILE_INFO OFFSET_OF (EFI_FILE_INFO, FileName)
|
||||
#define SIZE_OF_EFI_FILE_INFO OFFSET_OF (EFI_FILE_INFO, FileName)
|
||||
|
||||
extern EFI_GUID gEfiFileInfoGuid;
|
||||
extern EFI_GUID gEfiFileInfoGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -20,27 +20,27 @@ typedef struct {
|
||||
///
|
||||
/// The size of the EFI_FILE_SYSTEM_INFO structure, including the Null-terminated VolumeLabel string.
|
||||
///
|
||||
UINT64 Size;
|
||||
UINT64 Size;
|
||||
///
|
||||
/// TRUE if the volume only supports read access.
|
||||
///
|
||||
BOOLEAN ReadOnly;
|
||||
BOOLEAN ReadOnly;
|
||||
///
|
||||
/// The number of bytes managed by the file system.
|
||||
///
|
||||
UINT64 VolumeSize;
|
||||
UINT64 VolumeSize;
|
||||
///
|
||||
/// The number of available bytes for use by the file system.
|
||||
///
|
||||
UINT64 FreeSpace;
|
||||
UINT64 FreeSpace;
|
||||
///
|
||||
/// The nominal block size by which files are typically grown.
|
||||
///
|
||||
UINT32 BlockSize;
|
||||
UINT32 BlockSize;
|
||||
///
|
||||
/// The Null-terminated string that is the volume's label.
|
||||
///
|
||||
CHAR16 VolumeLabel[1];
|
||||
CHAR16 VolumeLabel[1];
|
||||
} EFI_FILE_SYSTEM_INFO;
|
||||
|
||||
///
|
||||
@@ -52,6 +52,6 @@ typedef struct {
|
||||
///
|
||||
#define SIZE_OF_EFI_FILE_SYSTEM_INFO OFFSET_OF (EFI_FILE_SYSTEM_INFO, VolumeLabel)
|
||||
|
||||
extern EFI_GUID gEfiFileSystemInfoGuid;
|
||||
extern EFI_GUID gEfiFileSystemInfoGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -20,12 +20,12 @@ typedef struct {
|
||||
///
|
||||
/// The Null-terminated string that is the volume's label.
|
||||
///
|
||||
CHAR16 VolumeLabel[1];
|
||||
CHAR16 VolumeLabel[1];
|
||||
} EFI_FILE_SYSTEM_VOLUME_LABEL;
|
||||
|
||||
#define SIZE_OF_EFI_FILE_SYSTEM_VOLUME_LABEL \
|
||||
OFFSET_OF (EFI_FILE_SYSTEM_VOLUME_LABEL, VolumeLabel)
|
||||
|
||||
extern EFI_GUID gEfiFileSystemVolumeLabelInfoIdGuid;
|
||||
extern EFI_GUID gEfiFileSystemVolumeLabelInfoIdGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -15,6 +15,6 @@
|
||||
#define EFI_FIRMWARE_CONTENTS_SIGNED_GUID \
|
||||
{ 0xf9d89e8, 0x9259, 0x4f76, {0xa5, 0xaf, 0xc, 0x89, 0xe3, 0x40, 0x23, 0xdf } }
|
||||
|
||||
extern EFI_GUID gEfiFirmwareContentsSignedGuid;
|
||||
extern EFI_GUID gEfiFirmwareContentsSignedGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -27,8 +27,7 @@
|
||||
#define EFI_FFS_VOLUME_TOP_FILE_GUID \
|
||||
{ 0x1BA0062E, 0xC779, 0x4582, { 0x85, 0x66, 0x33, 0x6A, 0xE8, 0xF7, 0x8F, 0x9 } }
|
||||
|
||||
|
||||
extern EFI_GUID gEfiFirmwareFileSystem2Guid;
|
||||
extern EFI_GUID gEfiFirmwareVolumeTopFileGuid;
|
||||
extern EFI_GUID gEfiFirmwareFileSystem2Guid;
|
||||
extern EFI_GUID gEfiFirmwareVolumeTopFileGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -19,6 +19,6 @@
|
||||
#define EFI_FIRMWARE_FILE_SYSTEM3_GUID \
|
||||
{ 0x5473c07a, 0x3dcb, 0x4dca, { 0xbd, 0x6f, 0x1e, 0x96, 0x89, 0xe7, 0x34, 0x9a }}
|
||||
|
||||
extern EFI_GUID gEfiFirmwareFileSystem3Guid;
|
||||
extern EFI_GUID gEfiFirmwareFileSystem3Guid;
|
||||
|
||||
#endif // __FIRMWARE_FILE_SYSTEM3_GUID_H__
|
||||
|
@@ -10,7 +10,6 @@
|
||||
|
||||
**/
|
||||
|
||||
|
||||
#ifndef _FMP_CAPSULE_GUID_H__
|
||||
#define _FMP_CAPSULE_GUID_H__
|
||||
|
||||
@@ -25,19 +24,19 @@
|
||||
#pragma pack(1)
|
||||
|
||||
typedef struct {
|
||||
UINT32 Version;
|
||||
UINT32 Version;
|
||||
|
||||
///
|
||||
/// The number of drivers included in the capsule and the number of corresponding
|
||||
/// offsets stored in ItemOffsetList array.
|
||||
///
|
||||
UINT16 EmbeddedDriverCount;
|
||||
UINT16 EmbeddedDriverCount;
|
||||
|
||||
///
|
||||
/// The number of payload items included in the capsule and the number of
|
||||
/// corresponding offsets stored in the ItemOffsetList array.
|
||||
///
|
||||
UINT16 PayloadItemCount;
|
||||
UINT16 PayloadItemCount;
|
||||
|
||||
///
|
||||
/// Variable length array of dimension [EmbeddedDriverCount + PayloadItemCount]
|
||||
@@ -47,29 +46,29 @@ typedef struct {
|
||||
} EFI_FIRMWARE_MANAGEMENT_CAPSULE_HEADER;
|
||||
|
||||
typedef struct {
|
||||
UINT32 Version;
|
||||
UINT32 Version;
|
||||
|
||||
///
|
||||
/// Used to identify device firmware targeted by this update. This guid is matched by
|
||||
/// system firmware against ImageTypeId field within a EFI_FIRMWARE_IMAGE_DESCRIPTOR
|
||||
///
|
||||
EFI_GUID UpdateImageTypeId;
|
||||
EFI_GUID UpdateImageTypeId;
|
||||
|
||||
///
|
||||
/// Passed as ImageIndex in call to EFI_FIRMWARE_MANAGEMENT_PROTOCOL.SetImage()
|
||||
///
|
||||
UINT8 UpdateImageIndex;
|
||||
UINT8 reserved_bytes[3];
|
||||
UINT8 UpdateImageIndex;
|
||||
UINT8 reserved_bytes[3];
|
||||
|
||||
///
|
||||
/// Size of the binary update image which immediately follows this structure
|
||||
///
|
||||
UINT32 UpdateImageSize;
|
||||
UINT32 UpdateImageSize;
|
||||
|
||||
///
|
||||
/// Size of the VendorCode bytes which optionally immediately follow binary update image in the capsule
|
||||
///
|
||||
UINT32 UpdateVendorCodeSize;
|
||||
UINT32 UpdateVendorCodeSize;
|
||||
|
||||
///
|
||||
/// The HardwareInstance to target with this update. If value is zero it means match all
|
||||
@@ -78,24 +77,23 @@ typedef struct {
|
||||
/// This header is outside the signed data of the Authentication Info structure and
|
||||
/// therefore can be modified without changing the Auth data.
|
||||
///
|
||||
UINT64 UpdateHardwareInstance;
|
||||
UINT64 UpdateHardwareInstance;
|
||||
|
||||
///
|
||||
/// A 64-bit bitmask that determines what sections are added to the payload.
|
||||
/// #define CAPSULE_SUPPORT_AUTHENTICATION 0x0000000000000001
|
||||
/// #define CAPSULE_SUPPORT_DEPENDENCY 0x0000000000000002
|
||||
///
|
||||
UINT64 ImageCapsuleSupport;
|
||||
UINT64 ImageCapsuleSupport;
|
||||
} EFI_FIRMWARE_MANAGEMENT_CAPSULE_IMAGE_HEADER;
|
||||
|
||||
#pragma pack()
|
||||
|
||||
#define EFI_FIRMWARE_MANAGEMENT_CAPSULE_HEADER_INIT_VERSION 0x00000001
|
||||
#define EFI_FIRMWARE_MANAGEMENT_CAPSULE_IMAGE_HEADER_INIT_VERSION 0x00000003
|
||||
#define CAPSULE_SUPPORT_AUTHENTICATION 0x0000000000000001
|
||||
#define CAPSULE_SUPPORT_DEPENDENCY 0x0000000000000002
|
||||
|
||||
#define EFI_FIRMWARE_MANAGEMENT_CAPSULE_HEADER_INIT_VERSION 0x00000001
|
||||
#define EFI_FIRMWARE_MANAGEMENT_CAPSULE_IMAGE_HEADER_INIT_VERSION 0x00000003
|
||||
#define CAPSULE_SUPPORT_AUTHENTICATION 0x0000000000000001
|
||||
#define CAPSULE_SUPPORT_DEPENDENCY 0x0000000000000002
|
||||
|
||||
extern EFI_GUID gEfiFmpCapsuleGuid;
|
||||
extern EFI_GUID gEfiFmpCapsuleGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -16,7 +16,7 @@
|
||||
0x8BE4DF61, 0x93CA, 0x11d2, {0xAA, 0x0D, 0x00, 0xE0, 0x98, 0x03, 0x2B, 0x8C } \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEfiGlobalVariableGuid;
|
||||
extern EFI_GUID gEfiGlobalVariableGuid;
|
||||
|
||||
//
|
||||
// Follow UEFI 2.4 spec:
|
||||
@@ -41,146 +41,146 @@ extern EFI_GUID gEfiGlobalVariableGuid;
|
||||
/// The language codes that the firmware supports. This value is deprecated.
|
||||
/// Its attribute is BS+RT.
|
||||
///
|
||||
#define EFI_LANG_CODES_VARIABLE_NAME L"LangCodes"
|
||||
#define EFI_LANG_CODES_VARIABLE_NAME L"LangCodes"
|
||||
///
|
||||
/// The language code that the system is configured for. This value is deprecated.
|
||||
/// Its attribute is NV+BS+RT.
|
||||
///
|
||||
#define EFI_LANG_VARIABLE_NAME L"Lang"
|
||||
#define EFI_LANG_VARIABLE_NAME L"Lang"
|
||||
///
|
||||
/// The firmware's boot managers timeout, in seconds, before initiating the default boot selection.
|
||||
/// Its attribute is NV+BS+RT.
|
||||
///
|
||||
#define EFI_TIME_OUT_VARIABLE_NAME L"Timeout"
|
||||
#define EFI_TIME_OUT_VARIABLE_NAME L"Timeout"
|
||||
///
|
||||
/// The language codes that the firmware supports.
|
||||
/// Its attribute is BS+RT.
|
||||
///
|
||||
#define EFI_PLATFORM_LANG_CODES_VARIABLE_NAME L"PlatformLangCodes"
|
||||
#define EFI_PLATFORM_LANG_CODES_VARIABLE_NAME L"PlatformLangCodes"
|
||||
///
|
||||
/// The language code that the system is configured for.
|
||||
/// Its attribute is NV+BS+RT.
|
||||
///
|
||||
#define EFI_PLATFORM_LANG_VARIABLE_NAME L"PlatformLang"
|
||||
#define EFI_PLATFORM_LANG_VARIABLE_NAME L"PlatformLang"
|
||||
///
|
||||
/// The device path of the default input/output/error output console.
|
||||
/// Its attribute is NV+BS+RT.
|
||||
///
|
||||
#define EFI_CON_IN_VARIABLE_NAME L"ConIn"
|
||||
#define EFI_CON_OUT_VARIABLE_NAME L"ConOut"
|
||||
#define EFI_ERR_OUT_VARIABLE_NAME L"ErrOut"
|
||||
#define EFI_CON_IN_VARIABLE_NAME L"ConIn"
|
||||
#define EFI_CON_OUT_VARIABLE_NAME L"ConOut"
|
||||
#define EFI_ERR_OUT_VARIABLE_NAME L"ErrOut"
|
||||
///
|
||||
/// The device path of all possible input/output/error output devices.
|
||||
/// Its attribute is BS+RT.
|
||||
///
|
||||
#define EFI_CON_IN_DEV_VARIABLE_NAME L"ConInDev"
|
||||
#define EFI_CON_OUT_DEV_VARIABLE_NAME L"ConOutDev"
|
||||
#define EFI_ERR_OUT_DEV_VARIABLE_NAME L"ErrOutDev"
|
||||
#define EFI_CON_IN_DEV_VARIABLE_NAME L"ConInDev"
|
||||
#define EFI_CON_OUT_DEV_VARIABLE_NAME L"ConOutDev"
|
||||
#define EFI_ERR_OUT_DEV_VARIABLE_NAME L"ErrOutDev"
|
||||
///
|
||||
/// The ordered boot option load list.
|
||||
/// Its attribute is NV+BS+RT.
|
||||
///
|
||||
#define EFI_BOOT_ORDER_VARIABLE_NAME L"BootOrder"
|
||||
#define EFI_BOOT_ORDER_VARIABLE_NAME L"BootOrder"
|
||||
///
|
||||
/// The boot option for the next boot only.
|
||||
/// Its attribute is NV+BS+RT.
|
||||
///
|
||||
#define EFI_BOOT_NEXT_VARIABLE_NAME L"BootNext"
|
||||
#define EFI_BOOT_NEXT_VARIABLE_NAME L"BootNext"
|
||||
///
|
||||
/// The boot option that was selected for the current boot.
|
||||
/// Its attribute is BS+RT.
|
||||
///
|
||||
#define EFI_BOOT_CURRENT_VARIABLE_NAME L"BootCurrent"
|
||||
#define EFI_BOOT_CURRENT_VARIABLE_NAME L"BootCurrent"
|
||||
///
|
||||
/// The types of boot options supported by the boot manager. Should be treated as read-only.
|
||||
/// Its attribute is BS+RT.
|
||||
///
|
||||
#define EFI_BOOT_OPTION_SUPPORT_VARIABLE_NAME L"BootOptionSupport"
|
||||
#define EFI_BOOT_OPTION_SUPPORT_VARIABLE_NAME L"BootOptionSupport"
|
||||
///
|
||||
/// The ordered driver load option list.
|
||||
/// Its attribute is NV+BS+RT.
|
||||
///
|
||||
#define EFI_DRIVER_ORDER_VARIABLE_NAME L"DriverOrder"
|
||||
#define EFI_DRIVER_ORDER_VARIABLE_NAME L"DriverOrder"
|
||||
///
|
||||
/// The ordered System Prep Application load option list.
|
||||
/// Its attribute is NV+BS+RT.
|
||||
///
|
||||
#define EFI_SYS_PREP_ORDER_VARIABLE_NAME L"SysPrepOrder"
|
||||
#define EFI_SYS_PREP_ORDER_VARIABLE_NAME L"SysPrepOrder"
|
||||
///
|
||||
/// Identifies the level of hardware error record persistence
|
||||
/// support implemented by the platform. This variable is
|
||||
/// only modified by firmware and is read-only to the OS.
|
||||
/// Its attribute is NV+BS+RT.
|
||||
///
|
||||
#define EFI_HW_ERR_REC_SUPPORT_VARIABLE_NAME L"HwErrRecSupport"
|
||||
#define EFI_HW_ERR_REC_SUPPORT_VARIABLE_NAME L"HwErrRecSupport"
|
||||
///
|
||||
/// Whether the system is operating in setup mode (1) or not (0).
|
||||
/// All other values are reserved. Should be treated as read-only.
|
||||
/// Its attribute is BS+RT.
|
||||
///
|
||||
#define EFI_SETUP_MODE_NAME L"SetupMode"
|
||||
#define EFI_SETUP_MODE_NAME L"SetupMode"
|
||||
///
|
||||
/// The Key Exchange Key Signature Database.
|
||||
/// Its attribute is NV+BS+RT+AT.
|
||||
///
|
||||
#define EFI_KEY_EXCHANGE_KEY_NAME L"KEK"
|
||||
#define EFI_KEY_EXCHANGE_KEY_NAME L"KEK"
|
||||
///
|
||||
/// The public Platform Key.
|
||||
/// Its attribute is NV+BS+RT+AT.
|
||||
///
|
||||
#define EFI_PLATFORM_KEY_NAME L"PK"
|
||||
#define EFI_PLATFORM_KEY_NAME L"PK"
|
||||
///
|
||||
/// Array of GUIDs representing the type of signatures supported
|
||||
/// by the platform firmware. Should be treated as read-only.
|
||||
/// Its attribute is BS+RT.
|
||||
///
|
||||
#define EFI_SIGNATURE_SUPPORT_NAME L"SignatureSupport"
|
||||
#define EFI_SIGNATURE_SUPPORT_NAME L"SignatureSupport"
|
||||
///
|
||||
/// Whether the platform firmware is operating in Secure boot mode (1) or not (0).
|
||||
/// All other values are reserved. Should be treated as read-only.
|
||||
/// Its attribute is BS+RT.
|
||||
///
|
||||
#define EFI_SECURE_BOOT_MODE_NAME L"SecureBoot"
|
||||
#define EFI_SECURE_BOOT_MODE_NAME L"SecureBoot"
|
||||
///
|
||||
/// The OEM's default Key Exchange Key Signature Database. Should be treated as read-only.
|
||||
/// Its attribute is BS+RT.
|
||||
///
|
||||
#define EFI_KEK_DEFAULT_VARIABLE_NAME L"KEKDefault"
|
||||
#define EFI_KEK_DEFAULT_VARIABLE_NAME L"KEKDefault"
|
||||
///
|
||||
/// The OEM's default public Platform Key. Should be treated as read-only.
|
||||
/// Its attribute is BS+RT.
|
||||
///
|
||||
#define EFI_PK_DEFAULT_VARIABLE_NAME L"PKDefault"
|
||||
#define EFI_PK_DEFAULT_VARIABLE_NAME L"PKDefault"
|
||||
///
|
||||
/// The OEM's default secure boot signature store. Should be treated as read-only.
|
||||
/// Its attribute is BS+RT.
|
||||
///
|
||||
#define EFI_DB_DEFAULT_VARIABLE_NAME L"dbDefault"
|
||||
#define EFI_DB_DEFAULT_VARIABLE_NAME L"dbDefault"
|
||||
///
|
||||
/// The OEM's default secure boot blacklist signature store. Should be treated as read-only.
|
||||
/// Its attribute is BS+RT.
|
||||
///
|
||||
#define EFI_DBX_DEFAULT_VARIABLE_NAME L"dbxDefault"
|
||||
#define EFI_DBX_DEFAULT_VARIABLE_NAME L"dbxDefault"
|
||||
///
|
||||
/// The OEM's default secure boot timestamp signature store. Should be treated as read-only.
|
||||
/// Its attribute is BS+RT.
|
||||
///
|
||||
#define EFI_DBT_DEFAULT_VARIABLE_NAME L"dbtDefault"
|
||||
#define EFI_DBT_DEFAULT_VARIABLE_NAME L"dbtDefault"
|
||||
///
|
||||
/// Allows the firmware to indicate supported features and actions to the OS.
|
||||
/// Its attribute is BS+RT.
|
||||
///
|
||||
#define EFI_OS_INDICATIONS_SUPPORT_VARIABLE_NAME L"OsIndicationsSupported"
|
||||
#define EFI_OS_INDICATIONS_SUPPORT_VARIABLE_NAME L"OsIndicationsSupported"
|
||||
///
|
||||
/// Allows the OS to request the firmware to enable certain features and to take certain actions.
|
||||
/// Its attribute is NV+BS+RT.
|
||||
///
|
||||
#define EFI_OS_INDICATIONS_VARIABLE_NAME L"OsIndications"
|
||||
#define EFI_OS_INDICATIONS_VARIABLE_NAME L"OsIndications"
|
||||
///
|
||||
/// Whether the system is configured to use only vendor provided
|
||||
/// keys or not. Should be treated as read-only.
|
||||
/// Its attribute is BS+RT.
|
||||
///
|
||||
#define EFI_VENDOR_KEYS_VARIABLE_NAME L"VendorKeys"
|
||||
#define EFI_VENDOR_KEYS_VARIABLE_NAME L"VendorKeys"
|
||||
|
||||
#endif
|
||||
|
@@ -30,8 +30,8 @@
|
||||
0x024dee41, 0x33e7, 0x11d3, {0x9d, 0x69, 0x00, 0x08, 0xc7, 0x81, 0xf3, 0x9f } \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEfiPartTypeUnusedGuid;
|
||||
extern EFI_GUID gEfiPartTypeSystemPartGuid;
|
||||
extern EFI_GUID gEfiPartTypeLegacyMbrGuid;
|
||||
extern EFI_GUID gEfiPartTypeUnusedGuid;
|
||||
extern EFI_GUID gEfiPartTypeSystemPartGuid;
|
||||
extern EFI_GUID gEfiPartTypeLegacyMbrGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -25,21 +25,21 @@
|
||||
}
|
||||
|
||||
typedef struct {
|
||||
EFI_PHYSICAL_ADDRESS FrameBufferBase;
|
||||
UINT32 FrameBufferSize;
|
||||
EFI_GRAPHICS_OUTPUT_MODE_INFORMATION GraphicsMode;
|
||||
EFI_PHYSICAL_ADDRESS FrameBufferBase;
|
||||
UINT32 FrameBufferSize;
|
||||
EFI_GRAPHICS_OUTPUT_MODE_INFORMATION GraphicsMode;
|
||||
} EFI_PEI_GRAPHICS_INFO_HOB;
|
||||
|
||||
typedef struct {
|
||||
UINT16 VendorId; ///< Ignore if the value is 0xFFFF.
|
||||
UINT16 DeviceId; ///< Ignore if the value is 0xFFFF.
|
||||
UINT16 SubsystemVendorId; ///< Ignore if the value is 0xFFFF.
|
||||
UINT16 SubsystemId; ///< Ignore if the value is 0xFFFF.
|
||||
UINT8 RevisionId; ///< Ignore if the value is 0xFF.
|
||||
UINT8 BarIndex; ///< Ignore if the value is 0xFF.
|
||||
UINT16 VendorId; ///< Ignore if the value is 0xFFFF.
|
||||
UINT16 DeviceId; ///< Ignore if the value is 0xFFFF.
|
||||
UINT16 SubsystemVendorId; ///< Ignore if the value is 0xFFFF.
|
||||
UINT16 SubsystemId; ///< Ignore if the value is 0xFFFF.
|
||||
UINT8 RevisionId; ///< Ignore if the value is 0xFF.
|
||||
UINT8 BarIndex; ///< Ignore if the value is 0xFF.
|
||||
} EFI_PEI_GRAPHICS_DEVICE_INFO_HOB;
|
||||
|
||||
extern EFI_GUID gEfiGraphicsInfoHobGuid;
|
||||
extern EFI_GUID gEfiGraphicsDeviceInfoHobGuid;
|
||||
extern EFI_GUID gEfiGraphicsInfoHobGuid;
|
||||
extern EFI_GUID gEfiGraphicsDeviceInfoHobGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -17,6 +17,6 @@
|
||||
0x414E6BDD, 0xE47B, 0x47cc, {0xB2, 0x44, 0xBB, 0x61, 0x02, 0x0C, 0xF5, 0x16} \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEfiHardwareErrorVariableGuid;
|
||||
extern EFI_GUID gEfiHardwareErrorVariableGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -14,6 +14,6 @@
|
||||
#define EFI_HII_STANDARD_FORM_GUID \
|
||||
{ 0x3bd2f4ec, 0xe524, 0x46e4, { 0xa9, 0xd8, 0x51, 0x1, 0x17, 0x42, 0x55, 0x62 } }
|
||||
|
||||
extern EFI_GUID gEfiHiiStandardFormGuid;
|
||||
extern EFI_GUID gEfiHiiStandardFormGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -16,6 +16,6 @@
|
||||
#define EFI_HII_SET_KEYBOARD_LAYOUT_EVENT_GUID \
|
||||
{ 0x14982a4f, 0xb0ed, 0x45b8, { 0xa8, 0x11, 0x5a, 0x7a, 0x9b, 0xc2, 0x32, 0xdf }}
|
||||
|
||||
extern EFI_GUID gEfiHiiKeyBoardLayoutGuid;
|
||||
extern EFI_GUID gEfiHiiKeyBoardLayoutGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -25,9 +25,9 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#define EFI_HII_REST_STYLE_FORMSET_GUID \
|
||||
{ 0x790217bd, 0xbecf, 0x485b, { 0x91, 0x70, 0x5f, 0xf7, 0x11, 0x31, 0x8b, 0x27 } }
|
||||
|
||||
extern EFI_GUID gEfiHiiPlatformSetupFormsetGuid;
|
||||
extern EFI_GUID gEfiHiiDriverHealthFormsetGuid;
|
||||
extern EFI_GUID gEfiHiiUserCredentialFormsetGuid;
|
||||
extern EFI_GUID gEfiHiiRestStyleFormsetGuid;
|
||||
extern EFI_GUID gEfiHiiPlatformSetupFormsetGuid;
|
||||
extern EFI_GUID gEfiHiiDriverHealthFormsetGuid;
|
||||
extern EFI_GUID gEfiHiiUserCredentialFormsetGuid;
|
||||
extern EFI_GUID gEfiHiiRestStyleFormsetGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -19,6 +19,6 @@
|
||||
0x7739f24c, 0x93d7, 0x11d4, {0x9a, 0x3a, 0x0, 0x90, 0x27, 0x3f, 0xc1, 0x4d } \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEfiHobListGuid;
|
||||
extern EFI_GUID gEfiHobListGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -23,27 +23,27 @@
|
||||
/// Varialbe name with guid EFI_IMAGE_SECURITY_DATABASE_GUID
|
||||
/// for the authorized signature database.
|
||||
///
|
||||
#define EFI_IMAGE_SECURITY_DATABASE L"db"
|
||||
#define EFI_IMAGE_SECURITY_DATABASE L"db"
|
||||
///
|
||||
/// Varialbe name with guid EFI_IMAGE_SECURITY_DATABASE_GUID
|
||||
/// for the forbidden signature database.
|
||||
///
|
||||
#define EFI_IMAGE_SECURITY_DATABASE1 L"dbx"
|
||||
#define EFI_IMAGE_SECURITY_DATABASE1 L"dbx"
|
||||
///
|
||||
/// Variable name with guid EFI_IMAGE_SECURITY_DATABASE_GUID
|
||||
/// for the timestamp signature database.
|
||||
///
|
||||
#define EFI_IMAGE_SECURITY_DATABASE2 L"dbt"
|
||||
#define EFI_IMAGE_SECURITY_DATABASE2 L"dbt"
|
||||
|
||||
#define SECURE_BOOT_MODE_ENABLE 1
|
||||
#define SECURE_BOOT_MODE_DISABLE 0
|
||||
#define SECURE_BOOT_MODE_ENABLE 1
|
||||
#define SECURE_BOOT_MODE_DISABLE 0
|
||||
|
||||
#define SETUP_MODE 1
|
||||
#define USER_MODE 0
|
||||
#define SETUP_MODE 1
|
||||
#define USER_MODE 0
|
||||
|
||||
//***********************************************************************
|
||||
// ***********************************************************************
|
||||
// Signature Database
|
||||
//***********************************************************************
|
||||
// ***********************************************************************
|
||||
///
|
||||
/// The format of a signature database.
|
||||
///
|
||||
@@ -53,30 +53,30 @@ typedef struct {
|
||||
///
|
||||
/// An identifier which identifies the agent which added the signature to the list.
|
||||
///
|
||||
EFI_GUID SignatureOwner;
|
||||
EFI_GUID SignatureOwner;
|
||||
///
|
||||
/// The format of the signature is defined by the SignatureType.
|
||||
///
|
||||
UINT8 SignatureData[1];
|
||||
UINT8 SignatureData[1];
|
||||
} EFI_SIGNATURE_DATA;
|
||||
|
||||
typedef struct {
|
||||
///
|
||||
/// Type of the signature. GUID signature types are defined in below.
|
||||
///
|
||||
EFI_GUID SignatureType;
|
||||
EFI_GUID SignatureType;
|
||||
///
|
||||
/// Total size of the signature list, including this header.
|
||||
///
|
||||
UINT32 SignatureListSize;
|
||||
UINT32 SignatureListSize;
|
||||
///
|
||||
/// Size of the signature header which precedes the array of signatures.
|
||||
///
|
||||
UINT32 SignatureHeaderSize;
|
||||
UINT32 SignatureHeaderSize;
|
||||
///
|
||||
/// Size of each signature.
|
||||
///
|
||||
UINT32 SignatureSize;
|
||||
UINT32 SignatureSize;
|
||||
///
|
||||
/// Header before the array of signatures. The format of this header is specified
|
||||
/// by the SignatureType.
|
||||
@@ -91,33 +91,33 @@ typedef struct {
|
||||
///
|
||||
/// The SHA256 hash of an X.509 certificate's To-Be-Signed contents.
|
||||
///
|
||||
EFI_SHA256_HASH ToBeSignedHash;
|
||||
EFI_SHA256_HASH ToBeSignedHash;
|
||||
///
|
||||
/// The time that the certificate shall be considered to be revoked.
|
||||
///
|
||||
EFI_TIME TimeOfRevocation;
|
||||
EFI_TIME TimeOfRevocation;
|
||||
} EFI_CERT_X509_SHA256;
|
||||
|
||||
typedef struct {
|
||||
///
|
||||
/// The SHA384 hash of an X.509 certificate's To-Be-Signed contents.
|
||||
///
|
||||
EFI_SHA384_HASH ToBeSignedHash;
|
||||
EFI_SHA384_HASH ToBeSignedHash;
|
||||
///
|
||||
/// The time that the certificate shall be considered to be revoked.
|
||||
///
|
||||
EFI_TIME TimeOfRevocation;
|
||||
EFI_TIME TimeOfRevocation;
|
||||
} EFI_CERT_X509_SHA384;
|
||||
|
||||
typedef struct {
|
||||
///
|
||||
/// The SHA512 hash of an X.509 certificate's To-Be-Signed contents.
|
||||
///
|
||||
EFI_SHA512_HASH ToBeSignedHash;
|
||||
EFI_SHA512_HASH ToBeSignedHash;
|
||||
///
|
||||
/// The time that the certificate shall be considered to be revoked.
|
||||
///
|
||||
EFI_TIME TimeOfRevocation;
|
||||
EFI_TIME TimeOfRevocation;
|
||||
} EFI_CERT_X509_SHA512;
|
||||
|
||||
#pragma pack()
|
||||
@@ -265,9 +265,9 @@ typedef struct {
|
||||
0x4aafd29d, 0x68df, 0x49ee, {0x8a, 0xa9, 0x34, 0x7d, 0x37, 0x56, 0x65, 0xa7} \
|
||||
}
|
||||
|
||||
//***********************************************************************
|
||||
// ***********************************************************************
|
||||
// Image Execution Information Table Definition
|
||||
//***********************************************************************
|
||||
// ***********************************************************************
|
||||
typedef UINT32 EFI_IMAGE_EXECUTION_ACTION;
|
||||
|
||||
#define EFI_IMAGE_EXECUTION_AUTHENTICATION 0x00000007
|
||||
@@ -316,31 +316,30 @@ typedef struct {
|
||||
///
|
||||
} EFI_IMAGE_EXECUTION_INFO;
|
||||
|
||||
|
||||
typedef struct {
|
||||
///
|
||||
/// Number of EFI_IMAGE_EXECUTION_INFO structures.
|
||||
///
|
||||
UINTN NumberOfImages;
|
||||
UINTN NumberOfImages;
|
||||
///
|
||||
/// Number of image instances of EFI_IMAGE_EXECUTION_INFO structures.
|
||||
///
|
||||
// EFI_IMAGE_EXECUTION_INFO InformationInfo[]
|
||||
} EFI_IMAGE_EXECUTION_INFO_TABLE;
|
||||
|
||||
extern EFI_GUID gEfiImageSecurityDatabaseGuid;
|
||||
extern EFI_GUID gEfiCertSha256Guid;
|
||||
extern EFI_GUID gEfiCertRsa2048Guid;
|
||||
extern EFI_GUID gEfiCertRsa2048Sha256Guid;
|
||||
extern EFI_GUID gEfiCertSha1Guid;
|
||||
extern EFI_GUID gEfiCertRsa2048Sha1Guid;
|
||||
extern EFI_GUID gEfiCertX509Guid;
|
||||
extern EFI_GUID gEfiCertSha224Guid;
|
||||
extern EFI_GUID gEfiCertSha384Guid;
|
||||
extern EFI_GUID gEfiCertSha512Guid;
|
||||
extern EFI_GUID gEfiCertX509Sha256Guid;
|
||||
extern EFI_GUID gEfiCertX509Sha384Guid;
|
||||
extern EFI_GUID gEfiCertX509Sha512Guid;
|
||||
extern EFI_GUID gEfiCertPkcs7Guid;
|
||||
extern EFI_GUID gEfiImageSecurityDatabaseGuid;
|
||||
extern EFI_GUID gEfiCertSha256Guid;
|
||||
extern EFI_GUID gEfiCertRsa2048Guid;
|
||||
extern EFI_GUID gEfiCertRsa2048Sha256Guid;
|
||||
extern EFI_GUID gEfiCertSha1Guid;
|
||||
extern EFI_GUID gEfiCertRsa2048Sha1Guid;
|
||||
extern EFI_GUID gEfiCertX509Guid;
|
||||
extern EFI_GUID gEfiCertSha224Guid;
|
||||
extern EFI_GUID gEfiCertSha384Guid;
|
||||
extern EFI_GUID gEfiCertSha512Guid;
|
||||
extern EFI_GUID gEfiCertX509Sha256Guid;
|
||||
extern EFI_GUID gEfiCertX509Sha384Guid;
|
||||
extern EFI_GUID gEfiCertX509Sha512Guid;
|
||||
extern EFI_GUID gEfiCertPkcs7Guid;
|
||||
|
||||
#endif
|
||||
|
@@ -31,68 +31,66 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
{0x67d6f4cd, 0xd6b8, 0x4573, \
|
||||
{0xbf, 0x4a, 0xde, 0x5e, 0x25, 0x2d, 0x61, 0xae }}
|
||||
|
||||
|
||||
#pragma pack(1)
|
||||
|
||||
typedef struct {
|
||||
///
|
||||
/// Version of the structure, initially 0x00000001.
|
||||
///
|
||||
UINT32 Version;
|
||||
UINT32 Version;
|
||||
|
||||
///
|
||||
/// The unique identifier of this capsule.
|
||||
///
|
||||
UINT32 CapsuleId;
|
||||
UINT32 CapsuleId;
|
||||
|
||||
///
|
||||
/// The length of the JSON payload immediately following this header, in bytes.
|
||||
///
|
||||
UINT32 PayloadLength;
|
||||
UINT32 PayloadLength;
|
||||
|
||||
///
|
||||
/// Variable length buffer containing the JSON payload that should be parsed and applied to the system. The
|
||||
/// definition of the JSON schema used in the payload is beyond the scope of this specification.
|
||||
///
|
||||
UINT8 Payload[];
|
||||
UINT8 Payload[];
|
||||
} EFI_JSON_CAPSULE_HEADER;
|
||||
|
||||
typedef struct {
|
||||
///
|
||||
/// The length of the following ConfigData, in bytes.
|
||||
///
|
||||
UINT32 ConfigDataLength;
|
||||
UINT32 ConfigDataLength;
|
||||
|
||||
///
|
||||
/// Variable length buffer containing the JSON payload that describes one group of configuration data within
|
||||
/// current system. The definition of the JSON schema used in this payload is beyond the scope of this specification.
|
||||
///
|
||||
UINT8 ConfigData[];
|
||||
UINT8 ConfigData[];
|
||||
} EFI_JSON_CONFIG_DATA_ITEM;
|
||||
|
||||
typedef struct {
|
||||
///
|
||||
/// Version of the structure, initially 0x00000001.
|
||||
///
|
||||
UINT32 Version;
|
||||
UINT32 Version;
|
||||
|
||||
///
|
||||
////The total length of EFI_JSON_CAPSULE_CONFIG_DATA, in bytes.
|
||||
///
|
||||
UINT32 TotalLength;
|
||||
UINT32 TotalLength;
|
||||
|
||||
///
|
||||
/// Array of configuration data groups.
|
||||
///
|
||||
EFI_JSON_CONFIG_DATA_ITEM ConfigDataList[];
|
||||
EFI_JSON_CONFIG_DATA_ITEM ConfigDataList[];
|
||||
} EFI_JSON_CAPSULE_CONFIG_DATA;
|
||||
|
||||
#pragma pack()
|
||||
|
||||
extern EFI_GUID gEfiJsonConfigDataTableGuid;
|
||||
extern EFI_GUID gEfiJsonCapsuleDataTableGuid;
|
||||
extern EFI_GUID gEfiJsonCapsuleResultTableGuid;
|
||||
extern EFI_GUID gEfiJsonCapsuleIdGuid;
|
||||
|
||||
extern EFI_GUID gEfiJsonConfigDataTableGuid;
|
||||
extern EFI_GUID gEfiJsonCapsuleDataTableGuid;
|
||||
extern EFI_GUID gEfiJsonCapsuleResultTableGuid;
|
||||
extern EFI_GUID gEfiJsonCapsuleIdGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -25,6 +25,6 @@
|
||||
#define LINUX_EFI_INITRD_MEDIA_GUID \
|
||||
{0x5568e427, 0x68fc, 0x4f3d, {0xac, 0x74, 0xca, 0x55, 0x52, 0x31, 0xcc, 0x68}}
|
||||
|
||||
extern EFI_GUID gLinuxEfiInitrdMediaGuid;
|
||||
extern EFI_GUID gLinuxEfiInitrdMediaGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -14,6 +14,6 @@
|
||||
0x914AEBE7, 0x4635, 0x459b, { 0xAA, 0x1C, 0x11, 0xE2, 0x19, 0xB0, 0x3A, 0x10 } \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEfiMdePkgTokenSpaceGuid;
|
||||
extern EFI_GUID gEfiMdePkgTokenSpaceGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -21,8 +21,8 @@
|
||||
#define EFI_HOB_MEMORY_ALLOC_MODULE_GUID \
|
||||
{0xf8e21975, 0x899, 0x4f58, {0xa4, 0xbe, 0x55, 0x25, 0xa9, 0xc6, 0xd7, 0x7a} }
|
||||
|
||||
extern EFI_GUID gEfiHobMemoryAllocBspStoreGuid;
|
||||
extern EFI_GUID gEfiHobMemoryAllocStackGuid;
|
||||
extern EFI_GUID gEfiHobMemoryAllocModuleGuid;
|
||||
extern EFI_GUID gEfiHobMemoryAllocBspStoreGuid;
|
||||
extern EFI_GUID gEfiHobMemoryAllocStackGuid;
|
||||
extern EFI_GUID gEfiHobMemoryAllocModuleGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -9,20 +9,20 @@
|
||||
#ifndef __UEFI_MEMORY_ATTRIBUTES_TABLE_H__
|
||||
#define __UEFI_MEMORY_ATTRIBUTES_TABLE_H__
|
||||
|
||||
#define EFI_MEMORY_ATTRIBUTES_TABLE_GUID {\
|
||||
#define EFI_MEMORY_ATTRIBUTES_TABLE_GUID {\
|
||||
0xdcfa911d, 0x26eb, 0x469f, {0xa2, 0x20, 0x38, 0xb7, 0xdc, 0x46, 0x12, 0x20} \
|
||||
}
|
||||
|
||||
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];
|
||||
} EFI_MEMORY_ATTRIBUTES_TABLE;
|
||||
|
||||
#define EFI_MEMORY_ATTRIBUTES_TABLE_VERSION 0x00000001
|
||||
|
||||
extern EFI_GUID gEfiMemoryAttributesTableGuid;
|
||||
extern EFI_GUID gEfiMemoryAttributesTableGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -27,25 +27,25 @@
|
||||
/// EFI_VARIABLE_BOOTSERVICE_ACCESS |
|
||||
/// EFI_VARIABLE_RUNTIME_ACCESS
|
||||
///
|
||||
#define MEMORY_OVERWRITE_REQUEST_VARIABLE_NAME L"MemoryOverwriteRequestControl"
|
||||
#define MEMORY_OVERWRITE_REQUEST_VARIABLE_NAME L"MemoryOverwriteRequestControl"
|
||||
|
||||
///
|
||||
/// 0 = Firmware MUST clear the MOR bit
|
||||
/// 1 = Firmware MUST set the MOR bit
|
||||
///
|
||||
#define MOR_CLEAR_MEMORY_BIT_MASK 0x01
|
||||
#define MOR_CLEAR_MEMORY_BIT_MASK 0x01
|
||||
|
||||
///
|
||||
/// 0 = Firmware MAY autodetect a clean shutdown of the Static RTM OS.
|
||||
/// 1 = Firmware MUST NOT autodetect a clean shutdown of the Static RTM OS.
|
||||
///
|
||||
#define MOR_DISABLEAUTODETECT_BIT_MASK 0x10
|
||||
#define MOR_DISABLEAUTODETECT_BIT_MASK 0x10
|
||||
|
||||
///
|
||||
/// MOR field bit offset
|
||||
///
|
||||
#define MOR_CLEAR_MEMORY_BIT_OFFSET 0
|
||||
#define MOR_DISABLEAUTODETECT_BIT_OFFSET 4
|
||||
#define MOR_CLEAR_MEMORY_BIT_OFFSET 0
|
||||
#define MOR_DISABLEAUTODETECT_BIT_OFFSET 4
|
||||
|
||||
/**
|
||||
Return the ClearMemory bit value 0 or 1.
|
||||
@@ -54,7 +54,7 @@
|
||||
|
||||
@return ClearMemory bit value
|
||||
**/
|
||||
#define MOR_CLEAR_MEMORY_VALUE(mor) (((UINT8)(mor) & MOR_CLEAR_MEMORY_BIT_MASK) >> MOR_CLEAR_MEMORY_BIT_OFFSET)
|
||||
#define MOR_CLEAR_MEMORY_VALUE(mor) (((UINT8)(mor) & MOR_CLEAR_MEMORY_BIT_MASK) >> MOR_CLEAR_MEMORY_BIT_OFFSET)
|
||||
|
||||
/**
|
||||
Return the DisableAutoDetect bit value 0 or 1.
|
||||
@@ -63,8 +63,8 @@
|
||||
|
||||
@return DisableAutoDetect bit value
|
||||
**/
|
||||
#define MOR_DISABLE_AUTO_DETECT_VALUE(mor) (((UINT8)(mor) & MOR_DISABLEAUTODETECT_BIT_MASK) >> MOR_DISABLEAUTODETECT_BIT_OFFSET)
|
||||
#define MOR_DISABLE_AUTO_DETECT_VALUE(mor) (((UINT8)(mor) & MOR_DISABLEAUTODETECT_BIT_MASK) >> MOR_DISABLEAUTODETECT_BIT_OFFSET)
|
||||
|
||||
extern EFI_GUID gEfiMemoryOverwriteControlDataGuid;
|
||||
extern EFI_GUID gEfiMemoryOverwriteControlDataGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -22,8 +22,8 @@
|
||||
//
|
||||
// GUID name defined in spec.
|
||||
//
|
||||
#define MPS_TABLE_GUID EFI_MPS_TABLE_GUID
|
||||
#define MPS_TABLE_GUID EFI_MPS_TABLE_GUID
|
||||
|
||||
extern EFI_GUID gEfiMpsTableGuid;
|
||||
extern EFI_GUID gEfiMpsTableGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -42,11 +42,11 @@
|
||||
0xd487ddb4, 0x008b, 0x11d9, {0xaf, 0xdc, 0x00, 0x10, 0x83, 0xff, 0xca, 0x4d } \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEfiPcAnsiGuid;
|
||||
extern EFI_GUID gEfiVT100Guid;
|
||||
extern EFI_GUID gEfiVT100PlusGuid;
|
||||
extern EFI_GUID gEfiVTUTF8Guid;
|
||||
extern EFI_GUID gEfiUartDevicePathGuid;
|
||||
extern EFI_GUID gEfiSasDevicePathGuid;
|
||||
extern EFI_GUID gEfiPcAnsiGuid;
|
||||
extern EFI_GUID gEfiVT100Guid;
|
||||
extern EFI_GUID gEfiVT100PlusGuid;
|
||||
extern EFI_GUID gEfiVTUTF8Guid;
|
||||
extern EFI_GUID gEfiUartDevicePathGuid;
|
||||
extern EFI_GUID gEfiSasDevicePathGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -22,32 +22,29 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
{ 0xeb66918a, 0x7eef, 0x402a, \
|
||||
{ 0x84, 0x2e, 0x93, 0x1d, 0x21, 0xc3, 0x8a, 0xe9 }}
|
||||
|
||||
|
||||
|
||||
|
||||
#pragma pack(1)
|
||||
|
||||
typedef struct {
|
||||
///
|
||||
/// Version of the structure, must be 0x1.
|
||||
///
|
||||
UINT16 Version;
|
||||
UINT16 Version;
|
||||
|
||||
///
|
||||
/// Size in bytes of the entire EFI_RT_PROPERTIES_TABLE, must be 8.
|
||||
///
|
||||
UINT16 Length;
|
||||
UINT16 Length;
|
||||
|
||||
///
|
||||
/// Bitmask of which calls are or are not supported, where a bit set to 1 indicates
|
||||
/// that the call is supported, and 0 indicates that it is not.
|
||||
///
|
||||
UINT32 RuntimeServicesSupported;
|
||||
UINT32 RuntimeServicesSupported;
|
||||
} EFI_RT_PROPERTIES_TABLE;
|
||||
|
||||
#pragma pack()
|
||||
|
||||
#define EFI_RT_PROPERTIES_TABLE_VERSION 0x1
|
||||
#define EFI_RT_PROPERTIES_TABLE_VERSION 0x1
|
||||
|
||||
#define EFI_RT_SUPPORTED_GET_TIME 0x0001
|
||||
#define EFI_RT_SUPPORTED_SET_TIME 0x0002
|
||||
@@ -64,6 +61,6 @@ typedef struct {
|
||||
#define EFI_RT_SUPPORTED_QUERY_CAPSULE_CAPABILITIES 0x1000
|
||||
#define EFI_RT_SUPPORTED_QUERY_VARIABLE_INFO 0x2000
|
||||
|
||||
extern EFI_GUID gEfiRtPropertiesTableGuid;
|
||||
extern EFI_GUID gEfiRtPropertiesTableGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -26,7 +26,7 @@
|
||||
0xf2fd1544, 0x9794, 0x4a2c, {0x99, 0x2e, 0xe5, 0xbb, 0xcf, 0x20, 0xe3, 0x94 } \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEfiSmbiosTableGuid;
|
||||
extern EFI_GUID gEfiSmbios3TableGuid;
|
||||
extern EFI_GUID gEfiSmbiosTableGuid;
|
||||
extern EFI_GUID gEfiSmbios3TableGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -31,15 +31,14 @@ typedef struct {
|
||||
/// Designates the number of possible regions in the system
|
||||
/// that can be usable for SMRAM.
|
||||
///
|
||||
UINT32 NumberOfSmmReservedRegions;
|
||||
UINT32 NumberOfSmmReservedRegions;
|
||||
///
|
||||
/// Used throughout this protocol to describe the candidate
|
||||
/// regions for SMRAM that are supported by this platform.
|
||||
///
|
||||
EFI_SMRAM_DESCRIPTOR Descriptor[1];
|
||||
EFI_SMRAM_DESCRIPTOR Descriptor[1];
|
||||
} EFI_SMRAM_HOB_DESCRIPTOR_BLOCK;
|
||||
|
||||
extern EFI_GUID gEfiSmmSmramMemoryGuid;
|
||||
extern EFI_GUID gEfiSmmSmramMemoryGuid;
|
||||
|
||||
#endif
|
||||
|
||||
|
@@ -47,27 +47,27 @@ typedef struct {
|
||||
/// not be the same for different boots. Type EFI_HII_HANDLE is defined in
|
||||
/// EFI_HII_DATABASE_PROTOCOL.NewPackageList() in the UEFI Specification.
|
||||
///
|
||||
EFI_HII_HANDLE Handle;
|
||||
EFI_HII_HANDLE Handle;
|
||||
///
|
||||
/// When combined with Handle, the string token can be used to retrieve the string.
|
||||
/// Type EFI_STRING_ID is defined in EFI_IFR_OP_HEADER in the UEFI Specification.
|
||||
///
|
||||
EFI_STRING_ID Token;
|
||||
EFI_STRING_ID Token;
|
||||
} EFI_STATUS_CODE_STRING_TOKEN;
|
||||
|
||||
typedef union {
|
||||
///
|
||||
/// ASCII formatted string.
|
||||
///
|
||||
CHAR8 *Ascii;
|
||||
CHAR8 *Ascii;
|
||||
///
|
||||
/// Unicode formatted string.
|
||||
///
|
||||
CHAR16 *Unicode;
|
||||
CHAR16 *Unicode;
|
||||
///
|
||||
/// HII handle/token pair.
|
||||
///
|
||||
EFI_STATUS_CODE_STRING_TOKEN Hii;
|
||||
EFI_STATUS_CODE_STRING_TOKEN Hii;
|
||||
} EFI_STATUS_CODE_STRING;
|
||||
|
||||
///
|
||||
@@ -84,19 +84,19 @@ typedef struct {
|
||||
/// DataHeader.Type should be
|
||||
/// EFI_STATUS_CODE_DATA_TYPE_STRING_GUID.
|
||||
///
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
///
|
||||
/// Specifies the format of the data in String.
|
||||
///
|
||||
EFI_STRING_TYPE StringType;
|
||||
EFI_STRING_TYPE StringType;
|
||||
///
|
||||
/// A pointer to the extended data. The data follows the format specified by
|
||||
/// StringType.
|
||||
///
|
||||
EFI_STATUS_CODE_STRING String;
|
||||
EFI_STATUS_CODE_STRING String;
|
||||
} EFI_STATUS_CODE_STRING_DATA;
|
||||
|
||||
extern EFI_GUID gEfiStatusCodeDataTypeStringGuid;
|
||||
extern EFI_GUID gEfiStatusCodeDataTypeStringGuid;
|
||||
|
||||
///
|
||||
/// Global ID for the following structures:
|
||||
@@ -141,7 +141,7 @@ typedef struct {
|
||||
/// device that does not have a device path. DataHeader.Type should be
|
||||
/// EFI_STATUS_CODE_SPECIFIC_DATA_GUID.
|
||||
///
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
///
|
||||
/// The device path to the controller or the hardware device. Note that this parameter is a
|
||||
/// variable-length device path structure and not a pointer to such a structure. This structure is
|
||||
@@ -168,11 +168,11 @@ typedef struct {
|
||||
/// sizeof (EFI_DEVICE_HANDLE_EXTENDED_DATA) - HeaderSize, and
|
||||
/// DataHeader.Type should be EFI_STATUS_CODE_SPECIFIC_DATA_GUID.
|
||||
///
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
///
|
||||
/// The device handle.
|
||||
///
|
||||
EFI_HANDLE Handle;
|
||||
EFI_HANDLE Handle;
|
||||
} EFI_DEVICE_HANDLE_EXTENDED_DATA;
|
||||
|
||||
///
|
||||
@@ -196,27 +196,27 @@ typedef struct {
|
||||
/// sizeof(UINT32) + 3 * sizeof (UINT16) ), and DataHeader.Type
|
||||
/// should be EFI_STATUS_CODE_SPECIFIC_DATA_GUID.
|
||||
///
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
///
|
||||
/// The PCI BAR. Applicable only for PCI devices. Ignored for all other devices.
|
||||
///
|
||||
UINT32 Bar;
|
||||
UINT32 Bar;
|
||||
///
|
||||
/// DevicePathSize should be zero if it is a virtual device that is not associated with
|
||||
/// a device path. Otherwise, this parameter is the length of the variable-length
|
||||
/// DevicePath.
|
||||
///
|
||||
UINT16 DevicePathSize;
|
||||
UINT16 DevicePathSize;
|
||||
///
|
||||
/// Represents the size the ReqRes parameter. ReqResSize should be zero if the
|
||||
/// requested resources are not provided as a part of extended data.
|
||||
///
|
||||
UINT16 ReqResSize;
|
||||
UINT16 ReqResSize;
|
||||
///
|
||||
/// Represents the size the AllocRes parameter. AllocResSize should be zero if the
|
||||
/// allocated resources are not provided as a part of extended data.
|
||||
///
|
||||
UINT16 AllocResSize;
|
||||
UINT16 AllocResSize;
|
||||
///
|
||||
/// The device path to the controller or the hardware device that did not get the requested
|
||||
/// resources. Note that this parameter is the variable-length device path structure and not
|
||||
@@ -246,11 +246,11 @@ typedef struct {
|
||||
///
|
||||
/// The INT16 number by which to multiply the base-2 representation.
|
||||
///
|
||||
INT16 Value;
|
||||
INT16 Value;
|
||||
///
|
||||
/// The INT16 number by which to raise the base-2 calculation.
|
||||
///
|
||||
INT16 Exponent;
|
||||
INT16 Exponent;
|
||||
} EFI_EXP_BASE10_DATA;
|
||||
|
||||
///
|
||||
@@ -268,15 +268,15 @@ typedef struct {
|
||||
/// HeaderSize, and DataHeader.Type should be
|
||||
/// EFI_STATUS_CODE_SPECIFIC_DATA_GUID.
|
||||
///
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
///
|
||||
/// The voltage value at the time of the error.
|
||||
///
|
||||
EFI_EXP_BASE10_DATA Voltage;
|
||||
EFI_EXP_BASE10_DATA Voltage;
|
||||
///
|
||||
/// The voltage threshold.
|
||||
///
|
||||
EFI_EXP_BASE10_DATA Threshold;
|
||||
EFI_EXP_BASE10_DATA Threshold;
|
||||
} EFI_COMPUTING_UNIT_VOLTAGE_ERROR_DATA;
|
||||
|
||||
///
|
||||
@@ -290,11 +290,11 @@ typedef struct {
|
||||
/// HeaderSize, and DataHeader.Type should be
|
||||
/// EFI_STATUS_CODE_SPECIFIC_DATA_GUID.
|
||||
///
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
///
|
||||
/// The version of the microcode update from the header.
|
||||
///
|
||||
UINT32 Version;
|
||||
UINT32 Version;
|
||||
} EFI_COMPUTING_UNIT_MICROCODE_UPDATE_ERROR_DATA;
|
||||
|
||||
///
|
||||
@@ -309,11 +309,11 @@ typedef struct {
|
||||
/// HeaderSize, and DataHeader.Type should be
|
||||
/// EFI_STATUS_CODE_SPECIFIC_DATA_GUID.
|
||||
///
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
///
|
||||
/// The number of seconds that the computing unit timer was configured to expire.
|
||||
///
|
||||
EFI_EXP_BASE10_DATA TimerLimit;
|
||||
EFI_EXP_BASE10_DATA TimerLimit;
|
||||
} EFI_COMPUTING_UNIT_TIMER_EXPIRED_ERROR_DATA;
|
||||
|
||||
///
|
||||
@@ -351,15 +351,15 @@ typedef struct {
|
||||
/// HeaderSize , and DataHeader.Type should be
|
||||
/// EFI_STATUS_CODE_SPECIFIC_DATA_GUID.
|
||||
///
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
///
|
||||
/// The unit number of the computing unit that does not match.
|
||||
///
|
||||
UINT32 Instance;
|
||||
UINT32 Instance;
|
||||
///
|
||||
/// The attributes describing the failure.
|
||||
///
|
||||
UINT16 Attributes;
|
||||
UINT16 Attributes;
|
||||
} EFI_HOST_PROCESSOR_MISMATCH_ERROR_DATA;
|
||||
|
||||
///
|
||||
@@ -376,15 +376,15 @@ typedef struct {
|
||||
/// HeaderSize , and DataHeader.Type should be
|
||||
/// EFI_STATUS_CODE_SPECIFIC_DATA_GUID.
|
||||
///
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
///
|
||||
/// The thermal value at the time of the error.
|
||||
///
|
||||
EFI_EXP_BASE10_DATA Temperature;
|
||||
EFI_EXP_BASE10_DATA Temperature;
|
||||
///
|
||||
/// The thermal threshold.
|
||||
///
|
||||
EFI_EXP_BASE10_DATA Threshold;
|
||||
EFI_EXP_BASE10_DATA Threshold;
|
||||
} EFI_COMPUTING_UNIT_THERMAL_ERROR_DATA;
|
||||
|
||||
///
|
||||
@@ -407,36 +407,36 @@ typedef struct {
|
||||
/// sizeof (EFI_CACHE_INIT_DATA) - HeaderSize , and
|
||||
/// DataHeader.Type should be EFI_STATUS_CODE_SPECIFIC_DATA_GUID.
|
||||
///
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
///
|
||||
/// The cache level. Starts with 1 for level 1 cache.
|
||||
///
|
||||
UINT32 Level;
|
||||
UINT32 Level;
|
||||
///
|
||||
/// The type of cache.
|
||||
///
|
||||
EFI_INIT_CACHE_TYPE Type;
|
||||
EFI_INIT_CACHE_TYPE Type;
|
||||
} EFI_CACHE_INIT_DATA;
|
||||
|
||||
///
|
||||
///
|
||||
///
|
||||
typedef UINT32 EFI_CPU_STATE_CHANGE_CAUSE;
|
||||
typedef UINT32 EFI_CPU_STATE_CHANGE_CAUSE;
|
||||
|
||||
///
|
||||
/// The reasons that the processor is disabled.
|
||||
/// Used to fill in EFI_COMPUTING_UNIT_CPU_DISABLED_ERROR_DATA.Cause.
|
||||
///
|
||||
///@{
|
||||
#define EFI_CPU_CAUSE_INTERNAL_ERROR 0x0001
|
||||
#define EFI_CPU_CAUSE_THERMAL_ERROR 0x0002
|
||||
#define EFI_CPU_CAUSE_SELFTEST_FAILURE 0x0004
|
||||
#define EFI_CPU_CAUSE_PREBOOT_TIMEOUT 0x0008
|
||||
#define EFI_CPU_CAUSE_FAILED_TO_START 0x0010
|
||||
#define EFI_CPU_CAUSE_CONFIG_ERROR 0x0020
|
||||
#define EFI_CPU_CAUSE_USER_SELECTION 0x0080
|
||||
#define EFI_CPU_CAUSE_BY_ASSOCIATION 0x0100
|
||||
#define EFI_CPU_CAUSE_UNSPECIFIED 0x8000
|
||||
#define EFI_CPU_CAUSE_INTERNAL_ERROR 0x0001
|
||||
#define EFI_CPU_CAUSE_THERMAL_ERROR 0x0002
|
||||
#define EFI_CPU_CAUSE_SELFTEST_FAILURE 0x0004
|
||||
#define EFI_CPU_CAUSE_PREBOOT_TIMEOUT 0x0008
|
||||
#define EFI_CPU_CAUSE_FAILED_TO_START 0x0010
|
||||
#define EFI_CPU_CAUSE_CONFIG_ERROR 0x0020
|
||||
#define EFI_CPU_CAUSE_USER_SELECTION 0x0080
|
||||
#define EFI_CPU_CAUSE_BY_ASSOCIATION 0x0100
|
||||
#define EFI_CPU_CAUSE_UNSPECIFIED 0x8000
|
||||
///@}
|
||||
|
||||
///
|
||||
@@ -454,17 +454,17 @@ typedef struct {
|
||||
/// HeaderSize, and DataHeader.Type should be
|
||||
/// EFI_STATUS_CODE_SPECIFIC_DATA_GUID.
|
||||
///
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
///
|
||||
/// The reason for disabling the processor.
|
||||
///
|
||||
UINT32 Cause;
|
||||
UINT32 Cause;
|
||||
///
|
||||
/// TRUE if the processor is disabled via software means such as not listing it in the ACPI tables.
|
||||
/// Such a processor will respond to Interprocessor Interrupts (IPIs). FALSE if the processor is hardware
|
||||
/// disabled, which means it is invisible to software and will not respond to IPIs.
|
||||
///
|
||||
BOOLEAN SoftwareDisabled;
|
||||
BOOLEAN SoftwareDisabled;
|
||||
} EFI_COMPUTING_UNIT_CPU_DISABLED_ERROR_DATA;
|
||||
|
||||
///
|
||||
@@ -491,11 +491,11 @@ typedef UINT8 EFI_MEMORY_ERROR_OPERATION;
|
||||
/// Memory Error Operations. Used to fill in EFI_MEMORY_EXTENDED_ERROR_DATA.Operation.
|
||||
///
|
||||
///@{
|
||||
#define EFI_MEMORY_OPERATION_OTHER 0x01
|
||||
#define EFI_MEMORY_OPERATION_UNKNOWN 0x02
|
||||
#define EFI_MEMORY_OPERATION_READ 0x03
|
||||
#define EFI_MEMORY_OPERATION_WRITE 0x04
|
||||
#define EFI_MEMORY_OPERATION_PARTIAL_WRITE 0x05
|
||||
#define EFI_MEMORY_OPERATION_OTHER 0x01
|
||||
#define EFI_MEMORY_OPERATION_UNKNOWN 0x02
|
||||
#define EFI_MEMORY_OPERATION_READ 0x03
|
||||
#define EFI_MEMORY_OPERATION_WRITE 0x04
|
||||
#define EFI_MEMORY_OPERATION_PARTIAL_WRITE 0x05
|
||||
///@}
|
||||
|
||||
///
|
||||
@@ -510,55 +510,55 @@ typedef struct {
|
||||
/// sizeof (EFI_MEMORY_EXTENDED_ERROR_DATA) - HeaderSize, and
|
||||
/// DataHeader.Type should be EFI_STATUS_CODE_SPECIFIC_DATA_GUID.
|
||||
///
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
///
|
||||
/// The error granularity type.
|
||||
///
|
||||
EFI_MEMORY_ERROR_GRANULARITY Granularity;
|
||||
EFI_MEMORY_ERROR_GRANULARITY Granularity;
|
||||
///
|
||||
/// The operation that resulted in the error being detected.
|
||||
///
|
||||
EFI_MEMORY_ERROR_OPERATION Operation;
|
||||
EFI_MEMORY_ERROR_OPERATION Operation;
|
||||
///
|
||||
/// The error syndrome, vendor-specific ECC syndrome, or CRC data associated with
|
||||
/// the error. If unknown, should be initialized to 0.
|
||||
/// Inconsistent with specification here:
|
||||
/// This field in StatusCodes spec0.9 is defined as UINT32, keep code unchanged.
|
||||
///
|
||||
UINTN Syndrome;
|
||||
UINTN Syndrome;
|
||||
///
|
||||
/// The physical address of the error.
|
||||
///
|
||||
EFI_PHYSICAL_ADDRESS Address;
|
||||
EFI_PHYSICAL_ADDRESS Address;
|
||||
///
|
||||
/// The range, in bytes, within which the error address can be determined.
|
||||
///
|
||||
UINTN Resolution;
|
||||
UINTN Resolution;
|
||||
} EFI_MEMORY_EXTENDED_ERROR_DATA;
|
||||
|
||||
///
|
||||
/// A definition to describe that the operation is performed on multiple devices within the array.
|
||||
/// May be used for EFI_STATUS_CODE_DIMM_NUMBER.Array and EFI_STATUS_CODE_DIMM_NUMBER.Device.
|
||||
///
|
||||
#define EFI_MULTIPLE_MEMORY_DEVICE_OPERATION 0xfffe
|
||||
#define EFI_MULTIPLE_MEMORY_DEVICE_OPERATION 0xfffe
|
||||
|
||||
///
|
||||
/// A definition to describe that the operation is performed on all devices within the array.
|
||||
/// May be used for EFI_STATUS_CODE_DIMM_NUMBER.Array and EFI_STATUS_CODE_DIMM_NUMBER.Device.
|
||||
///
|
||||
#define EFI_ALL_MEMORY_DEVICE_OPERATION 0xffff
|
||||
#define EFI_ALL_MEMORY_DEVICE_OPERATION 0xffff
|
||||
|
||||
///
|
||||
/// A definition to describe that the operation is performed on multiple arrays.
|
||||
/// May be used for EFI_STATUS_CODE_DIMM_NUMBER.Array and EFI_STATUS_CODE_DIMM_NUMBER.Device.
|
||||
///
|
||||
#define EFI_MULTIPLE_MEMORY_ARRAY_OPERATION 0xfffe
|
||||
#define EFI_MULTIPLE_MEMORY_ARRAY_OPERATION 0xfffe
|
||||
|
||||
///
|
||||
/// A definition to describe that the operation is performed on all the arrays.
|
||||
/// May be used for EFI_STATUS_CODE_DIMM_NUMBER.Array and EFI_STATUS_CODE_DIMM_NUMBER.Device.
|
||||
///
|
||||
#define EFI_ALL_MEMORY_ARRAY_OPERATION 0xffff
|
||||
#define EFI_ALL_MEMORY_ARRAY_OPERATION 0xffff
|
||||
|
||||
///
|
||||
/// This extended data provides some context that consumers can use to locate a DIMM within the
|
||||
@@ -575,15 +575,15 @@ typedef struct {
|
||||
/// sizeof (EFI_STATUS_CODE_DIMM_NUMBER) - HeaderSize, and
|
||||
/// DataHeader.Type should be EFI_STATUS_CODE_SPECIFIC_DATA_GUID.
|
||||
///
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
///
|
||||
/// The memory array number.
|
||||
///
|
||||
UINT16 Array;
|
||||
UINT16 Array;
|
||||
///
|
||||
/// The device number within that Array.
|
||||
///
|
||||
UINT16 Device;
|
||||
UINT16 Device;
|
||||
} EFI_STATUS_CODE_DIMM_NUMBER;
|
||||
|
||||
///
|
||||
@@ -599,11 +599,11 @@ typedef struct {
|
||||
/// HeaderSize, and DataHeader.Type should be
|
||||
/// EFI_STATUS_CODE_SPECIFIC_DATA_GUID.
|
||||
///
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
///
|
||||
/// The instance number of the memory module that does not match.
|
||||
///
|
||||
EFI_STATUS_CODE_DIMM_NUMBER Instance;
|
||||
EFI_STATUS_CODE_DIMM_NUMBER Instance;
|
||||
} EFI_MEMORY_MODULE_MISMATCH_ERROR_DATA;
|
||||
|
||||
///
|
||||
@@ -619,15 +619,15 @@ typedef struct {
|
||||
/// sizeof (EFI_MEMORY_RANGE_EXTENDED_DATA) - HeaderSize, and
|
||||
/// DataHeader.Type should be EFI_STATUS_CODE_SPECIFIC_DATA_GUID.
|
||||
///
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
///
|
||||
/// The starting address of the memory range.
|
||||
///
|
||||
EFI_PHYSICAL_ADDRESS Start;
|
||||
EFI_PHYSICAL_ADDRESS Start;
|
||||
///
|
||||
/// The length in bytes of the memory range.
|
||||
///
|
||||
EFI_PHYSICAL_ADDRESS Length;
|
||||
EFI_PHYSICAL_ADDRESS Length;
|
||||
} EFI_MEMORY_RANGE_EXTENDED_DATA;
|
||||
|
||||
///
|
||||
@@ -643,20 +643,20 @@ typedef struct {
|
||||
/// sizeof (EFI_DEBUG_ASSERT_DATA) - HeaderSize , and
|
||||
/// DataHeader.Type should be EFI_STATUS_CODE_SPECIFIC_DATA_GUID.
|
||||
///
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
///
|
||||
/// The line number of the source file where the fault was generated.
|
||||
///
|
||||
UINT32 LineNumber;
|
||||
UINT32 LineNumber;
|
||||
///
|
||||
/// The size in bytes of FileName.
|
||||
///
|
||||
UINT32 FileNameSize;
|
||||
UINT32 FileNameSize;
|
||||
///
|
||||
/// A pointer to a NULL-terminated ASCII or Unicode string that represents
|
||||
/// the file name of the source file where the fault was generated.
|
||||
///
|
||||
EFI_STATUS_CODE_STRING_DATA *FileName;
|
||||
EFI_STATUS_CODE_STRING_DATA *FileName;
|
||||
} EFI_DEBUG_ASSERT_DATA;
|
||||
|
||||
///
|
||||
@@ -668,31 +668,31 @@ typedef union {
|
||||
/// EFI_SYSTEM_CONTEXT_EBC is defined in EFI_DEBUG_SUPPORT_PROTOCOL
|
||||
/// in the UEFI Specification.
|
||||
///
|
||||
EFI_SYSTEM_CONTEXT_EBC SystemContextEbc;
|
||||
EFI_SYSTEM_CONTEXT_EBC SystemContextEbc;
|
||||
///
|
||||
/// The context of the IA-32 processor when the exception was generated. Type
|
||||
/// EFI_SYSTEM_CONTEXT_IA32 is defined in the
|
||||
/// EFI_DEBUG_SUPPORT_PROTOCOL in the UEFI Specification.
|
||||
///
|
||||
EFI_SYSTEM_CONTEXT_IA32 SystemContextIa32;
|
||||
EFI_SYSTEM_CONTEXT_IA32 SystemContextIa32;
|
||||
///
|
||||
/// The context of the Itanium(R) processor when the exception was generated. Type
|
||||
/// EFI_SYSTEM_CONTEXT_IPF is defined in the
|
||||
/// EFI_DEBUG_SUPPORT_PROTOCOL in the UEFI Specification.
|
||||
///
|
||||
EFI_SYSTEM_CONTEXT_IPF SystemContextIpf;
|
||||
EFI_SYSTEM_CONTEXT_IPF SystemContextIpf;
|
||||
///
|
||||
/// The context of the X64 processor when the exception was generated. Type
|
||||
/// EFI_SYSTEM_CONTEXT_X64 is defined in the
|
||||
/// EFI_DEBUG_SUPPORT_PROTOCOL in the UEFI Specification.
|
||||
///
|
||||
EFI_SYSTEM_CONTEXT_X64 SystemContextX64;
|
||||
EFI_SYSTEM_CONTEXT_X64 SystemContextX64;
|
||||
///
|
||||
/// The context of the ARM processor when the exception was generated. Type
|
||||
/// EFI_SYSTEM_CONTEXT_ARM is defined in the
|
||||
/// EFI_DEBUG_SUPPORT_PROTOCOL in the UEFI Specification.
|
||||
///
|
||||
EFI_SYSTEM_CONTEXT_ARM SystemContextArm;
|
||||
EFI_SYSTEM_CONTEXT_ARM SystemContextArm;
|
||||
} EFI_STATUS_CODE_EXCEP_SYSTEM_CONTEXT;
|
||||
|
||||
///
|
||||
@@ -710,11 +710,11 @@ typedef struct {
|
||||
/// and DataHeader.Type should be
|
||||
/// EFI_STATUS_CODE_SPECIFIC_DATA_GUID.
|
||||
///
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
///
|
||||
/// The system context.
|
||||
///
|
||||
EFI_STATUS_CODE_EXCEP_SYSTEM_CONTEXT Context;
|
||||
EFI_STATUS_CODE_EXCEP_SYSTEM_CONTEXT Context;
|
||||
} EFI_STATUS_CODE_EXCEP_EXTENDED_DATA;
|
||||
|
||||
///
|
||||
@@ -731,21 +731,21 @@ typedef struct {
|
||||
/// and DataHeader.Type should be
|
||||
/// EFI_STATUS_CODE_SPECIFIC_DATA_GUID.
|
||||
///
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
///
|
||||
/// The controller handle.
|
||||
///
|
||||
EFI_HANDLE ControllerHandle;
|
||||
EFI_HANDLE ControllerHandle;
|
||||
///
|
||||
/// The driver binding handle.
|
||||
///
|
||||
EFI_HANDLE DriverBindingHandle;
|
||||
EFI_HANDLE DriverBindingHandle;
|
||||
///
|
||||
/// The size of the RemainingDevicePath. It is zero if the Start() function is
|
||||
/// called with RemainingDevicePath = NULL. The UEFI Specification allows
|
||||
/// that the Start() function of bus drivers can be called in this way.
|
||||
///
|
||||
UINT16 DevicePathSize;
|
||||
UINT16 DevicePathSize;
|
||||
///
|
||||
/// Matches the RemainingDevicePath parameter being passed to the Start() function.
|
||||
/// Note that this parameter is the variable-length device path and not a pointer
|
||||
@@ -768,15 +768,15 @@ typedef struct {
|
||||
/// sizeof (EFI_LEGACY_OPROM_EXTENDED_DATA) - HeaderSize, and
|
||||
/// DataHeader.Type should be EFI_STATUS_CODE_SPECIFIC_DATA_GUID.
|
||||
///
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
///
|
||||
/// The handle corresponding to the device that this legacy option ROM is being invoked.
|
||||
///
|
||||
EFI_HANDLE DeviceHandle;
|
||||
EFI_HANDLE DeviceHandle;
|
||||
///
|
||||
/// The base address of the shadowed legacy ROM image. May or may not point to the shadow RAM area.
|
||||
///
|
||||
EFI_PHYSICAL_ADDRESS RomImageBase;
|
||||
EFI_PHYSICAL_ADDRESS RomImageBase;
|
||||
} EFI_LEGACY_OPROM_EXTENDED_DATA;
|
||||
|
||||
///
|
||||
@@ -790,14 +790,14 @@ typedef struct {
|
||||
/// DataHeader.Size should be sizeof(EFI_RETURN_STATUS_EXTENDED_DATA) - HeaderSize,
|
||||
/// DataHeader.Type should be EFI_STATUS_CODE_SPECIFIC_DATA_GUID.
|
||||
///
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
EFI_STATUS_CODE_DATA DataHeader;
|
||||
///
|
||||
/// The EFI_STATUS return value of the service or function whose failure triggered the
|
||||
/// reporting of the status code (generally an error code or a debug code).
|
||||
///
|
||||
EFI_STATUS ReturnStatus;
|
||||
EFI_STATUS ReturnStatus;
|
||||
} EFI_RETURN_STATUS_EXTENDED_DATA;
|
||||
|
||||
extern EFI_GUID gEfiStatusCodeSpecificDataGuid;
|
||||
extern EFI_GUID gEfiStatusCodeSpecificDataGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -10,7 +10,6 @@
|
||||
|
||||
**/
|
||||
|
||||
|
||||
#ifndef _SYSTEM_RESOURCE_TABLE_H__
|
||||
#define _SYSTEM_RESOURCE_TABLE_H__
|
||||
|
||||
@@ -54,8 +53,8 @@
|
||||
/// When the UEFI Specification is updated, this comment block can be
|
||||
/// removed.
|
||||
///
|
||||
#define LAST_ATTEMPT_STATUS_ERROR_UNSUCCESSFUL_VENDOR_RANGE_MIN 0x00001000
|
||||
#define LAST_ATTEMPT_STATUS_ERROR_UNSUCCESSFUL_VENDOR_RANGE_MAX 0x00003FFF
|
||||
#define LAST_ATTEMPT_STATUS_ERROR_UNSUCCESSFUL_VENDOR_RANGE_MIN 0x00001000
|
||||
#define LAST_ATTEMPT_STATUS_ERROR_UNSUCCESSFUL_VENDOR_RANGE_MAX 0x00003FFF
|
||||
|
||||
typedef struct {
|
||||
///
|
||||
@@ -63,28 +62,28 @@ typedef struct {
|
||||
/// that can be updated via UpdateCapsule(). This GUID must be unique within all
|
||||
/// entries of the ESRT.
|
||||
///
|
||||
EFI_GUID FwClass;
|
||||
EFI_GUID FwClass;
|
||||
///
|
||||
/// Identifies the type of firmware resource.
|
||||
///
|
||||
UINT32 FwType;
|
||||
UINT32 FwType;
|
||||
///
|
||||
/// The firmware version field represents the current version of the firmware
|
||||
/// resource, value must always increase as a larger number represents a newer
|
||||
/// version.
|
||||
///
|
||||
UINT32 FwVersion;
|
||||
UINT32 FwVersion;
|
||||
///
|
||||
/// The lowest firmware resource version to which a firmware resource can be
|
||||
/// rolled back for the given system/device. Generally this is used to protect
|
||||
/// against known and fixed security issues.
|
||||
///
|
||||
UINT32 LowestSupportedFwVersion;
|
||||
UINT32 LowestSupportedFwVersion;
|
||||
///
|
||||
/// The capsule flags field contains the CapsuleGuid flags (bits 0- 15) as defined
|
||||
/// in the EFI_CAPSULE_HEADER that will be set in the capsule header.
|
||||
///
|
||||
UINT32 CapsuleFlags;
|
||||
UINT32 CapsuleFlags;
|
||||
///
|
||||
/// The last attempt version field describes the last firmware version for which
|
||||
/// an update was attempted (uses the same format as Firmware Version).
|
||||
@@ -95,7 +94,7 @@ typedef struct {
|
||||
/// in the case of a removable device, this value is set to 0 in cases where the
|
||||
/// device has not been updated since being added to the system.
|
||||
///
|
||||
UINT32 LastAttemptVersion;
|
||||
UINT32 LastAttemptVersion;
|
||||
///
|
||||
/// The last attempt status field describes the result of the last firmware update
|
||||
/// attempt for the firmware resource entry.
|
||||
@@ -104,30 +103,30 @@ typedef struct {
|
||||
/// If a firmware update has never been attempted or is unknown, for example after
|
||||
/// fresh insertion of a removable device, LastAttemptStatus must be set to Success.
|
||||
///
|
||||
UINT32 LastAttemptStatus;
|
||||
UINT32 LastAttemptStatus;
|
||||
} EFI_SYSTEM_RESOURCE_ENTRY;
|
||||
|
||||
typedef struct {
|
||||
///
|
||||
/// The number of firmware resources in the table, must not be zero.
|
||||
///
|
||||
UINT32 FwResourceCount;
|
||||
UINT32 FwResourceCount;
|
||||
///
|
||||
/// The maximum number of resource array entries that can be within the table
|
||||
/// without reallocating the table, must not be zero.
|
||||
///
|
||||
UINT32 FwResourceCountMax;
|
||||
UINT32 FwResourceCountMax;
|
||||
///
|
||||
/// The version of the EFI_SYSTEM_RESOURCE_ENTRY entities used in this table.
|
||||
/// This field should be set to 1.
|
||||
///
|
||||
UINT64 FwResourceVersion;
|
||||
UINT64 FwResourceVersion;
|
||||
///
|
||||
/// Array of EFI_SYSTEM_RESOURCE_ENTRY
|
||||
///
|
||||
//EFI_SYSTEM_RESOURCE_ENTRY Entries[];
|
||||
// EFI_SYSTEM_RESOURCE_ENTRY Entries[];
|
||||
} EFI_SYSTEM_RESOURCE_TABLE;
|
||||
|
||||
extern EFI_GUID gEfiSystemResourceTableGuid;
|
||||
extern EFI_GUID gEfiSystemResourceTableGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -22,6 +22,6 @@
|
||||
#define EFI_VECTOR_HANDOF_TABLE_GUID \
|
||||
{ 0x996ec11c, 0x5397, 0x4e73, { 0xb5, 0x8f, 0x82, 0x7e, 0x52, 0x90, 0x6d, 0xef }}
|
||||
|
||||
extern EFI_GUID gEfiVectorHandoffTableGuid;
|
||||
extern EFI_GUID gEfiVectorHandoffTableGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -14,9 +14,9 @@
|
||||
//
|
||||
// _WIN_CERTIFICATE.wCertificateType
|
||||
//
|
||||
#define WIN_CERT_TYPE_PKCS_SIGNED_DATA 0x0002
|
||||
#define WIN_CERT_TYPE_EFI_PKCS115 0x0EF0
|
||||
#define WIN_CERT_TYPE_EFI_GUID 0x0EF1
|
||||
#define WIN_CERT_TYPE_PKCS_SIGNED_DATA 0x0002
|
||||
#define WIN_CERT_TYPE_EFI_PKCS115 0x0EF0
|
||||
#define WIN_CERT_TYPE_EFI_GUID 0x0EF1
|
||||
|
||||
///
|
||||
/// The WIN_CERTIFICATE structure is part of the PE/COFF specification.
|
||||
@@ -26,18 +26,18 @@ typedef struct {
|
||||
/// The length of the entire certificate,
|
||||
/// including the length of the header, in bytes.
|
||||
///
|
||||
UINT32 dwLength;
|
||||
UINT32 dwLength;
|
||||
///
|
||||
/// The revision level of the WIN_CERTIFICATE
|
||||
/// structure. The current revision level is 0x0200.
|
||||
///
|
||||
UINT16 wRevision;
|
||||
UINT16 wRevision;
|
||||
///
|
||||
/// The certificate type. See WIN_CERT_TYPE_xxx for the UEFI
|
||||
/// certificate types. The UEFI specification reserves the range of
|
||||
/// certificate type values from 0x0EF0 to 0x0EFF.
|
||||
///
|
||||
UINT16 wCertificateType;
|
||||
UINT16 wCertificateType;
|
||||
///
|
||||
/// The following is the actual certificate. The format of
|
||||
/// the certificate depends on wCertificateType.
|
||||
@@ -56,12 +56,11 @@ typedef struct {
|
||||
/// WIN_CERTIFICATE_UEFI_GUID.CertData
|
||||
///
|
||||
typedef struct {
|
||||
EFI_GUID HashType;
|
||||
UINT8 PublicKey[256];
|
||||
UINT8 Signature[256];
|
||||
EFI_GUID HashType;
|
||||
UINT8 PublicKey[256];
|
||||
UINT8 Signature[256];
|
||||
} EFI_CERT_BLOCK_RSA_2048_SHA256;
|
||||
|
||||
|
||||
///
|
||||
/// Certificate which encapsulates a GUID-specific digital signature
|
||||
///
|
||||
@@ -70,22 +69,21 @@ typedef struct {
|
||||
/// This is the standard WIN_CERTIFICATE header, where
|
||||
/// wCertificateType is set to WIN_CERT_TYPE_EFI_GUID.
|
||||
///
|
||||
WIN_CERTIFICATE Hdr;
|
||||
WIN_CERTIFICATE Hdr;
|
||||
///
|
||||
/// This is the unique id which determines the
|
||||
/// format of the CertData. .
|
||||
///
|
||||
EFI_GUID CertType;
|
||||
EFI_GUID CertType;
|
||||
///
|
||||
/// The following is the certificate data. The format of
|
||||
/// the data is determined by the CertType.
|
||||
/// If CertType is EFI_CERT_TYPE_RSA2048_SHA256_GUID,
|
||||
/// the CertData will be EFI_CERT_BLOCK_RSA_2048_SHA256 structure.
|
||||
///
|
||||
UINT8 CertData[1];
|
||||
UINT8 CertData[1];
|
||||
} WIN_CERTIFICATE_UEFI_GUID;
|
||||
|
||||
|
||||
///
|
||||
/// Certificate which encapsulates the RSASSA_PKCS1-v1_5 digital signature.
|
||||
///
|
||||
@@ -99,12 +97,12 @@ typedef struct {
|
||||
/// This is the standard WIN_CERTIFICATE header, where
|
||||
/// wCertificateType is set to WIN_CERT_TYPE_UEFI_PKCS1_15.
|
||||
///
|
||||
WIN_CERTIFICATE Hdr;
|
||||
WIN_CERTIFICATE Hdr;
|
||||
///
|
||||
/// This is the hashing algorithm which was performed on the
|
||||
/// UEFI executable when creating the digital signature.
|
||||
///
|
||||
EFI_GUID HashAlgorithm;
|
||||
EFI_GUID HashAlgorithm;
|
||||
///
|
||||
/// The following is the actual digital signature. The
|
||||
/// size of the signature is the same size as the key
|
||||
@@ -117,6 +115,6 @@ typedef struct {
|
||||
///
|
||||
} WIN_CERTIFICATE_EFI_PKCS1_15;
|
||||
|
||||
extern EFI_GUID gEfiCertTypeRsa2048Sha256Guid;
|
||||
extern EFI_GUID gEfiCertTypeRsa2048Sha256Guid;
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user