From 89ac875e161e5f592f33bf61cb0a2bc58c62951c Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Thu, 18 Feb 2021 16:47:47 -0500 Subject: tpm: minor cleanup: use EV_IPL not 0xd This does two things: - consolidates all our TPM event type #defines to one place - uses EV_IPL instead of hard-coding 0xd Signed-off-by: Peter Jones --- include/tpm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/tpm.h b/include/tpm.h index d5245875..cab1939a 100644 --- a/include/tpm.h +++ b/include/tpm.h @@ -6,7 +6,6 @@ #include #define TPM_ALG_SHA 0x00000004 -#define EV_IPL 0x0000000d EFI_STATUS tpm_log_event(EFI_PHYSICAL_ADDRESS buf, UINTN size, UINT8 pcr, const CHAR8 *description); @@ -176,6 +175,7 @@ typedef struct efi_tpm2_protocol efi_tpm2_protocol_t; typedef UINT32 TCG_EVENTTYPE; +#define EV_IPL 0x0000000d #define EV_EFI_EVENT_BASE ((TCG_EVENTTYPE) 0x80000000) #define EV_EFI_VARIABLE_DRIVER_CONFIG (EV_EFI_EVENT_BASE + 1) #define EV_EFI_VARIABLE_BOOT (EV_EFI_EVENT_BASE + 2) -- cgit v1.2.3