From f15cb995bb3880b77e15afe6facd3da05e599a17 Mon Sep 17 00:00:00 2001 From: "Zhang, Chao B" Date: Tue, 8 May 2018 14:51:57 +0800 Subject: SecurityPkg: Cache TPM interface type info Cache TPM interface type info to avoid excessive interface ID register read Cc: Long Qin Cc: Yao Jiewen Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Chao Zhang Reviewed-by: Long Qin --- SecurityPkg/SecurityPkg.dec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'SecurityPkg/SecurityPkg.dec') diff --git a/SecurityPkg/SecurityPkg.dec b/SecurityPkg/SecurityPkg.dec index 497354634b..60f1c0a0e3 100644 --- a/SecurityPkg/SecurityPkg.dec +++ b/SecurityPkg/SecurityPkg.dec @@ -463,6 +463,16 @@ # linked, and the value of this PCD should be got in module entrypoint. # @Prompt Hash Algorithm bitmap. gEfiSecurityPkgTokenSpaceGuid.PcdTcg2HashAlgorithmBitmap|0xFFFFFFFF|UINT32|0x00010016 - + + ## This PCD indicates current active TPM interface type. + # Accodingt to TCG PTP spec 1.3, there are 3 types defined in TPM2_PTP_INTERFACE_TYPE.
+ # 0x00 - FIFO interface as defined in TIS 1.3 is active.
+ # 0x01 - FIFO interface as defined in PTP for TPM 2.0 is active.
+ # 0x02 - CRB interface is active.
+ # 0xFF - Contains no current active TPM interface type.
+ # + # @Prompt current active TPM interface type. + gEfiSecurityPkgTokenSpaceGuid.PcdActiveTpmInterfaceType|0xFF|UINT8|0x0001001E + [UserExtensions.TianoCore."ExtraFiles"] SecurityPkgExtra.uni -- cgit v1.2.3