]> git.proxmox.com Git - mirror_edk2.git/blame - SecurityPkg/Tcg/TcgConfigDxe/TcgConfig.vfr
SecurityPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / SecurityPkg / Tcg / TcgConfigDxe / TcgConfig.vfr
CommitLineData
0c18794e 1/** @file\r
2 VFR file used by the TCG configuration component.\r
3\r
b49758c1 4Copyright (c) 2011 - 2019, Intel Corporation. All rights reserved.<BR>\r
289b714b 5SPDX-License-Identifier: BSD-2-Clause-Patent\r
0c18794e 6\r
7**/\r
8\r
9#include "TcgConfigNvData.h"\r
10\r
11formset\r
a0c56a82 12 guid = TCG_CONFIG_FORM_SET_GUID,\r
0c18794e 13 title = STRING_TOKEN(STR_TPM_TITLE),\r
14 help = STRING_TOKEN(STR_TPM_HELP),\r
15 classguid = EFI_HII_PLATFORM_SETUP_FORMSET_GUID,\r
16\r
17 varstore TCG_CONFIGURATION,\r
18 varid = TCG_CONFIGURATION_VARSTORE_ID,\r
19 name = TCG_CONFIGURATION,\r
a0c56a82 20 guid = TCG_CONFIG_FORM_SET_GUID;\r
0c18794e 21\r
22 form formid = TCG_CONFIGURATION_FORM_ID,\r
23 title = STRING_TOKEN(STR_TPM_TITLE);\r
24\r
25 subtitle text = STRING_TOKEN(STR_NULL);\r
26\r
0c18794e 27 text\r
28 help = STRING_TOKEN(STR_TPM_STATE_HELP),\r
29 text = STRING_TOKEN(STR_TPM_STATE_PROMPT),\r
30 text = STRING_TOKEN(STR_TPM_STATE_CONTENT);\r
31\r
32 subtitle text = STRING_TOKEN(STR_NULL);\r
33\r
0c18794e 34 oneof varid = TCG_CONFIGURATION.TpmOperation,\r
35 questionid = KEY_TPM_ACTION,\r
36 prompt = STRING_TOKEN(STR_TPM_OPERATION),\r
37 help = STRING_TOKEN(STR_TPM_OPERATION_HELP),\r
cfa451c8 38 flags = INTERACTIVE | RESET_REQUIRED,\r
0c18794e 39 //\r
b49758c1
GDCR
40 // Default the form to NO ACTION to allow toggling other options\r
41 //\r
42 option text = STRING_TOKEN(STR_NO_ACTION), value = PHYSICAL_PRESENCE_NO_ACTION, flags = DEFAULT;\r
43 //\r
0c18794e 44 // Disable (TPM_ORD_PhysicalDisable) command is not available when disabled.\r
45 // Activate/deactivate (TPM_ORD_physicalSetDeactivated) command is not available when disabled.\r
46 //\r
47 suppressif ideqval TCG_CONFIGURATION.TpmEnable == 0;\r
cfa451c8
CZ
48 option text = STRING_TOKEN(STR_DISABLE), value = PHYSICAL_PRESENCE_DISABLE, flags = 0;\r
49 option text = STRING_TOKEN(STR_TPM_ACTIVATE), value = PHYSICAL_PRESENCE_ACTIVATE, flags = 0;\r
50 option text = STRING_TOKEN(STR_TPM_DEACTIVATE), value = PHYSICAL_PRESENCE_DEACTIVATE, flags = 0;\r
51 option text = STRING_TOKEN(STR_TPM_DEACTIVATE_DISABLE), value = PHYSICAL_PRESENCE_DEACTIVATE_DISABLE, flags = 0;\r
0c18794e 52 endif\r
53 //\r
b3548d32 54 // Clear (TPM_ORD_ForceClear) command is not available when disabled or deactivated.\r
0c18794e 55 //\r
56 suppressif ideqval TCG_CONFIGURATION.TpmEnable == 0 OR\r
57 ideqval TCG_CONFIGURATION.TpmActivate == 0;\r
cfa451c8
CZ
58 option text = STRING_TOKEN(STR_TPM_CLEAR), value = PHYSICAL_PRESENCE_CLEAR, flags = 0;\r
59 option text = STRING_TOKEN(STR_TPM_CLEAR_ENABLE_ACTIVATE), value = PHYSICAL_PRESENCE_CLEAR_ENABLE_ACTIVATE, flags = 0;\r
0c18794e 60 endif\r
61\r
b49758c1 62 option text = STRING_TOKEN(STR_ENABLE), value = PHYSICAL_PRESENCE_ENABLE, flags = 0;\r
b3548d32 63 option text = STRING_TOKEN(STR_TPM_ENABLE_ACTIVATE), value = PHYSICAL_PRESENCE_ENABLE_ACTIVATE, flags = 0;\r
cfa451c8
CZ
64 option text = STRING_TOKEN(STR_TPM_ENABLE_ACTIVATE_CLEAR), value = PHYSICAL_PRESENCE_ENABLE_ACTIVATE_CLEAR, flags = 0;\r
65 option text = STRING_TOKEN(STR_TPM_ENABLE_ACTIVATE_CLEAR_E_A), value = PHYSICAL_PRESENCE_ENABLE_ACTIVATE_CLEAR_ENABLE_ACTIVATE, flags = 0;\r
0c18794e 66 endoneof;\r
67\r
68 subtitle text = STRING_TOKEN(STR_NULL);\r
69\r
0c18794e 70 endform;\r
71\r
72endformset;\r