]> git.proxmox.com Git - mirror_edk2.git/blob - SecurityPkg/HddPassword/HddPassword.vfr
2cd39523c790bbed8f859f163675617b0ae32017
[mirror_edk2.git] / SecurityPkg / HddPassword / HddPassword.vfr
1 /** @file
2 HDD Password Configuration Formset.
3
4 Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
5
6 This program and the accompanying materials
7 are licensed and made available under the terms and conditions
8 of the BSD License which accompanies this distribution. The
9 full text of the license may be found at
10 http://opensource.org/licenses/bsd-license.php
11
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14 **/
15
16 #include "HddPasswordHiiDataStruc.h"
17
18 formset
19 guid = HDD_PASSWORD_CONFIG_GUID,
20 title = STRING_TOKEN(STR_HDD_SECURITY_CONFIG),
21 help = STRING_TOKEN(STR_HDD_SECURITY_CONFIG),
22 classguid = EFI_HII_PLATFORM_SETUP_FORMSET_GUID,
23
24 varstore HDD_PASSWORD_CONFIG,
25 name = HDD_PASSWORD_CONFIG,
26 guid = HDD_PASSWORD_CONFIG_GUID;
27
28 form formid = FORMID_HDD_MAIN_FORM,
29 title = STRING_TOKEN(STR_HDD_SECURITY_CONFIG);
30
31 label HDD_DEVICE_ENTRY_LABEL;
32 label HDD_DEVICE_LABEL_END;
33
34 endform;
35
36 form
37 formid = FORMID_HDD_DEVICE_FORM,
38 title = STRING_TOKEN(STR_HDD_SECURITY_HD);
39
40 subtitle text = STRING_TOKEN(STR_SECURITY_HDD_PWD_DESC);
41
42 subtitle text = STRING_TOKEN(STR_NULL);
43
44 subtitle text = STRING_TOKEN(STR_SECURITY_HDD_BANNER_ONE);
45 subtitle text = STRING_TOKEN(STR_SECURITY_HDD_BANNER_TWO);
46 subtitle text = STRING_TOKEN(STR_SECURITY_HDD_BANNER_THREE);
47 subtitle text = STRING_TOKEN(STR_SECURITY_HDD_BANNER_FOUR);
48 subtitle text = STRING_TOKEN(STR_SECURITY_HDD_BANNER_FIVE);
49
50 subtitle text = STRING_TOKEN(STR_NULL);
51
52 subtitle text = STRING_TOKEN(STR_HDD_PASSWORD_CONFIG);
53
54 subtitle text = STRING_TOKEN(STR_NULL);
55
56 grayoutif TRUE;
57 suppressif ideqvallist HDD_PASSWORD_CONFIG.SecurityStatus.Supported == 0;
58 text
59 help = STRING_TOKEN(STR_EMPTY),
60 text = STRING_TOKEN(STR_SEC_SUPPORTED),
61 text = STRING_TOKEN(STR_YES),
62 flags = 0,
63 key = 0;
64 endif;
65
66 suppressif ideqvallist HDD_PASSWORD_CONFIG.SecurityStatus.Supported == 1;
67 text
68 help = STRING_TOKEN(STR_EMPTY),
69 text = STRING_TOKEN(STR_SEC_SUPPORTED),
70 text = STRING_TOKEN(STR_NO),
71 flags = 0,
72 key = 0;
73 endif;
74
75 suppressif ideqvallist HDD_PASSWORD_CONFIG.SecurityStatus.Enabled == 0;
76 text
77 help = STRING_TOKEN(STR_EMPTY),
78 text = STRING_TOKEN(STR_SEC_ENABLED),
79 text = STRING_TOKEN(STR_YES),
80 flags = 0,
81 key = 0;
82 endif;
83
84 suppressif ideqvallist HDD_PASSWORD_CONFIG.SecurityStatus.Enabled == 1;
85 text
86 help = STRING_TOKEN(STR_EMPTY),
87 text = STRING_TOKEN(STR_SEC_ENABLED),
88 text = STRING_TOKEN(STR_NO),
89 flags = 0,
90 key = 0;
91 endif;
92
93
94 suppressif ideqvallist HDD_PASSWORD_CONFIG.SecurityStatus.Locked == 0;
95 text
96 help = STRING_TOKEN(STR_EMPTY),
97 text = STRING_TOKEN(STR_SEC_LOCKED),
98 text = STRING_TOKEN(STR_YES),
99 flags = 0,
100 key = 0;
101 endif;
102
103 suppressif ideqvallist HDD_PASSWORD_CONFIG.SecurityStatus.Locked == 1;
104 text
105 help = STRING_TOKEN(STR_EMPTY),
106 text = STRING_TOKEN(STR_SEC_LOCKED),
107 text = STRING_TOKEN(STR_NO),
108 flags = 0,
109 key = 0;
110 endif;
111
112 suppressif ideqvallist HDD_PASSWORD_CONFIG.SecurityStatus.Frozen == 0;
113 text
114 help = STRING_TOKEN(STR_EMPTY),
115 text = STRING_TOKEN(STR_SEC_FROZEN),
116 text = STRING_TOKEN(STR_YES),
117 flags = 0,
118 key = 0;
119 endif;
120
121 suppressif ideqvallist HDD_PASSWORD_CONFIG.SecurityStatus.Frozen == 1;
122 text
123 help = STRING_TOKEN(STR_EMPTY),
124 text = STRING_TOKEN(STR_SEC_FROZEN),
125 text = STRING_TOKEN(STR_NO),
126 flags = 0,
127 key = 0;
128 endif;
129
130 suppressif ideqvallist HDD_PASSWORD_CONFIG.SecurityStatus.UserPasswordStatus == 0;
131 text
132 help = STRING_TOKEN(STR_EMPTY),
133 text = STRING_TOKEN(STR_HDD_USER_PASSWORD_STS),
134 text = STRING_TOKEN(STR_INSTALLED),
135 flags = 0,
136 key = 0;
137 endif;
138
139 suppressif ideqvallist HDD_PASSWORD_CONFIG.SecurityStatus.UserPasswordStatus == 1;
140 text
141 help = STRING_TOKEN(STR_EMPTY),
142 text = STRING_TOKEN(STR_HDD_USER_PASSWORD_STS),
143 text = STRING_TOKEN(STR_NOT_INSTALLED),
144 flags = 0,
145 key = 0;
146 endif;
147
148 suppressif ideqvallist HDD_PASSWORD_CONFIG.SecurityStatus.MasterPasswordStatus == 0;
149 text
150 help = STRING_TOKEN(STR_EMPTY),
151 text = STRING_TOKEN(STR_HDD_MASTER_PASSWORD_STS),
152 text = STRING_TOKEN(STR_INSTALLED),
153 flags = 0,
154 key = 0;
155 endif;
156
157 suppressif ideqvallist HDD_PASSWORD_CONFIG.SecurityStatus.MasterPasswordStatus == 1;
158 text
159 help = STRING_TOKEN(STR_EMPTY),
160 text = STRING_TOKEN(STR_HDD_MASTER_PASSWORD_STS),
161 text = STRING_TOKEN(STR_NOT_INSTALLED),
162 flags = 0,
163 key = 0;
164 endif;
165 endif;
166
167 subtitle text = STRING_TOKEN(STR_NULL);
168
169 grayoutif ideqval HDD_PASSWORD_CONFIG.SecurityStatus.Supported == 0;
170 checkbox varid = HDD_PASSWORD_CONFIG.Request.UserPassword,
171 prompt = STRING_TOKEN(STR_HDD_USER_PASSWORD),
172 help = STRING_TOKEN(STR_HDD_USER_PASSWORD_HELP),
173 flags = INTERACTIVE | RESET_REQUIRED,
174 key = KEY_HDD_USER_PASSWORD,
175 endcheckbox;
176 endif;
177
178 grayoutif ideqval HDD_PASSWORD_CONFIG.SecurityStatus.Supported == 0;
179 checkbox varid = HDD_PASSWORD_CONFIG.Request.MasterPassword,
180 prompt = STRING_TOKEN(STR_HDD_MASTER_PASSWORD),
181 help = STRING_TOKEN(STR_HDD_MASTER_PASSWORD_HELP),
182 flags = INTERACTIVE | RESET_REQUIRED,
183 key = KEY_HDD_MASTER_PASSWORD,
184 endcheckbox;
185 endif;
186 endform;
187
188 endformset;