]> git.proxmox.com Git - mirror_edk2.git/blame - SecurityPkg/Tcg/TcgConfigDxe/TcgConfig.vfr
QuarkSocPkg: 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
b3548d32
LG
5This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
0c18794e 8http://opensource.org/licenses/bsd-license.php\r
9\r
b3548d32 10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
0c18794e 11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#include "TcgConfigNvData.h"\r
16\r
17formset\r
a0c56a82 18 guid = TCG_CONFIG_FORM_SET_GUID,\r
0c18794e 19 title = STRING_TOKEN(STR_TPM_TITLE),\r
20 help = STRING_TOKEN(STR_TPM_HELP),\r
21 classguid = EFI_HII_PLATFORM_SETUP_FORMSET_GUID,\r
22\r
23 varstore TCG_CONFIGURATION,\r
24 varid = TCG_CONFIGURATION_VARSTORE_ID,\r
25 name = TCG_CONFIGURATION,\r
a0c56a82 26 guid = TCG_CONFIG_FORM_SET_GUID;\r
0c18794e 27\r
28 form formid = TCG_CONFIGURATION_FORM_ID,\r
29 title = STRING_TOKEN(STR_TPM_TITLE);\r
30\r
31 subtitle text = STRING_TOKEN(STR_NULL);\r
32\r
0c18794e 33 text\r
34 help = STRING_TOKEN(STR_TPM_STATE_HELP),\r
35 text = STRING_TOKEN(STR_TPM_STATE_PROMPT),\r
36 text = STRING_TOKEN(STR_TPM_STATE_CONTENT);\r
37\r
38 subtitle text = STRING_TOKEN(STR_NULL);\r
39\r
0c18794e 40 oneof varid = TCG_CONFIGURATION.TpmOperation,\r
41 questionid = KEY_TPM_ACTION,\r
42 prompt = STRING_TOKEN(STR_TPM_OPERATION),\r
43 help = STRING_TOKEN(STR_TPM_OPERATION_HELP),\r
cfa451c8 44 flags = INTERACTIVE | RESET_REQUIRED,\r
0c18794e 45 //\r
b49758c1
GDCR
46 // Default the form to NO ACTION to allow toggling other options\r
47 //\r
48 option text = STRING_TOKEN(STR_NO_ACTION), value = PHYSICAL_PRESENCE_NO_ACTION, flags = DEFAULT;\r
49 //\r
0c18794e 50 // Disable (TPM_ORD_PhysicalDisable) command is not available when disabled.\r
51 // Activate/deactivate (TPM_ORD_physicalSetDeactivated) command is not available when disabled.\r
52 //\r
53 suppressif ideqval TCG_CONFIGURATION.TpmEnable == 0;\r
cfa451c8
CZ
54 option text = STRING_TOKEN(STR_DISABLE), value = PHYSICAL_PRESENCE_DISABLE, flags = 0;\r
55 option text = STRING_TOKEN(STR_TPM_ACTIVATE), value = PHYSICAL_PRESENCE_ACTIVATE, flags = 0;\r
56 option text = STRING_TOKEN(STR_TPM_DEACTIVATE), value = PHYSICAL_PRESENCE_DEACTIVATE, flags = 0;\r
57 option text = STRING_TOKEN(STR_TPM_DEACTIVATE_DISABLE), value = PHYSICAL_PRESENCE_DEACTIVATE_DISABLE, flags = 0;\r
0c18794e 58 endif\r
59 //\r
b3548d32 60 // Clear (TPM_ORD_ForceClear) command is not available when disabled or deactivated.\r
0c18794e 61 //\r
62 suppressif ideqval TCG_CONFIGURATION.TpmEnable == 0 OR\r
63 ideqval TCG_CONFIGURATION.TpmActivate == 0;\r
cfa451c8
CZ
64 option text = STRING_TOKEN(STR_TPM_CLEAR), value = PHYSICAL_PRESENCE_CLEAR, flags = 0;\r
65 option text = STRING_TOKEN(STR_TPM_CLEAR_ENABLE_ACTIVATE), value = PHYSICAL_PRESENCE_CLEAR_ENABLE_ACTIVATE, flags = 0;\r
0c18794e 66 endif\r
67\r
b49758c1 68 option text = STRING_TOKEN(STR_ENABLE), value = PHYSICAL_PRESENCE_ENABLE, flags = 0;\r
b3548d32 69 option text = STRING_TOKEN(STR_TPM_ENABLE_ACTIVATE), value = PHYSICAL_PRESENCE_ENABLE_ACTIVATE, flags = 0;\r
cfa451c8
CZ
70 option text = STRING_TOKEN(STR_TPM_ENABLE_ACTIVATE_CLEAR), value = PHYSICAL_PRESENCE_ENABLE_ACTIVATE_CLEAR, flags = 0;\r
71 option text = STRING_TOKEN(STR_TPM_ENABLE_ACTIVATE_CLEAR_E_A), value = PHYSICAL_PRESENCE_ENABLE_ACTIVATE_CLEAR_ENABLE_ACTIVATE, flags = 0;\r
0c18794e 72 endoneof;\r
73\r
74 subtitle text = STRING_TOKEN(STR_NULL);\r
75\r
0c18794e 76 endform;\r
77\r
78endformset;\r