summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiebaud Weksteen <tweek@google.com>2017-09-20 10:13:38 +0200
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>2018-01-08 12:58:34 +0200
commit4d01d29d9307d321149ff5ad66d47bee8e56c012 (patch)
tree52760ac5c20fc5dd72093d5aa0a978588441fa20
parent67cb8e113ecd63de38bede2a3b2357801b6b2c3f (diff)
downloadlinux-4d01d29d9307d321149ff5ad66d47bee8e56c012.tar.bz2
tpm: add event log format version
Although defined as part of the TCG EFI specification, we add these definitions here so that any event log provider may reference them. Signed-off-by: Thiebaud Weksteen <tweek@google.com> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Tested-by: Javier Martinez Canillas <javierm@redhat.com> Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
-rw-r--r--include/linux/tpm_eventlog.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/tpm_eventlog.h b/include/linux/tpm_eventlog.h
index a2a86783f974..20d9da77fc11 100644
--- a/include/linux/tpm_eventlog.h
+++ b/include/linux/tpm_eventlog.h
@@ -10,6 +10,9 @@
#define ACPI_TCPA_SIG "TCPA" /* 0x41504354 /'TCPA' */
#define TPM2_ACTIVE_PCR_BANKS 3
+#define EFI_TCG2_EVENT_LOG_FORMAT_TCG_1_2 0x1
+#define EFI_TCG2_EVENT_LOG_FORMAT_TCG_2 0x2
+
#ifdef CONFIG_PPC64
#define do_endian_conversion(x) be32_to_cpu(x)
#else