]> git.proxmox.com Git - mirror_edk2.git/blame - SecurityPkg/Tcg/TcgConfigDxe/TcgConfig.vfr
MdePkg: introduce standalone MM entry point library implementation
[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
b3548d32
LG
4Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
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
46 // Disable (TPM_ORD_PhysicalDisable) command is not available when disabled.\r
47 // Activate/deactivate (TPM_ORD_physicalSetDeactivated) command is not available when disabled.\r
48 //\r
49 suppressif ideqval TCG_CONFIGURATION.TpmEnable == 0;\r
cfa451c8
CZ
50 option text = STRING_TOKEN(STR_DISABLE), value = PHYSICAL_PRESENCE_DISABLE, flags = 0;\r
51 option text = STRING_TOKEN(STR_TPM_ACTIVATE), value = PHYSICAL_PRESENCE_ACTIVATE, flags = 0;\r
52 option text = STRING_TOKEN(STR_TPM_DEACTIVATE), value = PHYSICAL_PRESENCE_DEACTIVATE, flags = 0;\r
53 option text = STRING_TOKEN(STR_TPM_DEACTIVATE_DISABLE), value = PHYSICAL_PRESENCE_DEACTIVATE_DISABLE, flags = 0;\r
0c18794e 54 endif\r
55 //\r
b3548d32 56 // Clear (TPM_ORD_ForceClear) command is not available when disabled or deactivated.\r
0c18794e 57 //\r
58 suppressif ideqval TCG_CONFIGURATION.TpmEnable == 0 OR\r
59 ideqval TCG_CONFIGURATION.TpmActivate == 0;\r
cfa451c8
CZ
60 option text = STRING_TOKEN(STR_TPM_CLEAR), value = PHYSICAL_PRESENCE_CLEAR, flags = 0;\r
61 option text = STRING_TOKEN(STR_TPM_CLEAR_ENABLE_ACTIVATE), value = PHYSICAL_PRESENCE_CLEAR_ENABLE_ACTIVATE, flags = 0;\r
0c18794e 62 endif\r
63\r
cfa451c8 64 option text = STRING_TOKEN(STR_ENABLE), value = PHYSICAL_PRESENCE_ENABLE, flags = DEFAULT;\r
b3548d32 65 option text = STRING_TOKEN(STR_TPM_ENABLE_ACTIVATE), value = PHYSICAL_PRESENCE_ENABLE_ACTIVATE, flags = 0;\r
cfa451c8
CZ
66 option text = STRING_TOKEN(STR_TPM_ENABLE_ACTIVATE_CLEAR), value = PHYSICAL_PRESENCE_ENABLE_ACTIVATE_CLEAR, flags = 0;\r
67 option text = STRING_TOKEN(STR_TPM_ENABLE_ACTIVATE_CLEAR_E_A), value = PHYSICAL_PRESENCE_ENABLE_ACTIVATE_CLEAR_ENABLE_ACTIVATE, flags = 0;\r
0c18794e 68 endoneof;\r
69\r
70 subtitle text = STRING_TOKEN(STR_NULL);\r
71\r
0c18794e 72 endform;\r
73\r
74endformset;\r