9#ifndef __TCG2_CONFIG_NV_DATA_H__
10#define __TCG2_CONFIG_NV_DATA_H__
16#define TCG2_CONFIGURATION_VARSTORE_ID 0x0001
17#define TCG2_CONFIGURATION_INFO_VARSTORE_ID 0x0002
18#define TCG2_VERSION_VARSTORE_ID 0x0003
19#define TCG2_CONFIGURATION_FORM_ID 0x0001
21#define KEY_TPM_DEVICE 0x2000
22#define KEY_TPM2_OPERATION 0x2001
23#define KEY_TPM2_OPERATION_PARAMETER 0x2002
24#define KEY_TPM2_PCR_BANKS_REQUEST_0 0x2003
25#define KEY_TPM2_PCR_BANKS_REQUEST_1 0x2004
26#define KEY_TPM2_PCR_BANKS_REQUEST_2 0x2005
27#define KEY_TPM2_PCR_BANKS_REQUEST_3 0x2006
28#define KEY_TPM2_PCR_BANKS_REQUEST_4 0x2007
29#define KEY_TPM_DEVICE_INTERFACE 0x2008
30#define KEY_TCG2_PPI_VERSION 0x2009
31#define KEY_TPM2_ACPI_REVISION 0x200A
33#define TPM_DEVICE_NULL 0
34#define TPM_DEVICE_1_2 1
35#define TPM_DEVICE_2_0_DTPM 2
36#define TPM_DEVICE_MIN TPM_DEVICE_1_2
37#define TPM_DEVICE_MAX TPM_DEVICE_2_0_DTPM
38#define TPM_DEVICE_DEFAULT TPM_DEVICE_1_2
40#define TPM2_ACPI_REVISION_3 3
41#define TPM2_ACPI_REVISION_4 4
43#define TPM_DEVICE_INTERFACE_TIS 0
44#define TPM_DEVICE_INTERFACE_PTP_FIFO 1
45#define TPM_DEVICE_INTERFACE_PTP_CRB 2
46#define TPM_DEVICE_INTERFACE_MAX TPM_DEVICE_INTERFACE_PTP_FIFO
47#define TPM_DEVICE_INTERFACE_DEFAULT TPM_DEVICE_INTERFACE_PTP_CRB
49#define TCG2_PPI_VERSION_1_2 0x322E31
50#define TCG2_PPI_VERSION_1_3 0x332E31
61 UINT8 Tpm2AcpiTableRev;
65 BOOLEAN Sha1Supported;
66 BOOLEAN Sha256Supported;
67 BOOLEAN Sha384Supported;
68 BOOLEAN Sha512Supported;
70 UINT8 TpmDeviceInterfaceAttempt;
71 BOOLEAN TpmDeviceInterfacePtpFifoSupported;
72 BOOLEAN TpmDeviceInterfacePtpCrbSupported;
73 BOOLEAN ChangeEPSSupported;
81 UINT8 TpmDeviceDetected;
84#define TCG2_STORAGE_NAME L"TCG2_CONFIGURATION"
85#define TCG2_STORAGE_INFO_NAME L"TCG2_CONFIGURATION_INFO"
86#define TCG2_DEVICE_DETECTION_NAME L"TCG2_DEVICE_DETECTION"
87#define TCG2_VERSION_NAME L"TCG2_VERSION"