]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | VFR file used by the TCG configuration component.\r | |
3 | \r | |
4 | Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>\r | |
5 | This program and the accompanying materials \r | |
6 | are licensed and made available under the terms and conditions of the BSD License \r | |
7 | which accompanies this distribution. The full text of the license may be found at \r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
13 | **/\r | |
14 | \r | |
15 | #include "TcgConfigNvData.h"\r | |
16 | \r | |
17 | formset\r | |
18 | guid = TCG_CONFIG_FORM_SET_GUID,\r | |
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 | |
26 | guid = TCG_CONFIG_FORM_SET_GUID;\r | |
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 | text\r | |
48 | help = STRING_TOKEN(STR_TPM_STATE_HELP),\r | |
49 | text = STRING_TOKEN(STR_TPM_STATE_PROMPT),\r | |
50 | text = STRING_TOKEN(STR_TPM_STATE_CONTENT);\r | |
51 | \r | |
52 | subtitle text = STRING_TOKEN(STR_NULL);\r | |
53 | \r | |
54 | oneof varid = TCG_CONFIGURATION.TpmOperation,\r | |
55 | questionid = KEY_TPM_ACTION,\r | |
56 | prompt = STRING_TOKEN(STR_TPM_OPERATION),\r | |
57 | help = STRING_TOKEN(STR_TPM_OPERATION_HELP),\r | |
58 | flags = INTERACTIVE,\r | |
59 | //\r | |
60 | // Disable (TPM_ORD_PhysicalDisable) command is not available when disabled.\r | |
61 | // Activate/deactivate (TPM_ORD_physicalSetDeactivated) command is not available when disabled.\r | |
62 | //\r | |
63 | suppressif ideqval TCG_CONFIGURATION.TpmEnable == 0;\r | |
64 | option text = STRING_TOKEN(STR_DISABLE), value = PHYSICAL_PRESENCE_DISABLE, flags = RESET_REQUIRED;\r | |
65 | option text = STRING_TOKEN(STR_TPM_ACTIVATE), value = PHYSICAL_PRESENCE_ACTIVATE, flags = RESET_REQUIRED;\r | |
66 | option text = STRING_TOKEN(STR_TPM_DEACTIVATE), value = PHYSICAL_PRESENCE_DEACTIVATE, flags = RESET_REQUIRED;\r | |
67 | option text = STRING_TOKEN(STR_TPM_DEACTIVATE_DISABLE), value = PHYSICAL_PRESENCE_DEACTIVATE_DISABLE, flags = RESET_REQUIRED;\r | |
68 | endif\r | |
69 | //\r | |
70 | // Clear (TPM_ORD_ForceClear) command is not available when disabled or deactivated. \r | |
71 | //\r | |
72 | suppressif ideqval TCG_CONFIGURATION.TpmEnable == 0 OR\r | |
73 | ideqval TCG_CONFIGURATION.TpmActivate == 0;\r | |
74 | option text = STRING_TOKEN(STR_TPM_CLEAR), value = PHYSICAL_PRESENCE_CLEAR, flags = RESET_REQUIRED;\r | |
75 | option text = STRING_TOKEN(STR_TPM_CLEAR_ENABLE_ACTIVATE), value = PHYSICAL_PRESENCE_CLEAR_ENABLE_ACTIVATE, flags = RESET_REQUIRED;\r | |
76 | endif\r | |
77 | \r | |
78 | option text = STRING_TOKEN(STR_ENABLE), value = PHYSICAL_PRESENCE_ENABLE, flags = RESET_REQUIRED;\r | |
79 | option text = STRING_TOKEN(STR_TPM_ENABLE_ACTIVATE), value = PHYSICAL_PRESENCE_ENABLE_ACTIVATE, flags = RESET_REQUIRED; \r | |
80 | option text = STRING_TOKEN(STR_TPM_ENABLE_ACTIVATE_CLEAR), value = PHYSICAL_PRESENCE_ENABLE_ACTIVATE_CLEAR, flags = RESET_REQUIRED;\r | |
81 | option text = STRING_TOKEN(STR_TPM_ENABLE_ACTIVATE_CLEAR_E_A), value = PHYSICAL_PRESENCE_ENABLE_ACTIVATE_CLEAR_ENABLE_ACTIVATE, flags = RESET_REQUIRED;\r | |
82 | endoneof;\r | |
83 | \r | |
84 | subtitle text = STRING_TOKEN(STR_NULL);\r | |
85 | \r | |
86 | endform;\r | |
87 | \r | |
88 | endformset;\r |