summaryrefslogtreecommitdiff
path: root/tpm.h
diff options
context:
space:
mode:
authorLans Zhang <jia.zhang@windriver.com>2016-12-16 14:48:04 +0800
committerPeter Jones <pjones@redhat.com>2017-02-06 11:18:07 -0500
commit94c955bbbd788fddf3f707c49feebd8828afe123 (patch)
treec04f60d6a90f21bfcaa9782170866ee8c068954d /tpm.h
parent07bda58596608f05bfa035a1cc5710f5ac8ea3d9 (diff)
downloadefi-boot-shim-94c955bbbd788fddf3f707c49feebd8828afe123.tar.gz
efi-boot-shim-94c955bbbd788fddf3f707c49feebd8828afe123.zip
shim/tpm: correct the definition of the capability structure version 1.0
EFI TrEE Protocol uses the same protocol GUID as EFI TCG2 protocol, and defines the capability structure version 1.0. Hence, the structure and name are all align the EFI TrEE Protocol. Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
Diffstat (limited to 'tpm.h')
-rw-r--r--tpm.h23
1 files changed, 14 insertions, 9 deletions
diff --git a/tpm.h b/tpm.h
index 5f47b071..22565cfa 100644
--- a/tpm.h
+++ b/tpm.h
@@ -61,28 +61,33 @@ struct efi_tpm_protocol
typedef struct efi_tpm_protocol efi_tpm_protocol_t;
+typedef uint32_t TREE_EVENT_LOG_BITMAP;
+
typedef uint32_t EFI_TCG2_EVENT_LOG_BITMAP;
typedef uint32_t EFI_TCG2_EVENT_LOG_FORMAT;
typedef uint32_t EFI_TCG2_EVENT_ALGORITHM_BITMAP;
+typedef struct tdTREE_VERSION {
+ uint8_t Major;
+ uint8_t Minor;
+} TREE_VERSION;
+
typedef struct tdEFI_TCG2_VERSION {
uint8_t Major;
uint8_t Minor;
} __attribute__ ((packed)) EFI_TCG2_VERSION;
-typedef struct tdEFI_TCG2_BOOT_SERVICE_CAPABILITY_1_0 {
+typedef struct tdTREE_BOOT_SERVICE_CAPABILITY {
uint8_t Size;
- EFI_TCG2_VERSION StructureVersion;
- EFI_TCG2_VERSION ProtocolVersion;
- EFI_TCG2_EVENT_ALGORITHM_BITMAP HashAlgorithmBitmap;
- EFI_TCG2_EVENT_LOG_BITMAP SupportedEventLogs;
- BOOLEAN TPMPresentFlag;
+ TREE_VERSION StructureVersion;
+ TREE_VERSION ProtocolVersion;
+ uint32_t HashAlgorithmBitmap;
+ TREE_EVENT_LOG_BITMAP SupportedEventLogs;
+ BOOLEAN TrEEPresentFlag;
uint16_t MaxCommandSize;
uint16_t MaxResponseSize;
uint32_t ManufacturerID;
- uint32_t NumberOfPcrBanks;
- EFI_TCG2_EVENT_ALGORITHM_BITMAP ActivePcrBanks;
-} EFI_TCG2_BOOT_SERVICE_CAPABILITY_1_0;
+} TREE_BOOT_SERVICE_CAPABILITY;
typedef struct tdEFI_TCG2_BOOT_SERVICE_CAPABILITY {
uint8_t Size;