From 29520ddcbb88f8f8860236e816a016ed862ab2de Mon Sep 17 00:00:00 2001 From: Levi Yun Date: Mon, 17 Mar 2025 15:12:12 +0000 Subject: [PATCH] MdePkg/IndustryStandard: add CRB Cap value in TpmPtp.h add some value macro used for discerning CRB capabilties Links: https://trustedcomputinggroup.org/resource/pc-client-platform-tpm-profile-ptp-specification/ Signed-off-by: Yeoreum Yun --- MdePkg/Include/IndustryStandard/TpmPtp.h | 34 ++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/MdePkg/Include/IndustryStandard/TpmPtp.h b/MdePkg/Include/IndustryStandard/TpmPtp.h index 43c5757bcc..182ad1b780 100644 --- a/MdePkg/Include/IndustryStandard/TpmPtp.h +++ b/MdePkg/Include/IndustryStandard/TpmPtp.h @@ -5,6 +5,10 @@ Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent + @par Reference(s) + - TCG PC Client Platform TPM Profile (PTP) Specification + (https://trustedcomputinggroup.org/resource/pc-client-platform-tpm-profile-ptp-specification/) + **/ #ifndef _TPM_PTP_H_ @@ -363,6 +367,36 @@ typedef union { #define PTP_INTERFACE_IDENTIFIER_INTERFACE_SELECTOR_FIFO 0x0 #define PTP_INTERFACE_IDENTIFIER_INTERFACE_SELECTOR_CRB 0x1 +/// +/// CapLocality +/// ref Table 19, 20 in TCG PC Client Platform TPM Profile (PTP) Specification +/// +#define PTP_CAP_LOCALITY_ZERO_ONLY 0x0 +#define PTP_CAP_LOCALITY_FIVE 0x1 + +/// +/// CapCRB +/// ref Table 19, 20 in TCG PC Client Platform TPM Profile (PTP) Specification +/// +#define PTP_CAP_CRB_INTEREFACE_NOT_SUPPORTED 0x0 +#define PTP_CAP_CRB_INTEREFACE_SUPPORTED 0x1 + +/// +/// CapFIFO +/// ref Table 20 in TCG PC Client Platform TPM Profile (PTP) Specification +/// +#define PTP_CAP_FIFO_INTERFACE_NOT_SUPPORTED 0x0 +#define PTP_CAP_FIFO_INTERFACE_SUPPORTED 0x1 + +/// +/// CapDataXferSizeSupport +/// ref Table 20 in TCG PC Client Platform TPM Profile (PTP) Specification +/// +#define PTP_CAP_DATA_XFER_SIZE_4_BYTES 0x0 +#define PTP_CAP_DATA_XFER_SIZE_8_BYTES 0x1 +#define PTP_CAP_DATA_XFER_SIZE_32_BYTES 0x2 +#define PTP_CAP_DATA_XFER_SIZE_64_BYTES 0x3 + // // Define bits of Locality State Register //