commonlib/bsd/tpm_log_defs.h: replace macro with enum
replace multiple existing EV_* defines with enum ec_enum. Signed-off-by: Himanshu Sahdev <himanshu.sahdev@intel.com> Change-Id: Id58fc12134915cbeb41cccb54aae9bc3f7dde4b8 Reviewed-on: https://review.coreboot.org/c/coreboot/+/75324 Reviewed-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com> Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
95a95b1a77
commit
6230d41318
|
@ -24,25 +24,27 @@
|
||||||
#define SHA512_DIGEST_SIZE 64
|
#define SHA512_DIGEST_SIZE 64
|
||||||
#define SM3_256_DIGEST_SIZE 32
|
#define SM3_256_DIGEST_SIZE 32
|
||||||
|
|
||||||
#define EV_PREBOOT_CERT 0x00000000
|
enum ev_enum {
|
||||||
#define EV_POST_CODE 0x00000001
|
EV_PREBOOT_CERT,
|
||||||
#define EV_UNUSED 0x00000002
|
EV_POST_CODE,
|
||||||
#define EV_NO_ACTION 0x00000003
|
EV_UNUSED,
|
||||||
#define EV_SEPARATOR 0x00000004
|
EV_NO_ACTION,
|
||||||
#define EV_ACTION 0x00000005
|
EV_SEPARATOR,
|
||||||
#define EV_EVENT_TAG 0x00000006
|
EV_ACTION,
|
||||||
#define EV_S_CRTM_CONTENTS 0x00000007
|
EV_EVENT_TAG,
|
||||||
#define EV_S_CRTM_VERSION 0x00000008
|
EV_S_CRTM_CONTENTS,
|
||||||
#define EV_CPU_MICROCODE 0x00000009
|
EV_S_CRTM_VERSION,
|
||||||
#define EV_PLATFORM_CONFIG_FLAGS 0x0000000A
|
EV_CPU_MICROCODE,
|
||||||
#define EV_TABLE_OF_DEVICES 0x0000000B
|
EV_PLATFORM_CONFIG_FLAGS,
|
||||||
#define EV_COMPACT_HASH 0x0000000C
|
EV_TABLE_OF_DEVICES,
|
||||||
#define EV_IPL 0x0000000D
|
EV_COMPACT_HASH,
|
||||||
#define EV_IPL_PARTITION_DATA 0x0000000E
|
EV_IPL,
|
||||||
#define EV_NONHOST_CODE 0x0000000F
|
EV_IPL_PARTITION_DATA,
|
||||||
#define EV_NONHOST_CONFIG 0x00000010
|
EV_NONHOST_CODE,
|
||||||
#define EV_NONHOST_INFO 0x00000011
|
EV_NONHOST_CONFIG,
|
||||||
#define EV_OMIT_BOOT_DEVICE_EVENTS 0x00000012
|
EV_NONHOST_INFO,
|
||||||
|
EV_OMIT_BOOT_DEVICE_EVENTS
|
||||||
|
};
|
||||||
|
|
||||||
struct spec_id_event_data {
|
struct spec_id_event_data {
|
||||||
char signature[16];
|
char signature[16];
|
||||||
|
|
Loading…
Reference in New Issue