diff options
| author | Peter Jones <pjones@redhat.com> | 2021-02-18 16:47:47 -0500 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2021-02-22 11:22:36 -0500 |
| commit | 89ac875e161e5f592f33bf61cb0a2bc58c62951c (patch) | |
| tree | c4af3c77708379e285ea3a7f3e7d2f9b69956e16 /include | |
| parent | b9ca0895a0679d4d3223685d37f0600b82eae49c (diff) | |
| download | efi-boot-shim-89ac875e161e5f592f33bf61cb0a2bc58c62951c.tar.gz efi-boot-shim-89ac875e161e5f592f33bf61cb0a2bc58c62951c.zip | |
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 <pjones@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/tpm.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 <efilib.h> #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) |
