[efi] Disambiguate errors returned by ConnectController
[ipxe.git] / contrib / rom-o-matic / flag-table.php
1 <?php // -*- Mode: PHP; -*-
2
3 /**
4 * Copyright (C) 2009 Marty Connor <mdc@etherboot.org>.
5 * Copyright (C) 2009 Entity Cyber, Inc.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of the
10 * License, or any later version.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 */
21
22 $ofmts = array
23 ( "Floppy bootable image (.dsk)" => "dsk",
24 "SYSLINUX-based bootable floppy image (.sdsk)" => "sdsk",
25 "ISO bootable image (.iso)" => "iso",
26 "ISO bootable image with legacy floppy emulation (.liso)" => "liso",
27 "Linux kernel (SYSLINUX/GRUB/LILO) loadable image (.lkrn)" => "lkrn",
28 "USB Keychain disk image (.usb)" => "usb",
29 "ROM binary (flashable) image (.rom)" => "rom",
30 "ROM binary (flashable) for problem PMM BIOSES (.hrom)" => "hrom",
31 "PXE bootstrap loader image [Unload PXE stack] (.pxe)" => "pxe",
32 "PXE bootstrap loader keep [Keep PXE stack method 1] (.kpxe)" => "kpxe",
33 "PXE bootstrap loader keep [Keep PXE stack method 2] (.kkpxe)" => "kkpxe",
34 );
35
36 $flag_table = array (
37
38 // Begin General Options:
39
40 "HDR_MISC_OPTIONS"
41 => array (
42 "flag" => "HDR_MISC_OPTIONS",
43 "hide_from_user" => "yes", // Hide even the header
44 "type" => "header",
45 "label" => "Miscellaneous Options"
46 ),
47
48 "PRODUCT_NAME"
49 => array (
50 "flag" => "PRODUCT_NAME",
51 "hide_from_user" => "yes",
52 "type" => "string",
53 "value" => "",
54 "cfgsec" => "general"
55 ),
56
57 "PRODUCT_SHORT_NAME"
58 => array (
59 "flag" => "PRODUCT_SHORT_NAME",
60 "hide_from_user" => "yes",
61 "type" => "string",
62 "value" => "iPXE",
63 "cfgsec" => "general"
64 ),
65
66 // End General Options:
67
68 // Begin Console Options:
69
70 "HDR_CONSOLE_OPTIONS"
71 => array (
72 "flag" => "HDR_CONSOLE_OPTIONS",
73 "type" => "header",
74 "label" => "Console Options"
75 ),
76
77 "CONSOLE_PCBIOS"
78 => array (
79 "flag" => "CONSOLE_PCBIOS",
80 "type" => "on/off",
81 "value" => "on",
82 "cfgsec" => "console"
83 ),
84
85 "CONSOLE_SERIAL"
86 => array (
87 "flag" => "CONSOLE_SERIAL",
88 "type" => "on/off",
89 "value" => "off",
90 "cfgsec" => "console"
91 ),
92
93 "BANNER_TIMEOUT"
94 => array (
95 "flag" => "BANNER_TIMEOUT",
96 "type" => "integer",
97 "value" => "20",
98 "cfgsec" => "general"
99 ),
100
101 "KEYBOARD_MAP"
102 => array (
103 "flag" => "KEYBOARD_MAP",
104 "type" => "choice",
105 "options" => array("al","az","bg","by","cf","cz","de","dk","es","et","fi","fr",
106 "gr","hu","il","it","lt","mk","mt","nl","no","pl","pt","ro","ru","sg","sr",
107 "th","ua","uk","us","wo"),
108 "value" => "us",
109 "cfgsec" => "console"
110 ),
111
112 "LOG_LEVEL"
113 => array (
114 "flag" => "LOG_LEVEL",
115 "type" => "choice",
116 "options" => array("LOG_NONE","LOG_EMERG","LOG_ALERT","LOG_CRIT","LOG_ERR",
117 "LOG_WARNING","LOG_NOTICE","LOG_INFO","LOG_DEBUG","LOG_ALL"),
118 "value" => "LOG_NONE",
119 "cfgsec" => "console"
120 ),
121
122 // End Console Options
123
124 // Begin Network Protocol Options:
125
126 "HDR_NETWORK_PROTOCOL_OPTIONS"
127 => array (
128 "flag" => "HDR_NETWORK_PROTOCOL_OPTIONS",
129 "hide_from_user" => "yes", // Hide even the header
130 "type" => "header",
131 "label" => "Network Protocol Options"
132 ),
133
134 "NET_PROTO_IPV4"
135 => array (
136 "flag" => "NET_PROTO_IPV4",
137 "type" => "on/off",
138 "value" => "on",
139 "hide_from_user" => "yes",
140 "cfgsec" => "general"
141 ),
142
143 // End Network Protocol Options
144
145 // Begin Serial Port configuration
146
147 "HDR_SERIAL_PORT_OPTIONS"
148 => array (
149 "flag" => "HDR_SERIAL_PORT_OPTIONS",
150 "type" => "header",
151 "label" => "Serial Port Options"
152 ),
153
154 "COMCONSOLE"
155 => array (
156 "flag" => "COMCONSOLE",
157 "type" => "integer-hex", // e.g. 0x378
158 "value" => "0x3F8",
159 "cfgsec" => "serial"
160 ),
161
162 "COMPRESERVE"
163 => array (
164 "flag" => "COMPRESERVE",
165 "type" => "on/off",
166 "value" => "off",
167 "cfgsec" => "serial"
168 ),
169
170 "COMSPEED"
171 => array (
172 "flag" => "COMSPEED",
173 "type" => "integer",
174 "value" => "115200",
175 "cfgsec" => "serial"
176 ),
177
178 "COMDATA"
179 => array (
180 "flag" => "COMDATA",
181 "type" => "integer",
182 "value" => "8",
183 "cfgsec" => "serial"
184 ),
185
186 "COMPARITY"
187 => array (
188 "flag" => "COMPARITY",
189 "type" => "integer",
190 "value" => "0",
191 "cfgsec" => "serial"
192 ),
193
194 "COMSTOP"
195 => array (
196 "flag" => "COMSTOP",
197 "type" => "integer",
198 "value" => "1",
199 "cfgsec" => "serial"
200 ),
201
202 // End Serial Options
203
204 // Begin Download Protocols
205
206 "HDR_DOWNLOAD_PROTOCOLS"
207 => array (
208 "flag" => "HDR_DOWNLOAD_PROTOCOLS",
209 "type" => "header",
210 "label" => "Download Protocols"
211 ),
212
213 "DOWNLOAD_PROTO_TFTP"
214 => array (
215 "flag" => "DOWNLOAD_PROTO_TFTP",
216 "type" => "on/off",
217 "value" => "on",
218 "cfgsec" => "general"
219 ),
220
221 "DOWNLOAD_PROTO_HTTP"
222 => array (
223 "flag" => "DOWNLOAD_PROTO_HTTP",
224 "type" => "on/off",
225 "value" => "on",
226 "cfgsec" => "general"
227 ),
228
229 "DOWNLOAD_PROTO_HTTPS"
230 => array (
231 "flag" => "DOWNLOAD_PROTO_HTTPS",
232 "type" => "on/off",
233 "value" => "off",
234 "cfgsec" => "general"
235 ),
236
237 "DOWNLOAD_PROTO_FTP"
238 => array (
239 "flag" => "DOWNLOAD_PROTO_FTP",
240 "type" => "on/off",
241 "value" => "off",
242 "cfgsec" => "general"
243 ),
244
245 // End Download Protocols
246
247 // Begin SAN boot protocols
248
249 "HDR_SANBOOT_PROTOCOLS"
250 => array (
251 "flag" => "HDR_SANBOOT_PROTOCOLS",
252 "type" => "header",
253 "label" => "SAN Boot Protocols"
254 ),
255
256 "SANBOOT_PROTO_ISCSI"
257 => array (
258 "flag" => "SANBOOT_PROTO_ISCSI",
259 "type" => "on/off",
260 "value" => "on",
261 "cfgsec" => "general"
262 ),
263
264 "SANBOOT_PROTO_AOE"
265 => array (
266 "flag" => "SANBOOT_PROTO_AOE",
267 "type" => "on/off",
268 "value" => "on",
269 "cfgsec" => "general"
270 ),
271
272 // End SAN boot protocols
273
274 // Begin Name resolution modules
275
276 "HDR_NAME_RESOLUTION_MODULES"
277 => array (
278 "flag" => "HDR_NAME_RESOLUTION_MODULES",
279 "type" => "header",
280 "label" => "Name Resolution Modules"
281 ),
282
283 "DNS_RESOLVER"
284 => array (
285 "flag" => "DNS_RESOLVER",
286 "type" => "on/off",
287 "value" => "on",
288 "cfgsec" => "general"
289 ),
290
291 "NMB_RESOLVER"
292 => array (
293 "flag" => "NMB_RESOLVER",
294 "type" => "on/off",
295 "value" => "off",
296 "hide_from_user" => "yes",
297 "cfgsec" => "general"
298 ),
299
300 // End Name resolution modules
301
302 // Begin Image types
303
304 "HDR_IMAGE_TYPES"
305 => array (
306 "flag" => "HDR_IMAGE_TYPES",
307 "type" => "header",
308 "label" => "Image Types",
309 ),
310
311 "IMAGE_ELF"
312 => array (
313 "flag" => "IMAGE_ELF",
314 "type" => "on/off",
315 "value" => "on",
316 "cfgsec" => "general"
317 ),
318
319 "IMAGE_NBI"
320 => array (
321 "flag" => "IMAGE_NBI",
322 "type" => "on/off",
323 "value" => "on",
324 "cfgsec" => "general"
325 ),
326
327 "IMAGE_MULTIBOOT"
328 => array (
329 "flag" => "IMAGE_MULTIBOOT",
330 "type" => "on/off",
331 "value" => "on",
332 "cfgsec" => "general"
333 ),
334
335 "IMAGE_PXE"
336 => array (
337 "flag" => "IMAGE_PXE",
338 "type" => "on/off",
339 "value" => "on",
340 "cfgsec" => "general"
341 ),
342
343 "IMAGE_SCRIPT"
344 => array (
345 "flag" => "IMAGE_SCRIPT",
346 "type" => "on/off",
347 "value" => "on",
348 "cfgsec" => "general"
349 ),
350
351 "IMAGE_BZIMAGE"
352 => array (
353 "flag" => "IMAGE_BZIMAGE",
354 "type" => "on/off",
355 "value" => "on",
356 "cfgsec" => "general"
357 ),
358
359 "IMAGE_COMBOOT"
360 => array (
361 "flag" => "IMAGE_COMBOOT",
362 "type" => "on/off",
363 "value" => "on",
364 "cfgsec" => "general"
365 ),
366
367 // End Image types
368
369 // Begin Command-line commands to include
370
371 "HDR_COMMAND_LINE_OPTIONS"
372 => array (
373 "flag" => "HDR_COMMAND_LINE_OPTIONS",
374 "type" => "header",
375 "label" => "Command Line Options",
376 ),
377
378 "AUTOBOOT_CMD"
379 => array (
380 "flag" => "AUTOBOOT_CMD",
381 "type" => "on/off",
382 "value" => "on",
383 "cfgsec" => "general"
384 ),
385
386 "NVO_CMD"
387 => array (
388 "flag" => "NVO_CMD",
389 "type" => "on/off",
390 "value" => "on",
391 "cfgsec" => "general"
392 ),
393
394 "CONFIG_CMD"
395 => array (
396 "flag" => "CONFIG_CMD",
397 "type" => "on/off",
398 "value" => "on",
399 "cfgsec" => "general"
400 ),
401
402 "IFMGMT_CMD"
403 => array (
404 "flag" => "IFMGMT_CMD",
405 "type" => "on/off",
406 "value" => "on",
407 "cfgsec" => "general"
408 ),
409
410 "IWMGMT_CMD"
411 => array (
412 "flag" => "IWMGMT_CMD",
413 "type" => "on/off",
414 "value" => "on",
415 "cfgsec" => "general"
416 ),
417
418 "ROUTE_CMD"
419 => array (
420 "flag" => "ROUTE_CMD",
421 "type" => "on/off",
422 "value" => "on",
423 "cfgsec" => "general"
424 ),
425
426 "IMAGE_CMD"
427 => array (
428 "flag" => "IMAGE_CMD",
429 "type" => "on/off",
430 "value" => "on",
431 "cfgsec" => "general"
432 ),
433
434 "DHCP_CMD"
435 => array (
436 "flag" => "DHCP_CMD",
437 "type" => "on/off",
438 "value" => "on",
439 "cfgsec" => "general"
440 ),
441
442 "SANBOOT_CMD"
443 => array (
444 "flag" => "SANBOOT_CMD",
445 "type" => "on/off",
446 "value" => "on",
447 "cfgsec" => "general"
448 ),
449
450 "LOGIN_CMD"
451 => array (
452 "flag" => "LOGIN_CMD",
453 "type" => "on/off",
454 "value" => "on",
455 "cfgsec" => "general"
456 ),
457
458 "TIME_CMD"
459 => array (
460 "flag" => "TIME_CMD",
461 "type" => "on/off",
462 "value" => "off",
463 "cfgsec" => "general"
464 ),
465
466 "DIGEST_CMD"
467 => array (
468 "flag" => "DIGEST_CMD",
469 "type" => "on/off",
470 "value" => "off",
471 "cfgsec" => "general"
472 ),
473
474 // End Command-line commands to include
475
476 // Begin Wireless options
477
478 "HDR_WIRELESS_OPTIONS"
479 => array (
480 "flag" => "HDR_WIRELESS_OPTIONS",
481 "type" => "header",
482 "label" => "Wireless Interface Options",
483 ),
484
485 "CRYPTO_80211_WEP"
486 => array (
487 "flag" => "CRYPTO_80211_WEP",
488 "type" => "on/off",
489 "value" => "on",
490 "cfgsec" => "general"
491 ),
492
493 "CRYPTO_80211_WPA"
494 => array (
495 "flag" => "CRYPTO_80211_WPA",
496 "type" => "on/off",
497 "value" => "on",
498 "cfgsec" => "general"
499 ),
500
501 "CRYPTO_80211_WPA2"
502 => array (
503 "flag" => "CRYPTO_80211_WPA2",
504 "type" => "on/off",
505 "value" => "on",
506 "cfgsec" => "general"
507 ),
508
509 // End Wireless options
510
511 // Obscure options required to compile
512 "NETDEV_DISCARD_RATE"
513 => array (
514 "flag" => "NETDEV_DISCARD_RATE",
515 "type" => "integer",
516 "value" => "0",
517 "cfgsec" => "general",
518 "hide_from_user" => true
519 )
520
521 // End Obscure options
522 );
523
524 // For emacs:
525 // Local variables:
526 // c-basic-offset: 4
527 // c-indent-level: 4
528 // tab-width: 4
529 // End:
530
531 ?>