summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHimanshu Sahdev <himanshu.sahdev@intel.com>2023-05-18 21:28:08 +0530
committerLean Sheng Tan <sheng.tan@9elements.com>2023-05-28 20:10:20 +0000
commit6230d4131881e9fa51d1099652605c890f93f53d (patch)
tree860b9bbd1517e6de7a26b8b101252d4c62cc3cae /src
parent95a95b1a77cff4a51cd0c912e8579b94be8ae952 (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/commonlib/bsd/include/commonlib/bsd/tpm_log_defs.h40
1 files changed, 21 insertions, 19 deletions
diff --git a/src/commonlib/bsd/include/commonlib/bsd/tpm_log_defs.h b/src/commonlib/bsd/include/commonlib/bsd/tpm_log_defs.h
index 144d55a331..3a754173e5 100644
--- a/src/commonlib/bsd/include/commonlib/bsd/tpm_log_defs.h
+++ b/src/commonlib/bsd/include/commonlib/bsd/tpm_log_defs.h
@@ -24,25 +24,27 @@
#define SHA512_DIGEST_SIZE 64
#define SM3_256_DIGEST_SIZE 32
-#define EV_PREBOOT_CERT 0x00000000
-#define EV_POST_CODE 0x00000001
-#define EV_UNUSED 0x00000002
-#define EV_NO_ACTION 0x00000003
-#define EV_SEPARATOR 0x00000004
-#define EV_ACTION 0x00000005
-#define EV_EVENT_TAG 0x00000006
-#define EV_S_CRTM_CONTENTS 0x00000007
-#define EV_S_CRTM_VERSION 0x00000008
-#define EV_CPU_MICROCODE 0x00000009
-#define EV_PLATFORM_CONFIG_FLAGS 0x0000000A
-#define EV_TABLE_OF_DEVICES 0x0000000B
-#define EV_COMPACT_HASH 0x0000000C
-#define EV_IPL 0x0000000D
-#define EV_IPL_PARTITION_DATA 0x0000000E
-#define EV_NONHOST_CODE 0x0000000F
-#define EV_NONHOST_CONFIG 0x00000010
-#define EV_NONHOST_INFO 0x00000011
-#define EV_OMIT_BOOT_DEVICE_EVENTS 0x00000012
+enum ev_enum {
+ EV_PREBOOT_CERT,
+ EV_POST_CODE,
+ EV_UNUSED,
+ EV_NO_ACTION,
+ EV_SEPARATOR,
+ EV_ACTION,
+ EV_EVENT_TAG,
+ EV_S_CRTM_CONTENTS,
+ EV_S_CRTM_VERSION,
+ EV_CPU_MICROCODE,
+ EV_PLATFORM_CONFIG_FLAGS,
+ EV_TABLE_OF_DEVICES,
+ EV_COMPACT_HASH,
+ EV_IPL,
+ EV_IPL_PARTITION_DATA,
+ EV_NONHOST_CODE,
+ EV_NONHOST_CONFIG,
+ EV_NONHOST_INFO,
+ EV_OMIT_BOOT_DEVICE_EVENTS
+};
struct spec_id_event_data {
char signature[16];