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 <yeoreum.yun@arm.com>
This commit is contained in:
Levi Yun
2025-03-17 15:12:12 +00:00
committed by mergify[bot]
parent 8b274d7f21
commit 29520ddcbb

View File

@@ -5,6 +5,10 @@
Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>
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
//