diff options
author | Zhang, Chao B <chao.b.zhang@intel.com> | 2018-05-08 14:51:57 +0800 |
---|---|---|
committer | Zhang, Chao B <chao.b.zhang@intel.com> | 2018-06-25 10:55:08 +0800 |
commit | f15cb995bb3880b77e15afe6facd3da05e599a17 (patch) | |
tree | 8a160b4c8324921198c45c6adac6e1f43933de61 /SecurityPkg/Include | |
parent | 796ef9da06bf1ab81b0b55f091630aa50cf9dfe0 (diff) | |
download | edk2-f15cb995bb3880b77e15afe6facd3da05e599a17.zip edk2-f15cb995bb3880b77e15afe6facd3da05e599a17.tar.gz edk2-f15cb995bb3880b77e15afe6facd3da05e599a17.tar.bz2 |
SecurityPkg: Cache TPM interface type info
Cache TPM interface type info to avoid excessive interface ID register read
Cc: Long Qin <qin.long@intel.com>
Cc: Yao Jiewen <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by: Long Qin <qin.long@intel.com>
Diffstat (limited to 'SecurityPkg/Include')
-rw-r--r-- | SecurityPkg/Include/Library/Tpm2DeviceLib.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/SecurityPkg/Include/Library/Tpm2DeviceLib.h b/SecurityPkg/Include/Library/Tpm2DeviceLib.h index 67f158e..f072a24 100644 --- a/SecurityPkg/Include/Library/Tpm2DeviceLib.h +++ b/SecurityPkg/Include/Library/Tpm2DeviceLib.h @@ -1,7 +1,7 @@ /** @file
This library abstract how to access TPM2 hardware device.
-Copyright (c) 2013, Intel Corporation. All rights reserved. <BR>
+Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved. <BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -17,6 +17,16 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include <Uefi.h>
+//
+// Used in PcdActiveTpmInterfaceType to identify TPM interface type
+//
+typedef enum {
+ Tpm2PtpInterfaceTis,
+ Tpm2PtpInterfaceFifo,
+ Tpm2PtpInterfaceCrb,
+ Tpm2PtpInterfaceMax,
+} TPM2_PTP_INTERFACE_TYPE;
+
/**
This service enables the sending of commands to the TPM2.
|