]> git.proxmox.com Git - mirror_edk2.git/blame - SecurityPkg/Tcg/Tcg2Config/Tcg2Config.vfr
SecurityPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / SecurityPkg / Tcg / Tcg2Config / Tcg2Config.vfr
CommitLineData
1abfa4ce
JY
1/** @file\r
2 VFR file used by the TCG2 configuration component.\r
3\r
b3548d32 4Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>\r
289b714b 5SPDX-License-Identifier: BSD-2-Clause-Patent\r
1abfa4ce
JY
6\r
7**/\r
8\r
9#include "Tcg2ConfigNvData.h"\r
10\r
11formset\r
12 guid = TCG2_CONFIG_FORM_SET_GUID,\r
13 title = STRING_TOKEN(STR_TCG2_TITLE),\r
14 help = STRING_TOKEN(STR_TCG2_HELP),\r
15 classguid = EFI_HII_PLATFORM_SETUP_FORMSET_GUID,\r
b3548d32 16\r
c41eeb44
JY
17 efivarstore TCG2_CONFIGURATION_INFO,\r
18 varid = TCG2_CONFIGURATION_INFO_VARSTORE_ID,\r
19 attribute = 0x02, // EFI variable attribures EFI_VARIABLE_BOOTSERVICE_ACCESS\r
20 name = TCG2_CONFIGURATION_INFO,\r
21 guid = TCG2_CONFIG_FORM_SET_GUID;\r
1abfa4ce
JY
22\r
23 efivarstore TCG2_CONFIGURATION,\r
24 varid = TCG2_CONFIGURATION_VARSTORE_ID,\r
25 attribute = 0x03, // EFI variable attribures EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_NON_VOLATILE\r
26 name = TCG2_CONFIGURATION,\r
27 guid = TCG2_CONFIG_FORM_SET_GUID;\r
28\r
dd6d0a52
SZ
29 efivarstore TCG2_VERSION,\r
30 varid = TCG2_VERSION_VARSTORE_ID,\r
31 attribute = 0x03, // EFI variable attribures EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_NON_VOLATILE\r
32 name = TCG2_VERSION,\r
33 guid = TCG2_CONFIG_FORM_SET_GUID;\r
34\r
1abfa4ce
JY
35 form formid = TCG2_CONFIGURATION_FORM_ID,\r
36 title = STRING_TOKEN(STR_TCG2_TITLE);\r
37\r
38 subtitle text = STRING_TOKEN(STR_NULL);\r
39\r
40 text\r
41 help = STRING_TOKEN(STR_TCG2_DEVICE_STATE_HELP),\r
42 text = STRING_TOKEN(STR_TCG2_DEVICE_STATE_PROMPT),\r
43 text = STRING_TOKEN(STR_TCG2_DEVICE_STATE_CONTENT);\r
44\r
45 oneof varid = TCG2_CONFIGURATION.TpmDevice,\r
46 questionid = KEY_TPM_DEVICE,\r
47 prompt = STRING_TOKEN(STR_TCG2_DEVICE_PROMPT),\r
48 help = STRING_TOKEN(STR_TCG2_DEVICE_HELP),\r
49 flags = INTERACTIVE,\r
50 option text = STRING_TOKEN(STR_TCG2_TPM_1_2), value = TPM_DEVICE_1_2, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED;\r
51 option text = STRING_TOKEN(STR_TCG2_TPM_2_0_DTPM), value = TPM_DEVICE_2_0_DTPM, flags = RESET_REQUIRED;\r
52 endoneof;\r
53\r
518b6f65 54 suppressif ideqvallist TCG2_CONFIGURATION.TpmDevice == TPM_DEVICE_NULL TPM_DEVICE_1_2;\r
a6e0e994
ZC
55\r
56 subtitle text = STRING_TOKEN(STR_NULL);\r
57\r
58 text\r
59 help = STRING_TOKEN(STR_TPM2_ACPI_HID_HELP),\r
60 text = STRING_TOKEN(STR_TPM2_ACPI_HID_PROMPT),\r
61 text = STRING_TOKEN(STR_TPM2_ACPI_HID_CONTENT);\r
62\r
fca42289
ZC
63 text\r
64 help = STRING_TOKEN(STR_TPM2_ACPI_REVISION_STATE_HELP),\r
65 text = STRING_TOKEN(STR_TPM2_ACPI_REVISION_STATE_PROMPT),\r
66 text = STRING_TOKEN(STR_TPM2_ACPI_REVISION_STATE_CONTENT);\r
67\r
68 oneof varid = TCG2_VERSION.Tpm2AcpiTableRev,\r
69 questionid = KEY_TPM2_ACPI_REVISION,\r
70 prompt = STRING_TOKEN(STR_TPM2_ACPI_REVISION_PROMPT),\r
71 help = STRING_TOKEN(STR_TPM2_ACPI_REVISION_HELP),\r
72 flags = INTERACTIVE,\r
73 option text = STRING_TOKEN(STR_TPM2_ACPI_REVISION_3), value = TPM2_ACPI_REVISION_3, flags = RESET_REQUIRED;\r
74 option text = STRING_TOKEN(STR_TPM2_ACPI_REVISION_4), value = TPM2_ACPI_REVISION_4, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED;\r
75 endoneof;\r
76\r
77 subtitle text = STRING_TOKEN(STR_NULL);\r
78\r
518b6f65
JY
79 text\r
80 help = STRING_TOKEN(STR_TCG2_DEVICE_INTERFACE_STATE_HELP),\r
81 text = STRING_TOKEN(STR_TCG2_DEVICE_INTERFACE_STATE_PROMPT),\r
82 text = STRING_TOKEN(STR_TCG2_DEVICE_INTERFACE_STATE_CONTENT);\r
83\r
84 text\r
85 help = STRING_TOKEN(STR_TCG2_DEVICE_INTERFACE_CAPABILITY_HELP),\r
86 text = STRING_TOKEN(STR_TCG2_DEVICE_INTERFACE_CAPABILITY_PROMPT),\r
87 text = STRING_TOKEN(STR_TCG2_DEVICE_INTERFACE_CAPABILITY_CONTENT);\r
88\r
89 suppressif ideqval TCG2_CONFIGURATION_INFO.TpmDeviceInterfacePtpFifoSupported == 0\r
90 OR ideqval TCG2_CONFIGURATION_INFO.TpmDeviceInterfacePtpCrbSupported == 0;\r
91 oneof varid = TCG2_CONFIGURATION_INFO.TpmDeviceInterfaceAttempt,\r
92 questionid = KEY_TPM_DEVICE_INTERFACE,\r
93 prompt = STRING_TOKEN(STR_TCG2_DEVICE_INTERFACE_PROMPT),\r
94 help = STRING_TOKEN(STR_TCG2_DEVICE_INTERFACE_HELP),\r
95 flags = INTERACTIVE,\r
96 option text = STRING_TOKEN(STR_TCG2_DEVICE_INTERFACE_TIS), value = TPM_DEVICE_INTERFACE_TIS, flags = RESET_REQUIRED;\r
97 option text = STRING_TOKEN(STR_TCG2_DEVICE_INTERFACE_PTP_FIFO), value = TPM_DEVICE_INTERFACE_PTP_FIFO, flags = RESET_REQUIRED;\r
98 option text = STRING_TOKEN(STR_TCG2_DEVICE_INTERFACE_PTP_CRB), value = TPM_DEVICE_INTERFACE_PTP_CRB, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED;\r
99 endoneof;\r
100 endif;\r
101\r
102 endif;\r
103\r
1abfa4ce
JY
104 subtitle text = STRING_TOKEN(STR_NULL);\r
105\r
106 suppressif ideqvallist TCG2_CONFIGURATION.TpmDevice == TPM_DEVICE_NULL TPM_DEVICE_1_2;\r
107 text\r
108 help = STRING_TOKEN(STR_TPM2_ACTIVE_HASH_ALGO_HELP),\r
109 text = STRING_TOKEN(STR_TPM2_ACTIVE_HASH_ALGO),\r
110 text = STRING_TOKEN(STR_TPM2_ACTIVE_HASH_ALGO_CONTENT);\r
111 text\r
112 help = STRING_TOKEN(STR_TPM2_SUPPORTED_HASH_ALGO_HELP),\r
113 text = STRING_TOKEN(STR_TPM2_SUPPORTED_HASH_ALGO),\r
114 text = STRING_TOKEN(STR_TPM2_SUPPORTED_HASH_ALGO_CONTENT);\r
115 text\r
116 help = STRING_TOKEN(STR_BIOS_HASH_ALGO_HELP),\r
117 text = STRING_TOKEN(STR_BIOS_HASH_ALGO),\r
118 text = STRING_TOKEN(STR_BIOS_HASH_ALGO_CONTENT);\r
119\r
120 subtitle text = STRING_TOKEN(STR_NULL);\r
121 subtitle text = STRING_TOKEN(STR_TCG2_PP_OPERATION);\r
122\r
dd6d0a52
SZ
123 text\r
124 help = STRING_TOKEN(STR_TCG2_PPI_VERSION_STATE_HELP),\r
125 text = STRING_TOKEN(STR_TCG2_PPI_VERSION_STATE_PROMPT),\r
126 text = STRING_TOKEN(STR_TCG2_PPI_VERSION_STATE_CONTENT);\r
127\r
128 oneof varid = TCG2_VERSION.PpiVersion,\r
129 questionid = KEY_TCG2_PPI_VERSION,\r
130 prompt = STRING_TOKEN(STR_TCG2_PPI_VERSION_PROMPT),\r
131 help = STRING_TOKEN(STR_TCG2_PPI_VERSION_HELP),\r
132 flags = INTERACTIVE,\r
133 option text = STRING_TOKEN(STR_TCG2_PPI_VERSION_1_2), value = TCG2_PPI_VERSION_1_2, flags = RESET_REQUIRED;\r
134 option text = STRING_TOKEN(STR_TCG2_PPI_VERSION_1_3), value = TCG2_PPI_VERSION_1_3, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED;\r
135 endoneof;\r
136\r
1abfa4ce
JY
137 oneof name = Tpm2Operation,\r
138 questionid = KEY_TPM2_OPERATION,\r
139 prompt = STRING_TOKEN(STR_TCG2_OPERATION),\r
140 help = STRING_TOKEN(STR_TCG2_OPERATION_HELP),\r
141 flags = INTERACTIVE | NUMERIC_SIZE_1,\r
142 option text = STRING_TOKEN(STR_TCG2_NO_ACTION), value = TCG2_PHYSICAL_PRESENCE_NO_ACTION, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED;\r
143 option text = STRING_TOKEN(STR_TCG2_ENABLE), value = TCG2_PHYSICAL_PRESENCE_ENABLE, flags = RESET_REQUIRED;\r
144 option text = STRING_TOKEN(STR_TCG2_DISABLE), value = TCG2_PHYSICAL_PRESENCE_DISABLE, flags = RESET_REQUIRED;\r
145 option text = STRING_TOKEN(STR_TCG2_CLEAR), value = TCG2_PHYSICAL_PRESENCE_CLEAR, flags = RESET_REQUIRED;\r
146 option text = STRING_TOKEN(STR_TCG2_SET_PCD_BANKS), value = TCG2_PHYSICAL_PRESENCE_SET_PCR_BANKS, flags = RESET_REQUIRED;\r
147 option text = STRING_TOKEN(STR_TCG2_CHANGE_EPS), value = TCG2_PHYSICAL_PRESENCE_CHANGE_EPS, flags = RESET_REQUIRED;\r
148 option text = STRING_TOKEN(STR_TCG2_LOG_ALL_DIGESTS), value = TCG2_PHYSICAL_PRESENCE_LOG_ALL_DIGESTS, flags = RESET_REQUIRED;\r
149 option text = STRING_TOKEN(STR_TCG2_DISABLE_ENDORSEMENT_ENABLE_STORAGE_HIERARCHY), value = TCG2_PHYSICAL_PRESENCE_DISABLE_ENDORSEMENT_ENABLE_STORAGE_HIERARCHY, flags = RESET_REQUIRED;\r
1abfa4ce 150 endoneof;\r
b3548d32 151\r
1abfa4ce
JY
152 suppressif NOT questionref(Tpm2Operation) == TCG2_PHYSICAL_PRESENCE_SET_PCR_BANKS;\r
153 numeric name = Tpm2OperationParameter,\r
154 questionid = KEY_TPM2_OPERATION_PARAMETER,\r
155 prompt = STRING_TOKEN(STR_TCG2_OPERATION_PARAMETER),\r
156 help = STRING_TOKEN(STR_TCG2_OPERATION_PARAMETER_HELP),\r
157 flags = DISPLAY_UINT_HEX | INTERACTIVE | NUMERIC_SIZE_4,\r
158 minimum = 0,\r
159 maximum = 0xFFFFFFFF,\r
160 step = 0,\r
161 default = 0,\r
162 endnumeric;\r
163 endif;\r
164\r
165 subtitle text = STRING_TOKEN(STR_NULL);\r
166 subtitle text = STRING_TOKEN(STR_TCG2_CONFIGURATION);\r
167\r
168 text\r
169 help = STRING_TOKEN(STR_TCG2_SUPPORTED_EVENT_LOG_FORMAT_HELP),\r
170 text = STRING_TOKEN(STR_TCG2_SUPPORTED_EVENT_LOG_FORMAT),\r
171 text = STRING_TOKEN(STR_TCG2_SUPPORTED_EVENT_LOG_FORMAT_CONTENT);\r
172\r
173 text\r
174 help = STRING_TOKEN(STR_TCG2_HASH_ALGO_BITMAP_HELP),\r
175 text = STRING_TOKEN(STR_TCG2_HASH_ALGO_BITMAP),\r
176 text = STRING_TOKEN(STR_TCG2_HASH_ALGO_BITMAP_CONTENT);\r
177\r
178 text\r
179 help = STRING_TOKEN(STR_TCG2_NUMBER_OF_PCR_BANKS_HELP),\r
180 text = STRING_TOKEN(STR_TCG2_NUMBER_OF_PCR_BANKS),\r
181 text = STRING_TOKEN(STR_TCG2_NUMBER_OF_PCR_BANKS_CONTENT);\r
182\r
183 text\r
184 help = STRING_TOKEN(STR_TCG2_ACTIVE_PCR_BANKS_HELP),\r
185 text = STRING_TOKEN(STR_TCG2_ACTIVE_PCR_BANKS),\r
186 text = STRING_TOKEN(STR_TCG2_ACTIVE_PCR_BANKS_CONTENT);\r
187\r
188 subtitle text = STRING_TOKEN(STR_NULL);\r
189\r
c41eeb44 190 suppressif ideqval TCG2_CONFIGURATION_INFO.Sha1Supported == 0;\r
1abfa4ce
JY
191 checkbox name = TCG2ActivatePCRBank0,\r
192 questionid = KEY_TPM2_PCR_BANKS_REQUEST_0,\r
193 prompt = STRING_TOKEN(STR_TCG2_PCR_BANK_SHA1),\r
194 help = STRING_TOKEN(STR_TCG2_PCR_BANK_SHA1_HELP),\r
151ca688 195 flags = INTERACTIVE | RESET_REQUIRED,\r
1abfa4ce
JY
196 default = 1,\r
197 endcheckbox;\r
c41eeb44 198 endif;\r
1abfa4ce 199\r
c41eeb44 200 suppressif ideqval TCG2_CONFIGURATION_INFO.Sha256Supported == 0;\r
1abfa4ce
JY
201 checkbox name = TCG2ActivatePCRBank1,\r
202 questionid = KEY_TPM2_PCR_BANKS_REQUEST_1,\r
203 prompt = STRING_TOKEN(STR_TCG2_PCR_BANK_SHA256),\r
204 help = STRING_TOKEN(STR_TCG2_PCR_BANK_SHA256_HELP),\r
151ca688 205 flags = INTERACTIVE | RESET_REQUIRED,\r
1abfa4ce
JY
206 default = 0,\r
207 endcheckbox;\r
c41eeb44 208 endif;\r
1abfa4ce 209\r
c41eeb44 210 suppressif ideqval TCG2_CONFIGURATION_INFO.Sha384Supported == 0;\r
1abfa4ce
JY
211 checkbox name = TCG2ActivatePCRBank2,\r
212 questionid = KEY_TPM2_PCR_BANKS_REQUEST_2,\r
213 prompt = STRING_TOKEN(STR_TCG2_PCR_BANK_SHA384),\r
214 help = STRING_TOKEN(STR_TCG2_PCR_BANK_SHA384_HELP),\r
151ca688 215 flags = INTERACTIVE | RESET_REQUIRED,\r
1abfa4ce
JY
216 default = 0,\r
217 endcheckbox;\r
c41eeb44 218 endif;\r
1abfa4ce 219\r
c41eeb44 220 suppressif ideqval TCG2_CONFIGURATION_INFO.Sha512Supported == 0;\r
1abfa4ce
JY
221 checkbox name = TCG2ActivatePCRBank3,\r
222 questionid = KEY_TPM2_PCR_BANKS_REQUEST_3,\r
223 prompt = STRING_TOKEN(STR_TCG2_PCR_BANK_SHA512),\r
224 help = STRING_TOKEN(STR_TCG2_PCR_BANK_SHA512_HELP),\r
151ca688 225 flags = INTERACTIVE | RESET_REQUIRED,\r
1abfa4ce
JY
226 default = 0,\r
227 endcheckbox;\r
c41eeb44 228 endif;\r
1abfa4ce 229\r
c41eeb44 230 suppressif ideqval TCG2_CONFIGURATION_INFO.Sm3Supported == 0;\r
1abfa4ce
JY
231 checkbox name = TCG2ActivatePCRBank4,\r
232 questionid = KEY_TPM2_PCR_BANKS_REQUEST_4,\r
233 prompt = STRING_TOKEN(STR_TCG2_PCR_BANK_SM3_256),\r
234 help = STRING_TOKEN(STR_TCG2_PCR_BANK_SM3_256_HELP),\r
151ca688 235 flags = INTERACTIVE | RESET_REQUIRED,\r
1abfa4ce
JY
236 default = 0,\r
237 endcheckbox;\r
c41eeb44 238 endif;\r
1abfa4ce
JY
239\r
240 endif;\r
241\r
242 endform;\r
243\r
244endformset;\r