TianoCore EDK2 master
UefiInternalFormRepresentation.h
Go to the documentation of this file.
1
15#ifndef __UEFI_INTERNAL_FORMREPRESENTATION_H__
16#define __UEFI_INTERNAL_FORMREPRESENTATION_H__
17
19
23typedef VOID *EFI_HII_HANDLE;
24typedef CHAR16 *EFI_STRING;
25typedef UINT16 EFI_IMAGE_ID;
26typedef UINT16 EFI_QUESTION_ID;
27typedef UINT16 EFI_STRING_ID;
28typedef UINT16 EFI_FORM_ID;
29typedef UINT16 EFI_VARSTORE_ID;
30typedef UINT16 EFI_ANIMATION_ID;
31
32typedef UINT16 EFI_DEFAULT_ID;
33
34typedef UINT32 EFI_HII_FONT_STYLE;
35
36#pragma pack(1)
37
38//
39// Definitions for Package Lists and Package Headers
40// Section 27.3.1
41//
42
46typedef struct {
47 EFI_GUID PackageListGuid;
48 UINT32 PackageLength;
50
54typedef struct {
55 UINT32 Length : 24;
56 UINT32 Type : 8;
57 // UINT8 Data[...];
59
60//
61// Value of HII package type
62//
63#define EFI_HII_PACKAGE_TYPE_ALL 0x00
64#define EFI_HII_PACKAGE_TYPE_GUID 0x01
65#define EFI_HII_PACKAGE_FORMS 0x02
66#define EFI_HII_PACKAGE_STRINGS 0x04
67#define EFI_HII_PACKAGE_FONTS 0x05
68#define EFI_HII_PACKAGE_IMAGES 0x06
69#define EFI_HII_PACKAGE_SIMPLE_FONTS 0x07
70#define EFI_HII_PACKAGE_DEVICE_PATH 0x08
71#define EFI_HII_PACKAGE_KEYBOARD_LAYOUT 0x09
72#define EFI_HII_PACKAGE_ANIMATIONS 0x0A
73#define EFI_HII_PACKAGE_END 0xDF
74#define EFI_HII_PACKAGE_TYPE_SYSTEM_BEGIN 0xE0
75#define EFI_HII_PACKAGE_TYPE_SYSTEM_END 0xFF
76
77//
78// Definitions for Simplified Font Package
79//
80
84#define EFI_GLYPH_NON_SPACING 0x01
85#define EFI_GLYPH_WIDE 0x02
86#define EFI_GLYPH_HEIGHT 19
87#define EFI_GLYPH_WIDTH 8
89
93typedef struct {
108 UINT8 GlyphCol1[EFI_GLYPH_HEIGHT];
110
115typedef struct {
130 UINT8 GlyphCol1[EFI_GLYPH_HEIGHT];
136 UINT8 GlyphCol2[EFI_GLYPH_HEIGHT];
142 UINT8 Pad[3];
144
151 UINT16 NumberOfNarrowGlyphs;
152 UINT16 NumberOfWideGlyphs;
153 // EFI_NARROW_GLYPH NarrowGlyphs[];
154 // EFI_WIDE_GLYPH WideGlyphs[];
156
157//
158// Definitions for Font Package
159// Section 27.3.3
160//
161
162//
163// Value for font style
164//
165#define EFI_HII_FONT_STYLE_NORMAL 0x00000000
166#define EFI_HII_FONT_STYLE_BOLD 0x00000001
167#define EFI_HII_FONT_STYLE_ITALIC 0x00000002
168#define EFI_HII_FONT_STYLE_EMBOSS 0x00010000
169#define EFI_HII_FONT_STYLE_OUTLINE 0x00020000
170#define EFI_HII_FONT_STYLE_SHADOW 0x00040000
171#define EFI_HII_FONT_STYLE_UNDERLINE 0x00080000
172#define EFI_HII_FONT_STYLE_DBL_UNDER 0x00100000
173
174typedef struct _EFI_HII_GLYPH_INFO {
175 UINT16 Width;
176 UINT16 Height;
177 INT16 OffsetX;
178 INT16 OffsetY;
179 INT16 AdvanceX;
181
190 UINT32 HdrSize;
191 UINT32 GlyphBlockOffset;
193 EFI_HII_FONT_STYLE FontStyle;
194 CHAR16 FontFamily[1];
196
197//
198// Value of different glyph info block types
199//
200#define EFI_HII_GIBT_END 0x00
201#define EFI_HII_GIBT_GLYPH 0x10
202#define EFI_HII_GIBT_GLYPHS 0x11
203#define EFI_HII_GIBT_GLYPH_DEFAULT 0x12
204#define EFI_HII_GIBT_GLYPHS_DEFAULT 0x13
205#define EFI_HII_GIBT_GLYPH_VARIABILITY 0x14
206#define EFI_HII_GIBT_DUPLICATE 0x20
207#define EFI_HII_GIBT_SKIP2 0x21
208#define EFI_HII_GIBT_SKIP1 0x22
209#define EFI_HII_GIBT_DEFAULTS 0x23
210#define EFI_HII_GIBT_EXT1 0x30
211#define EFI_HII_GIBT_EXT2 0x31
212#define EFI_HII_GIBT_EXT4 0x32
213
214typedef struct _EFI_HII_GLYPH_BLOCK {
215 UINT8 BlockType;
217
218//
219// Definition of different glyph info block types
220//
221
223 EFI_HII_GLYPH_BLOCK Header;
226
228 EFI_HII_GLYPH_BLOCK Header;
229 CHAR16 CharValue;
231
233 EFI_HII_GLYPH_BLOCK Header;
235
237 EFI_HII_GLYPH_BLOCK Header;
238 UINT8 BlockType2;
239 UINT8 Length;
241
243 EFI_HII_GLYPH_BLOCK Header;
244 UINT8 BlockType2;
245 UINT16 Length;
247
249 EFI_HII_GLYPH_BLOCK Header;
250 UINT8 BlockType2;
251 UINT32 Length;
253
255 EFI_HII_GLYPH_BLOCK Header;
257 UINT8 BitmapData[1];
259
261 EFI_HII_GLYPH_BLOCK Header;
263 UINT16 Count;
264 UINT8 BitmapData[1];
266
268 EFI_HII_GLYPH_BLOCK Header;
269 UINT8 BitmapData[1];
271
273 EFI_HII_GLYPH_BLOCK Header;
274 UINT16 Count;
275 UINT8 BitmapData[1];
277
279 EFI_HII_GLYPH_BLOCK Header;
281 UINT8 GlyphPackInBits;
282 UINT8 BitmapData[1];
284
286 EFI_HII_GLYPH_BLOCK Header;
287 UINT8 SkipCount;
289
291 EFI_HII_GLYPH_BLOCK Header;
292 UINT16 SkipCount;
294
295//
296// Definitions for Device Path Package
297// Section 27.3.4
298//
299
306 // EFI_DEVICE_PATH_PROTOCOL DevicePath[];
308
309//
310// Definitions for GUID Package
311// Section 27.3.5
312//
313
319 EFI_GUID Guid;
320 // Data per GUID definition may follow
322
323//
324// Definitions for String Package
325// Section 27.3.6
326//
327
328#define UEFI_CONFIG_LANG "x-UEFI"
329#define UEFI_CONFIG_LANG_2 "x-i-UEFI"
330
337 UINT32 HdrSize;
338 UINT32 StringInfoOffset;
339 CHAR16 LanguageWindow[16];
340 EFI_STRING_ID LanguageName;
341 CHAR8 Language[1];
343
344typedef struct {
345 UINT8 BlockType;
347
348//
349// Value of different string information block types
350//
351#define EFI_HII_SIBT_END 0x00
352#define EFI_HII_SIBT_STRING_SCSU 0x10
353#define EFI_HII_SIBT_STRING_SCSU_FONT 0x11
354#define EFI_HII_SIBT_STRINGS_SCSU 0x12
355#define EFI_HII_SIBT_STRINGS_SCSU_FONT 0x13
356#define EFI_HII_SIBT_STRING_UCS2 0x14
357#define EFI_HII_SIBT_STRING_UCS2_FONT 0x15
358#define EFI_HII_SIBT_STRINGS_UCS2 0x16
359#define EFI_HII_SIBT_STRINGS_UCS2_FONT 0x17
360#define EFI_HII_SIBT_DUPLICATE 0x20
361#define EFI_HII_SIBT_SKIP2 0x21
362#define EFI_HII_SIBT_SKIP1 0x22
363#define EFI_HII_SIBT_EXT1 0x30
364#define EFI_HII_SIBT_EXT2 0x31
365#define EFI_HII_SIBT_EXT4 0x32
366#define EFI_HII_SIBT_FONT 0x40
367
368//
369// Definition of different string information block types
370//
371
374 EFI_STRING_ID StringId;
376
380
383 UINT8 BlockType2;
384 UINT8 Length;
386
389 UINT8 BlockType2;
390 UINT16 Length;
392
395 UINT8 BlockType2;
396 UINT32 Length;
398
401 UINT8 FontId;
402 UINT16 FontSize;
403 EFI_HII_FONT_STYLE FontStyle;
404 CHAR16 FontName[1];
406
409 UINT8 SkipCount;
411
414 UINT16 SkipCount;
416
419 UINT8 StringText[1];
421
424 UINT8 FontIdentifier;
425 UINT8 StringText[1];
427
430 UINT16 StringCount;
431 UINT8 StringText[1];
433
436 UINT8 FontIdentifier;
437 UINT16 StringCount;
438 UINT8 StringText[1];
440
443 CHAR16 StringText[1];
445
448 UINT8 FontIdentifier;
449 CHAR16 StringText[1];
451
454 UINT16 StringCount;
455 CHAR16 StringText[1];
457
460 UINT8 FontIdentifier;
461 UINT16 StringCount;
462 CHAR16 StringText[1];
464
465//
466// Definitions for Image Package
467// Section 27.3.7
468//
469
472 UINT32 ImageInfoOffset;
473 UINT32 PaletteInfoOffset;
475
476typedef struct _EFI_HII_IMAGE_BLOCK {
477 UINT8 BlockType;
479
480//
481// Value of different image information block types
482//
483#define EFI_HII_IIBT_END 0x00
484#define EFI_HII_IIBT_IMAGE_1BIT 0x10
485#define EFI_HII_IIBT_IMAGE_1BIT_TRANS 0x11
486#define EFI_HII_IIBT_IMAGE_4BIT 0x12
487#define EFI_HII_IIBT_IMAGE_4BIT_TRANS 0x13
488#define EFI_HII_IIBT_IMAGE_8BIT 0x14
489#define EFI_HII_IIBT_IMAGE_8BIT_TRANS 0x15
490#define EFI_HII_IIBT_IMAGE_24BIT 0x16
491#define EFI_HII_IIBT_IMAGE_24BIT_TRANS 0x17
492#define EFI_HII_IIBT_IMAGE_JPEG 0x18
493#define EFI_HII_IIBT_IMAGE_PNG 0x19
494#define EFI_HII_IIBT_DUPLICATE 0x20
495#define EFI_HII_IIBT_SKIP2 0x21
496#define EFI_HII_IIBT_SKIP1 0x22
497#define EFI_HII_IIBT_EXT1 0x30
498#define EFI_HII_IIBT_EXT2 0x31
499#define EFI_HII_IIBT_EXT4 0x32
500
501//
502// Definition of different image information block types
503//
504
506 EFI_HII_IMAGE_BLOCK Header;
508
510 EFI_HII_IMAGE_BLOCK Header;
511 UINT8 BlockType2;
512 UINT8 Length;
514
516 EFI_HII_IMAGE_BLOCK Header;
517 UINT8 BlockType2;
518 UINT16 Length;
520
522 EFI_HII_IMAGE_BLOCK Header;
523 UINT8 BlockType2;
524 UINT32 Length;
526
528 UINT16 Width;
529 UINT16 Height;
530 UINT8 Data[1];
532
534 EFI_HII_IMAGE_BLOCK Header;
535 UINT8 PaletteIndex;
538
540 EFI_HII_IMAGE_BLOCK Header;
541 UINT8 PaletteIndex;
544
545typedef struct _EFI_HII_RGB_PIXEL {
546 UINT8 b;
547 UINT8 g;
548 UINT8 r;
550
552 UINT16 Width;
553 UINT16 Height;
554 EFI_HII_RGB_PIXEL Bitmap[1];
556
558 EFI_HII_IMAGE_BLOCK Header;
561
563 EFI_HII_IMAGE_BLOCK Header;
566
568 UINT16 Width;
569 UINT16 Height;
570 UINT8 Data[1];
572
574 EFI_HII_IMAGE_BLOCK Header;
575 UINT8 PaletteIndex;
578
580 EFI_HII_IMAGE_BLOCK Header;
581 UINT8 PaletteIndex;
584
586 UINT16 Width;
587 UINT16 Height;
588 UINT8 Data[1];
590
592 EFI_HII_IMAGE_BLOCK Header;
593 UINT8 PaletteIndex;
596
598 EFI_HII_IMAGE_BLOCK Header;
599 UINT8 PaletteIndex;
602
604 EFI_HII_IMAGE_BLOCK Header;
605 EFI_IMAGE_ID ImageId;
607
609 EFI_HII_IMAGE_BLOCK Header;
610 UINT32 Size;
611 UINT8 Data[1];
613
615 EFI_HII_IMAGE_BLOCK Header;
616 UINT32 Size;
617 UINT8 Data[1];
619
621 EFI_HII_IMAGE_BLOCK Header;
622 UINT8 SkipCount;
624
626 EFI_HII_IMAGE_BLOCK Header;
627 UINT16 SkipCount;
629
630//
631// Definitions for Palette Information
632//
633
635 UINT16 PaletteCount;
637
639 UINT16 PaletteSize;
640 EFI_HII_RGB_PIXEL PaletteValue[1];
642
643//
644// Definitions for Forms Package
645// Section 27.3.8
646//
647
653 // EFI_IFR_OP_HEADER OpCodeHeader;
654 // More op-codes follow
656
657typedef struct {
658 UINT8 Hour;
659 UINT8 Minute;
660 UINT8 Second;
662
663typedef struct {
664 UINT16 Year;
665 UINT8 Month;
666 UINT8 Day;
668
669typedef struct {
670 EFI_QUESTION_ID QuestionId;
671 EFI_FORM_ID FormId;
672 EFI_GUID FormSetGuid;
673 EFI_STRING_ID DevicePath;
675
676typedef union {
677 UINT8 u8;
678 UINT16 u16;
679 UINT32 u32;
680 UINT64 u64;
681 BOOLEAN b;
682 EFI_HII_TIME time;
683 EFI_HII_DATE date;
684 EFI_STRING_ID string;
686 // UINT8 buffer[]; ///< EFI_IFR_TYPE_BUFFER
688
689//
690// IFR Opcodes
691//
692#define EFI_IFR_FORM_OP 0x01
693#define EFI_IFR_SUBTITLE_OP 0x02
694#define EFI_IFR_TEXT_OP 0x03
695#define EFI_IFR_IMAGE_OP 0x04
696#define EFI_IFR_ONE_OF_OP 0x05
697#define EFI_IFR_CHECKBOX_OP 0x06
698#define EFI_IFR_NUMERIC_OP 0x07
699#define EFI_IFR_PASSWORD_OP 0x08
700#define EFI_IFR_ONE_OF_OPTION_OP 0x09
701#define EFI_IFR_SUPPRESS_IF_OP 0x0A
702#define EFI_IFR_LOCKED_OP 0x0B
703#define EFI_IFR_ACTION_OP 0x0C
704#define EFI_IFR_RESET_BUTTON_OP 0x0D
705#define EFI_IFR_FORM_SET_OP 0x0E
706#define EFI_IFR_REF_OP 0x0F
707#define EFI_IFR_NO_SUBMIT_IF_OP 0x10
708#define EFI_IFR_INCONSISTENT_IF_OP 0x11
709#define EFI_IFR_EQ_ID_VAL_OP 0x12
710#define EFI_IFR_EQ_ID_ID_OP 0x13
711#define EFI_IFR_EQ_ID_VAL_LIST_OP 0x14
712#define EFI_IFR_AND_OP 0x15
713#define EFI_IFR_OR_OP 0x16
714#define EFI_IFR_NOT_OP 0x17
715#define EFI_IFR_RULE_OP 0x18
716#define EFI_IFR_GRAY_OUT_IF_OP 0x19
717#define EFI_IFR_DATE_OP 0x1A
718#define EFI_IFR_TIME_OP 0x1B
719#define EFI_IFR_STRING_OP 0x1C
720#define EFI_IFR_REFRESH_OP 0x1D
721#define EFI_IFR_DISABLE_IF_OP 0x1E
722#define EFI_IFR_ANIMATION_OP 0x1F
723#define EFI_IFR_TO_LOWER_OP 0x20
724#define EFI_IFR_TO_UPPER_OP 0x21
725#define EFI_IFR_MAP_OP 0x22
726#define EFI_IFR_ORDERED_LIST_OP 0x23
727#define EFI_IFR_VARSTORE_OP 0x24
728#define EFI_IFR_VARSTORE_NAME_VALUE_OP 0x25
729#define EFI_IFR_VARSTORE_EFI_OP 0x26
730#define EFI_IFR_VARSTORE_DEVICE_OP 0x27
731#define EFI_IFR_VERSION_OP 0x28
732#define EFI_IFR_END_OP 0x29
733#define EFI_IFR_MATCH_OP 0x2A
734#define EFI_IFR_GET_OP 0x2B
735#define EFI_IFR_SET_OP 0x2C
736#define EFI_IFR_READ_OP 0x2D
737#define EFI_IFR_WRITE_OP 0x2E
738#define EFI_IFR_EQUAL_OP 0x2F
739#define EFI_IFR_NOT_EQUAL_OP 0x30
740#define EFI_IFR_GREATER_THAN_OP 0x31
741#define EFI_IFR_GREATER_EQUAL_OP 0x32
742#define EFI_IFR_LESS_THAN_OP 0x33
743#define EFI_IFR_LESS_EQUAL_OP 0x34
744#define EFI_IFR_BITWISE_AND_OP 0x35
745#define EFI_IFR_BITWISE_OR_OP 0x36
746#define EFI_IFR_BITWISE_NOT_OP 0x37
747#define EFI_IFR_SHIFT_LEFT_OP 0x38
748#define EFI_IFR_SHIFT_RIGHT_OP 0x39
749#define EFI_IFR_ADD_OP 0x3A
750#define EFI_IFR_SUBTRACT_OP 0x3B
751#define EFI_IFR_MULTIPLY_OP 0x3C
752#define EFI_IFR_DIVIDE_OP 0x3D
753#define EFI_IFR_MODULO_OP 0x3E
754#define EFI_IFR_RULE_REF_OP 0x3F
755#define EFI_IFR_QUESTION_REF1_OP 0x40
756#define EFI_IFR_QUESTION_REF2_OP 0x41
757#define EFI_IFR_UINT8_OP 0x42
758#define EFI_IFR_UINT16_OP 0x43
759#define EFI_IFR_UINT32_OP 0x44
760#define EFI_IFR_UINT64_OP 0x45
761#define EFI_IFR_TRUE_OP 0x46
762#define EFI_IFR_FALSE_OP 0x47
763#define EFI_IFR_TO_UINT_OP 0x48
764#define EFI_IFR_TO_STRING_OP 0x49
765#define EFI_IFR_TO_BOOLEAN_OP 0x4A
766#define EFI_IFR_MID_OP 0x4B
767#define EFI_IFR_FIND_OP 0x4C
768#define EFI_IFR_TOKEN_OP 0x4D
769#define EFI_IFR_STRING_REF1_OP 0x4E
770#define EFI_IFR_STRING_REF2_OP 0x4F
771#define EFI_IFR_CONDITIONAL_OP 0x50
772#define EFI_IFR_QUESTION_REF3_OP 0x51
773#define EFI_IFR_ZERO_OP 0x52
774#define EFI_IFR_ONE_OP 0x53
775#define EFI_IFR_ONES_OP 0x54
776#define EFI_IFR_UNDEFINED_OP 0x55
777#define EFI_IFR_LENGTH_OP 0x56
778#define EFI_IFR_DUP_OP 0x57
779#define EFI_IFR_THIS_OP 0x58
780#define EFI_IFR_SPAN_OP 0x59
781#define EFI_IFR_VALUE_OP 0x5A
782#define EFI_IFR_DEFAULT_OP 0x5B
783#define EFI_IFR_DEFAULTSTORE_OP 0x5C
784#define EFI_IFR_FORM_MAP_OP 0x5D
785#define EFI_IFR_CATENATE_OP 0x5E
786#define EFI_IFR_GUID_OP 0x5F
787#define EFI_IFR_SECURITY_OP 0x60
788#define EFI_IFR_MODAL_TAG_OP 0x61
789#define EFI_IFR_REFRESH_ID_OP 0x62
790#define EFI_IFR_WARNING_IF_OP 0x63
791#define EFI_IFR_MATCH2_OP 0x64
792
793//
794// Definitions of IFR Standard Headers
795// Section 27.3.8.2
796//
797
798typedef struct _EFI_IFR_OP_HEADER {
799 UINT8 OpCode;
800 UINT8 Length : 7;
801 UINT8 Scope : 1;
803
805 EFI_STRING_ID Prompt;
806 EFI_STRING_ID Help;
808
811 EFI_QUESTION_ID QuestionId;
812 EFI_VARSTORE_ID VarStoreId;
813 union {
814 EFI_STRING_ID VarName;
815 UINT16 VarOffset;
816 } VarStoreInfo;
817 UINT8 Flags;
819
820//
821// Flag values of EFI_IFR_QUESTION_HEADER
822//
823#define EFI_IFR_FLAG_READ_ONLY 0x01
824#define EFI_IFR_FLAG_CALLBACK 0x04
825#define EFI_IFR_FLAG_RESET_REQUIRED 0x10
826#define EFI_IFR_FLAG_REST_STYLE 0x20
827#define EFI_IFR_FLAG_RECONNECT_REQUIRED 0x40
828#define EFI_IFR_FLAG_OPTIONS_ONLY 0x80
829
830//
831// Definition for Opcode Reference
832// Section 27.3.8.3
833//
834typedef struct _EFI_IFR_DEFAULTSTORE {
835 EFI_IFR_OP_HEADER Header;
836 EFI_STRING_ID DefaultName;
837 UINT16 DefaultId;
839
840//
841// Default Identifier of default store
842//
843#define EFI_HII_DEFAULT_CLASS_STANDARD 0x0000
844#define EFI_HII_DEFAULT_CLASS_MANUFACTURING 0x0001
845#define EFI_HII_DEFAULT_CLASS_SAFE 0x0002
846#define EFI_HII_DEFAULT_CLASS_PLATFORM_BEGIN 0x4000
847#define EFI_HII_DEFAULT_CLASS_PLATFORM_END 0x7fff
848#define EFI_HII_DEFAULT_CLASS_HARDWARE_BEGIN 0x8000
849#define EFI_HII_DEFAULT_CLASS_HARDWARE_END 0xbfff
850#define EFI_HII_DEFAULT_CLASS_FIRMWARE_BEGIN 0xc000
851#define EFI_HII_DEFAULT_CLASS_FIRMWARE_END 0xffff
852
853typedef struct _EFI_IFR_VARSTORE {
854 EFI_IFR_OP_HEADER Header;
855 EFI_GUID Guid;
856 EFI_VARSTORE_ID VarStoreId;
857 UINT16 Size;
858 UINT8 Name[1];
860
861typedef struct _EFI_IFR_VARSTORE_EFI {
862 EFI_IFR_OP_HEADER Header;
863 EFI_VARSTORE_ID VarStoreId;
864 EFI_GUID Guid;
865 UINT32 Attributes;
866 UINT16 Size;
867 UINT8 Name[1];
869
871 EFI_IFR_OP_HEADER Header;
872 EFI_VARSTORE_ID VarStoreId;
873 EFI_GUID Guid;
875
876typedef struct _EFI_IFR_FORM_SET {
877 EFI_IFR_OP_HEADER Header;
878 EFI_GUID Guid;
879 EFI_STRING_ID FormSetTitle;
880 EFI_STRING_ID Help;
881 UINT8 Flags;
882 // EFI_GUID ClassGuid[];
884
885typedef struct _EFI_IFR_END {
886 EFI_IFR_OP_HEADER Header;
888
889typedef struct _EFI_IFR_FORM {
890 EFI_IFR_OP_HEADER Header;
891 UINT16 FormId;
892 EFI_STRING_ID FormTitle;
894
895typedef struct _EFI_IFR_IMAGE {
896 EFI_IFR_OP_HEADER Header;
897 EFI_IMAGE_ID Id;
899
900typedef struct _EFI_IFR_MODAL_TAG {
901 EFI_IFR_OP_HEADER Header;
903
904typedef struct _EFI_IFR_LOCKED {
905 EFI_IFR_OP_HEADER Header;
907
908typedef struct _EFI_IFR_RULE {
909 EFI_IFR_OP_HEADER Header;
910 UINT8 RuleId;
912
913typedef struct _EFI_IFR_DEFAULT {
914 EFI_IFR_OP_HEADER Header;
915 UINT16 DefaultId;
916 UINT8 Type;
917 EFI_IFR_TYPE_VALUE Value;
919
920typedef struct _EFI_IFR_DEFAULT_2 {
921 EFI_IFR_OP_HEADER Header;
922 UINT16 DefaultId;
923 UINT8 Type;
925
926typedef struct _EFI_IFR_VALUE {
927 EFI_IFR_OP_HEADER Header;
929
930typedef struct _EFI_IFR_SUBTITLE {
931 EFI_IFR_OP_HEADER Header;
932 EFI_IFR_STATEMENT_HEADER Statement;
933 UINT8 Flags;
935
936#define EFI_IFR_FLAGS_HORIZONTAL 0x01
937
938typedef struct _EFI_IFR_CHECKBOX {
939 EFI_IFR_OP_HEADER Header;
941 UINT8 Flags;
943
944#define EFI_IFR_CHECKBOX_DEFAULT 0x01
945#define EFI_IFR_CHECKBOX_DEFAULT_MFG 0x02
946
947typedef struct _EFI_IFR_TEXT {
948 EFI_IFR_OP_HEADER Header;
949 EFI_IFR_STATEMENT_HEADER Statement;
950 EFI_STRING_ID TextTwo;
952
953typedef struct _EFI_IFR_REF {
954 EFI_IFR_OP_HEADER Header;
956 EFI_FORM_ID FormId;
958
959typedef struct _EFI_IFR_REF2 {
960 EFI_IFR_OP_HEADER Header;
962 EFI_FORM_ID FormId;
963 EFI_QUESTION_ID QuestionId;
965
966typedef struct _EFI_IFR_REF3 {
967 EFI_IFR_OP_HEADER Header;
969 EFI_FORM_ID FormId;
970 EFI_QUESTION_ID QuestionId;
971 EFI_GUID FormSetId;
973
974typedef struct _EFI_IFR_REF4 {
975 EFI_IFR_OP_HEADER Header;
977 EFI_FORM_ID FormId;
978 EFI_QUESTION_ID QuestionId;
979 EFI_GUID FormSetId;
980 EFI_STRING_ID DevicePath;
982
983typedef struct _EFI_IFR_REF5 {
984 EFI_IFR_OP_HEADER Header;
987
988typedef struct _EFI_IFR_RESET_BUTTON {
989 EFI_IFR_OP_HEADER Header;
990 EFI_IFR_STATEMENT_HEADER Statement;
991 EFI_DEFAULT_ID DefaultId;
993
994typedef struct _EFI_IFR_ACTION {
995 EFI_IFR_OP_HEADER Header;
997 EFI_STRING_ID QuestionConfig;
999
1000typedef struct _EFI_IFR_ACTION_1 {
1001 EFI_IFR_OP_HEADER Header;
1002 EFI_IFR_QUESTION_HEADER Question;
1004
1005typedef struct _EFI_IFR_DATE {
1006 EFI_IFR_OP_HEADER Header;
1007 EFI_IFR_QUESTION_HEADER Question;
1008 UINT8 Flags;
1009} EFI_IFR_DATE;
1010
1011//
1012// Flags that describe the behavior of the question.
1013//
1014#define EFI_QF_DATE_YEAR_SUPPRESS 0x01
1015#define EFI_QF_DATE_MONTH_SUPPRESS 0x02
1016#define EFI_QF_DATE_DAY_SUPPRESS 0x04
1017
1018#define EFI_QF_DATE_STORAGE 0x30
1019#define QF_DATE_STORAGE_NORMAL 0x00
1020#define QF_DATE_STORAGE_TIME 0x10
1021#define QF_DATE_STORAGE_WAKEUP 0x20
1022
1023typedef union {
1024 struct {
1025 UINT8 MinValue;
1026 UINT8 MaxValue;
1027 UINT8 Step;
1028 } u8;
1029 struct {
1030 UINT16 MinValue;
1031 UINT16 MaxValue;
1032 UINT16 Step;
1033 } u16;
1034 struct {
1035 UINT32 MinValue;
1036 UINT32 MaxValue;
1037 UINT32 Step;
1038 } u32;
1039 struct {
1040 UINT64 MinValue;
1041 UINT64 MaxValue;
1042 UINT64 Step;
1043 } u64;
1045
1046typedef struct _EFI_IFR_NUMERIC {
1047 EFI_IFR_OP_HEADER Header;
1048 EFI_IFR_QUESTION_HEADER Question;
1049 UINT8 Flags;
1050 MINMAXSTEP_DATA data;
1052
1053//
1054// Flags related to the numeric question
1055//
1056#define EFI_IFR_NUMERIC_SIZE 0x03
1057#define EFI_IFR_NUMERIC_SIZE_1 0x00
1058#define EFI_IFR_NUMERIC_SIZE_2 0x01
1059#define EFI_IFR_NUMERIC_SIZE_4 0x02
1060#define EFI_IFR_NUMERIC_SIZE_8 0x03
1061
1062#define EFI_IFR_DISPLAY 0x30
1063#define EFI_IFR_DISPLAY_INT_DEC 0x00
1064#define EFI_IFR_DISPLAY_UINT_DEC 0x10
1065#define EFI_IFR_DISPLAY_UINT_HEX 0x20
1066
1067typedef struct _EFI_IFR_ONE_OF {
1068 EFI_IFR_OP_HEADER Header;
1069 EFI_IFR_QUESTION_HEADER Question;
1070 UINT8 Flags;
1071 MINMAXSTEP_DATA data;
1073
1074typedef struct _EFI_IFR_STRING {
1075 EFI_IFR_OP_HEADER Header;
1076 EFI_IFR_QUESTION_HEADER Question;
1077 UINT8 MinSize;
1078 UINT8 MaxSize;
1079 UINT8 Flags;
1081
1082#define EFI_IFR_STRING_MULTI_LINE 0x01
1083
1084typedef struct _EFI_IFR_PASSWORD {
1085 EFI_IFR_OP_HEADER Header;
1086 EFI_IFR_QUESTION_HEADER Question;
1087 UINT16 MinSize;
1088 UINT16 MaxSize;
1090
1092 EFI_IFR_OP_HEADER Header;
1093 EFI_IFR_QUESTION_HEADER Question;
1094 UINT8 MaxContainers;
1095 UINT8 Flags;
1097
1098#define EFI_IFR_UNIQUE_SET 0x01
1099#define EFI_IFR_NO_EMPTY_SET 0x02
1100
1101typedef struct _EFI_IFR_TIME {
1102 EFI_IFR_OP_HEADER Header;
1103 EFI_IFR_QUESTION_HEADER Question;
1104 UINT8 Flags;
1105} EFI_IFR_TIME;
1106
1107//
1108// A bit-mask that determines which unique settings are active for this opcode.
1109//
1110#define QF_TIME_HOUR_SUPPRESS 0x01
1111#define QF_TIME_MINUTE_SUPPRESS 0x02
1112#define QF_TIME_SECOND_SUPPRESS 0x04
1113
1114#define QF_TIME_STORAGE 0x30
1115#define QF_TIME_STORAGE_NORMAL 0x00
1116#define QF_TIME_STORAGE_TIME 0x10
1117#define QF_TIME_STORAGE_WAKEUP 0x20
1118
1119typedef struct _EFI_IFR_DISABLE_IF {
1120 EFI_IFR_OP_HEADER Header;
1122
1123typedef struct _EFI_IFR_SUPPRESS_IF {
1124 EFI_IFR_OP_HEADER Header;
1126
1127typedef struct _EFI_IFR_GRAY_OUT_IF {
1128 EFI_IFR_OP_HEADER Header;
1130
1132 EFI_IFR_OP_HEADER Header;
1133 EFI_STRING_ID Error;
1135
1137 EFI_IFR_OP_HEADER Header;
1138 EFI_STRING_ID Error;
1140
1141typedef struct _EFI_IFR_WARNING_IF {
1142 EFI_IFR_OP_HEADER Header;
1143 EFI_STRING_ID Warning;
1144 UINT8 TimeOut;
1146
1147typedef struct _EFI_IFR_REFRESH {
1148 EFI_IFR_OP_HEADER Header;
1149 UINT8 RefreshInterval;
1151
1153 EFI_IFR_OP_HEADER Header;
1154 EFI_STRING_ID DevicePath;
1156
1158 EFI_IFR_OP_HEADER Header;
1159 EFI_STRING_ID Option;
1160 UINT8 Flags;
1161 UINT8 Type;
1162 EFI_IFR_TYPE_VALUE Value;
1164
1165//
1166// Types of the option's value.
1167//
1168#define EFI_IFR_TYPE_NUM_SIZE_8 0x00
1169#define EFI_IFR_TYPE_NUM_SIZE_16 0x01
1170#define EFI_IFR_TYPE_NUM_SIZE_32 0x02
1171#define EFI_IFR_TYPE_NUM_SIZE_64 0x03
1172#define EFI_IFR_TYPE_BOOLEAN 0x04
1173#define EFI_IFR_TYPE_TIME 0x05
1174#define EFI_IFR_TYPE_DATE 0x06
1175#define EFI_IFR_TYPE_STRING 0x07
1176#define EFI_IFR_TYPE_OTHER 0x08
1177#define EFI_IFR_TYPE_UNDEFINED 0x09
1178#define EFI_IFR_TYPE_ACTION 0x0A
1179#define EFI_IFR_TYPE_BUFFER 0x0B
1180#define EFI_IFR_TYPE_REF 0x0C
1181
1182#define EFI_IFR_OPTION_DEFAULT 0x10
1183#define EFI_IFR_OPTION_DEFAULT_MFG 0x20
1184
1185typedef struct _EFI_IFR_GUID {
1186 EFI_IFR_OP_HEADER Header;
1187 EFI_GUID Guid;
1188 // Optional Data Follows
1189} EFI_IFR_GUID;
1190
1191typedef struct _EFI_IFR_REFRESH_ID {
1192 EFI_IFR_OP_HEADER Header;
1193 EFI_GUID RefreshEventGroupId;
1195
1196typedef struct _EFI_IFR_DUP {
1197 EFI_IFR_OP_HEADER Header;
1198} EFI_IFR_DUP;
1199
1200typedef struct _EFI_IFR_EQ_ID_ID {
1201 EFI_IFR_OP_HEADER Header;
1202 EFI_QUESTION_ID QuestionId1;
1203 EFI_QUESTION_ID QuestionId2;
1205
1206typedef struct _EFI_IFR_EQ_ID_VAL {
1207 EFI_IFR_OP_HEADER Header;
1208 EFI_QUESTION_ID QuestionId;
1209 UINT16 Value;
1211
1213 EFI_IFR_OP_HEADER Header;
1214 EFI_QUESTION_ID QuestionId;
1215 UINT16 ListLength;
1216 UINT16 ValueList[1];
1218
1219typedef struct _EFI_IFR_UINT8 {
1220 EFI_IFR_OP_HEADER Header;
1221 UINT8 Value;
1223
1224typedef struct _EFI_IFR_UINT16 {
1225 EFI_IFR_OP_HEADER Header;
1226 UINT16 Value;
1228
1229typedef struct _EFI_IFR_UINT32 {
1230 EFI_IFR_OP_HEADER Header;
1231 UINT32 Value;
1233
1234typedef struct _EFI_IFR_UINT64 {
1235 EFI_IFR_OP_HEADER Header;
1236 UINT64 Value;
1238
1240 EFI_IFR_OP_HEADER Header;
1241 EFI_QUESTION_ID QuestionId;
1243
1245 EFI_IFR_OP_HEADER Header;
1247
1249 EFI_IFR_OP_HEADER Header;
1251
1253 EFI_IFR_OP_HEADER Header;
1254 EFI_STRING_ID DevicePath;
1256
1258 EFI_IFR_OP_HEADER Header;
1259 EFI_STRING_ID DevicePath;
1260 EFI_GUID Guid;
1262
1263typedef struct _EFI_IFR_RULE_REF {
1264 EFI_IFR_OP_HEADER Header;
1265 UINT8 RuleId;
1267
1268typedef struct _EFI_IFR_STRING_REF1 {
1269 EFI_IFR_OP_HEADER Header;
1270 EFI_STRING_ID StringId;
1272
1273typedef struct _EFI_IFR_STRING_REF2 {
1274 EFI_IFR_OP_HEADER Header;
1276
1277typedef struct _EFI_IFR_THIS {
1278 EFI_IFR_OP_HEADER Header;
1279} EFI_IFR_THIS;
1280
1281typedef struct _EFI_IFR_TRUE {
1282 EFI_IFR_OP_HEADER Header;
1283} EFI_IFR_TRUE;
1284
1285typedef struct _EFI_IFR_FALSE {
1286 EFI_IFR_OP_HEADER Header;
1288
1289typedef struct _EFI_IFR_ONE {
1290 EFI_IFR_OP_HEADER Header;
1291} EFI_IFR_ONE;
1292
1293typedef struct _EFI_IFR_ONES {
1294 EFI_IFR_OP_HEADER Header;
1295} EFI_IFR_ONES;
1296
1297typedef struct _EFI_IFR_ZERO {
1298 EFI_IFR_OP_HEADER Header;
1299} EFI_IFR_ZERO;
1300
1301typedef struct _EFI_IFR_UNDEFINED {
1302 EFI_IFR_OP_HEADER Header;
1304
1305typedef struct _EFI_IFR_VERSION {
1306 EFI_IFR_OP_HEADER Header;
1308
1309typedef struct _EFI_IFR_LENGTH {
1310 EFI_IFR_OP_HEADER Header;
1312
1313typedef struct _EFI_IFR_NOT {
1314 EFI_IFR_OP_HEADER Header;
1315} EFI_IFR_NOT;
1316
1317typedef struct _EFI_IFR_BITWISE_NOT {
1318 EFI_IFR_OP_HEADER Header;
1320
1321typedef struct _EFI_IFR_TO_BOOLEAN {
1322 EFI_IFR_OP_HEADER Header;
1324
1333#define EFI_IFR_STRING_UNSIGNED_DEC 0
1334#define EFI_IFR_STRING_SIGNED_DEC 1
1335#define EFI_IFR_STRING_LOWERCASE_HEX 2
1336#define EFI_IFR_STRING_UPPERCASE_HEX 3
1338
1344#define EFI_IFR_STRING_ASCII 0
1345#define EFI_IFR_STRING_UNICODE 8
1347
1348typedef struct _EFI_IFR_TO_STRING {
1349 EFI_IFR_OP_HEADER Header;
1350 UINT8 Format;
1352
1353typedef struct _EFI_IFR_TO_UINT {
1354 EFI_IFR_OP_HEADER Header;
1356
1357typedef struct _EFI_IFR_TO_UPPER {
1358 EFI_IFR_OP_HEADER Header;
1360
1361typedef struct _EFI_IFR_TO_LOWER {
1362 EFI_IFR_OP_HEADER Header;
1364
1365typedef struct _EFI_IFR_ADD {
1366 EFI_IFR_OP_HEADER Header;
1367} EFI_IFR_ADD;
1368
1369typedef struct _EFI_IFR_AND {
1370 EFI_IFR_OP_HEADER Header;
1371} EFI_IFR_AND;
1372
1373typedef struct _EFI_IFR_BITWISE_AND {
1374 EFI_IFR_OP_HEADER Header;
1376
1377typedef struct _EFI_IFR_BITWISE_OR {
1378 EFI_IFR_OP_HEADER Header;
1380
1381typedef struct _EFI_IFR_CATENATE {
1382 EFI_IFR_OP_HEADER Header;
1384
1385typedef struct _EFI_IFR_DIVIDE {
1386 EFI_IFR_OP_HEADER Header;
1388
1389typedef struct _EFI_IFR_EQUAL {
1390 EFI_IFR_OP_HEADER Header;
1392
1394 EFI_IFR_OP_HEADER Header;
1396
1398 EFI_IFR_OP_HEADER Header;
1400
1401typedef struct _EFI_IFR_LESS_EQUAL {
1402 EFI_IFR_OP_HEADER Header;
1404
1405typedef struct _EFI_IFR_LESS_THAN {
1406 EFI_IFR_OP_HEADER Header;
1408
1409typedef struct _EFI_IFR_MATCH {
1410 EFI_IFR_OP_HEADER Header;
1412
1413typedef struct _EFI_IFR_MATCH2 {
1414 EFI_IFR_OP_HEADER Header;
1415 EFI_GUID SyntaxType;
1417
1418typedef struct _EFI_IFR_MULTIPLY {
1419 EFI_IFR_OP_HEADER Header;
1421
1422typedef struct _EFI_IFR_MODULO {
1423 EFI_IFR_OP_HEADER Header;
1425
1426typedef struct _EFI_IFR_NOT_EQUAL {
1427 EFI_IFR_OP_HEADER Header;
1429
1430typedef struct _EFI_IFR_OR {
1431 EFI_IFR_OP_HEADER Header;
1432} EFI_IFR_OR;
1433
1434typedef struct _EFI_IFR_SHIFT_LEFT {
1435 EFI_IFR_OP_HEADER Header;
1437
1438typedef struct _EFI_IFR_SHIFT_RIGHT {
1439 EFI_IFR_OP_HEADER Header;
1441
1442typedef struct _EFI_IFR_SUBTRACT {
1443 EFI_IFR_OP_HEADER Header;
1445
1446typedef struct _EFI_IFR_CONDITIONAL {
1447 EFI_IFR_OP_HEADER Header;
1449
1450//
1451// Flags governing the matching criteria of EFI_IFR_FIND
1452//
1453#define EFI_IFR_FF_CASE_SENSITIVE 0x00
1454#define EFI_IFR_FF_CASE_INSENSITIVE 0x01
1455
1456typedef struct _EFI_IFR_FIND {
1457 EFI_IFR_OP_HEADER Header;
1458 UINT8 Format;
1459} EFI_IFR_FIND;
1460
1461typedef struct _EFI_IFR_MID {
1462 EFI_IFR_OP_HEADER Header;
1463} EFI_IFR_MID;
1464
1465typedef struct _EFI_IFR_TOKEN {
1466 EFI_IFR_OP_HEADER Header;
1468
1469//
1470// Flags specifying whether to find the first matching string
1471// or the first non-matching string.
1472//
1473#define EFI_IFR_FLAGS_FIRST_MATCHING 0x00
1474#define EFI_IFR_FLAGS_FIRST_NON_MATCHING 0x01
1475
1476typedef struct _EFI_IFR_SPAN {
1477 EFI_IFR_OP_HEADER Header;
1478 UINT8 Flags;
1479} EFI_IFR_SPAN;
1480
1481typedef struct _EFI_IFR_SECURITY {
1491
1497 EFI_STRING_ID MethodTitle;
1504
1505typedef struct _EFI_IFR_FORM_MAP {
1514 EFI_FORM_ID FormId;
1518 // EFI_IFR_FORM_MAP_METHOD Methods[];
1520
1521typedef struct _EFI_IFR_SET {
1531 EFI_VARSTORE_ID VarStoreId;
1532 union {
1536 EFI_STRING_ID VarName;
1541 } VarStoreInfo;
1546} EFI_IFR_SET;
1547
1548typedef struct _EFI_IFR_GET {
1558 EFI_VARSTORE_ID VarStoreId;
1559 union {
1563 EFI_STRING_ID VarName;
1568 } VarStoreInfo;
1573} EFI_IFR_GET;
1574
1575typedef struct _EFI_IFR_READ {
1576 EFI_IFR_OP_HEADER Header;
1577} EFI_IFR_READ;
1578
1579typedef struct _EFI_IFR_WRITE {
1580 EFI_IFR_OP_HEADER Header;
1582
1583typedef struct _EFI_IFR_MAP {
1584 EFI_IFR_OP_HEADER Header;
1585} EFI_IFR_MAP;
1586//
1587// Definitions for Keyboard Package
1588// Releated definitions are in Section of EFI_HII_DATABASE_PROTOCOL
1589//
1590
1594typedef enum {
1595 EfiKeyLCtrl,
1596 EfiKeyA0,
1597 EfiKeyLAlt,
1598 EfiKeySpaceBar,
1599 EfiKeyA2,
1600 EfiKeyA3,
1601 EfiKeyA4,
1602 EfiKeyRCtrl,
1603 EfiKeyLeftArrow,
1604 EfiKeyDownArrow,
1605 EfiKeyRightArrow,
1606 EfiKeyZero,
1607 EfiKeyPeriod,
1608 EfiKeyEnter,
1609 EfiKeyLShift,
1610 EfiKeyB0,
1611 EfiKeyB1,
1612 EfiKeyB2,
1613 EfiKeyB3,
1614 EfiKeyB4,
1615 EfiKeyB5,
1616 EfiKeyB6,
1617 EfiKeyB7,
1618 EfiKeyB8,
1619 EfiKeyB9,
1620 EfiKeyB10,
1621 EfiKeyRShift,
1622 EfiKeyUpArrow,
1623 EfiKeyOne,
1624 EfiKeyTwo,
1625 EfiKeyThree,
1626 EfiKeyCapsLock,
1627 EfiKeyC1,
1628 EfiKeyC2,
1629 EfiKeyC3,
1630 EfiKeyC4,
1631 EfiKeyC5,
1632 EfiKeyC6,
1633 EfiKeyC7,
1634 EfiKeyC8,
1635 EfiKeyC9,
1636 EfiKeyC10,
1637 EfiKeyC11,
1638 EfiKeyC12,
1639 EfiKeyFour,
1640 EfiKeyFive,
1641 EfiKeySix,
1642 EfiKeyPlus,
1643 EfiKeyTab,
1644 EfiKeyD1,
1645 EfiKeyD2,
1646 EfiKeyD3,
1647 EfiKeyD4,
1648 EfiKeyD5,
1649 EfiKeyD6,
1650 EfiKeyD7,
1651 EfiKeyD8,
1652 EfiKeyD9,
1653 EfiKeyD10,
1654 EfiKeyD11,
1655 EfiKeyD12,
1656 EfiKeyD13,
1657 EfiKeyDel,
1658 EfiKeyEnd,
1659 EfiKeyPgDn,
1660 EfiKeySeven,
1661 EfiKeyEight,
1662 EfiKeyNine,
1663 EfiKeyE0,
1664 EfiKeyE1,
1665 EfiKeyE2,
1666 EfiKeyE3,
1667 EfiKeyE4,
1668 EfiKeyE5,
1669 EfiKeyE6,
1670 EfiKeyE7,
1671 EfiKeyE8,
1672 EfiKeyE9,
1673 EfiKeyE10,
1674 EfiKeyE11,
1675 EfiKeyE12,
1676 EfiKeyBackSpace,
1677 EfiKeyIns,
1678 EfiKeyHome,
1679 EfiKeyPgUp,
1680 EfiKeyNLck,
1681 EfiKeySlash,
1682 EfiKeyAsterisk,
1683 EfiKeyMinus,
1684 EfiKeyEsc,
1685 EfiKeyF1,
1686 EfiKeyF2,
1687 EfiKeyF3,
1688 EfiKeyF4,
1689 EfiKeyF5,
1690 EfiKeyF6,
1691 EfiKeyF7,
1692 EfiKeyF8,
1693 EfiKeyF9,
1694 EfiKeyF10,
1695 EfiKeyF11,
1696 EfiKeyF12,
1697 EfiKeyPrint,
1698 EfiKeySLck,
1699 EfiKeyPause
1700} EFI_KEY;
1701
1702typedef struct {
1710 CHAR16 Unicode;
1728 UINT16 Modifier;
1729 UINT16 AffectedAttribute;
1731
1736#define EFI_AFFECTED_BY_STANDARD_SHIFT 0x0001
1737
1744#define EFI_AFFECTED_BY_CAPS_LOCK 0x0002
1745
1750#define EFI_AFFECTED_BY_NUM_LOCK 0x0004
1751
1752typedef struct {
1753 UINT16 LayoutLength;
1754 EFI_GUID Guid;
1755 UINT32 LayoutDescriptorStringOffset;
1756 UINT8 DescriptorCount;
1757 // EFI_KEY_DESCRIPTOR Descriptors[];
1759
1760typedef struct {
1762 UINT16 LayoutCount;
1763 // EFI_HII_KEYBOARD_LAYOUT Layout[];
1765
1766//
1767// Modifier values
1768//
1769#define EFI_NULL_MODIFIER 0x0000
1770#define EFI_LEFT_CONTROL_MODIFIER 0x0001
1771#define EFI_RIGHT_CONTROL_MODIFIER 0x0002
1772#define EFI_LEFT_ALT_MODIFIER 0x0003
1773#define EFI_RIGHT_ALT_MODIFIER 0x0004
1774#define EFI_ALT_GR_MODIFIER 0x0005
1775#define EFI_INSERT_MODIFIER 0x0006
1776#define EFI_DELETE_MODIFIER 0x0007
1777#define EFI_PAGE_DOWN_MODIFIER 0x0008
1778#define EFI_PAGE_UP_MODIFIER 0x0009
1779#define EFI_HOME_MODIFIER 0x000A
1780#define EFI_END_MODIFIER 0x000B
1781#define EFI_LEFT_SHIFT_MODIFIER 0x000C
1782#define EFI_RIGHT_SHIFT_MODIFIER 0x000D
1783#define EFI_CAPS_LOCK_MODIFIER 0x000E
1784#define EFI_NUM_LOCK_MODIFIER 0x000F
1785#define EFI_LEFT_ARROW_MODIFIER 0x0010
1786#define EFI_RIGHT_ARROW_MODIFIER 0x0011
1787#define EFI_DOWN_ARROW_MODIFIER 0x0012
1788#define EFI_UP_ARROW_MODIFIER 0x0013
1789#define EFI_NS_KEY_MODIFIER 0x0014
1790#define EFI_NS_KEY_DEPENDENCY_MODIFIER 0x0015
1791#define EFI_FUNCTION_KEY_ONE_MODIFIER 0x0016
1792#define EFI_FUNCTION_KEY_TWO_MODIFIER 0x0017
1793#define EFI_FUNCTION_KEY_THREE_MODIFIER 0x0018
1794#define EFI_FUNCTION_KEY_FOUR_MODIFIER 0x0019
1795#define EFI_FUNCTION_KEY_FIVE_MODIFIER 0x001A
1796#define EFI_FUNCTION_KEY_SIX_MODIFIER 0x001B
1797#define EFI_FUNCTION_KEY_SEVEN_MODIFIER 0x001C
1798#define EFI_FUNCTION_KEY_EIGHT_MODIFIER 0x001D
1799#define EFI_FUNCTION_KEY_NINE_MODIFIER 0x001E
1800#define EFI_FUNCTION_KEY_TEN_MODIFIER 0x001F
1801#define EFI_FUNCTION_KEY_ELEVEN_MODIFIER 0x0020
1802#define EFI_FUNCTION_KEY_TWELVE_MODIFIER 0x0021
1803
1804//
1805// Keys that have multiple control functions based on modifier
1806// settings are handled in the keyboard driver implementation.
1807// For instance, PRINT_KEY might have a modifier held down and
1808// is still a nonprinting character, but might have an alternate
1809// control function like SYSREQUEST
1810//
1811#define EFI_PRINT_MODIFIER 0x0022
1812#define EFI_SYS_REQUEST_MODIFIER 0x0023
1813#define EFI_SCROLL_LOCK_MODIFIER 0x0024
1814#define EFI_PAUSE_MODIFIER 0x0025
1815#define EFI_BREAK_MODIFIER 0x0026
1816
1817#define EFI_LEFT_LOGO_MODIFIER 0x0027
1818#define EFI_RIGHT_LOGO_MODIFIER 0x0028
1819#define EFI_MENU_MODIFIER 0x0029
1820
1824typedef struct _EFI_IFR_ANIMATION {
1833 EFI_ANIMATION_ID Id;
1835
1850
1856 UINT8 BlockType;
1857 // UINT8 BlockBody[];
1859
1863#define EFI_HII_AIBT_END 0x00
1864#define EFI_HII_AIBT_OVERLAY_IMAGES 0x10
1865#define EFI_HII_AIBT_CLEAR_IMAGES 0x11
1866#define EFI_HII_AIBT_RESTORE_SCRN 0x12
1867#define EFI_HII_AIBT_OVERLAY_IMAGES_LOOP 0x18
1868#define EFI_HII_AIBT_CLEAR_IMAGES_LOOP 0x19
1869#define EFI_HII_AIBT_RESTORE_SCRN_LOOP 0x1A
1870#define EFI_HII_AIBT_DUPLICATE 0x20
1871#define EFI_HII_AIBT_SKIP2 0x21
1872#define EFI_HII_AIBT_SKIP1 0x22
1873#define EFI_HII_AIBT_EXT1 0x30
1874#define EFI_HII_AIBT_EXT2 0x31
1875#define EFI_HII_AIBT_EXT4 0x32
1876
1881
1894 UINT8 Length;
1896
1909 UINT16 Length;
1911
1924 UINT32 Length;
1926
1932 UINT16 OffsetX;
1937 UINT16 OffsetY;
1942 EFI_IMAGE_ID ImageId;
1948 UINT16 Delay;
1950
1964 EFI_IMAGE_ID DftImageId;
1968 UINT16 Width;
1972 UINT16 Height;
1983
1998 EFI_IMAGE_ID DftImageId;
2002 UINT16 Width;
2006 UINT16 Height;
2022
2037 EFI_IMAGE_ID DftImageId;
2041 UINT16 Width;
2045 UINT16 Height;
2056
2062
2069
2076
2085 EFI_ANIMATION_ID AnimationId;
2087
2097
2107
2108#pragma pack()
2109
2118#define STRING_TOKEN(t) t
2119
2124#define IMAGE_TOKEN(t) t
2125
2126#endif
struct _EFI_IFR_ANIMATION EFI_IFR_ANIMATION
struct _EFI_HII_AIBT_OVERLAY_IMAGES_BLOCK EFI_HII_AIBT_OVERLAY_IMAGES_BLOCK
struct _EFI_HII_AIBT_CLEAR_IMAGES_BLOCK EFI_HII_AIBT_CLEAR_IMAGES_BLOCK
struct _EFI_HII_GUID_PACKAGE_HDR EFI_HII_GUID_PACKAGE_HDR
EFI_HII_AIBT_OVERLAY_IMAGES_BLOCK EFI_HII_AIBT_OVERLAY_IMAGES_LOOP_BLOCK
EFI_HII_AIBT_CLEAR_IMAGES_BLOCK EFI_HII_AIBT_CLEAR_IMAGES_LOOP_BLOCK
struct _EFI_HII_AIBT_RESTORE_SCRN_BLOCK EFI_HII_AIBT_RESTORE_SCRN_BLOCK
EFI_HII_AIBT_RESTORE_SCRN_BLOCK EFI_HII_AIBT_RESTORE_SCRN_LOOP_BLOCK
struct _EFI_HII_ANIMATION_PACKAGE_HDR EFI_HII_ANIMATION_PACKAGE_HDR
struct _EFI_HII_DEVICE_PATH_PACKAGE_HDR EFI_HII_DEVICE_PATH_PACKAGE_HDR
struct _EFI_HII_AIBT_EXT1_BLOCK EFI_HII_AIBT_EXT1_BLOCK
struct _EFI_HII_FONT_PACKAGE_HDR EFI_HII_FONT_PACKAGE_HDR
struct _EFI_HII_FORM_PACKAGE_HDR EFI_HII_FORM_PACKAGE_HDR
struct _EFI_HII_AIBT_DUPLICATE_BLOCK EFI_HII_AIBT_DUPLICATE_BLOCK
struct _EFI_HII_STRING_PACKAGE_HDR EFI_HII_STRING_PACKAGE_HDR
struct _EFI_HII_ANIMATION_BLOCK EFI_HII_ANIMATION_BLOCK
struct _EFI_HII_AIBT_SKIP1_BLOCK EFI_HII_AIBT_SKIP1_BLOCK
struct _EFI_HII_AIBT_SKIP2_BLOCK EFI_HII_AIBT_SKIP2_BLOCK
VOID * EFI_HII_HANDLE
struct _EFI_HII_SIMPLE_FONT_PACKAGE_HDR EFI_HII_SIMPLE_FONT_PACKAGE_HDR
Definition: Base.h:213
EFI_STRING_ID string
EFI_IFR_TYPE_STRING, EFI_IFR_TYPE_ACTION.
EFI_HII_REF ref
EFI_IFR_TYPE_REF.