aboutsummaryrefslogtreecommitdiffstats
path: root/src/std
diff options
context:
space:
mode:
authorStefan Berger <stefanb@linux.vnet.ibm.com>2017-11-14 15:03:47 -0500
committerKevin O'Connor <kevin@koconnor.net>2017-11-15 13:17:20 -0500
commitdf46d10c8a7b88eb82f3ceb2aa31782dee15593d (patch)
tree910969b38c4bb88ff901c230baa4924c043e5f62 /src/std
parent0541f2f0f246e77d7c726926976920e8072d1119 (diff)
downloadseabios-df46d10c8a7b88eb82f3ceb2aa31782dee15593d.tar.gz
tpm: Add support for TPM2 ACPI table
Add support for the TPM2 ACPI table. If we find it and its of the appropriate size, we can get the log_area_start_address and log_area_minimum_size from it. The latest version of the spec can be found here: https://trustedcomputinggroup.org/tcg-acpi-specification/ Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Diffstat (limited to 'src/std')
-rw-r--r--src/std/acpi.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/std/acpi.h b/src/std/acpi.h
index c2ea7075..c01fa7be 100644
--- a/src/std/acpi.h
+++ b/src/std/acpi.h
@@ -307,4 +307,17 @@ struct tcpa_descriptor_rev2
#define TCPA_ACPI_CLASS_CLIENT 0
#define TCPA_ACPI_CLASS_SERVER 1
+#define TPM2_SIGNATURE 0x324D5054
+struct tpm2_descriptor_rev2
+{
+ ACPI_TABLE_HEADER_DEF
+ u16 platform_class;
+ u16 reserved;
+ u64 address_of_control_area;
+ u32 start_method;
+ u8 start_method_params[12];
+ u32 log_area_minimum_length;
+ u64 log_area_start_address;
+} PACKED;
+
#endif // acpi.h