2 This file defines the encoding for the VFR (Visual Form Representation) language.
3 IFR is primarily consumed by the EFI presentation engine, and produced by EFI
4 internal application and drivers as well as all add-in card option-ROM drivers
6 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
7 (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
9 SPDX-License-Identifier: BSD-2-Clause-Patent
11 @par Revision Reference:
12 These definitions are from UEFI 2.6
16 #ifndef __UEFI_INTERNAL_FORMREPRESENTATION_H__
17 #define __UEFI_INTERNAL_FORMREPRESENTATION_H__
20 #define EFI_HII_PLATFORM_SETUP_FORMSET_GUID \
21 { 0x93039971, 0x8545, 0x4b04, { 0xb4, 0x5e, 0x32, 0xeb, 0x83, 0x26, 0x4, 0xe } }
24 // The following types are currently defined:
26 typedef UINT32 RELOFST
;
28 typedef VOID
* EFI_HII_HANDLE
;
29 typedef CHAR16
* EFI_STRING
;
30 typedef UINT16 EFI_IMAGE_ID
;
31 typedef UINT16 EFI_QUESTION_ID
;
32 typedef UINT16 EFI_STRING_ID
;
33 typedef UINT16 EFI_FORM_ID
;
34 typedef UINT16 EFI_VARSTORE_ID
;
35 typedef UINT16 EFI_DEFAULT_ID
;
36 typedef UINT32 EFI_HII_FONT_STYLE
;
47 EFI_GUID PackageListGuid
;
49 } EFI_HII_PACKAGE_LIST_HEADER
;
53 Each package starts with a header, as defined above, which
54 indicates the size and type of the package. When added to a
55 pointer pointing to the start of the header, Length points at
56 the next package. The package lists form a package list when
57 concatenated together and terminated with an
58 EFI_HII_PACKAGE_HEADER with a Type of EFI_HII_PACKAGE_END. The
59 type EFI_HII_PACKAGE_TYPE_GUID is used for vendor-defined HII
60 packages, whose contents are determined by the Guid. The range
61 of package types starting with EFI_HII_PACKAGE_TYPE_SYSTEM_BEGIN
62 through EFI_HII_PACKAGE_TYPE_SYSTEM_END are reserved for system
63 firmware implementers.
65 @param Length The size of the package in bytes.
67 @param Type The package type. See EFI_HII_PACKAGE_TYPE_x,
70 @param Data The package data, the format of which is
78 } EFI_HII_PACKAGE_HEADER
;
81 // EFI_HII_PACKAGE_TYPE_x.
83 #define EFI_HII_PACKAGE_TYPE_ALL 0x00
84 #define EFI_HII_PACKAGE_TYPE_GUID 0x01
85 #define EFI_HII_PACKAGE_FORM 0x02
86 #define EFI_HII_PACKAGE_KEYBOARD_LAYOUT 0x03
87 #define EFI_HII_PACKAGE_STRINGS 0x04
88 #define EFI_HII_PACKAGE_FONTS 0x05
89 #define EFI_HII_PACKAGE_IMAGES 0x06
90 #define EFI_HII_PACKAGE_SIMPLE_FONTS 0x07
91 #define EFI_HII_PACKAGE_DEVICE_PATH 0x08
92 #define EFI_HII_PACKAGE_END 0xDF
93 #define EFI_HII_PACKAGE_TYPE_SYSTEM_BEGIN 0xE0
94 #define EFI_HII_PACKAGE_TYPE_SYSTEM_END 0xFF
97 // Simplified Font Package
100 #define EFI_GLYPH_HEIGHT 19
101 #define EFI_GLYPH_WIDTH 8
103 // Contents of EFI_NARROW_GLYPH.Attributes
105 #define EFI_GLYPH_NON_SPACING 0x01
106 #define EFI_GLYPH_WIDE 0x02
109 CHAR16 UnicodeWeight
;
111 UINT8 GlyphCol1
[EFI_GLYPH_HEIGHT
];
115 CHAR16 UnicodeWeight
;
117 UINT8 GlyphCol1
[EFI_GLYPH_HEIGHT
];
118 UINT8 GlyphCol2
[EFI_GLYPH_HEIGHT
];
123 typedef struct _EFI_HII_SIMPLE_FONT_PACKAGE_HDR
{
124 EFI_HII_PACKAGE_HEADER Header
;
125 UINT16 NumberOfNarrowGlyphs
;
126 UINT16 NumberOfWideGlyphs
;
127 // EFI_NARROW_GLYPH NarrowGlyphs[];
128 // EFI_WIDE_GLYPH WideGlyphs[];
129 } EFI_HII_SIMPLE_FONT_PACKAGE_HDR
;
135 #define EFI_HII_FONT_STYLE_BOLD 0x00000001
136 #define EFI_HII_FONT_STYLE_ITALIC 0x00000002
137 #define EFI_HII_FONT_STYLE_EMBOSS 0x00010000
138 #define EFI_HII_FONT_STYLE_OUTLINE 0x00020000
139 #define EFI_HII_FONT_STYLE_SHADOW 0x00040000
140 #define EFI_HII_FONT_STYLE_UNDERLINE 0x00080000
141 #define EFI_HII_FONT_STYLE_DBL_UNDER 0x00100000
143 typedef struct _EFI_HII_GLYPH_INFO
{
149 } EFI_HII_GLYPH_INFO
;
151 typedef struct _EFI_HII_FONT_PACKAGE_HDR
{
152 EFI_HII_PACKAGE_HEADER Header
;
154 UINT32 GlyphBlockOffset
;
155 EFI_HII_GLYPH_INFO Cell
;
156 EFI_HII_FONT_STYLE FontStyle
;
157 CHAR16 FontFamily
[1];
158 } EFI_HII_FONT_PACKAGE_HDR
;
160 #define EFI_HII_GIBT_END 0x00
161 #define EFI_HII_GIBT_GLYPH 0x10
162 #define EFI_HII_GIBT_GLYPHS 0x11
163 #define EFI_HII_GIBT_GLYPH_DEFAULT 0x12
164 #define EFI_HII_GIBT_GLYPHS_DEFAULT 0x13
165 #define EFI_HII_GIBT_GLYPH_VARIABILITY 0x14
166 #define EFI_HII_GIBT_DUPLICATE 0x20
167 #define EFI_HII_GIBT_SKIP2 0x21
168 #define EFI_HII_GIBT_SKIP1 0x22
169 #define EFI_HII_GIBT_DEFAULTS 0x23
170 #define EFI_HII_GIBT_EXT1 0x30
171 #define EFI_HII_GIBT_EXT2 0x31
172 #define EFI_HII_GIBT_EXT4 0x32
174 typedef struct _EFI_HII_GLYPH_BLOCK
{
176 } EFI_HII_GLYPH_BLOCK
;
178 typedef struct _EFI_HII_GIBT_DEFAULTS_BLOCK
{
179 EFI_HII_GLYPH_BLOCK Header
;
180 EFI_HII_GLYPH_INFO Cell
;
181 } EFI_HII_GIBT_DEFAULTS_BLOCK
;
183 typedef struct _EFI_HII_GIBT_DUPLICATE_BLOCK
{
184 EFI_HII_GLYPH_BLOCK Header
;
186 } EFI_HII_GIBT_DUPLICATE_BLOCK
;
188 typedef struct _EFI_GLYPH_GIBT_END_BLOCK
{
189 EFI_HII_GLYPH_BLOCK Header
;
190 } EFI_GLYPH_GIBT_END_BLOCK
;
192 typedef struct _EFI_HII_GIBT_EXT1_BLOCK
{
193 EFI_HII_GLYPH_BLOCK Header
;
196 } EFI_HII_GIBT_EXT1_BLOCK
;
198 typedef struct _EFI_HII_GIBT_EXT2_BLOCK
{
199 EFI_HII_GLYPH_BLOCK Header
;
202 } EFI_HII_GIBT_EXT2_BLOCK
;
204 typedef struct _EFI_HII_GIBT_EXT4_BLOCK
{
205 EFI_HII_GLYPH_BLOCK Header
;
208 } EFI_HII_GIBT_EXT4_BLOCK
;
210 typedef struct _EFI_HII_GIBT_GLYPH_BLOCK
{
211 EFI_HII_GLYPH_BLOCK Header
;
212 EFI_HII_GLYPH_INFO Cell
;
213 UINT8 BitmapData
[1]; // the number of bytes per bitmap can be calculated by ((Cell.Width+7)/8)*Cell.Height
214 } EFI_HII_GIBT_GLYPH_BLOCK
;
216 typedef struct _EFI_HII_GIBT_GLYPHS_BLOCK
{
217 EFI_HII_GLYPH_BLOCK Header
;
218 EFI_HII_GLYPH_INFO Cell
;
220 UINT8 BitmapData
[1]; // the number of bytes per bitmap can be calculated by ((Cell.Width+7)/8)*Cell.Height
221 } EFI_HII_GIBT_GLYPHS_BLOCK
;
223 typedef struct _EFI_HII_GIBT_GLYPH_DEFAULT_BLOCK
{
224 EFI_HII_GLYPH_BLOCK Header
;
225 UINT8 BitmapData
[1]; // the number of bytes per bitmap can be calculated by ((Global.Cell.Width+7)/8)*Global.Cell.Height
226 } EFI_HII_GIBT_GLYPH_DEFAULT_BLOCK
;
228 typedef struct _EFI_HII_GIBT_GLYPHS_DEFAULT_BLOCK
{
229 EFI_HII_GLYPH_BLOCK Header
;
231 UINT8 BitmapData
[1]; // the number of bytes per bitmap can be calculated by ((Global.Cell.Width+7)/8)*Global.Cell.Height
232 } EFI_HII_GIBT_GLYPHS_DEFAULT_BLOCK
;
234 typedef struct _EFI_HII_GIBT_VARIABILITY_BLOCK
{
235 EFI_HII_GLYPH_BLOCK Header
;
236 EFI_HII_GLYPH_INFO Cell
;
237 UINT8 GlyphPackInBits
;
238 UINT8 BitmapData
[1];
239 } EFI_HII_GIBT_VARIABILITY_BLOCK
;
241 typedef struct _EFI_HII_GIBT_SKIP1_BLOCK
{
242 EFI_HII_GLYPH_BLOCK Header
;
244 } EFI_HII_GIBT_SKIP1_BLOCK
;
246 typedef struct _EFI_HII_GIBT_SKIP2_BLOCK
{
247 EFI_HII_GLYPH_BLOCK Header
;
249 } EFI_HII_GIBT_SKIP2_BLOCK
;
252 // Device Path Package
254 typedef struct _EFI_HII_DEVICE_PATH_PACKAGE
{
255 EFI_HII_PACKAGE_HEADER Header
;
256 // EFI_DEVICE_PATH_PROTOCOL DevicePath[];
257 } EFI_HII_DEVICE_PATH_PACKAGE
;
262 typedef struct _EFI_HII_GUID_PACKAGE_HDR
{
263 EFI_HII_PACKAGE_HEADER Header
;
265 // Data per GUID definition may follow
266 } EFI_HII_GUID_PACKAGE_HDR
;
272 #define UEFI_CONFIG_LANG "x-UEFI"
273 #define UEFI_CONFIG_LANG2 "x-i-UEFI"
275 typedef struct _EFI_HII_STRING_PACKAGE_HDR
{
276 EFI_HII_PACKAGE_HEADER Header
;
278 UINT32 StringInfoOffset
;
279 CHAR16 LanguageWindow
[16];
280 EFI_STRING_ID LanguageName
;
282 } EFI_HII_STRING_PACKAGE_HDR
;
286 } EFI_HII_STRING_BLOCK
;
288 #define EFI_HII_SIBT_END 0x00
289 #define EFI_HII_SIBT_STRING_SCSU 0x10
290 #define EFI_HII_SIBT_STRING_SCSU_FONT 0x11
291 #define EFI_HII_SIBT_STRINGS_SCSU 0x12
292 #define EFI_HII_SIBT_STRINGS_SCSU_FONT 0x13
293 #define EFI_HII_SIBT_STRING_UCS2 0x14
294 #define EFI_HII_SIBT_STRING_UCS2_FONT 0x15
295 #define EFI_HII_SIBT_STRINGS_UCS2 0x16
296 #define EFI_HII_SIBT_STRINGS_UCS2_FONT 0x17
297 #define EFI_HII_SIBT_DUPLICATE 0x20
298 #define EFI_HII_SIBT_SKIP2 0x21
299 #define EFI_HII_SIBT_SKIP1 0x22
300 #define EFI_HII_SIBT_EXT1 0x30
301 #define EFI_HII_SIBT_EXT2 0x31
302 #define EFI_HII_SIBT_EXT4 0x32
303 #define EFI_HII_SIBT_FONT 0x40
305 typedef struct _EFI_HII_SIBT_DUPLICATE_BLOCK
{
306 EFI_HII_STRING_BLOCK Header
;
307 EFI_STRING_ID StringId
;
308 } EFI_HII_SIBT_DUPLICATE_BLOCK
;
310 typedef struct _EFI_HII_SIBT_END_BLOCK
{
311 EFI_HII_STRING_BLOCK Header
;
312 } EFI_HII_SIBT_END_BLOCK
;
314 typedef struct _EFI_HII_SIBT_EXT1_BLOCK
{
315 EFI_HII_STRING_BLOCK Header
;
318 } EFI_HII_SIBT_EXT1_BLOCK
;
320 typedef struct _EFI_HII_SIBT_EXT2_BLOCK
{
321 EFI_HII_STRING_BLOCK Header
;
324 } EFI_HII_SIBT_EXT2_BLOCK
;
326 typedef struct _EFI_HII_SIBT_EXT4_BLOCK
{
327 EFI_HII_STRING_BLOCK Header
;
330 } EFI_HII_SIBT_EXT4_BLOCK
;
332 typedef struct _EFI_HII_SIBT_FONT_BLOCK
{
333 EFI_HII_SIBT_EXT2_BLOCK Header
;
336 EFI_HII_FONT_STYLE FontStyle
;
338 } EFI_HII_SIBT_FONT_BLOCK
;
340 typedef struct _EFI_HII_SIBT_SKIP1_BLOCK
{
341 EFI_HII_STRING_BLOCK Header
;
343 } EFI_HII_SIBT_SKIP1_BLOCK
;
345 typedef struct _EFI_HII_SIBT_SKIP2_BLOCK
{
346 EFI_HII_STRING_BLOCK Header
;
348 } EFI_HII_SIBT_SKIP2_BLOCK
;
350 typedef struct _EFI_HII_SIBT_STRING_SCSU_BLOCK
{
351 EFI_HII_STRING_BLOCK Header
;
353 } EFI_HII_SIBT_STRING_SCSU_BLOCK
;
355 typedef struct _EFI_HII_SIBT_STRING_SCSU_FONT_BLOCK
{
356 EFI_HII_STRING_BLOCK Header
;
357 UINT8 FontIdentifier
;
359 } EFI_HII_SIBT_STRING_SCSU_FONT_BLOCK
;
361 typedef struct _EFI_HII_SIBT_STRINGS_SCSU_BLOCK
{
362 EFI_HII_STRING_BLOCK Header
;
365 } EFI_HII_SIBT_STRINGS_SCSU_BLOCK
;
367 typedef struct _EFI_HII_SIBT_STRINGS_SCSU_FONT_BLOCK
{
368 EFI_HII_STRING_BLOCK Header
;
369 UINT8 FontIdentifier
;
372 } EFI_HII_SIBT_STRINGS_SCSU_FONT_BLOCK
;
374 typedef struct _EFI_HII_SIBT_STRING_UCS2_BLOCK
{
375 EFI_HII_STRING_BLOCK Header
;
376 CHAR16 StringText
[1];
377 } EFI_HII_SIBT_STRING_UCS2_BLOCK
;
379 typedef struct _EFI_HII_SIBT_STRING_UCS2_FONT_BLOCK
{
380 EFI_HII_STRING_BLOCK Header
;
381 UINT8 FontIdentifier
;
382 CHAR16 StringText
[1];
383 } EFI_HII_SIBT_STRING_UCS2_FONT_BLOCK
;
385 typedef struct _EFI_HII_SIBT_STRINGS_UCS2_BLOCK
{
386 EFI_HII_STRING_BLOCK Header
;
388 CHAR16 StringText
[1];
389 } EFI_HII_SIBT_STRINGS_UCS2_BLOCK
;
391 typedef struct _EFI_HII_SIBT_STRINGS_UCS2_FONT_BLOCK
{
392 EFI_HII_STRING_BLOCK Header
;
393 UINT8 FontIdentifier
;
395 CHAR16 StringText
[1];
396 } EFI_HII_SIBT_STRINGS_UCS2_FONT_BLOCK
;
402 typedef struct _EFI_HII_IMAGE_PACKAGE_HDR
{
403 EFI_HII_PACKAGE_HEADER Header
;
404 UINT32 ImageInfoOffset
;
405 UINT32 PaletteInfoOffset
;
406 } EFI_HII_IMAGE_PACKAGE_HDR
;
408 typedef struct _EFI_HII_IMAGE_BLOCK
{
410 } EFI_HII_IMAGE_BLOCK
;
412 #define EFI_HII_IIBT_END 0x00
413 #define EFI_HII_IIBT_IMAGE_1BIT 0x10
414 #define EFI_HII_IIBT_IMAGE_1BIT_TRANS 0x11
415 #define EFI_HII_IIBT_IMAGE_4BIT 0x12
416 #define EFI_HII_IIBT_IMAGE_4BIT_TRANS 0x13
417 #define EFI_HII_IIBT_IMAGE_8BIT 0x14
418 #define EFI_HII_IIBT_IMAGE_8BIT_TRANS 0x15
419 #define EFI_HII_IIBT_IMAGE_24BIT 0x16
420 #define EFI_HII_IIBT_IMAGE_24BIT_TRANS 0x17
421 #define EFI_HII_IIBT_IMAGE_JPEG 0x18
422 #define EFI_HII_IIBT_IMAGE_PNG 0x19
423 #define EFI_HII_IIBT_DUPLICATE 0x20
424 #define EFI_HII_IIBT_SKIP2 0x21
425 #define EFI_HII_IIBT_SKIP1 0x22
426 #define EFI_HII_IIBT_EXT1 0x30
427 #define EFI_HII_IIBT_EXT2 0x31
428 #define EFI_HII_IIBT_EXT4 0x32
430 typedef struct _EFI_HII_IIBT_END_BLOCK
{
431 EFI_HII_IMAGE_BLOCK Header
;
432 } EFI_HII_IIBT_END_BLOCK
;
434 typedef struct _EFI_HII_IIBT_EXT1_BLOCK
{
435 EFI_HII_IMAGE_BLOCK Header
;
438 } EFI_HII_IIBT_EXT1_BLOCK
;
440 typedef struct _EFI_HII_IIBT_EXT2_BLOCK
{
441 EFI_HII_IMAGE_BLOCK Header
;
444 } EFI_HII_IIBT_EXT2_BLOCK
;
446 typedef struct _EFI_HII_IIBT_EXT4_BLOCK
{
447 EFI_HII_IMAGE_BLOCK Header
;
450 } EFI_HII_IIBT_EXT4_BLOCK
;
452 typedef struct _EFI_HII_IIBT_IMAGE_1BIT_BASE
{
456 } EFI_HII_IIBT_IMAGE_1BIT_BASE
;
458 typedef struct _EFI_HII_IIBT_IMAGE_1BIT_BLOCK
{
459 EFI_HII_IMAGE_BLOCK Header
;
461 EFI_HII_IIBT_IMAGE_1BIT_BASE Bitmap
;
462 } EFI_HII_IIBT_IMAGE_1BIT_BLOCK
;
464 typedef struct _EFI_HII_IIBT_IMAGE_1BIT_TRANS_BLOCK
{
465 EFI_HII_IMAGE_BLOCK Header
;
467 EFI_HII_IIBT_IMAGE_1BIT_BASE Bitmap
;
468 } EFI_HII_IIBT_IMAGE_1BIT_TRANS_BLOCK
;
470 typedef struct _EFI_HII_RGB_PIXEL
{
476 typedef struct _EFI_HII_IIBT_IMAGE_24BIT_BASE
{
479 EFI_HII_RGB_PIXEL Bitmap
[1];
480 } EFI_HII_IIBT_IMAGE_24BIT_BASE
;
482 typedef struct _EFI_HII_IIBT_IMAGE_24BIT_BLOCK
{
483 EFI_HII_IMAGE_BLOCK Header
;
484 EFI_HII_IIBT_IMAGE_24BIT_BASE Bitmap
;
485 } EFI_HII_IIBT_IMAGE_24BIT_BLOCK
;
487 typedef struct _EFI_HII_IIBT_IMAGE_24BIT_TRANS_BLOCK
{
488 EFI_HII_IMAGE_BLOCK Header
;
489 EFI_HII_IIBT_IMAGE_24BIT_BASE Bitmap
;
490 } EFI_HII_IIBT_IMAGE_24BIT_TRANS_BLOCK
;
492 typedef struct _EFI_HII_IIBT_IMAGE_4BIT_BASE
{
496 } EFI_HII_IIBT_IMAGE_4BIT_BASE
;
498 typedef struct _EFI_HII_IIBT_IMAGE_4BIT_BLOCK
{
499 EFI_HII_IMAGE_BLOCK Header
;
501 EFI_HII_IIBT_IMAGE_4BIT_BASE Bitmap
;
502 } EFI_HII_IIBT_IMAGE_4BIT_BLOCK
;
504 typedef struct _EFI_HII_IIBT_IMAGE_4BIT_TRANS_BLOCK
{
505 EFI_HII_IMAGE_BLOCK Header
;
507 EFI_HII_IIBT_IMAGE_4BIT_BASE Bitmap
;
508 } EFI_HII_IIBT_IMAGE_4BIT_TRANS_BLOCK
;
510 typedef struct _EFI_HII_IIBT_IMAGE_8BIT_BASE
{
514 } EFI_HII_IIBT_IMAGE_8BIT_BASE
;
516 typedef struct _EFI_HII_IIBT_IMAGE_8BIT_PALETTE_BLOCK
{
517 EFI_HII_IMAGE_BLOCK Header
;
519 EFI_HII_IIBT_IMAGE_8BIT_BASE Bitmap
;
520 } EFI_HII_IIBT_IMAGE_8BIT_BLOCK
;
522 typedef struct _EFI_HII_IIBT_IMAGE_8BIT_TRANS_BLOCK
{
523 EFI_HII_IMAGE_BLOCK Header
;
525 EFI_HII_IIBT_IMAGE_8BIT_BASE Bitmap
;
526 } EFI_HII_IIBT_IMAGE_8BIT_TRAN_BLOCK
;
528 typedef struct _EFI_HII_IIBT_DUPLICATE_BLOCK
{
529 EFI_HII_IMAGE_BLOCK Header
;
530 EFI_IMAGE_ID ImageId
;
531 } EFI_HII_IIBT_DUPLICATE_BLOCK
;
533 typedef struct _EFI_HII_IIBT_JPEG_BLOCK
{
534 EFI_HII_IMAGE_BLOCK Header
;
537 } EFI_HII_IIBT_JPEG_BLOCK
;
539 typedef struct _EFI_HII_IIBT_PNG_BLOCK
{
540 EFI_HII_IMAGE_BLOCK Header
;
543 } EFI_HII_IIBT_PNG_BLOCK
;
545 typedef struct _EFI_HII_IIBT_SKIP1_BLOCK
{
546 EFI_HII_IMAGE_BLOCK Header
;
548 } EFI_HII_IIBT_SKIP1_BLOCK
;
550 typedef struct _EFI_HII_IIBT_SKIP2_BLOCK
{
551 EFI_HII_IMAGE_BLOCK Header
;
553 } EFI_HII_IIBT_SKIP2_BLOCK
;
555 typedef struct _EFI_HII_IMAGE_PALETTE_INFO_HEADER
{
557 } EFI_HII_IMAGE_PALETTE_INFO_HEADER
;
559 typedef struct _EFI_HII_IMAGE_PALETTE_INFO
{
561 EFI_HII_RGB_PIXEL PaletteValue
[1];
562 } EFI_HII_IMAGE_PALETTE_INFO
;
568 typedef struct _EFI_HII_FORM_PACKAGE
{
569 EFI_HII_PACKAGE_HEADER Header
;
570 // EFI_IFR_OP_HEADER OpCodeHeader;
571 // More op-codes follow
572 } EFI_HII_FORM_PACKAGE
;
587 EFI_QUESTION_ID QuestionId
;
589 EFI_GUID FormSetGuid
;
590 EFI_STRING_ID DevicePath
;
601 EFI_STRING_ID string
;
603 } EFI_IFR_TYPE_VALUE
;
605 #define EFI_IFR_FORM_OP 0x01
606 #define EFI_IFR_SUBTITLE_OP 0x02
607 #define EFI_IFR_TEXT_OP 0x03
608 #define EFI_IFR_IMAGE_OP 0x04
609 #define EFI_IFR_ONE_OF_OP 0x05
610 #define EFI_IFR_CHECKBOX_OP 0x06
611 #define EFI_IFR_NUMERIC_OP 0x07
612 #define EFI_IFR_PASSWORD_OP 0x08
613 #define EFI_IFR_ONE_OF_OPTION_OP 0x09
614 #define EFI_IFR_SUPPRESS_IF_OP 0x0A
615 #define EFI_IFR_LOCKED_OP 0x0B
616 #define EFI_IFR_ACTION_OP 0x0C
617 #define EFI_IFR_RESET_BUTTON_OP 0x0D
618 #define EFI_IFR_FORM_SET_OP 0x0E
619 #define EFI_IFR_REF_OP 0x0F
620 #define EFI_IFR_NO_SUBMIT_IF_OP 0x10
621 #define EFI_IFR_INCONSISTENT_IF_OP 0x11
622 #define EFI_IFR_EQ_ID_VAL_OP 0x12
623 #define EFI_IFR_EQ_ID_ID_OP 0x13
624 #define EFI_IFR_EQ_ID_VAL_LIST_OP 0x14
625 #define EFI_IFR_AND_OP 0x15
626 #define EFI_IFR_OR_OP 0x16
627 #define EFI_IFR_NOT_OP 0x17
628 #define EFI_IFR_RULE_OP 0x18
629 #define EFI_IFR_GRAY_OUT_IF_OP 0x19
630 #define EFI_IFR_DATE_OP 0x1A
631 #define EFI_IFR_TIME_OP 0x1B
632 #define EFI_IFR_STRING_OP 0x1C
633 #define EFI_IFR_REFRESH_OP 0x1D
634 #define EFI_IFR_DISABLE_IF_OP 0x1E
635 #define EFI_IFR_TO_LOWER_OP 0x20
636 #define EFI_IFR_TO_UPPER_OP 0x21
637 #define EFI_IFR_MAP_OP 0x22
638 #define EFI_IFR_ORDERED_LIST_OP 0x23
639 #define EFI_IFR_VARSTORE_OP 0x24
640 #define EFI_IFR_VARSTORE_NAME_VALUE_OP 0x25
641 #define EFI_IFR_VARSTORE_EFI_OP 0x26
642 #define EFI_IFR_VARSTORE_DEVICE_OP 0x27
643 #define EFI_IFR_VERSION_OP 0x28
644 #define EFI_IFR_END_OP 0x29
645 #define EFI_IFR_MATCH_OP 0x2A
646 #define EFI_IFR_GET_OP 0x2B
647 #define EFI_IFR_SET_OP 0x2C
648 #define EFI_IFR_READ_OP 0x2D
649 #define EFI_IFR_WRITE_OP 0x2E
650 #define EFI_IFR_EQUAL_OP 0x2F
651 #define EFI_IFR_NOT_EQUAL_OP 0x30
652 #define EFI_IFR_GREATER_THAN_OP 0x31
653 #define EFI_IFR_GREATER_EQUAL_OP 0x32
654 #define EFI_IFR_LESS_THAN_OP 0x33
655 #define EFI_IFR_LESS_EQUAL_OP 0x34
656 #define EFI_IFR_BITWISE_AND_OP 0x35
657 #define EFI_IFR_BITWISE_OR_OP 0x36
658 #define EFI_IFR_BITWISE_NOT_OP 0x37
659 #define EFI_IFR_SHIFT_LEFT_OP 0x38
660 #define EFI_IFR_SHIFT_RIGHT_OP 0x39
661 #define EFI_IFR_ADD_OP 0x3A
662 #define EFI_IFR_SUBTRACT_OP 0x3B
663 #define EFI_IFR_MULTIPLY_OP 0x3C
664 #define EFI_IFR_DIVIDE_OP 0x3D
665 #define EFI_IFR_MODULO_OP 0x3E
666 #define EFI_IFR_RULE_REF_OP 0x3F
667 #define EFI_IFR_QUESTION_REF1_OP 0x40
668 #define EFI_IFR_QUESTION_REF2_OP 0x41
669 #define EFI_IFR_UINT8_OP 0x42
670 #define EFI_IFR_UINT16_OP 0x43
671 #define EFI_IFR_UINT32_OP 0x44
672 #define EFI_IFR_UINT64_OP 0x45
673 #define EFI_IFR_TRUE_OP 0x46
674 #define EFI_IFR_FALSE_OP 0x47
675 #define EFI_IFR_TO_UINT_OP 0x48
676 #define EFI_IFR_TO_STRING_OP 0x49
677 #define EFI_IFR_TO_BOOLEAN_OP 0x4A
678 #define EFI_IFR_MID_OP 0x4B
679 #define EFI_IFR_FIND_OP 0x4C
680 #define EFI_IFR_TOKEN_OP 0x4D
681 #define EFI_IFR_STRING_REF1_OP 0x4E
682 #define EFI_IFR_STRING_REF2_OP 0x4F
683 #define EFI_IFR_CONDITIONAL_OP 0x50
684 #define EFI_IFR_QUESTION_REF3_OP 0x51
685 #define EFI_IFR_ZERO_OP 0x52
686 #define EFI_IFR_ONE_OP 0x53
687 #define EFI_IFR_ONES_OP 0x54
688 #define EFI_IFR_UNDEFINED_OP 0x55
689 #define EFI_IFR_LENGTH_OP 0x56
690 #define EFI_IFR_DUP_OP 0x57
691 #define EFI_IFR_THIS_OP 0x58
692 #define EFI_IFR_SPAN_OP 0x59
693 #define EFI_IFR_VALUE_OP 0x5A
694 #define EFI_IFR_DEFAULT_OP 0x5B
695 #define EFI_IFR_DEFAULTSTORE_OP 0x5C
696 #define EFI_IFR_FORM_MAP_OP 0x5D
697 #define EFI_IFR_CATENATE_OP 0x5E
698 #define EFI_IFR_GUID_OP 0x5F
699 #define EFI_IFR_SECURITY_OP 0x60
700 #define EFI_IFR_MODAL_TAG_OP 0x61
701 #define EFI_IFR_REFRESH_ID_OP 0x62
702 #define EFI_IFR_WARNING_IF_OP 0x63
703 #define EFI_IFR_MATCH2_OP 0x64
706 typedef struct _EFI_IFR_OP_HEADER
{
712 typedef struct _EFI_IFR_STATEMENT_HEADER
{
713 EFI_STRING_ID Prompt
;
715 } EFI_IFR_STATEMENT_HEADER
;
717 typedef struct _EFI_IFR_QUESTION_HEADER
{
718 EFI_IFR_STATEMENT_HEADER Header
;
719 EFI_QUESTION_ID QuestionId
;
720 EFI_VARSTORE_ID VarStoreId
;
722 EFI_STRING_ID VarName
;
726 } EFI_IFR_QUESTION_HEADER
;
728 #define EFI_IFR_FLAG_READ_ONLY 0x01
729 #define EFI_IFR_FLAG_CALLBACK 0x04
730 #define EFI_IFR_FLAG_RESET_REQUIRED 0x10
731 #define EFI_IFR_FLAG_RECONNECT_REQUIRED 0x40
732 #define EFI_IFR_FLAG_OPTIONS_ONLY 0x80
734 typedef struct _EFI_IFR_DEFAULTSTORE
{
735 EFI_IFR_OP_HEADER Header
;
736 EFI_STRING_ID DefaultName
;
738 } EFI_IFR_DEFAULTSTORE
;
740 #define EFI_HII_DEFAULT_CLASS_STANDARD 0x0000
741 #define EFI_HII_DEFAULT_CLASS_MANUFACTURING 0x0001
742 #define EFI_HII_DEFAULT_CLASS_SAFE 0x0002
743 #define EFI_HII_DEFAULT_CLASS_PLATFORM_BEGIN 0x4000
744 #define EFI_HII_DEFAULT_CLASS_PLATFORM_END 0x7fff
745 #define EFI_HII_DEFAULT_CLASS_HARDWARE_BEGIN 0x8000
746 #define EFI_HII_DEFAULT_CLASS_HARDWARE_END 0xbfff
747 #define EFI_HII_DEFAULT_CLASS_FIRMWARE_BEGIN 0xc000
748 #define EFI_HII_DEFAULT_CLASS_FIRMWARE_END 0xffff
750 typedef struct _EFI_IFR_VARSTORE
{
751 EFI_IFR_OP_HEADER Header
;
753 EFI_VARSTORE_ID VarStoreId
;
758 typedef struct _EFI_IFR_VARSTORE_EFI
{
759 EFI_IFR_OP_HEADER Header
;
760 EFI_VARSTORE_ID VarStoreId
;
765 } EFI_IFR_VARSTORE_EFI
;
767 typedef struct _EFI_IFR_VARSTORE_NAME_VALUE
{
768 EFI_IFR_OP_HEADER Header
;
769 EFI_VARSTORE_ID VarStoreId
;
771 } EFI_IFR_VARSTORE_NAME_VALUE
;
773 typedef struct _EFI_IFR_FORM_SET
{
774 EFI_IFR_OP_HEADER Header
;
776 EFI_STRING_ID FormSetTitle
;
779 // EFI_GUID ClassGuid[];
782 typedef struct _EFI_IFR_END
{
783 EFI_IFR_OP_HEADER Header
;
786 typedef struct _EFI_IFR_FORM
{
787 EFI_IFR_OP_HEADER Header
;
789 EFI_STRING_ID FormTitle
;
792 typedef struct _EFI_IFR_IMAGE
{
793 EFI_IFR_OP_HEADER Header
;
797 typedef struct _EFI_IFR_MODAL_TAG
{
798 EFI_IFR_OP_HEADER Header
;
801 typedef struct _EFI_IFR_LOCKED
{
802 EFI_IFR_OP_HEADER Header
;
805 typedef struct _EFI_IFR_RULE
{
806 EFI_IFR_OP_HEADER Header
;
810 typedef struct _EFI_IFR_DEFAULT
{
811 EFI_IFR_OP_HEADER Header
;
814 EFI_IFR_TYPE_VALUE Value
;
817 typedef struct _EFI_IFR_DEFAULT_2
{
818 EFI_IFR_OP_HEADER Header
;
823 typedef struct _EFI_IFR_VALUE
{
824 EFI_IFR_OP_HEADER Header
;
827 typedef struct _EFI_IFR_SUBTITLE
{
828 EFI_IFR_OP_HEADER Header
;
829 EFI_IFR_STATEMENT_HEADER Statement
;
833 #define EFI_IFR_FLAGS_HORIZONTAL 0x01
835 typedef struct _EFI_IFR_CHECKBOX
{
836 EFI_IFR_OP_HEADER Header
;
837 EFI_IFR_QUESTION_HEADER Question
;
841 #define EFI_IFR_CHECKBOX_DEFAULT 0x01
842 #define EFI_IFR_CHECKBOX_DEFAULT_MFG 0x02
844 typedef struct _EFI_IFR_TEXT
{
845 EFI_IFR_OP_HEADER Header
;
846 EFI_IFR_STATEMENT_HEADER Statement
;
847 EFI_STRING_ID TextTwo
;
850 typedef struct _EFI_IFR_REF
{
851 EFI_IFR_OP_HEADER Header
;
852 EFI_IFR_QUESTION_HEADER Question
;
856 typedef struct _EFI_IFR_REF2
{
857 EFI_IFR_OP_HEADER Header
;
858 EFI_IFR_QUESTION_HEADER Question
;
860 EFI_QUESTION_ID QuestionId
;
863 typedef struct _EFI_IFR_REF3
{
864 EFI_IFR_OP_HEADER Header
;
865 EFI_IFR_QUESTION_HEADER Question
;
867 EFI_QUESTION_ID QuestionId
;
871 typedef struct _EFI_IFR_REF4
{
872 EFI_IFR_OP_HEADER Header
;
873 EFI_IFR_QUESTION_HEADER Question
;
875 EFI_QUESTION_ID QuestionId
;
877 EFI_STRING_ID DevicePath
;
880 typedef struct _EFI_IFR_REF5
{
881 EFI_IFR_OP_HEADER Header
;
882 EFI_IFR_QUESTION_HEADER Question
;
885 typedef struct _EFI_IFR_RESET_BUTTON
{
886 EFI_IFR_OP_HEADER Header
;
887 EFI_IFR_STATEMENT_HEADER Statement
;
888 EFI_DEFAULT_ID DefaultId
;
889 } EFI_IFR_RESET_BUTTON
;
891 typedef struct _EFI_IFR_ACTION
{
892 EFI_IFR_OP_HEADER Header
;
893 EFI_IFR_QUESTION_HEADER Question
;
894 EFI_STRING_ID QuestionConfig
;
897 typedef struct _EFI_IFR_ACTION_1
{
898 EFI_IFR_OP_HEADER Header
;
899 EFI_IFR_QUESTION_HEADER Question
;
902 typedef struct _EFI_IFR_DATE
{
903 EFI_IFR_OP_HEADER Header
;
904 EFI_IFR_QUESTION_HEADER Question
;
908 #define EFI_QF_DATE_YEAR_SUPPRESS 0x01
909 #define EFI_QF_DATE_MONTH_SUPPRESS 0x02
910 #define EFI_QF_DATE_DAY_SUPPRESS 0x04
912 #define EFI_QF_DATE_STORAGE 0x30
913 #define QF_DATE_STORAGE_NORMAL 0x00
914 #define QF_DATE_STORAGE_TIME 0x10
915 #define QF_DATE_STORAGE_WAKEUP 0x20
940 typedef struct _EFI_IFR_NUMERIC
{
941 EFI_IFR_OP_HEADER Header
;
942 EFI_IFR_QUESTION_HEADER Question
;
944 MINMAXSTEP_DATA data
;
947 #define EFI_IFR_NUMERIC_SIZE 0x03
948 #define EFI_IFR_NUMERIC_SIZE_1 0x00
949 #define EFI_IFR_NUMERIC_SIZE_2 0x01
950 #define EFI_IFR_NUMERIC_SIZE_4 0x02
951 #define EFI_IFR_NUMERIC_SIZE_8 0x03
953 #define EFI_IFR_DISPLAY 0x30
954 #define EFI_IFR_DISPLAY_INT_DEC 0x00
955 #define EFI_IFR_DISPLAY_UINT_DEC 0x10
956 #define EFI_IFR_DISPLAY_UINT_HEX 0x20
958 typedef struct _EFI_IFR_ONE_OF
{
959 EFI_IFR_OP_HEADER Header
;
960 EFI_IFR_QUESTION_HEADER Question
;
962 MINMAXSTEP_DATA data
;
965 typedef struct _EFI_IFR_STRING
{
966 EFI_IFR_OP_HEADER Header
;
967 EFI_IFR_QUESTION_HEADER Question
;
973 #define EFI_IFR_STRING_MULTI_LINE 0x01
975 typedef struct _EFI_IFR_PASSWORD
{
976 EFI_IFR_OP_HEADER Header
;
977 EFI_IFR_QUESTION_HEADER Question
;
982 typedef struct _EFI_IFR_ORDERED_LIST
{
983 EFI_IFR_OP_HEADER Header
;
984 EFI_IFR_QUESTION_HEADER Question
;
987 } EFI_IFR_ORDERED_LIST
;
989 #define EFI_IFR_UNIQUE_SET 0x01
990 #define EFI_IFR_NO_EMPTY_SET 0x02
992 typedef struct _EFI_IFR_TIME
{
993 EFI_IFR_OP_HEADER Header
;
994 EFI_IFR_QUESTION_HEADER Question
;
998 #define QF_TIME_HOUR_SUPPRESS 0x01
999 #define QF_TIME_MINUTE_SUPPRESS 0x02
1000 #define QF_TIME_SECOND_SUPPRESS 0x04
1002 #define QF_TIME_STORAGE 0x30
1003 #define QF_TIME_STORAGE_NORMAL 0x00
1004 #define QF_TIME_STORAGE_TIME 0x10
1005 #define QF_TIME_STORAGE_WAKEUP 0x20
1007 typedef struct _EFI_IFR_DISABLE_IF
{
1008 EFI_IFR_OP_HEADER Header
;
1009 } EFI_IFR_DISABLE_IF
;
1011 typedef struct _EFI_IFR_SUPPRESS_IF
{
1012 EFI_IFR_OP_HEADER Header
;
1013 } EFI_IFR_SUPPRESS_IF
;
1015 typedef struct _EFI_IFR_GRAY_OUT_IF
{
1016 EFI_IFR_OP_HEADER Header
;
1017 } EFI_IFR_GRAY_OUT_IF
;
1019 typedef struct _EFI_IFR_INCONSISTENT_IF
{
1020 EFI_IFR_OP_HEADER Header
;
1021 EFI_STRING_ID Error
;
1022 } EFI_IFR_INCONSISTENT_IF
;
1024 typedef struct _EFI_IFR_NO_SUBMIT_IF
{
1025 EFI_IFR_OP_HEADER Header
;
1026 EFI_STRING_ID Error
;
1027 } EFI_IFR_NO_SUBMIT_IF
;
1029 typedef struct _EFI_IFR_WARNING_IF
{
1030 EFI_IFR_OP_HEADER Header
;
1031 EFI_STRING_ID Warning
;
1033 } EFI_IFR_WARNING_IF
;
1035 typedef struct _EFI_IFR_REFRESH
{
1036 EFI_IFR_OP_HEADER Header
;
1037 UINT8 RefreshInterval
;
1040 typedef struct _EFI_IFR_REFRESH_ID
{
1041 EFI_IFR_OP_HEADER Header
;
1042 EFI_GUID RefreshEventGroupId
;
1043 } EFI_IFR_REFRESH_ID
;
1045 typedef struct _EFI_IFR_VARSTORE_DEVICE
{
1046 EFI_IFR_OP_HEADER Header
;
1047 EFI_STRING_ID DevicePath
;
1048 } EFI_IFR_VARSTORE_DEVICE
;
1050 typedef struct _EFI_IFR_ONE_OF_OPTION
{
1051 EFI_IFR_OP_HEADER Header
;
1052 EFI_STRING_ID Option
;
1055 EFI_IFR_TYPE_VALUE Value
;
1056 } EFI_IFR_ONE_OF_OPTION
;
1058 #define EFI_IFR_TYPE_NUM_SIZE_8 0x00
1059 #define EFI_IFR_TYPE_NUM_SIZE_16 0x01
1060 #define EFI_IFR_TYPE_NUM_SIZE_32 0x02
1061 #define EFI_IFR_TYPE_NUM_SIZE_64 0x03
1062 #define EFI_IFR_TYPE_BOOLEAN 0x04
1063 #define EFI_IFR_TYPE_TIME 0x05
1064 #define EFI_IFR_TYPE_DATE 0x06
1065 #define EFI_IFR_TYPE_STRING 0x07
1066 #define EFI_IFR_TYPE_OTHER 0x08
1067 #define EFI_IFR_TYPE_UNDEFINED 0x09
1068 #define EFI_IFR_TYPE_ACTION 0x0A
1069 #define EFI_IFR_TYPE_BUFFER 0x0B
1070 #define EFI_IFR_TYPE_REF 0x0C
1072 #define EFI_IFR_OPTION_DEFAULT 0x10
1073 #define EFI_IFR_OPTION_DEFAULT_MFG 0x20
1075 typedef struct _EFI_IFR_GUID
{
1076 EFI_IFR_OP_HEADER Header
;
1078 //Optional Data Follows
1081 typedef struct _EFI_IFR_DUP
{
1082 EFI_IFR_OP_HEADER Header
;
1085 typedef struct _EFI_IFR_EQ_ID_ID
{
1086 EFI_IFR_OP_HEADER Header
;
1087 EFI_QUESTION_ID QuestionId1
;
1088 EFI_QUESTION_ID QuestionId2
;
1091 typedef struct _EFI_IFR_EQ_ID_VAL
{
1092 EFI_IFR_OP_HEADER Header
;
1093 EFI_QUESTION_ID QuestionId
;
1095 } EFI_IFR_EQ_ID_VAL
;
1097 typedef struct _EFI_IFR_EQ_ID_VAL_LIST
{
1098 EFI_IFR_OP_HEADER Header
;
1099 EFI_QUESTION_ID QuestionId
;
1101 UINT16 ValueList
[1];
1102 } EFI_IFR_EQ_ID_VAL_LIST
;
1104 typedef struct _EFI_IFR_QUESTION_REF1
{
1105 EFI_IFR_OP_HEADER Header
;
1106 EFI_QUESTION_ID QuestionId
;
1107 } EFI_IFR_QUESTION_REF1
;
1109 typedef struct _EFI_IFR_UINT8
{
1110 EFI_IFR_OP_HEADER Header
;
1114 typedef struct _EFI_IFR_UINT16
{
1115 EFI_IFR_OP_HEADER Header
;
1119 typedef struct _EFI_IFR_QUESTION_REF2
{
1120 EFI_IFR_OP_HEADER Header
;
1121 } EFI_IFR_QUESTION_REF2
;
1123 typedef struct _EFI_IFR_UINT32
{
1124 EFI_IFR_OP_HEADER Header
;
1128 typedef struct _EFI_IFR_UINT64
{
1129 EFI_IFR_OP_HEADER Header
;
1133 typedef struct _EFI_IFR_QUESTION_REF3
{
1134 EFI_IFR_OP_HEADER Header
;
1135 } EFI_IFR_QUESTION_REF3
;
1137 typedef struct _EFI_IFR_QUESTION_REF3_2
{
1138 EFI_IFR_OP_HEADER Header
;
1139 EFI_STRING_ID DevicePath
;
1140 } EFI_IFR_QUESTION_REF3_2
;
1142 typedef struct _EFI_IFR_QUESTION_REF3_3
{
1143 EFI_IFR_OP_HEADER Header
;
1144 EFI_STRING_ID DevicePath
;
1146 } EFI_IFR_QUESTION_REF3_3
;
1148 typedef struct _EFI_IFR_RULE_REF
{
1149 EFI_IFR_OP_HEADER Header
;
1153 typedef struct _EFI_IFR_STRING_REF1
{
1154 EFI_IFR_OP_HEADER Header
;
1155 EFI_STRING_ID StringId
;
1156 } EFI_IFR_STRING_REF1
;
1158 typedef struct _EFI_IFR_STRING_REF2
{
1159 EFI_IFR_OP_HEADER Header
;
1160 } EFI_IFR_STRING_REF2
;
1162 typedef struct _EFI_IFR_THIS
{
1163 EFI_IFR_OP_HEADER Header
;
1166 typedef struct _EFI_IFR_TRUE
{
1167 EFI_IFR_OP_HEADER Header
;
1170 typedef struct _EFI_IFR_FALSE
{
1171 EFI_IFR_OP_HEADER Header
;
1174 typedef struct _EFI_IFR_ONE
{
1175 EFI_IFR_OP_HEADER Header
;
1178 typedef struct _EFI_IFR_ONES
{
1179 EFI_IFR_OP_HEADER Header
;
1182 typedef struct _EFI_IFR_ZERO
{
1183 EFI_IFR_OP_HEADER Header
;
1186 typedef struct _EFI_IFR_UNDEFINED
{
1187 EFI_IFR_OP_HEADER Header
;
1188 } EFI_IFR_UNDEFINED
;
1190 typedef struct _EFI_IFR_VERSION
{
1191 EFI_IFR_OP_HEADER Header
;
1194 typedef struct _EFI_IFR_LENGTH
{
1195 EFI_IFR_OP_HEADER Header
;
1198 typedef struct _EFI_IFR_NOT
{
1199 EFI_IFR_OP_HEADER Header
;
1202 typedef struct _EFI_IFR_BITWISE_NOT
{
1203 EFI_IFR_OP_HEADER Header
;
1204 } EFI_IFR_BITWISE_NOT
;
1206 typedef struct _EFI_IFR_TO_BOOLEAN
{
1207 EFI_IFR_OP_HEADER Header
;
1208 } EFI_IFR_TO_BOOLEAN
;
1210 #define EFI_IFR_STRING_UNSIGNED_DEC 0
1211 #define EFI_IFR_STRING_SIGNED_DEC 1
1212 #define EFI_IFR_STRING_LOWERCASE_HEX 2
1213 #define EFI_IFR_STRING_UPPERCASE_HEX 3
1215 #define EFI_IFR_STRING_ASCII 0
1216 #define EFI_IFR_STRING_UNICODE 8
1218 typedef struct _EFI_IFR_TO_STRING
{
1219 EFI_IFR_OP_HEADER Header
;
1221 } EFI_IFR_TO_STRING
;
1223 typedef struct _EFI_IFR_TO_UINT
{
1224 EFI_IFR_OP_HEADER Header
;
1227 typedef struct _EFI_IFR_TO_UPPER
{
1228 EFI_IFR_OP_HEADER Header
;
1231 typedef struct _EFI_IFR_TO_LOWER
{
1232 EFI_IFR_OP_HEADER Header
;
1235 typedef struct _EFI_IFR_ADD
{
1236 EFI_IFR_OP_HEADER Header
;
1239 typedef struct _EFI_IFR_AND
{
1240 EFI_IFR_OP_HEADER Header
;
1243 typedef struct _EFI_IFR_BITWISE_AND
{
1244 EFI_IFR_OP_HEADER Header
;
1245 } EFI_IFR_BITWISE_AND
;
1247 typedef struct _EFI_IFR_BITWISE_OR
{
1248 EFI_IFR_OP_HEADER Header
;
1249 } EFI_IFR_BITWISE_OR
;
1251 typedef struct _EFI_IFR_CATENATE
{
1252 EFI_IFR_OP_HEADER Header
;
1255 typedef struct _EFI_IFR_DIVIDE
{
1256 EFI_IFR_OP_HEADER Header
;
1259 typedef struct _EFI_IFR_EQUAL
{
1260 EFI_IFR_OP_HEADER Header
;
1263 typedef struct _EFI_IFR_GREATER_EQUAL
{
1264 EFI_IFR_OP_HEADER Header
;
1265 } EFI_IFR_GREATER_EQUAL
;
1267 typedef struct _EFI_IFR_GREATER_THAN
{
1268 EFI_IFR_OP_HEADER Header
;
1269 } EFI_IFR_GREATER_THAN
;
1271 typedef struct _EFI_IFR_LESS_EQUAL
{
1272 EFI_IFR_OP_HEADER Header
;
1273 } EFI_IFR_LESS_EQUAL
;
1275 typedef struct _EFI_IFR_LESS_THAN
{
1276 EFI_IFR_OP_HEADER Header
;
1277 } EFI_IFR_LESS_THAN
;
1279 typedef struct _EFI_IFR_MATCH
{
1280 EFI_IFR_OP_HEADER Header
;
1283 typedef struct _EFI_IFR_MATCH2
{
1284 EFI_IFR_OP_HEADER Header
;
1285 EFI_GUID SyntaxType
;
1288 typedef struct _EFI_IFR_MULTIPLY
{
1289 EFI_IFR_OP_HEADER Header
;
1292 typedef struct _EFI_IFR_MODULO
{
1293 EFI_IFR_OP_HEADER Header
;
1296 typedef struct _EFI_IFR_NOT_EQUAL
{
1297 EFI_IFR_OP_HEADER Header
;
1298 } EFI_IFR_NOT_EQUAL
;
1300 typedef struct _EFI_IFR_OR
{
1301 EFI_IFR_OP_HEADER Header
;
1304 typedef struct _EFI_IFR_SHIFT_LEFT
{
1305 EFI_IFR_OP_HEADER Header
;
1306 } EFI_IFR_SHIFT_LEFT
;
1308 typedef struct _EFI_IFR_SHIFT_RIGHT
{
1309 EFI_IFR_OP_HEADER Header
;
1310 } EFI_IFR_SHIFT_RIGHT
;
1312 typedef struct _EFI_IFR_SUBTRACT
{
1313 EFI_IFR_OP_HEADER Header
;
1316 typedef struct _EFI_IFR_CONDITIONAL
{
1317 EFI_IFR_OP_HEADER Header
;
1318 } EFI_IFR_CONDITIONAL
;
1320 #define EFI_IFR_FF_CASE_SENSITIVE 0x00
1321 #define EFI_IFR_FF_CASE_INSENSITIVE 0x01
1323 typedef struct _EFI_IFR_FIND
{
1324 EFI_IFR_OP_HEADER Header
;
1328 typedef struct _EFI_IFR_MID
{
1329 EFI_IFR_OP_HEADER Header
;
1332 typedef struct _EFI_IFR_TOKEN
{
1333 EFI_IFR_OP_HEADER Header
;
1336 #define EFI_IFR_FLAGS_FIRST_MATCHING 0x00
1337 #define EFI_IFR_FLAGS_FIRST_NON_MATCHING 0x01
1339 typedef struct _EFI_IFR_SPAN
{
1340 EFI_IFR_OP_HEADER Header
;
1344 typedef struct _EFI_IFR_SECURITY
{
1346 /// Standard opcode header, where Header.Op = EFI_IFR_SECURITY_OP.
1348 EFI_IFR_OP_HEADER Header
;
1350 /// Security permission level.
1352 EFI_GUID Permissions
;
1355 typedef struct _EFI_IFR_FORM_MAP_METHOD
{
1357 /// The string identifier which provides the human-readable name of
1358 /// the configuration method for this standards map form.
1360 EFI_STRING_ID MethodTitle
;
1362 /// Identifier which uniquely specifies the configuration methods
1363 /// associated with this standards map form.
1365 EFI_GUID MethodIdentifier
;
1366 } EFI_IFR_FORM_MAP_METHOD
;
1368 typedef struct _EFI_IFR_FORM_MAP
{
1370 /// The sequence that defines the type of opcode as well as the length
1371 /// of the opcode being defined. Header.OpCode = EFI_IFR_FORM_MAP_OP.
1373 EFI_IFR_OP_HEADER Header
;
1375 /// The unique identifier for this particular form.
1379 /// One or more configuration method's name and unique identifier.
1381 // EFI_IFR_FORM_MAP_METHOD Methods[];
1384 typedef struct _EFI_IFR_SET
{
1386 /// The sequence that defines the type of opcode as well as the length
1387 /// of the opcode being defined. Header.OpCode = EFI_IFR_SET_OP.
1389 EFI_IFR_OP_HEADER Header
;
1391 /// Specifies the identifier of a previously declared variable store to
1392 /// use when storing the question's value.
1394 EFI_VARSTORE_ID VarStoreId
;
1397 /// A 16-bit Buffer Storage offset.
1399 EFI_STRING_ID VarName
;
1401 /// A Name Value or EFI Variable name (VarName).
1406 /// Specifies the type used for storage.
1411 typedef struct _EFI_IFR_GET
{
1413 /// The sequence that defines the type of opcode as well as the length
1414 /// of the opcode being defined. Header.OpCode = EFI_IFR_GET_OP.
1416 EFI_IFR_OP_HEADER Header
;
1418 /// Specifies the identifier of a previously declared variable store to
1419 /// use when retrieving the value.
1421 EFI_VARSTORE_ID VarStoreId
;
1424 /// A 16-bit Buffer Storage offset.
1426 EFI_STRING_ID VarName
;
1428 /// A Name Value or EFI Variable name (VarName).
1433 /// Specifies the type used for storage.
1438 typedef struct _EFI_IFR_READ
{
1439 EFI_IFR_OP_HEADER Header
;
1442 typedef struct _EFI_IFR_WRITE
{
1443 EFI_IFR_OP_HEADER Header
;
1446 typedef struct _EFI_IFR_MAP
{
1447 EFI_IFR_OP_HEADER Header
;
1564 CHAR16 ShiftedUnicode
;
1565 CHAR16 AltGrUnicode
;
1566 CHAR16 ShiftedAltGrUnicode
;
1568 UINT16 AffectedAttribute
;
1569 } EFI_KEY_DESCRIPTOR
;
1572 // A key which is affected by all the standard shift modifiers.
1573 // Most keys would be expected to have this bit active.
1575 #define EFI_AFFECTED_BY_STANDARD_SHIFT 0x0001
1577 // This key is affected by the caps lock so that if a keyboard driver
1578 // would need to disambiguate between a key which had a "1" defined
1579 // versus a "a" character. Having this bit turned on would tell
1580 // the keyboard driver to use the appropriate shifted state or not.
1582 #define EFI_AFFECTED_BY_CAPS_LOCK 0x0002
1584 // Similar to the case of CAPS lock, if this bit is active, the key
1585 // is affected by the num lock being turned on.
1587 #define EFI_AFFECTED_BY_NUM_LOCK 0x0004
1590 UINT16 LayoutLength
;
1592 UINT32 LayoutDescriptorStringOffset
;
1593 UINT8 DescriptorCount
;
1594 // EFI_KEY_DESCRIPTOR Descriptors[];
1595 } EFI_HII_KEYBOARD_LAYOUT
;
1598 EFI_HII_PACKAGE_HEADER Header
;
1600 // EFI_HII_KEYBOARD_LAYOUT Layout[];
1601 } EFI_HII_KEYBOARD_PACKAGE_HDR
;
1606 CHAR16 DescriptionString
[1];
1607 } EFI_DESCRIPTION_STRING
;
1610 UINT16 DescriptionCount
;
1611 EFI_DESCRIPTION_STRING DescriptionString
[1];
1612 } EFI_DESCRIPTION_STRING_BUNDLE
;
1617 #define EFI_NULL_MODIFIER 0x0000
1618 #define EFI_LEFT_CONTROL_MODIFIER 0x0001
1619 #define EFI_RIGHT_CONTROL_MODIFIER 0x0002
1620 #define EFI_LEFT_ALT_MODIFIER 0x0003
1621 #define EFI_RIGHT_ALT_MODIFIER 0x0004
1622 #define EFI_ALT_GR_MODIFIER 0x0005
1623 #define EFI_INSERT_MODIFIER 0x0006
1624 #define EFI_DELETE_MODIFIER 0x0007
1625 #define EFI_PAGE_DOWN_MODIFIER 0x0008
1626 #define EFI_PAGE_UP_MODIFIER 0x0009
1627 #define EFI_HOME_MODIFIER 0x000A
1628 #define EFI_END_MODIFIER 0x000B
1629 #define EFI_LEFT_SHIFT_MODIFIER 0x000C
1630 #define EFI_RIGHT_SHIFT_MODIFIER 0x000D
1631 #define EFI_CAPS_LOCK_MODIFIER 0x000E
1632 #define EFI_NUM_LOCK _MODIFIER 0x000F
1633 #define EFI_LEFT_ARROW_MODIFIER 0x0010
1634 #define EFI_RIGHT_ARROW_MODIFIER 0x0011
1635 #define EFI_DOWN_ARROW_MODIFIER 0x0012
1636 #define EFI_UP_ARROW_MODIFIER 0x0013
1637 #define EFI_NS_KEY_MODIFIER 0x0014
1638 #define EFI_NS_KEY_DEPENDENCY_MODIFIER 0x0015
1639 #define EFI_FUNCTION_KEY_ONE_MODIFIER 0x0016
1640 #define EFI_FUNCTION_KEY_TWO_MODIFIER 0x0017
1641 #define EFI_FUNCTION_KEY_THREE_MODIFIER 0x0018
1642 #define EFI_FUNCTION_KEY_FOUR_MODIFIER 0x0019
1643 #define EFI_FUNCTION_KEY_FIVE_MODIFIER 0x001A
1644 #define EFI_FUNCTION_KEY_SIX_MODIFIER 0x001B
1645 #define EFI_FUNCTION_KEY_SEVEN_MODIFIER 0x001C
1646 #define EFI_FUNCTION_KEY_EIGHT_MODIFIER 0x001D
1647 #define EFI_FUNCTION_KEY_NINE_MODIFIER 0x001E
1648 #define EFI_FUNCTION_KEY_TEN_MODIFIER 0x001F
1649 #define EFI_FUNCTION_KEY_ELEVEN_MODIFIER 0x0020
1650 #define EFI_FUNCTION_KEY_TWELVE_MODIFIER 0x0021
1653 // Keys that have multiple control functions based on modifier
1654 // settings are handled in the keyboard driver implementation.
1655 // For instance PRINT_KEY might have a modifier held down and
1656 // is still a nonprinting character, but might have an alternate
1657 // control function like SYSREQUEST
1659 #define EFI_PRINT_MODIFIER 0x0022
1660 #define EFI_SYS_REQUEST_MODIFIER 0x0023
1661 #define EFI_SCROLL_LOCK_MODIFIER 0x0024
1662 #define EFI_PAUSE_MODIFIER 0x0025
1663 #define EFI_BREAK_MODIFIER 0x0026
1670 // References to string tokens must use this macro to enable scanning for
1674 // STRING_TOKEN is not defined in UEFI specification. But it is placed
1675 // here for the easy access by C files and VFR source files.
1677 #define STRING_TOKEN(t) t