]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - MdePkg/Include/Uefi/UefiInternalFormRepresentation.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / MdePkg / Include / Uefi / UefiInternalFormRepresentation.h
... / ...
CommitLineData
1/** @file\r
2 This file defines the encoding for the VFR (Visual Form Representation) language.\r
3 IFR is primarily consumed by the EFI presentation engine, and produced by EFI\r
4 internal application and drivers as well as all add-in card option-ROM drivers\r
5\r
6Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
7(C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>\r
8SPDX-License-Identifier: BSD-2-Clause-Patent\r
9\r
10 @par Revision Reference:\r
11 These definitions are from UEFI 2.1 and 2.2.\r
12\r
13**/\r
14\r
15#ifndef __UEFI_INTERNAL_FORMREPRESENTATION_H__\r
16#define __UEFI_INTERNAL_FORMREPRESENTATION_H__\r
17\r
18#include <Guid/HiiFormMapMethodGuid.h>\r
19\r
20///\r
21/// The following types are currently defined:\r
22///\r
23typedef VOID *EFI_HII_HANDLE;\r
24typedef CHAR16 *EFI_STRING;\r
25typedef UINT16 EFI_IMAGE_ID;\r
26typedef UINT16 EFI_QUESTION_ID;\r
27typedef UINT16 EFI_STRING_ID;\r
28typedef UINT16 EFI_FORM_ID;\r
29typedef UINT16 EFI_VARSTORE_ID;\r
30typedef UINT16 EFI_ANIMATION_ID;\r
31\r
32typedef UINT16 EFI_DEFAULT_ID;\r
33\r
34typedef UINT32 EFI_HII_FONT_STYLE;\r
35\r
36#pragma pack(1)\r
37\r
38//\r
39// Definitions for Package Lists and Package Headers\r
40// Section 27.3.1\r
41//\r
42\r
43///\r
44/// The header found at the start of each package list.\r
45///\r
46typedef struct {\r
47 EFI_GUID PackageListGuid;\r
48 UINT32 PackageLength;\r
49} EFI_HII_PACKAGE_LIST_HEADER;\r
50\r
51///\r
52/// The header found at the start of each package.\r
53///\r
54typedef struct {\r
55 UINT32 Length : 24;\r
56 UINT32 Type : 8;\r
57 // UINT8 Data[...];\r
58} EFI_HII_PACKAGE_HEADER;\r
59\r
60//\r
61// Value of HII package type\r
62//\r
63#define EFI_HII_PACKAGE_TYPE_ALL 0x00\r
64#define EFI_HII_PACKAGE_TYPE_GUID 0x01\r
65#define EFI_HII_PACKAGE_FORMS 0x02\r
66#define EFI_HII_PACKAGE_STRINGS 0x04\r
67#define EFI_HII_PACKAGE_FONTS 0x05\r
68#define EFI_HII_PACKAGE_IMAGES 0x06\r
69#define EFI_HII_PACKAGE_SIMPLE_FONTS 0x07\r
70#define EFI_HII_PACKAGE_DEVICE_PATH 0x08\r
71#define EFI_HII_PACKAGE_KEYBOARD_LAYOUT 0x09\r
72#define EFI_HII_PACKAGE_ANIMATIONS 0x0A\r
73#define EFI_HII_PACKAGE_END 0xDF\r
74#define EFI_HII_PACKAGE_TYPE_SYSTEM_BEGIN 0xE0\r
75#define EFI_HII_PACKAGE_TYPE_SYSTEM_END 0xFF\r
76\r
77//\r
78// Definitions for Simplified Font Package\r
79//\r
80\r
81///\r
82/// Contents of EFI_NARROW_GLYPH.Attributes.\r
83///@{\r
84#define EFI_GLYPH_NON_SPACING 0x01\r
85#define EFI_GLYPH_WIDE 0x02\r
86#define EFI_GLYPH_HEIGHT 19\r
87#define EFI_GLYPH_WIDTH 8\r
88///@}\r
89\r
90///\r
91/// The EFI_NARROW_GLYPH has a preferred dimension (w x h) of 8 x 19 pixels.\r
92///\r
93typedef struct {\r
94 ///\r
95 /// The Unicode representation of the glyph. The term weight is the\r
96 /// technical term for a character code.\r
97 ///\r
98 CHAR16 UnicodeWeight;\r
99 ///\r
100 /// The data element containing the glyph definitions.\r
101 ///\r
102 UINT8 Attributes;\r
103 ///\r
104 /// The column major glyph representation of the character. Bits\r
105 /// with values of one indicate that the corresponding pixel is to be\r
106 /// on when normally displayed; those with zero are off.\r
107 ///\r
108 UINT8 GlyphCol1[EFI_GLYPH_HEIGHT];\r
109} EFI_NARROW_GLYPH;\r
110\r
111///\r
112/// The EFI_WIDE_GLYPH has a preferred dimension (w x h) of 16 x 19 pixels, which is large enough\r
113/// to accommodate logographic characters.\r
114///\r
115typedef struct {\r
116 ///\r
117 /// The Unicode representation of the glyph. The term weight is the\r
118 /// technical term for a character code.\r
119 ///\r
120 CHAR16 UnicodeWeight;\r
121 ///\r
122 /// The data element containing the glyph definitions.\r
123 ///\r
124 UINT8 Attributes;\r
125 ///\r
126 /// The column major glyph representation of the character. Bits\r
127 /// with values of one indicate that the corresponding pixel is to be\r
128 /// on when normally displayed; those with zero are off.\r
129 ///\r
130 UINT8 GlyphCol1[EFI_GLYPH_HEIGHT];\r
131 ///\r
132 /// The column major glyph representation of the character. Bits\r
133 /// with values of one indicate that the corresponding pixel is to be\r
134 /// on when normally displayed; those with zero are off.\r
135 ///\r
136 UINT8 GlyphCol2[EFI_GLYPH_HEIGHT];\r
137 ///\r
138 /// Ensures that sizeof (EFI_WIDE_GLYPH) is twice the\r
139 /// sizeof (EFI_NARROW_GLYPH). The contents of Pad must\r
140 /// be zero.\r
141 ///\r
142 UINT8 Pad[3];\r
143} EFI_WIDE_GLYPH;\r
144\r
145///\r
146/// A simplified font package consists of a font header\r
147/// followed by a series of glyph structures.\r
148///\r
149typedef struct _EFI_HII_SIMPLE_FONT_PACKAGE_HDR {\r
150 EFI_HII_PACKAGE_HEADER Header;\r
151 UINT16 NumberOfNarrowGlyphs;\r
152 UINT16 NumberOfWideGlyphs;\r
153 // EFI_NARROW_GLYPH NarrowGlyphs[];\r
154 // EFI_WIDE_GLYPH WideGlyphs[];\r
155} EFI_HII_SIMPLE_FONT_PACKAGE_HDR;\r
156\r
157//\r
158// Definitions for Font Package\r
159// Section 27.3.3\r
160//\r
161\r
162//\r
163// Value for font style\r
164//\r
165#define EFI_HII_FONT_STYLE_NORMAL 0x00000000\r
166#define EFI_HII_FONT_STYLE_BOLD 0x00000001\r
167#define EFI_HII_FONT_STYLE_ITALIC 0x00000002\r
168#define EFI_HII_FONT_STYLE_EMBOSS 0x00010000\r
169#define EFI_HII_FONT_STYLE_OUTLINE 0x00020000\r
170#define EFI_HII_FONT_STYLE_SHADOW 0x00040000\r
171#define EFI_HII_FONT_STYLE_UNDERLINE 0x00080000\r
172#define EFI_HII_FONT_STYLE_DBL_UNDER 0x00100000\r
173\r
174typedef struct _EFI_HII_GLYPH_INFO {\r
175 UINT16 Width;\r
176 UINT16 Height;\r
177 INT16 OffsetX;\r
178 INT16 OffsetY;\r
179 INT16 AdvanceX;\r
180} EFI_HII_GLYPH_INFO;\r
181\r
182///\r
183/// The fixed header consists of a standard record header,\r
184/// then the character values in this section, the flags\r
185/// (including the encoding method) and the offsets of the glyph\r
186/// information, the glyph bitmaps and the character map.\r
187///\r
188typedef struct _EFI_HII_FONT_PACKAGE_HDR {\r
189 EFI_HII_PACKAGE_HEADER Header;\r
190 UINT32 HdrSize;\r
191 UINT32 GlyphBlockOffset;\r
192 EFI_HII_GLYPH_INFO Cell;\r
193 EFI_HII_FONT_STYLE FontStyle;\r
194 CHAR16 FontFamily[1];\r
195} EFI_HII_FONT_PACKAGE_HDR;\r
196\r
197//\r
198// Value of different glyph info block types\r
199//\r
200#define EFI_HII_GIBT_END 0x00\r
201#define EFI_HII_GIBT_GLYPH 0x10\r
202#define EFI_HII_GIBT_GLYPHS 0x11\r
203#define EFI_HII_GIBT_GLYPH_DEFAULT 0x12\r
204#define EFI_HII_GIBT_GLYPHS_DEFAULT 0x13\r
205#define EFI_HII_GIBT_GLYPH_VARIABILITY 0x14\r
206#define EFI_HII_GIBT_DUPLICATE 0x20\r
207#define EFI_HII_GIBT_SKIP2 0x21\r
208#define EFI_HII_GIBT_SKIP1 0x22\r
209#define EFI_HII_GIBT_DEFAULTS 0x23\r
210#define EFI_HII_GIBT_EXT1 0x30\r
211#define EFI_HII_GIBT_EXT2 0x31\r
212#define EFI_HII_GIBT_EXT4 0x32\r
213\r
214typedef struct _EFI_HII_GLYPH_BLOCK {\r
215 UINT8 BlockType;\r
216} EFI_HII_GLYPH_BLOCK;\r
217\r
218//\r
219// Definition of different glyph info block types\r
220//\r
221\r
222typedef struct _EFI_HII_GIBT_DEFAULTS_BLOCK {\r
223 EFI_HII_GLYPH_BLOCK Header;\r
224 EFI_HII_GLYPH_INFO Cell;\r
225} EFI_HII_GIBT_DEFAULTS_BLOCK;\r
226\r
227typedef struct _EFI_HII_GIBT_DUPLICATE_BLOCK {\r
228 EFI_HII_GLYPH_BLOCK Header;\r
229 CHAR16 CharValue;\r
230} EFI_HII_GIBT_DUPLICATE_BLOCK;\r
231\r
232typedef struct _EFI_GLYPH_GIBT_END_BLOCK {\r
233 EFI_HII_GLYPH_BLOCK Header;\r
234} EFI_GLYPH_GIBT_END_BLOCK;\r
235\r
236typedef struct _EFI_HII_GIBT_EXT1_BLOCK {\r
237 EFI_HII_GLYPH_BLOCK Header;\r
238 UINT8 BlockType2;\r
239 UINT8 Length;\r
240} EFI_HII_GIBT_EXT1_BLOCK;\r
241\r
242typedef struct _EFI_HII_GIBT_EXT2_BLOCK {\r
243 EFI_HII_GLYPH_BLOCK Header;\r
244 UINT8 BlockType2;\r
245 UINT16 Length;\r
246} EFI_HII_GIBT_EXT2_BLOCK;\r
247\r
248typedef struct _EFI_HII_GIBT_EXT4_BLOCK {\r
249 EFI_HII_GLYPH_BLOCK Header;\r
250 UINT8 BlockType2;\r
251 UINT32 Length;\r
252} EFI_HII_GIBT_EXT4_BLOCK;\r
253\r
254typedef struct _EFI_HII_GIBT_GLYPH_BLOCK {\r
255 EFI_HII_GLYPH_BLOCK Header;\r
256 EFI_HII_GLYPH_INFO Cell;\r
257 UINT8 BitmapData[1];\r
258} EFI_HII_GIBT_GLYPH_BLOCK;\r
259\r
260typedef struct _EFI_HII_GIBT_GLYPHS_BLOCK {\r
261 EFI_HII_GLYPH_BLOCK Header;\r
262 EFI_HII_GLYPH_INFO Cell;\r
263 UINT16 Count;\r
264 UINT8 BitmapData[1];\r
265} EFI_HII_GIBT_GLYPHS_BLOCK;\r
266\r
267typedef struct _EFI_HII_GIBT_GLYPH_DEFAULT_BLOCK {\r
268 EFI_HII_GLYPH_BLOCK Header;\r
269 UINT8 BitmapData[1];\r
270} EFI_HII_GIBT_GLYPH_DEFAULT_BLOCK;\r
271\r
272typedef struct _EFI_HII_GIBT_GLYPHS_DEFAULT_BLOCK {\r
273 EFI_HII_GLYPH_BLOCK Header;\r
274 UINT16 Count;\r
275 UINT8 BitmapData[1];\r
276} EFI_HII_GIBT_GLYPHS_DEFAULT_BLOCK;\r
277\r
278typedef struct _EFI_HII_GIBT_VARIABILITY_BLOCK {\r
279 EFI_HII_GLYPH_BLOCK Header;\r
280 EFI_HII_GLYPH_INFO Cell;\r
281 UINT8 GlyphPackInBits;\r
282 UINT8 BitmapData[1];\r
283} EFI_HII_GIBT_VARIABILITY_BLOCK;\r
284\r
285typedef struct _EFI_HII_GIBT_SKIP1_BLOCK {\r
286 EFI_HII_GLYPH_BLOCK Header;\r
287 UINT8 SkipCount;\r
288} EFI_HII_GIBT_SKIP1_BLOCK;\r
289\r
290typedef struct _EFI_HII_GIBT_SKIP2_BLOCK {\r
291 EFI_HII_GLYPH_BLOCK Header;\r
292 UINT16 SkipCount;\r
293} EFI_HII_GIBT_SKIP2_BLOCK;\r
294\r
295//\r
296// Definitions for Device Path Package\r
297// Section 27.3.4\r
298//\r
299\r
300///\r
301/// The device path package is used to carry a device path\r
302/// associated with the package list.\r
303///\r
304typedef struct _EFI_HII_DEVICE_PATH_PACKAGE_HDR {\r
305 EFI_HII_PACKAGE_HEADER Header;\r
306 // EFI_DEVICE_PATH_PROTOCOL DevicePath[];\r
307} EFI_HII_DEVICE_PATH_PACKAGE_HDR;\r
308\r
309//\r
310// Definitions for GUID Package\r
311// Section 27.3.5\r
312//\r
313\r
314///\r
315/// The GUID package is used to carry data where the format is defined by a GUID.\r
316///\r
317typedef struct _EFI_HII_GUID_PACKAGE_HDR {\r
318 EFI_HII_PACKAGE_HEADER Header;\r
319 EFI_GUID Guid;\r
320 // Data per GUID definition may follow\r
321} EFI_HII_GUID_PACKAGE_HDR;\r
322\r
323//\r
324// Definitions for String Package\r
325// Section 27.3.6\r
326//\r
327\r
328#define UEFI_CONFIG_LANG "x-UEFI"\r
329#define UEFI_CONFIG_LANG_2 "x-i-UEFI"\r
330\r
331///\r
332/// The fixed header consists of a standard record header and then the string identifiers\r
333/// contained in this section and the offsets of the string and language information.\r
334///\r
335typedef struct _EFI_HII_STRING_PACKAGE_HDR {\r
336 EFI_HII_PACKAGE_HEADER Header;\r
337 UINT32 HdrSize;\r
338 UINT32 StringInfoOffset;\r
339 CHAR16 LanguageWindow[16];\r
340 EFI_STRING_ID LanguageName;\r
341 CHAR8 Language[1];\r
342} EFI_HII_STRING_PACKAGE_HDR;\r
343\r
344typedef struct {\r
345 UINT8 BlockType;\r
346} EFI_HII_STRING_BLOCK;\r
347\r
348//\r
349// Value of different string information block types\r
350//\r
351#define EFI_HII_SIBT_END 0x00\r
352#define EFI_HII_SIBT_STRING_SCSU 0x10\r
353#define EFI_HII_SIBT_STRING_SCSU_FONT 0x11\r
354#define EFI_HII_SIBT_STRINGS_SCSU 0x12\r
355#define EFI_HII_SIBT_STRINGS_SCSU_FONT 0x13\r
356#define EFI_HII_SIBT_STRING_UCS2 0x14\r
357#define EFI_HII_SIBT_STRING_UCS2_FONT 0x15\r
358#define EFI_HII_SIBT_STRINGS_UCS2 0x16\r
359#define EFI_HII_SIBT_STRINGS_UCS2_FONT 0x17\r
360#define EFI_HII_SIBT_DUPLICATE 0x20\r
361#define EFI_HII_SIBT_SKIP2 0x21\r
362#define EFI_HII_SIBT_SKIP1 0x22\r
363#define EFI_HII_SIBT_EXT1 0x30\r
364#define EFI_HII_SIBT_EXT2 0x31\r
365#define EFI_HII_SIBT_EXT4 0x32\r
366#define EFI_HII_SIBT_FONT 0x40\r
367\r
368//\r
369// Definition of different string information block types\r
370//\r
371\r
372typedef struct _EFI_HII_SIBT_DUPLICATE_BLOCK {\r
373 EFI_HII_STRING_BLOCK Header;\r
374 EFI_STRING_ID StringId;\r
375} EFI_HII_SIBT_DUPLICATE_BLOCK;\r
376\r
377typedef struct _EFI_HII_SIBT_END_BLOCK {\r
378 EFI_HII_STRING_BLOCK Header;\r
379} EFI_HII_SIBT_END_BLOCK;\r
380\r
381typedef struct _EFI_HII_SIBT_EXT1_BLOCK {\r
382 EFI_HII_STRING_BLOCK Header;\r
383 UINT8 BlockType2;\r
384 UINT8 Length;\r
385} EFI_HII_SIBT_EXT1_BLOCK;\r
386\r
387typedef struct _EFI_HII_SIBT_EXT2_BLOCK {\r
388 EFI_HII_STRING_BLOCK Header;\r
389 UINT8 BlockType2;\r
390 UINT16 Length;\r
391} EFI_HII_SIBT_EXT2_BLOCK;\r
392\r
393typedef struct _EFI_HII_SIBT_EXT4_BLOCK {\r
394 EFI_HII_STRING_BLOCK Header;\r
395 UINT8 BlockType2;\r
396 UINT32 Length;\r
397} EFI_HII_SIBT_EXT4_BLOCK;\r
398\r
399typedef struct _EFI_HII_SIBT_FONT_BLOCK {\r
400 EFI_HII_SIBT_EXT2_BLOCK Header;\r
401 UINT8 FontId;\r
402 UINT16 FontSize;\r
403 EFI_HII_FONT_STYLE FontStyle;\r
404 CHAR16 FontName[1];\r
405} EFI_HII_SIBT_FONT_BLOCK;\r
406\r
407typedef struct _EFI_HII_SIBT_SKIP1_BLOCK {\r
408 EFI_HII_STRING_BLOCK Header;\r
409 UINT8 SkipCount;\r
410} EFI_HII_SIBT_SKIP1_BLOCK;\r
411\r
412typedef struct _EFI_HII_SIBT_SKIP2_BLOCK {\r
413 EFI_HII_STRING_BLOCK Header;\r
414 UINT16 SkipCount;\r
415} EFI_HII_SIBT_SKIP2_BLOCK;\r
416\r
417typedef struct _EFI_HII_SIBT_STRING_SCSU_BLOCK {\r
418 EFI_HII_STRING_BLOCK Header;\r
419 UINT8 StringText[1];\r
420} EFI_HII_SIBT_STRING_SCSU_BLOCK;\r
421\r
422typedef struct _EFI_HII_SIBT_STRING_SCSU_FONT_BLOCK {\r
423 EFI_HII_STRING_BLOCK Header;\r
424 UINT8 FontIdentifier;\r
425 UINT8 StringText[1];\r
426} EFI_HII_SIBT_STRING_SCSU_FONT_BLOCK;\r
427\r
428typedef struct _EFI_HII_SIBT_STRINGS_SCSU_BLOCK {\r
429 EFI_HII_STRING_BLOCK Header;\r
430 UINT16 StringCount;\r
431 UINT8 StringText[1];\r
432} EFI_HII_SIBT_STRINGS_SCSU_BLOCK;\r
433\r
434typedef struct _EFI_HII_SIBT_STRINGS_SCSU_FONT_BLOCK {\r
435 EFI_HII_STRING_BLOCK Header;\r
436 UINT8 FontIdentifier;\r
437 UINT16 StringCount;\r
438 UINT8 StringText[1];\r
439} EFI_HII_SIBT_STRINGS_SCSU_FONT_BLOCK;\r
440\r
441typedef struct _EFI_HII_SIBT_STRING_UCS2_BLOCK {\r
442 EFI_HII_STRING_BLOCK Header;\r
443 CHAR16 StringText[1];\r
444} EFI_HII_SIBT_STRING_UCS2_BLOCK;\r
445\r
446typedef struct _EFI_HII_SIBT_STRING_UCS2_FONT_BLOCK {\r
447 EFI_HII_STRING_BLOCK Header;\r
448 UINT8 FontIdentifier;\r
449 CHAR16 StringText[1];\r
450} EFI_HII_SIBT_STRING_UCS2_FONT_BLOCK;\r
451\r
452typedef struct _EFI_HII_SIBT_STRINGS_UCS2_BLOCK {\r
453 EFI_HII_STRING_BLOCK Header;\r
454 UINT16 StringCount;\r
455 CHAR16 StringText[1];\r
456} EFI_HII_SIBT_STRINGS_UCS2_BLOCK;\r
457\r
458typedef struct _EFI_HII_SIBT_STRINGS_UCS2_FONT_BLOCK {\r
459 EFI_HII_STRING_BLOCK Header;\r
460 UINT8 FontIdentifier;\r
461 UINT16 StringCount;\r
462 CHAR16 StringText[1];\r
463} EFI_HII_SIBT_STRINGS_UCS2_FONT_BLOCK;\r
464\r
465//\r
466// Definitions for Image Package\r
467// Section 27.3.7\r
468//\r
469\r
470typedef struct _EFI_HII_IMAGE_PACKAGE_HDR {\r
471 EFI_HII_PACKAGE_HEADER Header;\r
472 UINT32 ImageInfoOffset;\r
473 UINT32 PaletteInfoOffset;\r
474} EFI_HII_IMAGE_PACKAGE_HDR;\r
475\r
476typedef struct _EFI_HII_IMAGE_BLOCK {\r
477 UINT8 BlockType;\r
478} EFI_HII_IMAGE_BLOCK;\r
479\r
480//\r
481// Value of different image information block types\r
482//\r
483#define EFI_HII_IIBT_END 0x00\r
484#define EFI_HII_IIBT_IMAGE_1BIT 0x10\r
485#define EFI_HII_IIBT_IMAGE_1BIT_TRANS 0x11\r
486#define EFI_HII_IIBT_IMAGE_4BIT 0x12\r
487#define EFI_HII_IIBT_IMAGE_4BIT_TRANS 0x13\r
488#define EFI_HII_IIBT_IMAGE_8BIT 0x14\r
489#define EFI_HII_IIBT_IMAGE_8BIT_TRANS 0x15\r
490#define EFI_HII_IIBT_IMAGE_24BIT 0x16\r
491#define EFI_HII_IIBT_IMAGE_24BIT_TRANS 0x17\r
492#define EFI_HII_IIBT_IMAGE_JPEG 0x18\r
493#define EFI_HII_IIBT_IMAGE_PNG 0x19\r
494#define EFI_HII_IIBT_DUPLICATE 0x20\r
495#define EFI_HII_IIBT_SKIP2 0x21\r
496#define EFI_HII_IIBT_SKIP1 0x22\r
497#define EFI_HII_IIBT_EXT1 0x30\r
498#define EFI_HII_IIBT_EXT2 0x31\r
499#define EFI_HII_IIBT_EXT4 0x32\r
500\r
501//\r
502// Definition of different image information block types\r
503//\r
504\r
505typedef struct _EFI_HII_IIBT_END_BLOCK {\r
506 EFI_HII_IMAGE_BLOCK Header;\r
507} EFI_HII_IIBT_END_BLOCK;\r
508\r
509typedef struct _EFI_HII_IIBT_EXT1_BLOCK {\r
510 EFI_HII_IMAGE_BLOCK Header;\r
511 UINT8 BlockType2;\r
512 UINT8 Length;\r
513} EFI_HII_IIBT_EXT1_BLOCK;\r
514\r
515typedef struct _EFI_HII_IIBT_EXT2_BLOCK {\r
516 EFI_HII_IMAGE_BLOCK Header;\r
517 UINT8 BlockType2;\r
518 UINT16 Length;\r
519} EFI_HII_IIBT_EXT2_BLOCK;\r
520\r
521typedef struct _EFI_HII_IIBT_EXT4_BLOCK {\r
522 EFI_HII_IMAGE_BLOCK Header;\r
523 UINT8 BlockType2;\r
524 UINT32 Length;\r
525} EFI_HII_IIBT_EXT4_BLOCK;\r
526\r
527typedef struct _EFI_HII_IIBT_IMAGE_1BIT_BASE {\r
528 UINT16 Width;\r
529 UINT16 Height;\r
530 UINT8 Data[1];\r
531} EFI_HII_IIBT_IMAGE_1BIT_BASE;\r
532\r
533typedef struct _EFI_HII_IIBT_IMAGE_1BIT_BLOCK {\r
534 EFI_HII_IMAGE_BLOCK Header;\r
535 UINT8 PaletteIndex;\r
536 EFI_HII_IIBT_IMAGE_1BIT_BASE Bitmap;\r
537} EFI_HII_IIBT_IMAGE_1BIT_BLOCK;\r
538\r
539typedef struct _EFI_HII_IIBT_IMAGE_1BIT_TRANS_BLOCK {\r
540 EFI_HII_IMAGE_BLOCK Header;\r
541 UINT8 PaletteIndex;\r
542 EFI_HII_IIBT_IMAGE_1BIT_BASE Bitmap;\r
543} EFI_HII_IIBT_IMAGE_1BIT_TRANS_BLOCK;\r
544\r
545typedef struct _EFI_HII_RGB_PIXEL {\r
546 UINT8 b;\r
547 UINT8 g;\r
548 UINT8 r;\r
549} EFI_HII_RGB_PIXEL;\r
550\r
551typedef struct _EFI_HII_IIBT_IMAGE_24BIT_BASE {\r
552 UINT16 Width;\r
553 UINT16 Height;\r
554 EFI_HII_RGB_PIXEL Bitmap[1];\r
555} EFI_HII_IIBT_IMAGE_24BIT_BASE;\r
556\r
557typedef struct _EFI_HII_IIBT_IMAGE_24BIT_BLOCK {\r
558 EFI_HII_IMAGE_BLOCK Header;\r
559 EFI_HII_IIBT_IMAGE_24BIT_BASE Bitmap;\r
560} EFI_HII_IIBT_IMAGE_24BIT_BLOCK;\r
561\r
562typedef struct _EFI_HII_IIBT_IMAGE_24BIT_TRANS_BLOCK {\r
563 EFI_HII_IMAGE_BLOCK Header;\r
564 EFI_HII_IIBT_IMAGE_24BIT_BASE Bitmap;\r
565} EFI_HII_IIBT_IMAGE_24BIT_TRANS_BLOCK;\r
566\r
567typedef struct _EFI_HII_IIBT_IMAGE_4BIT_BASE {\r
568 UINT16 Width;\r
569 UINT16 Height;\r
570 UINT8 Data[1];\r
571} EFI_HII_IIBT_IMAGE_4BIT_BASE;\r
572\r
573typedef struct _EFI_HII_IIBT_IMAGE_4BIT_BLOCK {\r
574 EFI_HII_IMAGE_BLOCK Header;\r
575 UINT8 PaletteIndex;\r
576 EFI_HII_IIBT_IMAGE_4BIT_BASE Bitmap;\r
577} EFI_HII_IIBT_IMAGE_4BIT_BLOCK;\r
578\r
579typedef struct _EFI_HII_IIBT_IMAGE_4BIT_TRANS_BLOCK {\r
580 EFI_HII_IMAGE_BLOCK Header;\r
581 UINT8 PaletteIndex;\r
582 EFI_HII_IIBT_IMAGE_4BIT_BASE Bitmap;\r
583} EFI_HII_IIBT_IMAGE_4BIT_TRANS_BLOCK;\r
584\r
585typedef struct _EFI_HII_IIBT_IMAGE_8BIT_BASE {\r
586 UINT16 Width;\r
587 UINT16 Height;\r
588 UINT8 Data[1];\r
589} EFI_HII_IIBT_IMAGE_8BIT_BASE;\r
590\r
591typedef struct _EFI_HII_IIBT_IMAGE_8BIT_PALETTE_BLOCK {\r
592 EFI_HII_IMAGE_BLOCK Header;\r
593 UINT8 PaletteIndex;\r
594 EFI_HII_IIBT_IMAGE_8BIT_BASE Bitmap;\r
595} EFI_HII_IIBT_IMAGE_8BIT_BLOCK;\r
596\r
597typedef struct _EFI_HII_IIBT_IMAGE_8BIT_TRANS_BLOCK {\r
598 EFI_HII_IMAGE_BLOCK Header;\r
599 UINT8 PaletteIndex;\r
600 EFI_HII_IIBT_IMAGE_8BIT_BASE Bitmap;\r
601} EFI_HII_IIBT_IMAGE_8BIT_TRAN_BLOCK;\r
602\r
603typedef struct _EFI_HII_IIBT_DUPLICATE_BLOCK {\r
604 EFI_HII_IMAGE_BLOCK Header;\r
605 EFI_IMAGE_ID ImageId;\r
606} EFI_HII_IIBT_DUPLICATE_BLOCK;\r
607\r
608typedef struct _EFI_HII_IIBT_JPEG_BLOCK {\r
609 EFI_HII_IMAGE_BLOCK Header;\r
610 UINT32 Size;\r
611 UINT8 Data[1];\r
612} EFI_HII_IIBT_JPEG_BLOCK;\r
613\r
614typedef struct _EFI_HII_IIBT_PNG_BLOCK {\r
615 EFI_HII_IMAGE_BLOCK Header;\r
616 UINT32 Size;\r
617 UINT8 Data[1];\r
618} EFI_HII_IIBT_PNG_BLOCK;\r
619\r
620typedef struct _EFI_HII_IIBT_SKIP1_BLOCK {\r
621 EFI_HII_IMAGE_BLOCK Header;\r
622 UINT8 SkipCount;\r
623} EFI_HII_IIBT_SKIP1_BLOCK;\r
624\r
625typedef struct _EFI_HII_IIBT_SKIP2_BLOCK {\r
626 EFI_HII_IMAGE_BLOCK Header;\r
627 UINT16 SkipCount;\r
628} EFI_HII_IIBT_SKIP2_BLOCK;\r
629\r
630//\r
631// Definitions for Palette Information\r
632//\r
633\r
634typedef struct _EFI_HII_IMAGE_PALETTE_INFO_HEADER {\r
635 UINT16 PaletteCount;\r
636} EFI_HII_IMAGE_PALETTE_INFO_HEADER;\r
637\r
638typedef struct _EFI_HII_IMAGE_PALETTE_INFO {\r
639 UINT16 PaletteSize;\r
640 EFI_HII_RGB_PIXEL PaletteValue[1];\r
641} EFI_HII_IMAGE_PALETTE_INFO;\r
642\r
643//\r
644// Definitions for Forms Package\r
645// Section 27.3.8\r
646//\r
647\r
648///\r
649/// The Form package is used to carry form-based encoding data.\r
650///\r
651typedef struct _EFI_HII_FORM_PACKAGE_HDR {\r
652 EFI_HII_PACKAGE_HEADER Header;\r
653 // EFI_IFR_OP_HEADER OpCodeHeader;\r
654 // More op-codes follow\r
655} EFI_HII_FORM_PACKAGE_HDR;\r
656\r
657typedef struct {\r
658 UINT8 Hour;\r
659 UINT8 Minute;\r
660 UINT8 Second;\r
661} EFI_HII_TIME;\r
662\r
663typedef struct {\r
664 UINT16 Year;\r
665 UINT8 Month;\r
666 UINT8 Day;\r
667} EFI_HII_DATE;\r
668\r
669typedef struct {\r
670 EFI_QUESTION_ID QuestionId;\r
671 EFI_FORM_ID FormId;\r
672 EFI_GUID FormSetGuid;\r
673 EFI_STRING_ID DevicePath;\r
674} EFI_HII_REF;\r
675\r
676typedef union {\r
677 UINT8 u8;\r
678 UINT16 u16;\r
679 UINT32 u32;\r
680 UINT64 u64;\r
681 BOOLEAN b;\r
682 EFI_HII_TIME time;\r
683 EFI_HII_DATE date;\r
684 EFI_STRING_ID string; ///< EFI_IFR_TYPE_STRING, EFI_IFR_TYPE_ACTION\r
685 EFI_HII_REF ref; ///< EFI_IFR_TYPE_REF\r
686 // UINT8 buffer[]; ///< EFI_IFR_TYPE_BUFFER\r
687} EFI_IFR_TYPE_VALUE;\r
688\r
689//\r
690// IFR Opcodes\r
691//\r
692#define EFI_IFR_FORM_OP 0x01\r
693#define EFI_IFR_SUBTITLE_OP 0x02\r
694#define EFI_IFR_TEXT_OP 0x03\r
695#define EFI_IFR_IMAGE_OP 0x04\r
696#define EFI_IFR_ONE_OF_OP 0x05\r
697#define EFI_IFR_CHECKBOX_OP 0x06\r
698#define EFI_IFR_NUMERIC_OP 0x07\r
699#define EFI_IFR_PASSWORD_OP 0x08\r
700#define EFI_IFR_ONE_OF_OPTION_OP 0x09\r
701#define EFI_IFR_SUPPRESS_IF_OP 0x0A\r
702#define EFI_IFR_LOCKED_OP 0x0B\r
703#define EFI_IFR_ACTION_OP 0x0C\r
704#define EFI_IFR_RESET_BUTTON_OP 0x0D\r
705#define EFI_IFR_FORM_SET_OP 0x0E\r
706#define EFI_IFR_REF_OP 0x0F\r
707#define EFI_IFR_NO_SUBMIT_IF_OP 0x10\r
708#define EFI_IFR_INCONSISTENT_IF_OP 0x11\r
709#define EFI_IFR_EQ_ID_VAL_OP 0x12\r
710#define EFI_IFR_EQ_ID_ID_OP 0x13\r
711#define EFI_IFR_EQ_ID_VAL_LIST_OP 0x14\r
712#define EFI_IFR_AND_OP 0x15\r
713#define EFI_IFR_OR_OP 0x16\r
714#define EFI_IFR_NOT_OP 0x17\r
715#define EFI_IFR_RULE_OP 0x18\r
716#define EFI_IFR_GRAY_OUT_IF_OP 0x19\r
717#define EFI_IFR_DATE_OP 0x1A\r
718#define EFI_IFR_TIME_OP 0x1B\r
719#define EFI_IFR_STRING_OP 0x1C\r
720#define EFI_IFR_REFRESH_OP 0x1D\r
721#define EFI_IFR_DISABLE_IF_OP 0x1E\r
722#define EFI_IFR_ANIMATION_OP 0x1F\r
723#define EFI_IFR_TO_LOWER_OP 0x20\r
724#define EFI_IFR_TO_UPPER_OP 0x21\r
725#define EFI_IFR_MAP_OP 0x22\r
726#define EFI_IFR_ORDERED_LIST_OP 0x23\r
727#define EFI_IFR_VARSTORE_OP 0x24\r
728#define EFI_IFR_VARSTORE_NAME_VALUE_OP 0x25\r
729#define EFI_IFR_VARSTORE_EFI_OP 0x26\r
730#define EFI_IFR_VARSTORE_DEVICE_OP 0x27\r
731#define EFI_IFR_VERSION_OP 0x28\r
732#define EFI_IFR_END_OP 0x29\r
733#define EFI_IFR_MATCH_OP 0x2A\r
734#define EFI_IFR_GET_OP 0x2B\r
735#define EFI_IFR_SET_OP 0x2C\r
736#define EFI_IFR_READ_OP 0x2D\r
737#define EFI_IFR_WRITE_OP 0x2E\r
738#define EFI_IFR_EQUAL_OP 0x2F\r
739#define EFI_IFR_NOT_EQUAL_OP 0x30\r
740#define EFI_IFR_GREATER_THAN_OP 0x31\r
741#define EFI_IFR_GREATER_EQUAL_OP 0x32\r
742#define EFI_IFR_LESS_THAN_OP 0x33\r
743#define EFI_IFR_LESS_EQUAL_OP 0x34\r
744#define EFI_IFR_BITWISE_AND_OP 0x35\r
745#define EFI_IFR_BITWISE_OR_OP 0x36\r
746#define EFI_IFR_BITWISE_NOT_OP 0x37\r
747#define EFI_IFR_SHIFT_LEFT_OP 0x38\r
748#define EFI_IFR_SHIFT_RIGHT_OP 0x39\r
749#define EFI_IFR_ADD_OP 0x3A\r
750#define EFI_IFR_SUBTRACT_OP 0x3B\r
751#define EFI_IFR_MULTIPLY_OP 0x3C\r
752#define EFI_IFR_DIVIDE_OP 0x3D\r
753#define EFI_IFR_MODULO_OP 0x3E\r
754#define EFI_IFR_RULE_REF_OP 0x3F\r
755#define EFI_IFR_QUESTION_REF1_OP 0x40\r
756#define EFI_IFR_QUESTION_REF2_OP 0x41\r
757#define EFI_IFR_UINT8_OP 0x42\r
758#define EFI_IFR_UINT16_OP 0x43\r
759#define EFI_IFR_UINT32_OP 0x44\r
760#define EFI_IFR_UINT64_OP 0x45\r
761#define EFI_IFR_TRUE_OP 0x46\r
762#define EFI_IFR_FALSE_OP 0x47\r
763#define EFI_IFR_TO_UINT_OP 0x48\r
764#define EFI_IFR_TO_STRING_OP 0x49\r
765#define EFI_IFR_TO_BOOLEAN_OP 0x4A\r
766#define EFI_IFR_MID_OP 0x4B\r
767#define EFI_IFR_FIND_OP 0x4C\r
768#define EFI_IFR_TOKEN_OP 0x4D\r
769#define EFI_IFR_STRING_REF1_OP 0x4E\r
770#define EFI_IFR_STRING_REF2_OP 0x4F\r
771#define EFI_IFR_CONDITIONAL_OP 0x50\r
772#define EFI_IFR_QUESTION_REF3_OP 0x51\r
773#define EFI_IFR_ZERO_OP 0x52\r
774#define EFI_IFR_ONE_OP 0x53\r
775#define EFI_IFR_ONES_OP 0x54\r
776#define EFI_IFR_UNDEFINED_OP 0x55\r
777#define EFI_IFR_LENGTH_OP 0x56\r
778#define EFI_IFR_DUP_OP 0x57\r
779#define EFI_IFR_THIS_OP 0x58\r
780#define EFI_IFR_SPAN_OP 0x59\r
781#define EFI_IFR_VALUE_OP 0x5A\r
782#define EFI_IFR_DEFAULT_OP 0x5B\r
783#define EFI_IFR_DEFAULTSTORE_OP 0x5C\r
784#define EFI_IFR_FORM_MAP_OP 0x5D\r
785#define EFI_IFR_CATENATE_OP 0x5E\r
786#define EFI_IFR_GUID_OP 0x5F\r
787#define EFI_IFR_SECURITY_OP 0x60\r
788#define EFI_IFR_MODAL_TAG_OP 0x61\r
789#define EFI_IFR_REFRESH_ID_OP 0x62\r
790#define EFI_IFR_WARNING_IF_OP 0x63\r
791#define EFI_IFR_MATCH2_OP 0x64\r
792\r
793//\r
794// Definitions of IFR Standard Headers\r
795// Section 27.3.8.2\r
796//\r
797\r
798typedef struct _EFI_IFR_OP_HEADER {\r
799 UINT8 OpCode;\r
800 UINT8 Length : 7;\r
801 UINT8 Scope : 1;\r
802} EFI_IFR_OP_HEADER;\r
803\r
804typedef struct _EFI_IFR_STATEMENT_HEADER {\r
805 EFI_STRING_ID Prompt;\r
806 EFI_STRING_ID Help;\r
807} EFI_IFR_STATEMENT_HEADER;\r
808\r
809typedef struct _EFI_IFR_QUESTION_HEADER {\r
810 EFI_IFR_STATEMENT_HEADER Header;\r
811 EFI_QUESTION_ID QuestionId;\r
812 EFI_VARSTORE_ID VarStoreId;\r
813 union {\r
814 EFI_STRING_ID VarName;\r
815 UINT16 VarOffset;\r
816 } VarStoreInfo;\r
817 UINT8 Flags;\r
818} EFI_IFR_QUESTION_HEADER;\r
819\r
820//\r
821// Flag values of EFI_IFR_QUESTION_HEADER\r
822//\r
823#define EFI_IFR_FLAG_READ_ONLY 0x01\r
824#define EFI_IFR_FLAG_CALLBACK 0x04\r
825#define EFI_IFR_FLAG_RESET_REQUIRED 0x10\r
826#define EFI_IFR_FLAG_REST_STYLE 0x20\r
827#define EFI_IFR_FLAG_RECONNECT_REQUIRED 0x40\r
828#define EFI_IFR_FLAG_OPTIONS_ONLY 0x80\r
829\r
830//\r
831// Definition for Opcode Reference\r
832// Section 27.3.8.3\r
833//\r
834typedef struct _EFI_IFR_DEFAULTSTORE {\r
835 EFI_IFR_OP_HEADER Header;\r
836 EFI_STRING_ID DefaultName;\r
837 UINT16 DefaultId;\r
838} EFI_IFR_DEFAULTSTORE;\r
839\r
840//\r
841// Default Identifier of default store\r
842//\r
843#define EFI_HII_DEFAULT_CLASS_STANDARD 0x0000\r
844#define EFI_HII_DEFAULT_CLASS_MANUFACTURING 0x0001\r
845#define EFI_HII_DEFAULT_CLASS_SAFE 0x0002\r
846#define EFI_HII_DEFAULT_CLASS_PLATFORM_BEGIN 0x4000\r
847#define EFI_HII_DEFAULT_CLASS_PLATFORM_END 0x7fff\r
848#define EFI_HII_DEFAULT_CLASS_HARDWARE_BEGIN 0x8000\r
849#define EFI_HII_DEFAULT_CLASS_HARDWARE_END 0xbfff\r
850#define EFI_HII_DEFAULT_CLASS_FIRMWARE_BEGIN 0xc000\r
851#define EFI_HII_DEFAULT_CLASS_FIRMWARE_END 0xffff\r
852\r
853typedef struct _EFI_IFR_VARSTORE {\r
854 EFI_IFR_OP_HEADER Header;\r
855 EFI_GUID Guid;\r
856 EFI_VARSTORE_ID VarStoreId;\r
857 UINT16 Size;\r
858 UINT8 Name[1];\r
859} EFI_IFR_VARSTORE;\r
860\r
861typedef struct _EFI_IFR_VARSTORE_EFI {\r
862 EFI_IFR_OP_HEADER Header;\r
863 EFI_VARSTORE_ID VarStoreId;\r
864 EFI_GUID Guid;\r
865 UINT32 Attributes;\r
866 UINT16 Size;\r
867 UINT8 Name[1];\r
868} EFI_IFR_VARSTORE_EFI;\r
869\r
870typedef struct _EFI_IFR_VARSTORE_NAME_VALUE {\r
871 EFI_IFR_OP_HEADER Header;\r
872 EFI_VARSTORE_ID VarStoreId;\r
873 EFI_GUID Guid;\r
874} EFI_IFR_VARSTORE_NAME_VALUE;\r
875\r
876typedef struct _EFI_IFR_FORM_SET {\r
877 EFI_IFR_OP_HEADER Header;\r
878 EFI_GUID Guid;\r
879 EFI_STRING_ID FormSetTitle;\r
880 EFI_STRING_ID Help;\r
881 UINT8 Flags;\r
882 // EFI_GUID ClassGuid[];\r
883} EFI_IFR_FORM_SET;\r
884\r
885typedef struct _EFI_IFR_END {\r
886 EFI_IFR_OP_HEADER Header;\r
887} EFI_IFR_END;\r
888\r
889typedef struct _EFI_IFR_FORM {\r
890 EFI_IFR_OP_HEADER Header;\r
891 UINT16 FormId;\r
892 EFI_STRING_ID FormTitle;\r
893} EFI_IFR_FORM;\r
894\r
895typedef struct _EFI_IFR_IMAGE {\r
896 EFI_IFR_OP_HEADER Header;\r
897 EFI_IMAGE_ID Id;\r
898} EFI_IFR_IMAGE;\r
899\r
900typedef struct _EFI_IFR_MODAL_TAG {\r
901 EFI_IFR_OP_HEADER Header;\r
902} EFI_IFR_MODAL_TAG;\r
903\r
904typedef struct _EFI_IFR_LOCKED {\r
905 EFI_IFR_OP_HEADER Header;\r
906} EFI_IFR_LOCKED;\r
907\r
908typedef struct _EFI_IFR_RULE {\r
909 EFI_IFR_OP_HEADER Header;\r
910 UINT8 RuleId;\r
911} EFI_IFR_RULE;\r
912\r
913typedef struct _EFI_IFR_DEFAULT {\r
914 EFI_IFR_OP_HEADER Header;\r
915 UINT16 DefaultId;\r
916 UINT8 Type;\r
917 EFI_IFR_TYPE_VALUE Value;\r
918} EFI_IFR_DEFAULT;\r
919\r
920typedef struct _EFI_IFR_DEFAULT_2 {\r
921 EFI_IFR_OP_HEADER Header;\r
922 UINT16 DefaultId;\r
923 UINT8 Type;\r
924} EFI_IFR_DEFAULT_2;\r
925\r
926typedef struct _EFI_IFR_VALUE {\r
927 EFI_IFR_OP_HEADER Header;\r
928} EFI_IFR_VALUE;\r
929\r
930typedef struct _EFI_IFR_SUBTITLE {\r
931 EFI_IFR_OP_HEADER Header;\r
932 EFI_IFR_STATEMENT_HEADER Statement;\r
933 UINT8 Flags;\r
934} EFI_IFR_SUBTITLE;\r
935\r
936#define EFI_IFR_FLAGS_HORIZONTAL 0x01\r
937\r
938typedef struct _EFI_IFR_CHECKBOX {\r
939 EFI_IFR_OP_HEADER Header;\r
940 EFI_IFR_QUESTION_HEADER Question;\r
941 UINT8 Flags;\r
942} EFI_IFR_CHECKBOX;\r
943\r
944#define EFI_IFR_CHECKBOX_DEFAULT 0x01\r
945#define EFI_IFR_CHECKBOX_DEFAULT_MFG 0x02\r
946\r
947typedef struct _EFI_IFR_TEXT {\r
948 EFI_IFR_OP_HEADER Header;\r
949 EFI_IFR_STATEMENT_HEADER Statement;\r
950 EFI_STRING_ID TextTwo;\r
951} EFI_IFR_TEXT;\r
952\r
953typedef struct _EFI_IFR_REF {\r
954 EFI_IFR_OP_HEADER Header;\r
955 EFI_IFR_QUESTION_HEADER Question;\r
956 EFI_FORM_ID FormId;\r
957} EFI_IFR_REF;\r
958\r
959typedef struct _EFI_IFR_REF2 {\r
960 EFI_IFR_OP_HEADER Header;\r
961 EFI_IFR_QUESTION_HEADER Question;\r
962 EFI_FORM_ID FormId;\r
963 EFI_QUESTION_ID QuestionId;\r
964} EFI_IFR_REF2;\r
965\r
966typedef struct _EFI_IFR_REF3 {\r
967 EFI_IFR_OP_HEADER Header;\r
968 EFI_IFR_QUESTION_HEADER Question;\r
969 EFI_FORM_ID FormId;\r
970 EFI_QUESTION_ID QuestionId;\r
971 EFI_GUID FormSetId;\r
972} EFI_IFR_REF3;\r
973\r
974typedef struct _EFI_IFR_REF4 {\r
975 EFI_IFR_OP_HEADER Header;\r
976 EFI_IFR_QUESTION_HEADER Question;\r
977 EFI_FORM_ID FormId;\r
978 EFI_QUESTION_ID QuestionId;\r
979 EFI_GUID FormSetId;\r
980 EFI_STRING_ID DevicePath;\r
981} EFI_IFR_REF4;\r
982\r
983typedef struct _EFI_IFR_REF5 {\r
984 EFI_IFR_OP_HEADER Header;\r
985 EFI_IFR_QUESTION_HEADER Question;\r
986} EFI_IFR_REF5;\r
987\r
988typedef struct _EFI_IFR_RESET_BUTTON {\r
989 EFI_IFR_OP_HEADER Header;\r
990 EFI_IFR_STATEMENT_HEADER Statement;\r
991 EFI_DEFAULT_ID DefaultId;\r
992} EFI_IFR_RESET_BUTTON;\r
993\r
994typedef struct _EFI_IFR_ACTION {\r
995 EFI_IFR_OP_HEADER Header;\r
996 EFI_IFR_QUESTION_HEADER Question;\r
997 EFI_STRING_ID QuestionConfig;\r
998} EFI_IFR_ACTION;\r
999\r
1000typedef struct _EFI_IFR_ACTION_1 {\r
1001 EFI_IFR_OP_HEADER Header;\r
1002 EFI_IFR_QUESTION_HEADER Question;\r
1003} EFI_IFR_ACTION_1;\r
1004\r
1005typedef struct _EFI_IFR_DATE {\r
1006 EFI_IFR_OP_HEADER Header;\r
1007 EFI_IFR_QUESTION_HEADER Question;\r
1008 UINT8 Flags;\r
1009} EFI_IFR_DATE;\r
1010\r
1011//\r
1012// Flags that describe the behavior of the question.\r
1013//\r
1014#define EFI_QF_DATE_YEAR_SUPPRESS 0x01\r
1015#define EFI_QF_DATE_MONTH_SUPPRESS 0x02\r
1016#define EFI_QF_DATE_DAY_SUPPRESS 0x04\r
1017\r
1018#define EFI_QF_DATE_STORAGE 0x30\r
1019#define QF_DATE_STORAGE_NORMAL 0x00\r
1020#define QF_DATE_STORAGE_TIME 0x10\r
1021#define QF_DATE_STORAGE_WAKEUP 0x20\r
1022\r
1023typedef union {\r
1024 struct {\r
1025 UINT8 MinValue;\r
1026 UINT8 MaxValue;\r
1027 UINT8 Step;\r
1028 } u8;\r
1029 struct {\r
1030 UINT16 MinValue;\r
1031 UINT16 MaxValue;\r
1032 UINT16 Step;\r
1033 } u16;\r
1034 struct {\r
1035 UINT32 MinValue;\r
1036 UINT32 MaxValue;\r
1037 UINT32 Step;\r
1038 } u32;\r
1039 struct {\r
1040 UINT64 MinValue;\r
1041 UINT64 MaxValue;\r
1042 UINT64 Step;\r
1043 } u64;\r
1044} MINMAXSTEP_DATA;\r
1045\r
1046typedef struct _EFI_IFR_NUMERIC {\r
1047 EFI_IFR_OP_HEADER Header;\r
1048 EFI_IFR_QUESTION_HEADER Question;\r
1049 UINT8 Flags;\r
1050 MINMAXSTEP_DATA data;\r
1051} EFI_IFR_NUMERIC;\r
1052\r
1053//\r
1054// Flags related to the numeric question\r
1055//\r
1056#define EFI_IFR_NUMERIC_SIZE 0x03\r
1057#define EFI_IFR_NUMERIC_SIZE_1 0x00\r
1058#define EFI_IFR_NUMERIC_SIZE_2 0x01\r
1059#define EFI_IFR_NUMERIC_SIZE_4 0x02\r
1060#define EFI_IFR_NUMERIC_SIZE_8 0x03\r
1061\r
1062#define EFI_IFR_DISPLAY 0x30\r
1063#define EFI_IFR_DISPLAY_INT_DEC 0x00\r
1064#define EFI_IFR_DISPLAY_UINT_DEC 0x10\r
1065#define EFI_IFR_DISPLAY_UINT_HEX 0x20\r
1066\r
1067typedef struct _EFI_IFR_ONE_OF {\r
1068 EFI_IFR_OP_HEADER Header;\r
1069 EFI_IFR_QUESTION_HEADER Question;\r
1070 UINT8 Flags;\r
1071 MINMAXSTEP_DATA data;\r
1072} EFI_IFR_ONE_OF;\r
1073\r
1074typedef struct _EFI_IFR_STRING {\r
1075 EFI_IFR_OP_HEADER Header;\r
1076 EFI_IFR_QUESTION_HEADER Question;\r
1077 UINT8 MinSize;\r
1078 UINT8 MaxSize;\r
1079 UINT8 Flags;\r
1080} EFI_IFR_STRING;\r
1081\r
1082#define EFI_IFR_STRING_MULTI_LINE 0x01\r
1083\r
1084typedef struct _EFI_IFR_PASSWORD {\r
1085 EFI_IFR_OP_HEADER Header;\r
1086 EFI_IFR_QUESTION_HEADER Question;\r
1087 UINT16 MinSize;\r
1088 UINT16 MaxSize;\r
1089} EFI_IFR_PASSWORD;\r
1090\r
1091typedef struct _EFI_IFR_ORDERED_LIST {\r
1092 EFI_IFR_OP_HEADER Header;\r
1093 EFI_IFR_QUESTION_HEADER Question;\r
1094 UINT8 MaxContainers;\r
1095 UINT8 Flags;\r
1096} EFI_IFR_ORDERED_LIST;\r
1097\r
1098#define EFI_IFR_UNIQUE_SET 0x01\r
1099#define EFI_IFR_NO_EMPTY_SET 0x02\r
1100\r
1101typedef struct _EFI_IFR_TIME {\r
1102 EFI_IFR_OP_HEADER Header;\r
1103 EFI_IFR_QUESTION_HEADER Question;\r
1104 UINT8 Flags;\r
1105} EFI_IFR_TIME;\r
1106\r
1107//\r
1108// A bit-mask that determines which unique settings are active for this opcode.\r
1109//\r
1110#define QF_TIME_HOUR_SUPPRESS 0x01\r
1111#define QF_TIME_MINUTE_SUPPRESS 0x02\r
1112#define QF_TIME_SECOND_SUPPRESS 0x04\r
1113\r
1114#define QF_TIME_STORAGE 0x30\r
1115#define QF_TIME_STORAGE_NORMAL 0x00\r
1116#define QF_TIME_STORAGE_TIME 0x10\r
1117#define QF_TIME_STORAGE_WAKEUP 0x20\r
1118\r
1119typedef struct _EFI_IFR_DISABLE_IF {\r
1120 EFI_IFR_OP_HEADER Header;\r
1121} EFI_IFR_DISABLE_IF;\r
1122\r
1123typedef struct _EFI_IFR_SUPPRESS_IF {\r
1124 EFI_IFR_OP_HEADER Header;\r
1125} EFI_IFR_SUPPRESS_IF;\r
1126\r
1127typedef struct _EFI_IFR_GRAY_OUT_IF {\r
1128 EFI_IFR_OP_HEADER Header;\r
1129} EFI_IFR_GRAY_OUT_IF;\r
1130\r
1131typedef struct _EFI_IFR_INCONSISTENT_IF {\r
1132 EFI_IFR_OP_HEADER Header;\r
1133 EFI_STRING_ID Error;\r
1134} EFI_IFR_INCONSISTENT_IF;\r
1135\r
1136typedef struct _EFI_IFR_NO_SUBMIT_IF {\r
1137 EFI_IFR_OP_HEADER Header;\r
1138 EFI_STRING_ID Error;\r
1139} EFI_IFR_NO_SUBMIT_IF;\r
1140\r
1141typedef struct _EFI_IFR_WARNING_IF {\r
1142 EFI_IFR_OP_HEADER Header;\r
1143 EFI_STRING_ID Warning;\r
1144 UINT8 TimeOut;\r
1145} EFI_IFR_WARNING_IF;\r
1146\r
1147typedef struct _EFI_IFR_REFRESH {\r
1148 EFI_IFR_OP_HEADER Header;\r
1149 UINT8 RefreshInterval;\r
1150} EFI_IFR_REFRESH;\r
1151\r
1152typedef struct _EFI_IFR_VARSTORE_DEVICE {\r
1153 EFI_IFR_OP_HEADER Header;\r
1154 EFI_STRING_ID DevicePath;\r
1155} EFI_IFR_VARSTORE_DEVICE;\r
1156\r
1157typedef struct _EFI_IFR_ONE_OF_OPTION {\r
1158 EFI_IFR_OP_HEADER Header;\r
1159 EFI_STRING_ID Option;\r
1160 UINT8 Flags;\r
1161 UINT8 Type;\r
1162 EFI_IFR_TYPE_VALUE Value;\r
1163} EFI_IFR_ONE_OF_OPTION;\r
1164\r
1165//\r
1166// Types of the option's value.\r
1167//\r
1168#define EFI_IFR_TYPE_NUM_SIZE_8 0x00\r
1169#define EFI_IFR_TYPE_NUM_SIZE_16 0x01\r
1170#define EFI_IFR_TYPE_NUM_SIZE_32 0x02\r
1171#define EFI_IFR_TYPE_NUM_SIZE_64 0x03\r
1172#define EFI_IFR_TYPE_BOOLEAN 0x04\r
1173#define EFI_IFR_TYPE_TIME 0x05\r
1174#define EFI_IFR_TYPE_DATE 0x06\r
1175#define EFI_IFR_TYPE_STRING 0x07\r
1176#define EFI_IFR_TYPE_OTHER 0x08\r
1177#define EFI_IFR_TYPE_UNDEFINED 0x09\r
1178#define EFI_IFR_TYPE_ACTION 0x0A\r
1179#define EFI_IFR_TYPE_BUFFER 0x0B\r
1180#define EFI_IFR_TYPE_REF 0x0C\r
1181\r
1182#define EFI_IFR_OPTION_DEFAULT 0x10\r
1183#define EFI_IFR_OPTION_DEFAULT_MFG 0x20\r
1184\r
1185typedef struct _EFI_IFR_GUID {\r
1186 EFI_IFR_OP_HEADER Header;\r
1187 EFI_GUID Guid;\r
1188 // Optional Data Follows\r
1189} EFI_IFR_GUID;\r
1190\r
1191typedef struct _EFI_IFR_REFRESH_ID {\r
1192 EFI_IFR_OP_HEADER Header;\r
1193 EFI_GUID RefreshEventGroupId;\r
1194} EFI_IFR_REFRESH_ID;\r
1195\r
1196typedef struct _EFI_IFR_DUP {\r
1197 EFI_IFR_OP_HEADER Header;\r
1198} EFI_IFR_DUP;\r
1199\r
1200typedef struct _EFI_IFR_EQ_ID_ID {\r
1201 EFI_IFR_OP_HEADER Header;\r
1202 EFI_QUESTION_ID QuestionId1;\r
1203 EFI_QUESTION_ID QuestionId2;\r
1204} EFI_IFR_EQ_ID_ID;\r
1205\r
1206typedef struct _EFI_IFR_EQ_ID_VAL {\r
1207 EFI_IFR_OP_HEADER Header;\r
1208 EFI_QUESTION_ID QuestionId;\r
1209 UINT16 Value;\r
1210} EFI_IFR_EQ_ID_VAL;\r
1211\r
1212typedef struct _EFI_IFR_EQ_ID_VAL_LIST {\r
1213 EFI_IFR_OP_HEADER Header;\r
1214 EFI_QUESTION_ID QuestionId;\r
1215 UINT16 ListLength;\r
1216 UINT16 ValueList[1];\r
1217} EFI_IFR_EQ_ID_VAL_LIST;\r
1218\r
1219typedef struct _EFI_IFR_UINT8 {\r
1220 EFI_IFR_OP_HEADER Header;\r
1221 UINT8 Value;\r
1222} EFI_IFR_UINT8;\r
1223\r
1224typedef struct _EFI_IFR_UINT16 {\r
1225 EFI_IFR_OP_HEADER Header;\r
1226 UINT16 Value;\r
1227} EFI_IFR_UINT16;\r
1228\r
1229typedef struct _EFI_IFR_UINT32 {\r
1230 EFI_IFR_OP_HEADER Header;\r
1231 UINT32 Value;\r
1232} EFI_IFR_UINT32;\r
1233\r
1234typedef struct _EFI_IFR_UINT64 {\r
1235 EFI_IFR_OP_HEADER Header;\r
1236 UINT64 Value;\r
1237} EFI_IFR_UINT64;\r
1238\r
1239typedef struct _EFI_IFR_QUESTION_REF1 {\r
1240 EFI_IFR_OP_HEADER Header;\r
1241 EFI_QUESTION_ID QuestionId;\r
1242} EFI_IFR_QUESTION_REF1;\r
1243\r
1244typedef struct _EFI_IFR_QUESTION_REF2 {\r
1245 EFI_IFR_OP_HEADER Header;\r
1246} EFI_IFR_QUESTION_REF2;\r
1247\r
1248typedef struct _EFI_IFR_QUESTION_REF3 {\r
1249 EFI_IFR_OP_HEADER Header;\r
1250} EFI_IFR_QUESTION_REF3;\r
1251\r
1252typedef struct _EFI_IFR_QUESTION_REF3_2 {\r
1253 EFI_IFR_OP_HEADER Header;\r
1254 EFI_STRING_ID DevicePath;\r
1255} EFI_IFR_QUESTION_REF3_2;\r
1256\r
1257typedef struct _EFI_IFR_QUESTION_REF3_3 {\r
1258 EFI_IFR_OP_HEADER Header;\r
1259 EFI_STRING_ID DevicePath;\r
1260 EFI_GUID Guid;\r
1261} EFI_IFR_QUESTION_REF3_3;\r
1262\r
1263typedef struct _EFI_IFR_RULE_REF {\r
1264 EFI_IFR_OP_HEADER Header;\r
1265 UINT8 RuleId;\r
1266} EFI_IFR_RULE_REF;\r
1267\r
1268typedef struct _EFI_IFR_STRING_REF1 {\r
1269 EFI_IFR_OP_HEADER Header;\r
1270 EFI_STRING_ID StringId;\r
1271} EFI_IFR_STRING_REF1;\r
1272\r
1273typedef struct _EFI_IFR_STRING_REF2 {\r
1274 EFI_IFR_OP_HEADER Header;\r
1275} EFI_IFR_STRING_REF2;\r
1276\r
1277typedef struct _EFI_IFR_THIS {\r
1278 EFI_IFR_OP_HEADER Header;\r
1279} EFI_IFR_THIS;\r
1280\r
1281typedef struct _EFI_IFR_TRUE {\r
1282 EFI_IFR_OP_HEADER Header;\r
1283} EFI_IFR_TRUE;\r
1284\r
1285typedef struct _EFI_IFR_FALSE {\r
1286 EFI_IFR_OP_HEADER Header;\r
1287} EFI_IFR_FALSE;\r
1288\r
1289typedef struct _EFI_IFR_ONE {\r
1290 EFI_IFR_OP_HEADER Header;\r
1291} EFI_IFR_ONE;\r
1292\r
1293typedef struct _EFI_IFR_ONES {\r
1294 EFI_IFR_OP_HEADER Header;\r
1295} EFI_IFR_ONES;\r
1296\r
1297typedef struct _EFI_IFR_ZERO {\r
1298 EFI_IFR_OP_HEADER Header;\r
1299} EFI_IFR_ZERO;\r
1300\r
1301typedef struct _EFI_IFR_UNDEFINED {\r
1302 EFI_IFR_OP_HEADER Header;\r
1303} EFI_IFR_UNDEFINED;\r
1304\r
1305typedef struct _EFI_IFR_VERSION {\r
1306 EFI_IFR_OP_HEADER Header;\r
1307} EFI_IFR_VERSION;\r
1308\r
1309typedef struct _EFI_IFR_LENGTH {\r
1310 EFI_IFR_OP_HEADER Header;\r
1311} EFI_IFR_LENGTH;\r
1312\r
1313typedef struct _EFI_IFR_NOT {\r
1314 EFI_IFR_OP_HEADER Header;\r
1315} EFI_IFR_NOT;\r
1316\r
1317typedef struct _EFI_IFR_BITWISE_NOT {\r
1318 EFI_IFR_OP_HEADER Header;\r
1319} EFI_IFR_BITWISE_NOT;\r
1320\r
1321typedef struct _EFI_IFR_TO_BOOLEAN {\r
1322 EFI_IFR_OP_HEADER Header;\r
1323} EFI_IFR_TO_BOOLEAN;\r
1324\r
1325///\r
1326/// For EFI_IFR_TO_STRING, when converting from\r
1327/// unsigned integers, these flags control the format:\r
1328/// 0 = unsigned decimal.\r
1329/// 1 = signed decimal.\r
1330/// 2 = hexadecimal (lower-case alpha).\r
1331/// 3 = hexadecimal (upper-case alpha).\r
1332///@{\r
1333#define EFI_IFR_STRING_UNSIGNED_DEC 0\r
1334#define EFI_IFR_STRING_SIGNED_DEC 1\r
1335#define EFI_IFR_STRING_LOWERCASE_HEX 2\r
1336#define EFI_IFR_STRING_UPPERCASE_HEX 3\r
1337///@}\r
1338\r
1339///\r
1340/// When converting from a buffer, these flags control the format:\r
1341/// 0 = ASCII.\r
1342/// 8 = Unicode.\r
1343///@{\r
1344#define EFI_IFR_STRING_ASCII 0\r
1345#define EFI_IFR_STRING_UNICODE 8\r
1346///@}\r
1347\r
1348typedef struct _EFI_IFR_TO_STRING {\r
1349 EFI_IFR_OP_HEADER Header;\r
1350 UINT8 Format;\r
1351} EFI_IFR_TO_STRING;\r
1352\r
1353typedef struct _EFI_IFR_TO_UINT {\r
1354 EFI_IFR_OP_HEADER Header;\r
1355} EFI_IFR_TO_UINT;\r
1356\r
1357typedef struct _EFI_IFR_TO_UPPER {\r
1358 EFI_IFR_OP_HEADER Header;\r
1359} EFI_IFR_TO_UPPER;\r
1360\r
1361typedef struct _EFI_IFR_TO_LOWER {\r
1362 EFI_IFR_OP_HEADER Header;\r
1363} EFI_IFR_TO_LOWER;\r
1364\r
1365typedef struct _EFI_IFR_ADD {\r
1366 EFI_IFR_OP_HEADER Header;\r
1367} EFI_IFR_ADD;\r
1368\r
1369typedef struct _EFI_IFR_AND {\r
1370 EFI_IFR_OP_HEADER Header;\r
1371} EFI_IFR_AND;\r
1372\r
1373typedef struct _EFI_IFR_BITWISE_AND {\r
1374 EFI_IFR_OP_HEADER Header;\r
1375} EFI_IFR_BITWISE_AND;\r
1376\r
1377typedef struct _EFI_IFR_BITWISE_OR {\r
1378 EFI_IFR_OP_HEADER Header;\r
1379} EFI_IFR_BITWISE_OR;\r
1380\r
1381typedef struct _EFI_IFR_CATENATE {\r
1382 EFI_IFR_OP_HEADER Header;\r
1383} EFI_IFR_CATENATE;\r
1384\r
1385typedef struct _EFI_IFR_DIVIDE {\r
1386 EFI_IFR_OP_HEADER Header;\r
1387} EFI_IFR_DIVIDE;\r
1388\r
1389typedef struct _EFI_IFR_EQUAL {\r
1390 EFI_IFR_OP_HEADER Header;\r
1391} EFI_IFR_EQUAL;\r
1392\r
1393typedef struct _EFI_IFR_GREATER_EQUAL {\r
1394 EFI_IFR_OP_HEADER Header;\r
1395} EFI_IFR_GREATER_EQUAL;\r
1396\r
1397typedef struct _EFI_IFR_GREATER_THAN {\r
1398 EFI_IFR_OP_HEADER Header;\r
1399} EFI_IFR_GREATER_THAN;\r
1400\r
1401typedef struct _EFI_IFR_LESS_EQUAL {\r
1402 EFI_IFR_OP_HEADER Header;\r
1403} EFI_IFR_LESS_EQUAL;\r
1404\r
1405typedef struct _EFI_IFR_LESS_THAN {\r
1406 EFI_IFR_OP_HEADER Header;\r
1407} EFI_IFR_LESS_THAN;\r
1408\r
1409typedef struct _EFI_IFR_MATCH {\r
1410 EFI_IFR_OP_HEADER Header;\r
1411} EFI_IFR_MATCH;\r
1412\r
1413typedef struct _EFI_IFR_MATCH2 {\r
1414 EFI_IFR_OP_HEADER Header;\r
1415 EFI_GUID SyntaxType;\r
1416} EFI_IFR_MATCH2;\r
1417\r
1418typedef struct _EFI_IFR_MULTIPLY {\r
1419 EFI_IFR_OP_HEADER Header;\r
1420} EFI_IFR_MULTIPLY;\r
1421\r
1422typedef struct _EFI_IFR_MODULO {\r
1423 EFI_IFR_OP_HEADER Header;\r
1424} EFI_IFR_MODULO;\r
1425\r
1426typedef struct _EFI_IFR_NOT_EQUAL {\r
1427 EFI_IFR_OP_HEADER Header;\r
1428} EFI_IFR_NOT_EQUAL;\r
1429\r
1430typedef struct _EFI_IFR_OR {\r
1431 EFI_IFR_OP_HEADER Header;\r
1432} EFI_IFR_OR;\r
1433\r
1434typedef struct _EFI_IFR_SHIFT_LEFT {\r
1435 EFI_IFR_OP_HEADER Header;\r
1436} EFI_IFR_SHIFT_LEFT;\r
1437\r
1438typedef struct _EFI_IFR_SHIFT_RIGHT {\r
1439 EFI_IFR_OP_HEADER Header;\r
1440} EFI_IFR_SHIFT_RIGHT;\r
1441\r
1442typedef struct _EFI_IFR_SUBTRACT {\r
1443 EFI_IFR_OP_HEADER Header;\r
1444} EFI_IFR_SUBTRACT;\r
1445\r
1446typedef struct _EFI_IFR_CONDITIONAL {\r
1447 EFI_IFR_OP_HEADER Header;\r
1448} EFI_IFR_CONDITIONAL;\r
1449\r
1450//\r
1451// Flags governing the matching criteria of EFI_IFR_FIND\r
1452//\r
1453#define EFI_IFR_FF_CASE_SENSITIVE 0x00\r
1454#define EFI_IFR_FF_CASE_INSENSITIVE 0x01\r
1455\r
1456typedef struct _EFI_IFR_FIND {\r
1457 EFI_IFR_OP_HEADER Header;\r
1458 UINT8 Format;\r
1459} EFI_IFR_FIND;\r
1460\r
1461typedef struct _EFI_IFR_MID {\r
1462 EFI_IFR_OP_HEADER Header;\r
1463} EFI_IFR_MID;\r
1464\r
1465typedef struct _EFI_IFR_TOKEN {\r
1466 EFI_IFR_OP_HEADER Header;\r
1467} EFI_IFR_TOKEN;\r
1468\r
1469//\r
1470// Flags specifying whether to find the first matching string\r
1471// or the first non-matching string.\r
1472//\r
1473#define EFI_IFR_FLAGS_FIRST_MATCHING 0x00\r
1474#define EFI_IFR_FLAGS_FIRST_NON_MATCHING 0x01\r
1475\r
1476typedef struct _EFI_IFR_SPAN {\r
1477 EFI_IFR_OP_HEADER Header;\r
1478 UINT8 Flags;\r
1479} EFI_IFR_SPAN;\r
1480\r
1481typedef struct _EFI_IFR_SECURITY {\r
1482 ///\r
1483 /// Standard opcode header, where Header.Op = EFI_IFR_SECURITY_OP.\r
1484 ///\r
1485 EFI_IFR_OP_HEADER Header;\r
1486 ///\r
1487 /// Security permission level.\r
1488 ///\r
1489 EFI_GUID Permissions;\r
1490} EFI_IFR_SECURITY;\r
1491\r
1492typedef struct _EFI_IFR_FORM_MAP_METHOD {\r
1493 ///\r
1494 /// The string identifier which provides the human-readable name of\r
1495 /// the configuration method for this standards map form.\r
1496 ///\r
1497 EFI_STRING_ID MethodTitle;\r
1498 ///\r
1499 /// Identifier which uniquely specifies the configuration methods\r
1500 /// associated with this standards map form.\r
1501 ///\r
1502 EFI_GUID MethodIdentifier;\r
1503} EFI_IFR_FORM_MAP_METHOD;\r
1504\r
1505typedef struct _EFI_IFR_FORM_MAP {\r
1506 ///\r
1507 /// The sequence that defines the type of opcode as well as the length\r
1508 /// of the opcode being defined. Header.OpCode = EFI_IFR_FORM_MAP_OP.\r
1509 ///\r
1510 EFI_IFR_OP_HEADER Header;\r
1511 ///\r
1512 /// The unique identifier for this particular form.\r
1513 ///\r
1514 EFI_FORM_ID FormId;\r
1515 ///\r
1516 /// One or more configuration method's name and unique identifier.\r
1517 ///\r
1518 // EFI_IFR_FORM_MAP_METHOD Methods[];\r
1519} EFI_IFR_FORM_MAP;\r
1520\r
1521typedef struct _EFI_IFR_SET {\r
1522 ///\r
1523 /// The sequence that defines the type of opcode as well as the length\r
1524 /// of the opcode being defined. Header.OpCode = EFI_IFR_SET_OP.\r
1525 ///\r
1526 EFI_IFR_OP_HEADER Header;\r
1527 ///\r
1528 /// Specifies the identifier of a previously declared variable store to\r
1529 /// use when storing the question's value.\r
1530 ///\r
1531 EFI_VARSTORE_ID VarStoreId;\r
1532 union {\r
1533 ///\r
1534 /// A 16-bit Buffer Storage offset.\r
1535 ///\r
1536 EFI_STRING_ID VarName;\r
1537 ///\r
1538 /// A Name Value or EFI Variable name (VarName).\r
1539 ///\r
1540 UINT16 VarOffset;\r
1541 } VarStoreInfo;\r
1542 ///\r
1543 /// Specifies the type used for storage.\r
1544 ///\r
1545 UINT8 VarStoreType;\r
1546} EFI_IFR_SET;\r
1547\r
1548typedef struct _EFI_IFR_GET {\r
1549 ///\r
1550 /// The sequence that defines the type of opcode as well as the length\r
1551 /// of the opcode being defined. Header.OpCode = EFI_IFR_GET_OP.\r
1552 ///\r
1553 EFI_IFR_OP_HEADER Header;\r
1554 ///\r
1555 /// Specifies the identifier of a previously declared variable store to\r
1556 /// use when retrieving the value.\r
1557 ///\r
1558 EFI_VARSTORE_ID VarStoreId;\r
1559 union {\r
1560 ///\r
1561 /// A 16-bit Buffer Storage offset.\r
1562 ///\r
1563 EFI_STRING_ID VarName;\r
1564 ///\r
1565 /// A Name Value or EFI Variable name (VarName).\r
1566 ///\r
1567 UINT16 VarOffset;\r
1568 } VarStoreInfo;\r
1569 ///\r
1570 /// Specifies the type used for storage.\r
1571 ///\r
1572 UINT8 VarStoreType;\r
1573} EFI_IFR_GET;\r
1574\r
1575typedef struct _EFI_IFR_READ {\r
1576 EFI_IFR_OP_HEADER Header;\r
1577} EFI_IFR_READ;\r
1578\r
1579typedef struct _EFI_IFR_WRITE {\r
1580 EFI_IFR_OP_HEADER Header;\r
1581} EFI_IFR_WRITE;\r
1582\r
1583typedef struct _EFI_IFR_MAP {\r
1584 EFI_IFR_OP_HEADER Header;\r
1585} EFI_IFR_MAP;\r
1586//\r
1587// Definitions for Keyboard Package\r
1588// Releated definitions are in Section of EFI_HII_DATABASE_PROTOCOL\r
1589//\r
1590\r
1591///\r
1592/// Each enumeration values maps a physical key on a keyboard.\r
1593///\r
1594typedef enum {\r
1595 EfiKeyLCtrl,\r
1596 EfiKeyA0,\r
1597 EfiKeyLAlt,\r
1598 EfiKeySpaceBar,\r
1599 EfiKeyA2,\r
1600 EfiKeyA3,\r
1601 EfiKeyA4,\r
1602 EfiKeyRCtrl,\r
1603 EfiKeyLeftArrow,\r
1604 EfiKeyDownArrow,\r
1605 EfiKeyRightArrow,\r
1606 EfiKeyZero,\r
1607 EfiKeyPeriod,\r
1608 EfiKeyEnter,\r
1609 EfiKeyLShift,\r
1610 EfiKeyB0,\r
1611 EfiKeyB1,\r
1612 EfiKeyB2,\r
1613 EfiKeyB3,\r
1614 EfiKeyB4,\r
1615 EfiKeyB5,\r
1616 EfiKeyB6,\r
1617 EfiKeyB7,\r
1618 EfiKeyB8,\r
1619 EfiKeyB9,\r
1620 EfiKeyB10,\r
1621 EfiKeyRShift,\r
1622 EfiKeyUpArrow,\r
1623 EfiKeyOne,\r
1624 EfiKeyTwo,\r
1625 EfiKeyThree,\r
1626 EfiKeyCapsLock,\r
1627 EfiKeyC1,\r
1628 EfiKeyC2,\r
1629 EfiKeyC3,\r
1630 EfiKeyC4,\r
1631 EfiKeyC5,\r
1632 EfiKeyC6,\r
1633 EfiKeyC7,\r
1634 EfiKeyC8,\r
1635 EfiKeyC9,\r
1636 EfiKeyC10,\r
1637 EfiKeyC11,\r
1638 EfiKeyC12,\r
1639 EfiKeyFour,\r
1640 EfiKeyFive,\r
1641 EfiKeySix,\r
1642 EfiKeyPlus,\r
1643 EfiKeyTab,\r
1644 EfiKeyD1,\r
1645 EfiKeyD2,\r
1646 EfiKeyD3,\r
1647 EfiKeyD4,\r
1648 EfiKeyD5,\r
1649 EfiKeyD6,\r
1650 EfiKeyD7,\r
1651 EfiKeyD8,\r
1652 EfiKeyD9,\r
1653 EfiKeyD10,\r
1654 EfiKeyD11,\r
1655 EfiKeyD12,\r
1656 EfiKeyD13,\r
1657 EfiKeyDel,\r
1658 EfiKeyEnd,\r
1659 EfiKeyPgDn,\r
1660 EfiKeySeven,\r
1661 EfiKeyEight,\r
1662 EfiKeyNine,\r
1663 EfiKeyE0,\r
1664 EfiKeyE1,\r
1665 EfiKeyE2,\r
1666 EfiKeyE3,\r
1667 EfiKeyE4,\r
1668 EfiKeyE5,\r
1669 EfiKeyE6,\r
1670 EfiKeyE7,\r
1671 EfiKeyE8,\r
1672 EfiKeyE9,\r
1673 EfiKeyE10,\r
1674 EfiKeyE11,\r
1675 EfiKeyE12,\r
1676 EfiKeyBackSpace,\r
1677 EfiKeyIns,\r
1678 EfiKeyHome,\r
1679 EfiKeyPgUp,\r
1680 EfiKeyNLck,\r
1681 EfiKeySlash,\r
1682 EfiKeyAsterisk,\r
1683 EfiKeyMinus,\r
1684 EfiKeyEsc,\r
1685 EfiKeyF1,\r
1686 EfiKeyF2,\r
1687 EfiKeyF3,\r
1688 EfiKeyF4,\r
1689 EfiKeyF5,\r
1690 EfiKeyF6,\r
1691 EfiKeyF7,\r
1692 EfiKeyF8,\r
1693 EfiKeyF9,\r
1694 EfiKeyF10,\r
1695 EfiKeyF11,\r
1696 EfiKeyF12,\r
1697 EfiKeyPrint,\r
1698 EfiKeySLck,\r
1699 EfiKeyPause\r
1700} EFI_KEY;\r
1701\r
1702typedef struct {\r
1703 ///\r
1704 /// Used to describe a physical key on a keyboard.\r
1705 ///\r
1706 EFI_KEY Key;\r
1707 ///\r
1708 /// Unicode character code for the Key.\r
1709 ///\r
1710 CHAR16 Unicode;\r
1711 ///\r
1712 /// Unicode character code for the key with the shift key being held down.\r
1713 ///\r
1714 CHAR16 ShiftedUnicode;\r
1715 ///\r
1716 /// Unicode character code for the key with the Alt-GR being held down.\r
1717 ///\r
1718 CHAR16 AltGrUnicode;\r
1719 ///\r
1720 /// Unicode character code for the key with the Alt-GR and shift keys being held down.\r
1721 ///\r
1722 CHAR16 ShiftedAltGrUnicode;\r
1723 ///\r
1724 /// Modifier keys are defined to allow for special functionality that is not necessarily\r
1725 /// accomplished by a printable character. Many of these modifier keys are flags to toggle\r
1726 /// certain state bits on and off inside of a keyboard driver.\r
1727 ///\r
1728 UINT16 Modifier;\r
1729 UINT16 AffectedAttribute;\r
1730} EFI_KEY_DESCRIPTOR;\r
1731\r
1732///\r
1733/// A key which is affected by all the standard shift modifiers.\r
1734/// Most keys would be expected to have this bit active.\r
1735///\r
1736#define EFI_AFFECTED_BY_STANDARD_SHIFT 0x0001\r
1737\r
1738///\r
1739/// This key is affected by the caps lock so that if a keyboard driver\r
1740/// would need to disambiguate between a key which had a "1" defined\r
1741/// versus an "a" character. Having this bit turned on would tell\r
1742/// the keyboard driver to use the appropriate shifted state or not.\r
1743///\r
1744#define EFI_AFFECTED_BY_CAPS_LOCK 0x0002\r
1745\r
1746///\r
1747/// Similar to the case of CAPS lock, if this bit is active, the key\r
1748/// is affected by the num lock being turned on.\r
1749///\r
1750#define EFI_AFFECTED_BY_NUM_LOCK 0x0004\r
1751\r
1752typedef struct {\r
1753 UINT16 LayoutLength;\r
1754 EFI_GUID Guid;\r
1755 UINT32 LayoutDescriptorStringOffset;\r
1756 UINT8 DescriptorCount;\r
1757 // EFI_KEY_DESCRIPTOR Descriptors[];\r
1758} EFI_HII_KEYBOARD_LAYOUT;\r
1759\r
1760typedef struct {\r
1761 EFI_HII_PACKAGE_HEADER Header;\r
1762 UINT16 LayoutCount;\r
1763 // EFI_HII_KEYBOARD_LAYOUT Layout[];\r
1764} EFI_HII_KEYBOARD_PACKAGE_HDR;\r
1765\r
1766//\r
1767// Modifier values\r
1768//\r
1769#define EFI_NULL_MODIFIER 0x0000\r
1770#define EFI_LEFT_CONTROL_MODIFIER 0x0001\r
1771#define EFI_RIGHT_CONTROL_MODIFIER 0x0002\r
1772#define EFI_LEFT_ALT_MODIFIER 0x0003\r
1773#define EFI_RIGHT_ALT_MODIFIER 0x0004\r
1774#define EFI_ALT_GR_MODIFIER 0x0005\r
1775#define EFI_INSERT_MODIFIER 0x0006\r
1776#define EFI_DELETE_MODIFIER 0x0007\r
1777#define EFI_PAGE_DOWN_MODIFIER 0x0008\r
1778#define EFI_PAGE_UP_MODIFIER 0x0009\r
1779#define EFI_HOME_MODIFIER 0x000A\r
1780#define EFI_END_MODIFIER 0x000B\r
1781#define EFI_LEFT_SHIFT_MODIFIER 0x000C\r
1782#define EFI_RIGHT_SHIFT_MODIFIER 0x000D\r
1783#define EFI_CAPS_LOCK_MODIFIER 0x000E\r
1784#define EFI_NUM_LOCK_MODIFIER 0x000F\r
1785#define EFI_LEFT_ARROW_MODIFIER 0x0010\r
1786#define EFI_RIGHT_ARROW_MODIFIER 0x0011\r
1787#define EFI_DOWN_ARROW_MODIFIER 0x0012\r
1788#define EFI_UP_ARROW_MODIFIER 0x0013\r
1789#define EFI_NS_KEY_MODIFIER 0x0014\r
1790#define EFI_NS_KEY_DEPENDENCY_MODIFIER 0x0015\r
1791#define EFI_FUNCTION_KEY_ONE_MODIFIER 0x0016\r
1792#define EFI_FUNCTION_KEY_TWO_MODIFIER 0x0017\r
1793#define EFI_FUNCTION_KEY_THREE_MODIFIER 0x0018\r
1794#define EFI_FUNCTION_KEY_FOUR_MODIFIER 0x0019\r
1795#define EFI_FUNCTION_KEY_FIVE_MODIFIER 0x001A\r
1796#define EFI_FUNCTION_KEY_SIX_MODIFIER 0x001B\r
1797#define EFI_FUNCTION_KEY_SEVEN_MODIFIER 0x001C\r
1798#define EFI_FUNCTION_KEY_EIGHT_MODIFIER 0x001D\r
1799#define EFI_FUNCTION_KEY_NINE_MODIFIER 0x001E\r
1800#define EFI_FUNCTION_KEY_TEN_MODIFIER 0x001F\r
1801#define EFI_FUNCTION_KEY_ELEVEN_MODIFIER 0x0020\r
1802#define EFI_FUNCTION_KEY_TWELVE_MODIFIER 0x0021\r
1803\r
1804//\r
1805// Keys that have multiple control functions based on modifier\r
1806// settings are handled in the keyboard driver implementation.\r
1807// For instance, PRINT_KEY might have a modifier held down and\r
1808// is still a nonprinting character, but might have an alternate\r
1809// control function like SYSREQUEST\r
1810//\r
1811#define EFI_PRINT_MODIFIER 0x0022\r
1812#define EFI_SYS_REQUEST_MODIFIER 0x0023\r
1813#define EFI_SCROLL_LOCK_MODIFIER 0x0024\r
1814#define EFI_PAUSE_MODIFIER 0x0025\r
1815#define EFI_BREAK_MODIFIER 0x0026\r
1816\r
1817#define EFI_LEFT_LOGO_MODIFIER 0x0027\r
1818#define EFI_RIGHT_LOGO_MODIFIER 0x0028\r
1819#define EFI_MENU_MODIFIER 0x0029\r
1820\r
1821///\r
1822/// Animation IFR opcode\r
1823///\r
1824typedef struct _EFI_IFR_ANIMATION {\r
1825 ///\r
1826 /// Standard opcode header, where Header.OpCode is\r
1827 /// EFI_IFR_ANIMATION_OP.\r
1828 ///\r
1829 EFI_IFR_OP_HEADER Header;\r
1830 ///\r
1831 /// Animation identifier in the HII database.\r
1832 ///\r
1833 EFI_ANIMATION_ID Id;\r
1834} EFI_IFR_ANIMATION;\r
1835\r
1836///\r
1837/// HII animation package header.\r
1838///\r
1839typedef struct _EFI_HII_ANIMATION_PACKAGE_HDR {\r
1840 ///\r
1841 /// Standard package header, where Header.Type = EFI_HII_PACKAGE_ANIMATIONS.\r
1842 ///\r
1843 EFI_HII_PACKAGE_HEADER Header;\r
1844 ///\r
1845 /// Offset, relative to this header, of the animation information. If\r
1846 /// this is zero, then there are no animation sequences in the package.\r
1847 ///\r
1848 UINT32 AnimationInfoOffset;\r
1849} EFI_HII_ANIMATION_PACKAGE_HDR;\r
1850\r
1851///\r
1852/// Animation information is encoded as a series of blocks,\r
1853/// with each block prefixed by a single byte header EFI_HII_ANIMATION_BLOCK.\r
1854///\r
1855typedef struct _EFI_HII_ANIMATION_BLOCK {\r
1856 UINT8 BlockType;\r
1857 // UINT8 BlockBody[];\r
1858} EFI_HII_ANIMATION_BLOCK;\r
1859\r
1860///\r
1861/// Animation block types.\r
1862///\r
1863#define EFI_HII_AIBT_END 0x00\r
1864#define EFI_HII_AIBT_OVERLAY_IMAGES 0x10\r
1865#define EFI_HII_AIBT_CLEAR_IMAGES 0x11\r
1866#define EFI_HII_AIBT_RESTORE_SCRN 0x12\r
1867#define EFI_HII_AIBT_OVERLAY_IMAGES_LOOP 0x18\r
1868#define EFI_HII_AIBT_CLEAR_IMAGES_LOOP 0x19\r
1869#define EFI_HII_AIBT_RESTORE_SCRN_LOOP 0x1A\r
1870#define EFI_HII_AIBT_DUPLICATE 0x20\r
1871#define EFI_HII_AIBT_SKIP2 0x21\r
1872#define EFI_HII_AIBT_SKIP1 0x22\r
1873#define EFI_HII_AIBT_EXT1 0x30\r
1874#define EFI_HII_AIBT_EXT2 0x31\r
1875#define EFI_HII_AIBT_EXT4 0x32\r
1876\r
1877///\r
1878/// Extended block headers used for variable sized animation records\r
1879/// which need an explicit length.\r
1880///\r
1881\r
1882typedef struct _EFI_HII_AIBT_EXT1_BLOCK {\r
1883 ///\r
1884 /// Standard animation header, where Header.BlockType = EFI_HII_AIBT_EXT1.\r
1885 ///\r
1886 EFI_HII_ANIMATION_BLOCK Header;\r
1887 ///\r
1888 /// The block type.\r
1889 ///\r
1890 UINT8 BlockType2;\r
1891 ///\r
1892 /// Size of the animation block, in bytes, including the animation block header.\r
1893 ///\r
1894 UINT8 Length;\r
1895} EFI_HII_AIBT_EXT1_BLOCK;\r
1896\r
1897typedef struct _EFI_HII_AIBT_EXT2_BLOCK {\r
1898 ///\r
1899 /// Standard animation header, where Header.BlockType = EFI_HII_AIBT_EXT2.\r
1900 ///\r
1901 EFI_HII_ANIMATION_BLOCK Header;\r
1902 ///\r
1903 /// The block type\r
1904 ///\r
1905 UINT8 BlockType2;\r
1906 ///\r
1907 /// Size of the animation block, in bytes, including the animation block header.\r
1908 ///\r
1909 UINT16 Length;\r
1910} EFI_HII_AIBT_EXT2_BLOCK;\r
1911\r
1912typedef struct _EFI_HII_AIBT_EXT4_BLOCK {\r
1913 ///\r
1914 /// Standard animation header, where Header.BlockType = EFI_HII_AIBT_EXT4.\r
1915 ///\r
1916 EFI_HII_ANIMATION_BLOCK Header;\r
1917 ///\r
1918 /// The block type\r
1919 ///\r
1920 UINT8 BlockType2;\r
1921 ///\r
1922 /// Size of the animation block, in bytes, including the animation block header.\r
1923 ///\r
1924 UINT32 Length;\r
1925} EFI_HII_AIBT_EXT4_BLOCK;\r
1926\r
1927typedef struct _EFI_HII_ANIMATION_CELL {\r
1928 ///\r
1929 /// The X offset from the upper left hand corner of the logical\r
1930 /// window to position the indexed image.\r
1931 ///\r
1932 UINT16 OffsetX;\r
1933 ///\r
1934 /// The Y offset from the upper left hand corner of the logical\r
1935 /// window to position the indexed image.\r
1936 ///\r
1937 UINT16 OffsetY;\r
1938 ///\r
1939 /// The image to display at the specified offset from the upper left\r
1940 /// hand corner of the logical window.\r
1941 ///\r
1942 EFI_IMAGE_ID ImageId;\r
1943 ///\r
1944 /// The number of milliseconds to delay after displaying the indexed\r
1945 /// image and before continuing on to the next linked image. If value\r
1946 /// is zero, no delay.\r
1947 ///\r
1948 UINT16 Delay;\r
1949} EFI_HII_ANIMATION_CELL;\r
1950\r
1951///\r
1952/// An animation block to describe an animation sequence that does not cycle, and\r
1953/// where one image is simply displayed over the previous image.\r
1954///\r
1955typedef struct _EFI_HII_AIBT_OVERLAY_IMAGES_BLOCK {\r
1956 ///\r
1957 /// This is image that is to be reference by the image protocols, if the\r
1958 /// animation function is not supported or disabled. This image can\r
1959 /// be one particular image from the animation sequence (if any one\r
1960 /// of the animation frames has a complete image) or an alternate\r
1961 /// image that can be displayed alone. If the value is zero, no image\r
1962 /// is displayed.\r
1963 ///\r
1964 EFI_IMAGE_ID DftImageId;\r
1965 ///\r
1966 /// The overall width of the set of images (logical window width).\r
1967 ///\r
1968 UINT16 Width;\r
1969 ///\r
1970 /// The overall height of the set of images (logical window height).\r
1971 ///\r
1972 UINT16 Height;\r
1973 ///\r
1974 /// The number of EFI_HII_ANIMATION_CELL contained in the\r
1975 /// animation sequence.\r
1976 ///\r
1977 UINT16 CellCount;\r
1978 ///\r
1979 /// An array of CellCount animation cells.\r
1980 ///\r
1981 EFI_HII_ANIMATION_CELL AnimationCell[1];\r
1982} EFI_HII_AIBT_OVERLAY_IMAGES_BLOCK;\r
1983\r
1984///\r
1985/// An animation block to describe an animation sequence that does not cycle,\r
1986/// and where the logical window is cleared to the specified color before\r
1987/// the next image is displayed.\r
1988///\r
1989typedef struct _EFI_HII_AIBT_CLEAR_IMAGES_BLOCK {\r
1990 ///\r
1991 /// This is image that is to be reference by the image protocols, if the\r
1992 /// animation function is not supported or disabled. This image can\r
1993 /// be one particular image from the animation sequence (if any one\r
1994 /// of the animation frames has a complete image) or an alternate\r
1995 /// image that can be displayed alone. If the value is zero, no image\r
1996 /// is displayed.\r
1997 ///\r
1998 EFI_IMAGE_ID DftImageId;\r
1999 ///\r
2000 /// The overall width of the set of images (logical window width).\r
2001 ///\r
2002 UINT16 Width;\r
2003 ///\r
2004 /// The overall height of the set of images (logical window height).\r
2005 ///\r
2006 UINT16 Height;\r
2007 ///\r
2008 /// The number of EFI_HII_ANIMATION_CELL contained in the\r
2009 /// animation sequence.\r
2010 ///\r
2011 UINT16 CellCount;\r
2012 ///\r
2013 /// The color to clear the logical window to before displaying the\r
2014 /// indexed image.\r
2015 ///\r
2016 EFI_HII_RGB_PIXEL BackgndColor;\r
2017 ///\r
2018 /// An array of CellCount animation cells.\r
2019 ///\r
2020 EFI_HII_ANIMATION_CELL AnimationCell[1];\r
2021} EFI_HII_AIBT_CLEAR_IMAGES_BLOCK;\r
2022\r
2023///\r
2024/// An animation block to describe an animation sequence that does not cycle,\r
2025/// and where the screen is restored to the original state before the next\r
2026/// image is displayed.\r
2027///\r
2028typedef struct _EFI_HII_AIBT_RESTORE_SCRN_BLOCK {\r
2029 ///\r
2030 /// This is image that is to be reference by the image protocols, if the\r
2031 /// animation function is not supported or disabled. This image can\r
2032 /// be one particular image from the animation sequence (if any one\r
2033 /// of the animation frames has a complete image) or an alternate\r
2034 /// image that can be displayed alone. If the value is zero, no image\r
2035 /// is displayed.\r
2036 ///\r
2037 EFI_IMAGE_ID DftImageId;\r
2038 ///\r
2039 /// The overall width of the set of images (logical window width).\r
2040 ///\r
2041 UINT16 Width;\r
2042 ///\r
2043 /// The overall height of the set of images (logical window height).\r
2044 ///\r
2045 UINT16 Height;\r
2046 ///\r
2047 /// The number of EFI_HII_ANIMATION_CELL contained in the\r
2048 /// animation sequence.\r
2049 ///\r
2050 UINT16 CellCount;\r
2051 ///\r
2052 /// An array of CellCount animation cells.\r
2053 ///\r
2054 EFI_HII_ANIMATION_CELL AnimationCell[1];\r
2055} EFI_HII_AIBT_RESTORE_SCRN_BLOCK;\r
2056\r
2057///\r
2058/// An animation block to describe an animation sequence that continuously cycles,\r
2059/// and where one image is simply displayed over the previous image.\r
2060///\r
2061typedef EFI_HII_AIBT_OVERLAY_IMAGES_BLOCK EFI_HII_AIBT_OVERLAY_IMAGES_LOOP_BLOCK;\r
2062\r
2063///\r
2064/// An animation block to describe an animation sequence that continuously cycles,\r
2065/// and where the logical window is cleared to the specified color before\r
2066/// the next image is displayed.\r
2067///\r
2068typedef EFI_HII_AIBT_CLEAR_IMAGES_BLOCK EFI_HII_AIBT_CLEAR_IMAGES_LOOP_BLOCK;\r
2069\r
2070///\r
2071/// An animation block to describe an animation sequence that continuously cycles,\r
2072/// and where the screen is restored to the original state before\r
2073/// the next image is displayed.\r
2074///\r
2075typedef EFI_HII_AIBT_RESTORE_SCRN_BLOCK EFI_HII_AIBT_RESTORE_SCRN_LOOP_BLOCK;\r
2076\r
2077///\r
2078/// Assigns a new character value to a previously defined animation sequence.\r
2079///\r
2080typedef struct _EFI_HII_AIBT_DUPLICATE_BLOCK {\r
2081 ///\r
2082 /// The previously defined animation ID with the exact same\r
2083 /// animation information.\r
2084 ///\r
2085 EFI_ANIMATION_ID AnimationId;\r
2086} EFI_HII_AIBT_DUPLICATE_BLOCK;\r
2087\r
2088///\r
2089/// Skips animation IDs.\r
2090///\r
2091typedef struct _EFI_HII_AIBT_SKIP1_BLOCK {\r
2092 ///\r
2093 /// The unsigned 8-bit value to add to AnimationIdCurrent.\r
2094 ///\r
2095 UINT8 SkipCount;\r
2096} EFI_HII_AIBT_SKIP1_BLOCK;\r
2097\r
2098///\r
2099/// Skips animation IDs.\r
2100///\r
2101typedef struct _EFI_HII_AIBT_SKIP2_BLOCK {\r
2102 ///\r
2103 /// The unsigned 16-bit value to add to AnimationIdCurrent.\r
2104 ///\r
2105 UINT16 SkipCount;\r
2106} EFI_HII_AIBT_SKIP2_BLOCK;\r
2107\r
2108#pragma pack()\r
2109\r
2110///\r
2111/// References to string tokens must use this macro to enable scanning for\r
2112/// token usages.\r
2113///\r
2114///\r
2115/// STRING_TOKEN is not defined in UEFI specification. But it is placed\r
2116/// here for the easy access by C files and VFR source files.\r
2117///\r
2118#define STRING_TOKEN(t) t\r
2119\r
2120///\r
2121/// IMAGE_TOKEN is not defined in UEFI specification. But it is placed\r
2122/// here for the easy access by C files and VFR source files.\r
2123///\r
2124#define IMAGE_TOKEN(t) t\r
2125\r
2126#endif\r