summaryrefslogtreecommitdiff
path: root/include/efi_api.h
diff options
context:
space:
mode:
authorIlias Apalodimas <ilias.apalodimas@linaro.org>2020-11-30 12:47:40 +0300
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2020-12-03 23:22:40 +0300
commitc8d0fd582576ff7cc67d0053282430476201fd33 (patch)
treee23f1673ca05d9909846924d3020f31adfeb6ded /include/efi_api.h
parent8e0b0871b82db0511440208b101ecf488858e915 (diff)
downloadu-boot-c8d0fd582576ff7cc67d0053282430476201fd33.tar.xz
efi_loader: Introduce eventlog support for TCG2_PROTOCOL
In the previous patches we only introduced a minimal subset of the EFI_TCG2_PROTOCOL protocol implementing GetCapability(). So let's continue adding features to it, introducing the GetEventLog() and HashLogExtendEvent() functions. In order to do that we first need to construct the eventlog in memory, specifically in EFI_BOOT_SERVICES_DATA memory and a configuration table from EFI_ACPI_MEMORY_NVS. U-Boot won't currently add any events to the log or measure any components, but will expose the necessary EFI APIs for applications to do so. Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'include/efi_api.h')
-rw-r--r--include/efi_api.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/efi_api.h b/include/efi_api.h
index 5744f6aed8..364c578a3b 100644
--- a/include/efi_api.h
+++ b/include/efi_api.h
@@ -356,6 +356,10 @@ struct efi_runtime_services {
EFI_GUID(0x4006c0c1, 0xfcb3, 0x403e, \
0x99, 0x6d, 0x4a, 0x6c, 0x87, 0x24, 0xe0, 0x6d)
+#define EFI_TCG2_FINAL_EVENTS_TABLE_GUID \
+ EFI_GUID(0x1e2ed096, 0x30e2, 0x4254, 0xbd, \
+ 0x89, 0x86, 0x3b, 0xbe, 0xf8, 0x23, 0x25)
+
struct efi_configuration_table {
efi_guid_t guid;
void *table;