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>
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 144d55a..3a75417 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];