Update for SecurityPkg.
[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
4Copyright (c) 2011, 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
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
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
33 suppressif TRUE;\r
34 checkbox varid = TCG_CONFIGURATION.TpmEnable,\r
35 prompt = STRING_TOKEN(STR_NULL),\r
36 help = STRING_TOKEN(STR_NULL),\r
37 endcheckbox;\r
38 endif;\r
39\r
40 suppressif TRUE;\r
41 checkbox varid = TCG_CONFIGURATION.TpmActivate,\r
42 prompt = STRING_TOKEN(STR_NULL),\r
43 help = STRING_TOKEN(STR_NULL),\r
44 endcheckbox;\r
45 endif;\r
46\r
47 suppressif TRUE;\r
48 checkbox varid = TCG_CONFIGURATION.OriginalHideTpm,\r
49 prompt = STRING_TOKEN(STR_NULL),\r
50 help = STRING_TOKEN(STR_NULL),\r
51 endcheckbox;\r
52 endif;\r
53\r
54 text\r
55 help = STRING_TOKEN(STR_TPM_STATE_HELP),\r
56 text = STRING_TOKEN(STR_TPM_STATE_PROMPT),\r
57 text = STRING_TOKEN(STR_TPM_STATE_CONTENT);\r
58\r
59 subtitle text = STRING_TOKEN(STR_NULL);\r
60\r
61 label LABEL_TCG_CONFIGURATION_HIDETPM;\r
62\r
63 checkbox varid = TCG_CONFIGURATION.HideTpm,\r
64 questionid = KEY_HIDE_TPM,\r
65 prompt = STRING_TOKEN(STR_HIDE_TPM_PROMPT),\r
66 help = STRING_TOKEN(STR_HIDE_TPM_HELP),\r
67 flags = RESET_REQUIRED,\r
68 endcheckbox;\r
69\r
70 label LABEL_END;\r
71\r
72 grayoutif ideqval TCG_CONFIGURATION.OriginalHideTpm == 1;\r
73 oneof varid = TCG_CONFIGURATION.TpmOperation,\r
74 questionid = KEY_TPM_ACTION,\r
75 prompt = STRING_TOKEN(STR_TPM_OPERATION),\r
76 help = STRING_TOKEN(STR_TPM_OPERATION_HELP),\r
77 flags = INTERACTIVE,\r
78 //\r
79 // Disable (TPM_ORD_PhysicalDisable) command is not available when disabled.\r
80 // Activate/deactivate (TPM_ORD_physicalSetDeactivated) command is not available when disabled.\r
81 //\r
82 suppressif ideqval TCG_CONFIGURATION.TpmEnable == 0;\r
607599bf 83 option text = STRING_TOKEN(STR_DISABLE), value = PHYSICAL_PRESENCE_DISABLE, flags = 0;\r
84 option text = STRING_TOKEN(STR_TPM_ACTIVATE), value = PHYSICAL_PRESENCE_ACTIVATE, flags = 0;\r
85 option text = STRING_TOKEN(STR_TPM_DEACTIVATE), value = PHYSICAL_PRESENCE_DEACTIVATE, flags = 0;\r
86 option text = STRING_TOKEN(STR_TPM_DEACTIVATE_DISABLE), value = PHYSICAL_PRESENCE_DEACTIVATE_DISABLE, flags = 0;\r
0c18794e 87 endif\r
88 //\r
89 // Clear (TPM_ORD_ForceClear) command is not available when disabled or deactivated. \r
90 //\r
91 suppressif ideqval TCG_CONFIGURATION.TpmEnable == 0 OR\r
92 ideqval TCG_CONFIGURATION.TpmActivate == 0;\r
607599bf 93 option text = STRING_TOKEN(STR_TPM_CLEAR), value = PHYSICAL_PRESENCE_CLEAR, flags = 0;\r
94 option text = STRING_TOKEN(STR_TPM_CLEAR_ENABLE_ACTIVATE), value = PHYSICAL_PRESENCE_CLEAR_ENABLE_ACTIVATE, flags = 0;\r
0c18794e 95 endif\r
96\r
607599bf 97 option text = STRING_TOKEN(STR_ENABLE), value = PHYSICAL_PRESENCE_ENABLE, flags = 0;\r
98 option text = STRING_TOKEN(STR_TPM_ENABLE_ACTIVATE), value = PHYSICAL_PRESENCE_ENABLE_ACTIVATE, flags = 0; \r
99 option text = STRING_TOKEN(STR_TPM_ENABLE_ACTIVATE_CLEAR), value = PHYSICAL_PRESENCE_ENABLE_ACTIVATE_CLEAR, flags = 0;\r
100 option text = STRING_TOKEN(STR_TPM_ENABLE_ACTIVATE_CLEAR_E_A), value = PHYSICAL_PRESENCE_ENABLE_ACTIVATE_CLEAR_ENABLE_ACTIVATE, flags = 0;\r
0c18794e 101 endoneof;\r
102\r
103 subtitle text = STRING_TOKEN(STR_NULL);\r
104\r
105 checkbox varid = TCG_CONFIGURATION.MorState,\r
106 questionid = KEY_TPM_MOR_ENABLE,\r
107 prompt = STRING_TOKEN(STR_MOR_PROMPT),\r
108 help = STRING_TOKEN(STR_MOR_HELP),\r
109 endcheckbox; \r
110 endif;\r
111\r
112 endform;\r
113\r
114endformset;\r