Update for NetworkPkg.
[mirror_edk2.git] / NetworkPkg / IScsiDxe / IScsiConfigVfr.vfr
CommitLineData
4c5a5e0c 1/** @file\r
2 VFR file used by the iSCSI configuration component.\r
3 \r
4Copyright (c) 2004 - 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 "IScsiConfigNVDataStruc.h"\r
16\r
17#define EFI_NETWORK_DEVICE_CLASS 0x04\r
18\r
19formset\r
20 guid = ISCSI_CONFIG_GUID,\r
21 title = STRING_TOKEN(STR_ISCSI_CONFIG_FORM_TITLE),\r
22 help = STRING_TOKEN(STR_ISCSI_CONFIG_FORM_HELP),\r
23 class = EFI_NETWORK_DEVICE_CLASS,\r
24 subclass = 0x03,\r
25\r
26 varstore ISCSI_CONFIG_IFR_NVDATA,\r
27 varid = CONFIGURATION_VARSTORE_ID,\r
28 name = ISCSI_CONFIG_IFR_NVDATA,\r
29 guid = ISCSI_CONFIG_GUID;\r
30\r
31 form formid = FORMID_MAIN_FORM,\r
32 title = STRING_TOKEN(STR_ISCSI_MAIN_FORM_TITLE);\r
33\r
34 string varid = ISCSI_CONFIG_IFR_NVDATA.InitiatorName,\r
35 prompt = STRING_TOKEN(STR_ISCSI_CONFIG_INIT_NAME),\r
36 help = STRING_TOKEN(STR_ISCSI_CONFIG_INIT_NAME_HELP),\r
37 flags = INTERACTIVE,\r
38 key = KEY_INITIATOR_NAME,\r
39 minsize = ISCSI_NAME_IFR_MIN_SIZE,\r
40 maxsize = ISCSI_NAME_IFR_MAX_SIZE,\r
41 endstring;\r
42\r
43 subtitle text = STRING_TOKEN(STR_NULL);\r
44\r
45 goto FORMID_MAC_FORM,\r
46 prompt = STRING_TOKEN(STR_ADD_ATTEMPT_ENTRY),\r
47 help = STRING_TOKEN(STR_ADD_ATTEMPT_ENTRY),\r
48 flags = INTERACTIVE,\r
49 key = KEY_ADD_ATTEMPT;\r
50\r
51 label ATTEMPT_ENTRY_LABEL;\r
52 label LABEL_END;\r
53\r
54 subtitle text = STRING_TOKEN(STR_NULL);\r
55\r
56 goto FORMID_DELETE_FORM,\r
57 prompt = STRING_TOKEN (STR_DEL_ATTEMPT_ENTRY),\r
58 help = STRING_TOKEN (STR_DEL_ATTEMPT_ENTRY_HELP),\r
59 flags = INTERACTIVE,\r
60 key = KEY_DELETE_ATTEMPT;\r
61\r
62 subtitle text = STRING_TOKEN(STR_NULL);\r
63\r
64 goto FORMID_ORDER_FORM,\r
65 prompt = STRING_TOKEN (STR_ORDER_ATTEMPT_ENTRY),\r
66 help = STRING_TOKEN (STR_ORDER_ATTEMPT_ENTRY),\r
67 flags = INTERACTIVE,\r
68 key = KEY_ORDER_ATTEMPT_CONFIG;\r
69\r
70 subtitle text = STRING_TOKEN(STR_NULL);\r
71\r
72 endform;\r
73\r
74 form formid = FORMID_MAC_FORM,\r
75 title = STRING_TOKEN(STR_ISCSI_MAC_FORM_TITLE);\r
76\r
77 label MAC_ENTRY_LABEL;\r
78 label LABEL_END;\r
79\r
80 endform;\r
81\r
82 form formid = FORMID_ORDER_FORM,\r
83 title = STRING_TOKEN(STR_ORDER_ATTEMPT_ENTRY);\r
84\r
85 label ORDER_ENTRY_LABEL;\r
86 label LABEL_END;\r
87\r
639a76d1 88 text\r
4c5a5e0c 89 help = STRING_TOKEN (STR_SAVE_AND_EXIT),\r
639a76d1
ED
90 text = STRING_TOKEN (STR_SAVE_AND_EXIT),\r
91 text = STRING_TOKEN (STR_SAVE_AND_EXIT),\r
4c5a5e0c 92 flags = INTERACTIVE,\r
93 key = KEY_SAVE_ORDER_CHANGES;\r
639a76d1
ED
94\r
95 text\r
4c5a5e0c 96 help = STRING_TOKEN (STR_NO_SAVE_AND_EXIT),\r
639a76d1
ED
97 text = STRING_TOKEN (STR_NO_SAVE_AND_EXIT),\r
98 text = STRING_TOKEN (STR_NO_SAVE_AND_EXIT),\r
4c5a5e0c 99 flags = INTERACTIVE,\r
100 key = KEY_IGNORE_ORDER_CHANGES;\r
4c5a5e0c 101 endform;\r
102\r
103 form formid = FORMID_DELETE_FORM,\r
104 title = STRING_TOKEN(STR_DEL_ATTEMPT_ENTRY);\r
105\r
106 label DELETE_ENTRY_LABEL;\r
107 label LABEL_END;\r
108\r
639a76d1 109 text\r
4c5a5e0c 110 help = STRING_TOKEN (STR_SAVE_AND_EXIT),\r
639a76d1
ED
111 text = STRING_TOKEN (STR_SAVE_AND_EXIT),\r
112 text = STRING_TOKEN (STR_SAVE_AND_EXIT),\r
4c5a5e0c 113 flags = INTERACTIVE,\r
114 key = KEY_SAVE_DELETE_ATTEMPT;\r
639a76d1
ED
115\r
116 text\r
4c5a5e0c 117 help = STRING_TOKEN (STR_NO_SAVE_AND_EXIT),\r
639a76d1
ED
118 text = STRING_TOKEN (STR_NO_SAVE_AND_EXIT),\r
119 text = STRING_TOKEN (STR_NO_SAVE_AND_EXIT),\r
4c5a5e0c 120 flags = INTERACTIVE,\r
121 key = KEY_IGNORE_DELETE_ATTEMPT;\r
4c5a5e0c 122 endform; \r
123\r
124 form formid = FORMID_ATTEMPT_FORM,\r
125 title = STRING_TOKEN(STR_ISCSI_ATTEMPT_FORM_TITLE);\r
126\r
127 string varid = ISCSI_CONFIG_IFR_NVDATA.AttemptName,\r
128 prompt = STRING_TOKEN(STR_ISCSI_ATTEMPT_NAME),\r
129 help = STRING_TOKEN(STR_ISCSI_ATTEMPT_NAME_HELP),\r
130 flags = INTERACTIVE,\r
131 key = KEY_ATTEMPT_NAME,\r
132 minsize = 0,\r
133 maxsize = ATTEMPT_NAME_MAX_SIZE,\r
134 endstring;\r
135\r
136 subtitle text = STRING_TOKEN(STR_NULL);\r
137\r
138 oneof varid = ISCSI_CONFIG_IFR_NVDATA.Enabled,\r
139 prompt = STRING_TOKEN(STR_ISCSI_MODE_PROMPT),\r
140 help = STRING_TOKEN(STR_ISCSI_MODE_HELP),\r
141 option text = STRING_TOKEN(STR_ISCSI_MODE_DISABLED), value = ISCSI_DISABLED, flags = DEFAULT;\r
142 option text = STRING_TOKEN(STR_ISCSI_MODE_ENABLED), value = ISCSI_ENABLED, flags = 0;\r
143 option text = STRING_TOKEN(STR_ISCSI_MODE_ENABLED_FOR_MPIO), value = ISCSI_ENABLED_FOR_MPIO, flags = 0;\r
144 endoneof;\r
145\r
146 subtitle text = STRING_TOKEN(STR_NULL);\r
147\r
148 oneof varid = ISCSI_CONFIG_IFR_NVDATA.IpMode,\r
149 questionid = KEY_IP_MODE,\r
150 prompt = STRING_TOKEN(STR_IP_MODE_PROMPT),\r
151 help = STRING_TOKEN(STR_IP_MODE_HELP),\r
152 option text = STRING_TOKEN(STR_IP_MODE_IP4), value = IP_MODE_IP4, flags = INTERACTIVE;\r
153 option text = STRING_TOKEN(STR_IP_MODE_IP6), value = IP_MODE_IP6, flags = INTERACTIVE;\r
154 option text = STRING_TOKEN(STR_IP_MODE_AUTOCONFIG), value = IP_MODE_AUTOCONFIG, flags = INTERACTIVE;\r
155 endoneof;\r
156\r
157 subtitle text = STRING_TOKEN(STR_NULL);\r
158\r
159 numeric varid = ISCSI_CONFIG_IFR_NVDATA.ConnectRetryCount,\r
160 prompt = STRING_TOKEN(STR_ISCSI_CONFIG_RETRY),\r
161 help = STRING_TOKEN(STR_ISCSI_CONFIG_RETRY_HELP),\r
162 flags = 0,\r
163 minimum = CONNECT_MIN_RETRY,\r
164 maximum = CONNECT_MAX_RETRY,\r
165 step = 0,\r
166 endnumeric; \r
167 \r
168 numeric varid = ISCSI_CONFIG_IFR_NVDATA.ConnectTimeout,\r
169 prompt = STRING_TOKEN(STR_ISCSI_CONFIG_TIMEOUT),\r
170 help = STRING_TOKEN(STR_ISCSI_CONFIG_TIMEOUT_HELP),\r
171 flags = 0,\r
172 minimum = CONNECT_MIN_TIMEOUT,\r
173 maximum = CONNECT_MAX_TIMEOUT,\r
174 step = 0,\r
175 default = CONNECT_DEFAULT_TIMEOUT,\r
176 endnumeric;\r
177\r
178 subtitle text = STRING_TOKEN(STR_NULL);\r
179\r
180 string varid = ISCSI_CONFIG_IFR_NVDATA.IsId, \r
181 prompt = STRING_TOKEN(STR_ISCSI_CONFIG_ISID),\r
182 help = STRING_TOKEN(STR_ISCSI_CONFIG_ISID_HELP),\r
183 flags = INTERACTIVE,\r
184 key = KEY_CONFIG_ISID,\r
185 minsize = ISID_CONFIGURABLE_MIN_LEN,\r
186 maxsize = ISID_CONFIGURABLE_MAX_LEN,\r
187 endstring;\r
188\r
189 subtitle text = STRING_TOKEN(STR_NULL);\r
190\r
191 suppressif ideqval ISCSI_CONFIG_IFR_NVDATA.IpMode == IP_MODE_AUTOCONFIG;\r
192 checkbox varid = ISCSI_CONFIG_IFR_NVDATA.InitiatorInfoFromDhcp,\r
193 prompt = STRING_TOKEN(STR_ISCSI_ENABLE_DHCP),\r
194 help = STRING_TOKEN(STR_ISCSI_ENABLE_DHCP),\r
195 flags = INTERACTIVE,\r
196 key = KEY_DHCP_ENABLE,\r
197 endcheckbox;\r
198 endif;\r
199\r
200 suppressif ideqval ISCSI_CONFIG_IFR_NVDATA.InitiatorInfoFromDhcp == 0x01 OR\r
201 ideqval ISCSI_CONFIG_IFR_NVDATA.IpMode == IP_MODE_IP6 OR \r
202 ideqval ISCSI_CONFIG_IFR_NVDATA.IpMode == IP_MODE_AUTOCONFIG;\r
203 string varid = ISCSI_CONFIG_IFR_NVDATA.LocalIp,\r
204 prompt = STRING_TOKEN(STR_ISCSI_LOCAL_IP_ADDRESS),\r
205 help = STRING_TOKEN(STR_ISCSI_IP_ADDRESS_HELP),\r
206 flags = INTERACTIVE,\r
207 key = KEY_LOCAL_IP,\r
208 minsize = IP4_MIN_SIZE,\r
209 maxsize = IP4_MAX_SIZE,\r
210 endstring;\r
211\r
212 string varid = ISCSI_CONFIG_IFR_NVDATA.SubnetMask,\r
213 prompt = STRING_TOKEN(STR_ISCSI_LOCAL_MASK),\r
214 help = STRING_TOKEN(STR_ISCSI_IP_ADDRESS_HELP),\r
215 flags = INTERACTIVE,\r
216 key = KEY_SUBNET_MASK,\r
217 minsize = IP4_MIN_SIZE,\r
218 maxsize = IP4_MAX_SIZE,\r
219 endstring;\r
220\r
221 string varid = ISCSI_CONFIG_IFR_NVDATA.Gateway,\r
222 prompt = STRING_TOKEN(STR_ISCSI_LOCAL_GATEWAY),\r
223 help = STRING_TOKEN(STR_ISCSI_IP_ADDRESS_HELP),\r
224 flags = INTERACTIVE,\r
225 key = KEY_GATE_WAY,\r
226 minsize = IP4_MIN_SIZE,\r
227 maxsize = IP4_MAX_SIZE,\r
228 endstring;\r
229 \r
230 endif;\r
231\r
232 suppressif ideqval ISCSI_CONFIG_IFR_NVDATA.IpMode == IP_MODE_AUTOCONFIG;\r
233 subtitle text = STRING_TOKEN(STR_NULL);\r
234 endif; \r
235\r
236 suppressif ideqval ISCSI_CONFIG_IFR_NVDATA.IpMode == IP_MODE_AUTOCONFIG OR\r
237 ideqval ISCSI_CONFIG_IFR_NVDATA.InitiatorInfoFromDhcp == 0x00;\r
238 checkbox varid = ISCSI_CONFIG_IFR_NVDATA.TargetInfoFromDhcp,\r
239 prompt = STRING_TOKEN(STR_ISCSI_ENABLE_DHCP_ON_TARGET),\r
240 help = STRING_TOKEN(STR_ISCSI_ENABLE_DHCP_ON_TARGET),\r
241 flags = 0,\r
242 endcheckbox;\r
243 endif;\r
244\r
245 suppressif ideqval ISCSI_CONFIG_IFR_NVDATA.IpMode == IP_MODE_AUTOCONFIG OR\r
246 ideqval ISCSI_CONFIG_IFR_NVDATA.TargetInfoFromDhcp == 0x01;\r
247\r
248 string varid = ISCSI_CONFIG_IFR_NVDATA.TargetName,\r
249 prompt = STRING_TOKEN(STR_ISCSI_TARGET_NAME),\r
250 help = STRING_TOKEN(STR_ISCSI_TARGET_NAME_HELP),\r
251 flags = INTERACTIVE,\r
252 key = KEY_TARGET_NAME,\r
253 minsize = ISCSI_NAME_IFR_MIN_SIZE,\r
254 maxsize = ISCSI_NAME_IFR_MAX_SIZE,\r
255 endstring;\r
256\r
257 string varid = ISCSI_CONFIG_IFR_NVDATA.TargetIp,\r
258 prompt = STRING_TOKEN(STR_ISCSI_TARGET_IP_ADDRESS),\r
259 help = STRING_TOKEN(STR_ISCSI_IP_ADDRESS_HELP),\r
260 flags = INTERACTIVE,\r
261 key = KEY_TARGET_IP,\r
262 minsize = IP_MIN_SIZE,\r
263 maxsize = IP_MAX_SIZE,\r
264 endstring;\r
265\r
266 numeric varid = ISCSI_CONFIG_IFR_NVDATA.TargetPort,\r
267 prompt = STRING_TOKEN(STR_ISCSI_TARGET_PORT),\r
268 help = STRING_TOKEN(STR_ISCSI_TARGET_PORT),\r
269 flags = 0,\r
270 minimum = TARGET_PORT_MIN_NUM,\r
271 maximum = TARGET_PORT_MAX_NUM,\r
272 step = 0,\r
273 endnumeric;\r
274\r
275 string varid = ISCSI_CONFIG_IFR_NVDATA.BootLun,\r
276 prompt = STRING_TOKEN(STR_ISCSI_BOOT_LUN),\r
277 help = STRING_TOKEN(STR_ISCSI_BOOT_LUN_HELP),\r
278 flags = INTERACTIVE,\r
279 key = KEY_BOOT_LUN,\r
280 minsize = LUN_MIN_SIZE,\r
281 maxsize = LUN_MAX_SIZE,\r
282 endstring;\r
283 \r
284 endif;\r
285\r
286 suppressif ideqval ISCSI_CONFIG_IFR_NVDATA.IpMode == IP_MODE_AUTOCONFIG;\r
287 subtitle text = STRING_TOKEN(STR_NULL);\r
288 endif; \r
289\r
290 oneof varid = ISCSI_CONFIG_IFR_NVDATA.AuthenticationType,\r
291 questionid = KEY_AUTH_TYPE, \r
292 prompt = STRING_TOKEN(STR_AUTHEN_TYPE_PROMPT),\r
293 help = STRING_TOKEN(STR_AUTHEN_TYPE_HELP),\r
294 option text = STRING_TOKEN(STR_AUTHEN_TYPE_CHAP), value = ISCSI_AUTH_TYPE_CHAP, flags = 0;\r
295 option text = STRING_TOKEN(STR_AUTHEN_TYPE_NONE), value = ISCSI_AUTH_TYPE_NONE, flags = DEFAULT;\r
296 endoneof;\r
297\r
298 suppressif NOT ideqval ISCSI_CONFIG_IFR_NVDATA.AuthenticationType == ISCSI_AUTH_TYPE_CHAP; \r
299 oneof varid = ISCSI_CONFIG_IFR_NVDATA.CHAPType,\r
300 prompt = STRING_TOKEN(STR_CHAP_TYPE_PROMPT),\r
301 help = STRING_TOKEN(STR_CHAP_TYPE_HELP),\r
302 option text = STRING_TOKEN(STR_CHAP_TYPE_UNI), value = ISCSI_CHAP_UNI, flags = 0;\r
303 option text = STRING_TOKEN(STR_CHAP_TYPE_MUTUAL), value = ISCSI_CHAP_MUTUAL, flags = DEFAULT;\r
304 endoneof;\r
305 endif;\r
306\r
307 suppressif NOT ideqval ISCSI_CONFIG_IFR_NVDATA.AuthenticationType == ISCSI_AUTH_TYPE_CHAP;\r
308 string varid = ISCSI_CONFIG_IFR_NVDATA.CHAPName,\r
309 prompt = STRING_TOKEN(STR_ISCSI_CHAP_NAME),\r
310 help = STRING_TOKEN(STR_ISCSI_CHAP_NAME),\r
311 flags = INTERACTIVE,\r
312 key = KEY_CHAP_NAME,\r
313 minsize = 0,\r
314 maxsize = ISCSI_CHAP_NAME_MAX_LEN,\r
315 endstring;\r
316\r
317 string varid = ISCSI_CONFIG_IFR_NVDATA.CHAPSecret,\r
318 prompt = STRING_TOKEN(STR_ISCSI_CHAP_SECRET),\r
319 help = STRING_TOKEN(STR_ISCSI_CHAP_SECRET_HELP),\r
320 flags = INTERACTIVE,\r
321 key = KEY_CHAP_SECRET,\r
322 minsize = ISCSI_CHAP_SECRET_MIN_LEN,\r
323 maxsize = ISCSI_CHAP_SECRET_MAX_LEN,\r
324 endstring;\r
325\r
326 endif;\r
327\r
328 suppressif NOT ideqval ISCSI_CONFIG_IFR_NVDATA.AuthenticationType == ISCSI_AUTH_TYPE_CHAP OR\r
329 NOT ideqval ISCSI_CONFIG_IFR_NVDATA.CHAPType == ISCSI_CHAP_MUTUAL;\r
330\r
331 string varid = ISCSI_CONFIG_IFR_NVDATA.ReverseCHAPName,\r
332 prompt = STRING_TOKEN(STR_ISCSI_REVERSE_CHAP_NAME),\r
333 help = STRING_TOKEN(STR_ISCSI_REVERSE_CHAP_NAME),\r
334 flags = INTERACTIVE,\r
335 key = KEY_REVERSE_CHAP_NAME,\r
336 minsize = 0,\r
337 maxsize = ISCSI_CHAP_NAME_MAX_LEN,\r
338 endstring;\r
339\r
340 string varid = ISCSI_CONFIG_IFR_NVDATA.ReverseCHAPSecret,\r
341 prompt = STRING_TOKEN(STR_ISCSI_REVERSE_CHAP_SECRET),\r
342 help = STRING_TOKEN(STR_ISCSI_CHAP_SECRET_HELP),\r
343 flags = INTERACTIVE,\r
344 key = KEY_REVERSE_CHAP_SECRET,\r
345 minsize = ISCSI_CHAP_SECRET_MIN_LEN,\r
346 maxsize = ISCSI_CHAP_SECRET_MAX_LEN,\r
347 endstring;\r
348\r
349 endif;\r
350\r
4c5a5e0c 351 subtitle text = STRING_TOKEN(STR_NULL);\r
352\r
639a76d1
ED
353 text\r
354 help = STRING_TOKEN (STR_SAVE_CHANGES_HELP),\r
355 text = STRING_TOKEN (STR_SAVE_CHANGES),\r
356 text = STRING_TOKEN (STR_SAVE_CHANGES),\r
357 flags = INTERACTIVE,\r
358 key = KEY_SAVE_ATTEMPT_CONFIG;\r
359 \r
4c5a5e0c 360 goto FORMID_MAIN_FORM,\r
361 prompt = STRING_TOKEN (STR_RETURN_MAIN_FORM),\r
362 help = STRING_TOKEN (STR_RETURN_MAIN_FORM),\r
363 flags = 0;\r
364\r
365 endform;\r
366\r
367endformset;\r
368\r