2 #ifndef TCG_EFI_EVENT_H
3 #define TCG_EFI_EVENT_H 1
8 #include "tss2_tpm2_types.h"
15 #define EV_PREBOOT_CERT 0x0
16 #define EV_POST_CODE 0x1
18 #define EV_NO_ACTION 0x3
19 #define EV_SEPARATOR 0x4
21 #define EV_EVENT_TAG 0x6
22 #define EV_S_CRTM_CONTENTS 0x7
23 #define EV_S_CRTM_VERSION 0x8
24 #define EV_CPU_MICROCODE 0x9
25 #define EV_PLATFORM_CONFIG_FLAGS 0xa
26 #define EV_TABLE_OF_DEVICES 0xb
27 #define EV_COMPACT_HASH 0xc
29 #define EV_IPL_PARTITION_DATA 0xe
30 #define EV_NONHOST_CODE 0xf
31 #define EV_NONHOST_CONFIG 0x10
32 #define EV_NONHOST_INFO 0x11
33 #define EV_OMIT_BOOT_DEVICE_EVENTS 0x12
36 #define EV_EFI_EVENT_BASE 0x80000000
37 #define EV_EFI_VARIABLE_DRIVER_CONFIG EV_EFI_EVENT_BASE + 0x1
38 #define EV_EFI_VARIABLE_BOOT EV_EFI_EVENT_BASE + 0x2
39 #define EV_EFI_BOOT_SERVICES_APPLICATION EV_EFI_EVENT_BASE + 0x3
40 #define EV_EFI_BOOT_SERVICES_DRIVER EV_EFI_EVENT_BASE + 0x4
41 #define EV_EFI_RUNTIME_SERVICES_DRIVER EV_EFI_EVENT_BASE + 0x5
42 #define EV_EFI_GPT_EVENT EV_EFI_EVENT_BASE + 0x6
43 #define EV_EFI_ACTION EV_EFI_EVENT_BASE + 0x7
44 #define EV_EFI_PLATFORM_FIRMWARE_BLOB EV_EFI_EVENT_BASE + 0x8
45 #define EV_EFI_HANDOFF_TABLES EV_EFI_EVENT_BASE + 0x9
46 #define EV_EFI_HCRTM_EVENT EV_EFI_EVENT_BASE + 0x10
47 #define EV_EFI_VARIABLE_AUTHORITY EV_EFI_EVENT_BASE + 0xe0
50 #define PACKED __attribute__((__packed__))
67 TCG_DIGEST2 Digests [];
69 }
PACKED TCG_EVENT_HEADER2;
78 UINT64 UnicodeNameLength;
79 UINT64 VariableDataLength;
80 char16_t UnicodeName[];
82 }
PACKED UEFI_VARIABLE_DATA;
84 typedef UINT64 UEFI_PHYSICAL_ADDRESS;
86 UEFI_PHYSICAL_ADDRESS BlobBase;
88 }
PACKED UEFI_PLATFORM_FIRMWARE_BLOB;
104 UINT8 vendorInfoSize;
110 UINT32 platformClass;
111 UINT8 specVersionMinor;
112 UINT8 specVersionMajor;
115 UINT32 numberOfAlgorithms;
116 TCG_SPECID_ALG digestSizes[];
118 }
PACKED TCG_SPECID_EVENT;
121 UEFI_PHYSICAL_ADDRESS ImageLocationInMemory;
122 UINT64 ImageLengthInMemory;
123 UINT64 ImageLinkTimeAddress;
124 UINT64 LengthOfDevicePath;
126 }
PACKED UEFI_IMAGE_LOAD_EVENT;
Definition: efi_event.h:53