Update for SecurityPkg.
[mirror_edk2.git] / SecurityPkg / Tcg / TcgConfigDxe / TcgConfig.vfr
1 /** @file
2 VFR file used by the TCG configuration component.
3
4 Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 **/
14
15 #include "TcgConfigNvData.h"
16
17 formset
18 guid = TCG_CONFIG_FORM_SET_GUID,
19 title = STRING_TOKEN(STR_TPM_TITLE),
20 help = STRING_TOKEN(STR_TPM_HELP),
21 classguid = EFI_HII_PLATFORM_SETUP_FORMSET_GUID,
22
23 varstore TCG_CONFIGURATION,
24 varid = TCG_CONFIGURATION_VARSTORE_ID,
25 name = TCG_CONFIGURATION,
26 guid = TCG_CONFIG_FORM_SET_GUID;
27
28 form formid = TCG_CONFIGURATION_FORM_ID,
29 title = STRING_TOKEN(STR_TPM_TITLE);
30
31 subtitle text = STRING_TOKEN(STR_NULL);
32
33 suppressif TRUE;
34 checkbox varid = TCG_CONFIGURATION.TpmEnable,
35 prompt = STRING_TOKEN(STR_NULL),
36 help = STRING_TOKEN(STR_NULL),
37 endcheckbox;
38 endif;
39
40 suppressif TRUE;
41 checkbox varid = TCG_CONFIGURATION.TpmActivate,
42 prompt = STRING_TOKEN(STR_NULL),
43 help = STRING_TOKEN(STR_NULL),
44 endcheckbox;
45 endif;
46
47 suppressif TRUE;
48 checkbox varid = TCG_CONFIGURATION.OriginalHideTpm,
49 prompt = STRING_TOKEN(STR_NULL),
50 help = STRING_TOKEN(STR_NULL),
51 endcheckbox;
52 endif;
53
54 text
55 help = STRING_TOKEN(STR_TPM_STATE_HELP),
56 text = STRING_TOKEN(STR_TPM_STATE_PROMPT),
57 text = STRING_TOKEN(STR_TPM_STATE_CONTENT);
58
59 subtitle text = STRING_TOKEN(STR_NULL);
60
61 label LABEL_TCG_CONFIGURATION_HIDETPM;
62
63 checkbox varid = TCG_CONFIGURATION.HideTpm,
64 questionid = KEY_HIDE_TPM,
65 prompt = STRING_TOKEN(STR_HIDE_TPM_PROMPT),
66 help = STRING_TOKEN(STR_HIDE_TPM_HELP),
67 flags = RESET_REQUIRED,
68 endcheckbox;
69
70 label LABEL_END;
71
72 grayoutif ideqval TCG_CONFIGURATION.OriginalHideTpm == 1;
73 oneof varid = TCG_CONFIGURATION.TpmOperation,
74 questionid = KEY_TPM_ACTION,
75 prompt = STRING_TOKEN(STR_TPM_OPERATION),
76 help = STRING_TOKEN(STR_TPM_OPERATION_HELP),
77 flags = INTERACTIVE,
78 //
79 // Disable (TPM_ORD_PhysicalDisable) command is not available when disabled.
80 // Activate/deactivate (TPM_ORD_physicalSetDeactivated) command is not available when disabled.
81 //
82 suppressif ideqval TCG_CONFIGURATION.TpmEnable == 0;
83 option text = STRING_TOKEN(STR_DISABLE), value = PHYSICAL_PRESENCE_DISABLE, flags = 0;
84 option text = STRING_TOKEN(STR_TPM_ACTIVATE), value = PHYSICAL_PRESENCE_ACTIVATE, flags = 0;
85 option text = STRING_TOKEN(STR_TPM_DEACTIVATE), value = PHYSICAL_PRESENCE_DEACTIVATE, flags = 0;
86 option text = STRING_TOKEN(STR_TPM_DEACTIVATE_DISABLE), value = PHYSICAL_PRESENCE_DEACTIVATE_DISABLE, flags = 0;
87 endif
88 //
89 // Clear (TPM_ORD_ForceClear) command is not available when disabled or deactivated.
90 //
91 suppressif ideqval TCG_CONFIGURATION.TpmEnable == 0 OR
92 ideqval TCG_CONFIGURATION.TpmActivate == 0;
93 option text = STRING_TOKEN(STR_TPM_CLEAR), value = PHYSICAL_PRESENCE_CLEAR, flags = 0;
94 option text = STRING_TOKEN(STR_TPM_CLEAR_ENABLE_ACTIVATE), value = PHYSICAL_PRESENCE_CLEAR_ENABLE_ACTIVATE, flags = 0;
95 endif
96
97 option text = STRING_TOKEN(STR_ENABLE), value = PHYSICAL_PRESENCE_ENABLE, flags = 0;
98 option text = STRING_TOKEN(STR_TPM_ENABLE_ACTIVATE), value = PHYSICAL_PRESENCE_ENABLE_ACTIVATE, flags = 0;
99 option text = STRING_TOKEN(STR_TPM_ENABLE_ACTIVATE_CLEAR), value = PHYSICAL_PRESENCE_ENABLE_ACTIVATE_CLEAR, flags = 0;
100 option text = STRING_TOKEN(STR_TPM_ENABLE_ACTIVATE_CLEAR_E_A), value = PHYSICAL_PRESENCE_ENABLE_ACTIVATE_CLEAR_ENABLE_ACTIVATE, flags = 0;
101 endoneof;
102
103 subtitle text = STRING_TOKEN(STR_NULL);
104
105 checkbox varid = TCG_CONFIGURATION.MorState,
106 questionid = KEY_TPM_MOR_ENABLE,
107 prompt = STRING_TOKEN(STR_MOR_PROMPT),
108 help = STRING_TOKEN(STR_MOR_HELP),
109 endcheckbox;
110 endif;
111
112 endform;
113
114 endformset;