]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/C/Include/Common/UefiInternalFormRepresentation.h
BaseTools: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / BaseTools / Source / C / Include / Common / UefiInternalFormRepresentation.h
1 /** @file
2 This file defines the encoding for the VFR (Visual Form Representation) language.
3 IFR is primarily consumed by the EFI presentation engine, and produced by EFI
4 internal application and drivers as well as all add-in card option-ROM drivers
5
6 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
7 (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
8
9 SPDX-License-Identifier: BSD-2-Clause-Patent
10
11 @par Revision Reference:
12 These definitions are from UEFI 2.6
13
14 **/
15
16 #ifndef __UEFI_INTERNAL_FORMREPRESENTATION_H__
17 #define __UEFI_INTERNAL_FORMREPRESENTATION_H__
18
19
20 #define EFI_HII_PLATFORM_SETUP_FORMSET_GUID \
21 { 0x93039971, 0x8545, 0x4b04, { 0xb4, 0x5e, 0x32, 0xeb, 0x83, 0x26, 0x4, 0xe } }
22
23 //
24 // The following types are currently defined:
25 //
26 typedef UINT32 RELOFST;
27
28 typedef VOID* EFI_HII_HANDLE;
29 typedef CHAR16* EFI_STRING;
30 typedef UINT16 EFI_IMAGE_ID;
31 typedef UINT16 EFI_QUESTION_ID;
32 typedef UINT16 EFI_STRING_ID;
33 typedef UINT16 EFI_FORM_ID;
34 typedef UINT16 EFI_VARSTORE_ID;
35 typedef UINT16 EFI_DEFAULT_ID;
36 typedef UINT32 EFI_HII_FONT_STYLE;
37
38
39
40 #pragma pack(1)
41
42
43 //
44 // HII package list
45 //
46 typedef struct {
47 EFI_GUID PackageListGuid;
48 UINT32 PackageLength;
49 } EFI_HII_PACKAGE_LIST_HEADER;
50
51 /**
52
53 Each package starts with a header, as defined above, which
54 indicates the size and type of the package. When added to a
55 pointer pointing to the start of the header, Length points at
56 the next package. The package lists form a package list when
57 concatenated together and terminated with an
58 EFI_HII_PACKAGE_HEADER with a Type of EFI_HII_PACKAGE_END. The
59 type EFI_HII_PACKAGE_TYPE_GUID is used for vendor-defined HII
60 packages, whose contents are determined by the Guid. The range
61 of package types starting with EFI_HII_PACKAGE_TYPE_SYSTEM_BEGIN
62 through EFI_HII_PACKAGE_TYPE_SYSTEM_END are reserved for system
63 firmware implementers.
64
65 @param Length The size of the package in bytes.
66
67 @param Type The package type. See EFI_HII_PACKAGE_TYPE_x,
68 below.
69
70 @param Data The package data, the format of which is
71 determined by Type.
72
73 **/
74 typedef struct {
75 UINT32 Length:24;
76 UINT32 Type:8;
77 // UINT8 Data[...];
78 } EFI_HII_PACKAGE_HEADER;
79
80 //
81 // EFI_HII_PACKAGE_TYPE_x.
82 //
83 #define EFI_HII_PACKAGE_TYPE_ALL 0x00
84 #define EFI_HII_PACKAGE_TYPE_GUID 0x01
85 #define EFI_HII_PACKAGE_FORM 0x02
86 #define EFI_HII_PACKAGE_KEYBOARD_LAYOUT 0x03
87 #define EFI_HII_PACKAGE_STRINGS 0x04
88 #define EFI_HII_PACKAGE_FONTS 0x05
89 #define EFI_HII_PACKAGE_IMAGES 0x06
90 #define EFI_HII_PACKAGE_SIMPLE_FONTS 0x07
91 #define EFI_HII_PACKAGE_DEVICE_PATH 0x08
92 #define EFI_HII_PACKAGE_END 0xDF
93 #define EFI_HII_PACKAGE_TYPE_SYSTEM_BEGIN 0xE0
94 #define EFI_HII_PACKAGE_TYPE_SYSTEM_END 0xFF
95
96 //
97 // Simplified Font Package
98 //
99
100 #define EFI_GLYPH_HEIGHT 19
101 #define EFI_GLYPH_WIDTH 8
102 //
103 // Contents of EFI_NARROW_GLYPH.Attributes
104 //
105 #define EFI_GLYPH_NON_SPACING 0x01
106 #define EFI_GLYPH_WIDE 0x02
107
108 typedef struct {
109 CHAR16 UnicodeWeight;
110 UINT8 Attributes;
111 UINT8 GlyphCol1[EFI_GLYPH_HEIGHT];
112 } EFI_NARROW_GLYPH;
113
114 typedef struct {
115 CHAR16 UnicodeWeight;
116 UINT8 Attributes;
117 UINT8 GlyphCol1[EFI_GLYPH_HEIGHT];
118 UINT8 GlyphCol2[EFI_GLYPH_HEIGHT];
119 UINT8 Pad[3];
120 } EFI_WIDE_GLYPH;
121
122
123 typedef struct _EFI_HII_SIMPLE_FONT_PACKAGE_HDR {
124 EFI_HII_PACKAGE_HEADER Header;
125 UINT16 NumberOfNarrowGlyphs;
126 UINT16 NumberOfWideGlyphs;
127 // EFI_NARROW_GLYPH NarrowGlyphs[];
128 // EFI_WIDE_GLYPH WideGlyphs[];
129 } EFI_HII_SIMPLE_FONT_PACKAGE_HDR;
130
131 //
132 // Font Package
133 //
134
135 #define EFI_HII_FONT_STYLE_BOLD 0x00000001
136 #define EFI_HII_FONT_STYLE_ITALIC 0x00000002
137 #define EFI_HII_FONT_STYLE_EMBOSS 0x00010000
138 #define EFI_HII_FONT_STYLE_OUTLINE 0x00020000
139 #define EFI_HII_FONT_STYLE_SHADOW 0x00040000
140 #define EFI_HII_FONT_STYLE_UNDERLINE 0x00080000
141 #define EFI_HII_FONT_STYLE_DBL_UNDER 0x00100000
142
143 typedef struct _EFI_HII_GLYPH_INFO {
144 UINT16 Width;
145 UINT16 Height;
146 INT16 OffsetX;
147 INT16 OffsetY;
148 INT16 AdvanceX;
149 } EFI_HII_GLYPH_INFO;
150
151 typedef struct _EFI_HII_FONT_PACKAGE_HDR {
152 EFI_HII_PACKAGE_HEADER Header;
153 UINT32 HdrSize;
154 UINT32 GlyphBlockOffset;
155 EFI_HII_GLYPH_INFO Cell;
156 EFI_HII_FONT_STYLE FontStyle;
157 CHAR16 FontFamily[1];
158 } EFI_HII_FONT_PACKAGE_HDR;
159
160 #define EFI_HII_GIBT_END 0x00
161 #define EFI_HII_GIBT_GLYPH 0x10
162 #define EFI_HII_GIBT_GLYPHS 0x11
163 #define EFI_HII_GIBT_GLYPH_DEFAULT 0x12
164 #define EFI_HII_GIBT_GLYPHS_DEFAULT 0x13
165 #define EFI_HII_GIBT_GLYPH_VARIABILITY 0x14
166 #define EFI_HII_GIBT_DUPLICATE 0x20
167 #define EFI_HII_GIBT_SKIP2 0x21
168 #define EFI_HII_GIBT_SKIP1 0x22
169 #define EFI_HII_GIBT_DEFAULTS 0x23
170 #define EFI_HII_GIBT_EXT1 0x30
171 #define EFI_HII_GIBT_EXT2 0x31
172 #define EFI_HII_GIBT_EXT4 0x32
173
174 typedef struct _EFI_HII_GLYPH_BLOCK {
175 UINT8 BlockType;
176 } EFI_HII_GLYPH_BLOCK;
177
178 typedef struct _EFI_HII_GIBT_DEFAULTS_BLOCK {
179 EFI_HII_GLYPH_BLOCK Header;
180 EFI_HII_GLYPH_INFO Cell;
181 } EFI_HII_GIBT_DEFAULTS_BLOCK;
182
183 typedef struct _EFI_HII_GIBT_DUPLICATE_BLOCK {
184 EFI_HII_GLYPH_BLOCK Header;
185 CHAR16 CharValue;
186 } EFI_HII_GIBT_DUPLICATE_BLOCK;
187
188 typedef struct _EFI_GLYPH_GIBT_END_BLOCK {
189 EFI_HII_GLYPH_BLOCK Header;
190 } EFI_GLYPH_GIBT_END_BLOCK;
191
192 typedef struct _EFI_HII_GIBT_EXT1_BLOCK {
193 EFI_HII_GLYPH_BLOCK Header;
194 UINT8 BlockType2;
195 UINT8 Length;
196 } EFI_HII_GIBT_EXT1_BLOCK;
197
198 typedef struct _EFI_HII_GIBT_EXT2_BLOCK {
199 EFI_HII_GLYPH_BLOCK Header;
200 UINT8 BlockType2;
201 UINT16 Length;
202 } EFI_HII_GIBT_EXT2_BLOCK;
203
204 typedef struct _EFI_HII_GIBT_EXT4_BLOCK {
205 EFI_HII_GLYPH_BLOCK Header;
206 UINT8 BlockType2;
207 UINT32 Length;
208 } EFI_HII_GIBT_EXT4_BLOCK;
209
210 typedef struct _EFI_HII_GIBT_GLYPH_BLOCK {
211 EFI_HII_GLYPH_BLOCK Header;
212 EFI_HII_GLYPH_INFO Cell;
213 UINT8 BitmapData[1]; // the number of bytes per bitmap can be calculated by ((Cell.Width+7)/8)*Cell.Height
214 } EFI_HII_GIBT_GLYPH_BLOCK;
215
216 typedef struct _EFI_HII_GIBT_GLYPHS_BLOCK {
217 EFI_HII_GLYPH_BLOCK Header;
218 EFI_HII_GLYPH_INFO Cell;
219 UINT16 Count;
220 UINT8 BitmapData[1]; // the number of bytes per bitmap can be calculated by ((Cell.Width+7)/8)*Cell.Height
221 } EFI_HII_GIBT_GLYPHS_BLOCK;
222
223 typedef struct _EFI_HII_GIBT_GLYPH_DEFAULT_BLOCK {
224 EFI_HII_GLYPH_BLOCK Header;
225 UINT8 BitmapData[1]; // the number of bytes per bitmap can be calculated by ((Global.Cell.Width+7)/8)*Global.Cell.Height
226 } EFI_HII_GIBT_GLYPH_DEFAULT_BLOCK;
227
228 typedef struct _EFI_HII_GIBT_GLYPHS_DEFAULT_BLOCK {
229 EFI_HII_GLYPH_BLOCK Header;
230 UINT16 Count;
231 UINT8 BitmapData[1]; // the number of bytes per bitmap can be calculated by ((Global.Cell.Width+7)/8)*Global.Cell.Height
232 } EFI_HII_GIBT_GLYPHS_DEFAULT_BLOCK;
233
234 typedef struct _EFI_HII_GIBT_VARIABILITY_BLOCK {
235 EFI_HII_GLYPH_BLOCK Header;
236 EFI_HII_GLYPH_INFO Cell;
237 UINT8 GlyphPackInBits;
238 UINT8 BitmapData [1];
239 } EFI_HII_GIBT_VARIABILITY_BLOCK;
240
241 typedef struct _EFI_HII_GIBT_SKIP1_BLOCK {
242 EFI_HII_GLYPH_BLOCK Header;
243 UINT8 SkipCount;
244 } EFI_HII_GIBT_SKIP1_BLOCK;
245
246 typedef struct _EFI_HII_GIBT_SKIP2_BLOCK {
247 EFI_HII_GLYPH_BLOCK Header;
248 UINT16 SkipCount;
249 } EFI_HII_GIBT_SKIP2_BLOCK;
250
251 //
252 // Device Path Package
253 //
254 typedef struct _EFI_HII_DEVICE_PATH_PACKAGE {
255 EFI_HII_PACKAGE_HEADER Header;
256 // EFI_DEVICE_PATH_PROTOCOL DevicePath[];
257 } EFI_HII_DEVICE_PATH_PACKAGE;
258
259 //
260 // GUID Package
261 //
262 typedef struct _EFI_HII_GUID_PACKAGE_HDR {
263 EFI_HII_PACKAGE_HEADER Header;
264 EFI_GUID Guid;
265 // Data per GUID definition may follow
266 } EFI_HII_GUID_PACKAGE_HDR;
267
268 //
269 // String Package
270 //
271
272 #define UEFI_CONFIG_LANG "x-UEFI"
273 #define UEFI_CONFIG_LANG2 "x-i-UEFI"
274
275 typedef struct _EFI_HII_STRING_PACKAGE_HDR {
276 EFI_HII_PACKAGE_HEADER Header;
277 UINT32 HdrSize;
278 UINT32 StringInfoOffset;
279 CHAR16 LanguageWindow[16];
280 EFI_STRING_ID LanguageName;
281 CHAR8 Language[1];
282 } EFI_HII_STRING_PACKAGE_HDR;
283
284 typedef struct {
285 UINT8 BlockType;
286 } EFI_HII_STRING_BLOCK;
287
288 #define EFI_HII_SIBT_END 0x00
289 #define EFI_HII_SIBT_STRING_SCSU 0x10
290 #define EFI_HII_SIBT_STRING_SCSU_FONT 0x11
291 #define EFI_HII_SIBT_STRINGS_SCSU 0x12
292 #define EFI_HII_SIBT_STRINGS_SCSU_FONT 0x13
293 #define EFI_HII_SIBT_STRING_UCS2 0x14
294 #define EFI_HII_SIBT_STRING_UCS2_FONT 0x15
295 #define EFI_HII_SIBT_STRINGS_UCS2 0x16
296 #define EFI_HII_SIBT_STRINGS_UCS2_FONT 0x17
297 #define EFI_HII_SIBT_DUPLICATE 0x20
298 #define EFI_HII_SIBT_SKIP2 0x21
299 #define EFI_HII_SIBT_SKIP1 0x22
300 #define EFI_HII_SIBT_EXT1 0x30
301 #define EFI_HII_SIBT_EXT2 0x31
302 #define EFI_HII_SIBT_EXT4 0x32
303 #define EFI_HII_SIBT_FONT 0x40
304
305 typedef struct _EFI_HII_SIBT_DUPLICATE_BLOCK {
306 EFI_HII_STRING_BLOCK Header;
307 EFI_STRING_ID StringId;
308 } EFI_HII_SIBT_DUPLICATE_BLOCK;
309
310 typedef struct _EFI_HII_SIBT_END_BLOCK {
311 EFI_HII_STRING_BLOCK Header;
312 } EFI_HII_SIBT_END_BLOCK;
313
314 typedef struct _EFI_HII_SIBT_EXT1_BLOCK {
315 EFI_HII_STRING_BLOCK Header;
316 UINT8 BlockType2;
317 UINT8 Length;
318 } EFI_HII_SIBT_EXT1_BLOCK;
319
320 typedef struct _EFI_HII_SIBT_EXT2_BLOCK {
321 EFI_HII_STRING_BLOCK Header;
322 UINT8 BlockType2;
323 UINT16 Length;
324 } EFI_HII_SIBT_EXT2_BLOCK;
325
326 typedef struct _EFI_HII_SIBT_EXT4_BLOCK {
327 EFI_HII_STRING_BLOCK Header;
328 UINT8 BlockType2;
329 UINT32 Length;
330 } EFI_HII_SIBT_EXT4_BLOCK;
331
332 typedef struct _EFI_HII_SIBT_FONT_BLOCK {
333 EFI_HII_SIBT_EXT2_BLOCK Header;
334 UINT8 FontId;
335 UINT16 FontSize;
336 EFI_HII_FONT_STYLE FontStyle;
337 CHAR16 FontName[1];
338 } EFI_HII_SIBT_FONT_BLOCK;
339
340 typedef struct _EFI_HII_SIBT_SKIP1_BLOCK {
341 EFI_HII_STRING_BLOCK Header;
342 UINT8 SkipCount;
343 } EFI_HII_SIBT_SKIP1_BLOCK;
344
345 typedef struct _EFI_HII_SIBT_SKIP2_BLOCK {
346 EFI_HII_STRING_BLOCK Header;
347 UINT16 SkipCount;
348 } EFI_HII_SIBT_SKIP2_BLOCK;
349
350 typedef struct _EFI_HII_SIBT_STRING_SCSU_BLOCK {
351 EFI_HII_STRING_BLOCK Header;
352 UINT8 StringText[1];
353 } EFI_HII_SIBT_STRING_SCSU_BLOCK;
354
355 typedef struct _EFI_HII_SIBT_STRING_SCSU_FONT_BLOCK {
356 EFI_HII_STRING_BLOCK Header;
357 UINT8 FontIdentifier;
358 UINT8 StringText[1];
359 } EFI_HII_SIBT_STRING_SCSU_FONT_BLOCK;
360
361 typedef struct _EFI_HII_SIBT_STRINGS_SCSU_BLOCK {
362 EFI_HII_STRING_BLOCK Header;
363 UINT16 StringCount;
364 UINT8 StringText[1];
365 } EFI_HII_SIBT_STRINGS_SCSU_BLOCK;
366
367 typedef struct _EFI_HII_SIBT_STRINGS_SCSU_FONT_BLOCK {
368 EFI_HII_STRING_BLOCK Header;
369 UINT8 FontIdentifier;
370 UINT16 StringCount;
371 UINT8 StringText[1];
372 } EFI_HII_SIBT_STRINGS_SCSU_FONT_BLOCK;
373
374 typedef struct _EFI_HII_SIBT_STRING_UCS2_BLOCK {
375 EFI_HII_STRING_BLOCK Header;
376 CHAR16 StringText[1];
377 } EFI_HII_SIBT_STRING_UCS2_BLOCK;
378
379 typedef struct _EFI_HII_SIBT_STRING_UCS2_FONT_BLOCK {
380 EFI_HII_STRING_BLOCK Header;
381 UINT8 FontIdentifier;
382 CHAR16 StringText[1];
383 } EFI_HII_SIBT_STRING_UCS2_FONT_BLOCK;
384
385 typedef struct _EFI_HII_SIBT_STRINGS_UCS2_BLOCK {
386 EFI_HII_STRING_BLOCK Header;
387 UINT16 StringCount;
388 CHAR16 StringText[1];
389 } EFI_HII_SIBT_STRINGS_UCS2_BLOCK;
390
391 typedef struct _EFI_HII_SIBT_STRINGS_UCS2_FONT_BLOCK {
392 EFI_HII_STRING_BLOCK Header;
393 UINT8 FontIdentifier;
394 UINT16 StringCount;
395 CHAR16 StringText[1];
396 } EFI_HII_SIBT_STRINGS_UCS2_FONT_BLOCK;
397
398 //
399 // Image Packages
400 //
401
402 typedef struct _EFI_HII_IMAGE_PACKAGE_HDR {
403 EFI_HII_PACKAGE_HEADER Header;
404 UINT32 ImageInfoOffset;
405 UINT32 PaletteInfoOffset;
406 } EFI_HII_IMAGE_PACKAGE_HDR;
407
408 typedef struct _EFI_HII_IMAGE_BLOCK {
409 UINT8 BlockType;
410 } EFI_HII_IMAGE_BLOCK;
411
412 #define EFI_HII_IIBT_END 0x00
413 #define EFI_HII_IIBT_IMAGE_1BIT 0x10
414 #define EFI_HII_IIBT_IMAGE_1BIT_TRANS 0x11
415 #define EFI_HII_IIBT_IMAGE_4BIT 0x12
416 #define EFI_HII_IIBT_IMAGE_4BIT_TRANS 0x13
417 #define EFI_HII_IIBT_IMAGE_8BIT 0x14
418 #define EFI_HII_IIBT_IMAGE_8BIT_TRANS 0x15
419 #define EFI_HII_IIBT_IMAGE_24BIT 0x16
420 #define EFI_HII_IIBT_IMAGE_24BIT_TRANS 0x17
421 #define EFI_HII_IIBT_IMAGE_JPEG 0x18
422 #define EFI_HII_IIBT_IMAGE_PNG 0x19
423 #define EFI_HII_IIBT_DUPLICATE 0x20
424 #define EFI_HII_IIBT_SKIP2 0x21
425 #define EFI_HII_IIBT_SKIP1 0x22
426 #define EFI_HII_IIBT_EXT1 0x30
427 #define EFI_HII_IIBT_EXT2 0x31
428 #define EFI_HII_IIBT_EXT4 0x32
429
430 typedef struct _EFI_HII_IIBT_END_BLOCK {
431 EFI_HII_IMAGE_BLOCK Header;
432 } EFI_HII_IIBT_END_BLOCK;
433
434 typedef struct _EFI_HII_IIBT_EXT1_BLOCK {
435 EFI_HII_IMAGE_BLOCK Header;
436 UINT8 BlockType2;
437 UINT8 Length;
438 } EFI_HII_IIBT_EXT1_BLOCK;
439
440 typedef struct _EFI_HII_IIBT_EXT2_BLOCK {
441 EFI_HII_IMAGE_BLOCK Header;
442 UINT8 BlockType2;
443 UINT16 Length;
444 } EFI_HII_IIBT_EXT2_BLOCK;
445
446 typedef struct _EFI_HII_IIBT_EXT4_BLOCK {
447 EFI_HII_IMAGE_BLOCK Header;
448 UINT8 BlockType2;
449 UINT32 Length;
450 } EFI_HII_IIBT_EXT4_BLOCK;
451
452 typedef struct _EFI_HII_IIBT_IMAGE_1BIT_BASE {
453 UINT16 Width;
454 UINT16 Height;
455 UINT8 Data[1];
456 } EFI_HII_IIBT_IMAGE_1BIT_BASE;
457
458 typedef struct _EFI_HII_IIBT_IMAGE_1BIT_BLOCK {
459 EFI_HII_IMAGE_BLOCK Header;
460 UINT8 PaletteIndex;
461 EFI_HII_IIBT_IMAGE_1BIT_BASE Bitmap;
462 } EFI_HII_IIBT_IMAGE_1BIT_BLOCK;
463
464 typedef struct _EFI_HII_IIBT_IMAGE_1BIT_TRANS_BLOCK {
465 EFI_HII_IMAGE_BLOCK Header;
466 UINT8 PaletteIndex;
467 EFI_HII_IIBT_IMAGE_1BIT_BASE Bitmap;
468 } EFI_HII_IIBT_IMAGE_1BIT_TRANS_BLOCK;
469
470 typedef struct _EFI_HII_RGB_PIXEL {
471 UINT8 b;
472 UINT8 g;
473 UINT8 r;
474 } EFI_HII_RGB_PIXEL;
475
476 typedef struct _EFI_HII_IIBT_IMAGE_24BIT_BASE {
477 UINT16 Width;
478 UINT16 Height;
479 EFI_HII_RGB_PIXEL Bitmap[1];
480 } EFI_HII_IIBT_IMAGE_24BIT_BASE;
481
482 typedef struct _EFI_HII_IIBT_IMAGE_24BIT_BLOCK {
483 EFI_HII_IMAGE_BLOCK Header;
484 EFI_HII_IIBT_IMAGE_24BIT_BASE Bitmap;
485 } EFI_HII_IIBT_IMAGE_24BIT_BLOCK;
486
487 typedef struct _EFI_HII_IIBT_IMAGE_24BIT_TRANS_BLOCK {
488 EFI_HII_IMAGE_BLOCK Header;
489 EFI_HII_IIBT_IMAGE_24BIT_BASE Bitmap;
490 } EFI_HII_IIBT_IMAGE_24BIT_TRANS_BLOCK;
491
492 typedef struct _EFI_HII_IIBT_IMAGE_4BIT_BASE {
493 UINT16 Width;
494 UINT16 Height;
495 UINT8 Data[1];
496 } EFI_HII_IIBT_IMAGE_4BIT_BASE;
497
498 typedef struct _EFI_HII_IIBT_IMAGE_4BIT_BLOCK {
499 EFI_HII_IMAGE_BLOCK Header;
500 UINT8 PaletteIndex;
501 EFI_HII_IIBT_IMAGE_4BIT_BASE Bitmap;
502 } EFI_HII_IIBT_IMAGE_4BIT_BLOCK;
503
504 typedef struct _EFI_HII_IIBT_IMAGE_4BIT_TRANS_BLOCK {
505 EFI_HII_IMAGE_BLOCK Header;
506 UINT8 PaletteIndex;
507 EFI_HII_IIBT_IMAGE_4BIT_BASE Bitmap;
508 } EFI_HII_IIBT_IMAGE_4BIT_TRANS_BLOCK;
509
510 typedef struct _EFI_HII_IIBT_IMAGE_8BIT_BASE {
511 UINT16 Width;
512 UINT16 Height;
513 UINT8 Data[1];
514 } EFI_HII_IIBT_IMAGE_8BIT_BASE;
515
516 typedef struct _EFI_HII_IIBT_IMAGE_8BIT_PALETTE_BLOCK {
517 EFI_HII_IMAGE_BLOCK Header;
518 UINT8 PaletteIndex;
519 EFI_HII_IIBT_IMAGE_8BIT_BASE Bitmap;
520 } EFI_HII_IIBT_IMAGE_8BIT_BLOCK;
521
522 typedef struct _EFI_HII_IIBT_IMAGE_8BIT_TRANS_BLOCK {
523 EFI_HII_IMAGE_BLOCK Header;
524 UINT8 PaletteIndex;
525 EFI_HII_IIBT_IMAGE_8BIT_BASE Bitmap;
526 } EFI_HII_IIBT_IMAGE_8BIT_TRAN_BLOCK;
527
528 typedef struct _EFI_HII_IIBT_DUPLICATE_BLOCK {
529 EFI_HII_IMAGE_BLOCK Header;
530 EFI_IMAGE_ID ImageId;
531 } EFI_HII_IIBT_DUPLICATE_BLOCK;
532
533 typedef struct _EFI_HII_IIBT_JPEG_BLOCK {
534 EFI_HII_IMAGE_BLOCK Header;
535 UINT32 Size;
536 UINT8 Data[1];
537 } EFI_HII_IIBT_JPEG_BLOCK;
538
539 typedef struct _EFI_HII_IIBT_PNG_BLOCK {
540 EFI_HII_IMAGE_BLOCK Header;
541 UINT32 Size;
542 UINT8 Data[1];
543 } EFI_HII_IIBT_PNG_BLOCK;
544
545 typedef struct _EFI_HII_IIBT_SKIP1_BLOCK {
546 EFI_HII_IMAGE_BLOCK Header;
547 UINT8 SkipCount;
548 } EFI_HII_IIBT_SKIP1_BLOCK;
549
550 typedef struct _EFI_HII_IIBT_SKIP2_BLOCK {
551 EFI_HII_IMAGE_BLOCK Header;
552 UINT16 SkipCount;
553 } EFI_HII_IIBT_SKIP2_BLOCK;
554
555 typedef struct _EFI_HII_IMAGE_PALETTE_INFO_HEADER {
556 UINT16 PaletteCount;
557 } EFI_HII_IMAGE_PALETTE_INFO_HEADER;
558
559 typedef struct _EFI_HII_IMAGE_PALETTE_INFO {
560 UINT16 PaletteSize;
561 EFI_HII_RGB_PIXEL PaletteValue[1];
562 } EFI_HII_IMAGE_PALETTE_INFO;
563
564 //
565 // Forms Package
566 //
567
568 typedef struct _EFI_HII_FORM_PACKAGE {
569 EFI_HII_PACKAGE_HEADER Header;
570 // EFI_IFR_OP_HEADER OpCodeHeader;
571 // More op-codes follow
572 } EFI_HII_FORM_PACKAGE;
573
574 typedef struct {
575 UINT8 Hour;
576 UINT8 Minute;
577 UINT8 Second;
578 } EFI_HII_TIME;
579
580 typedef struct {
581 UINT16 Year;
582 UINT8 Month;
583 UINT8 Day;
584 } EFI_HII_DATE;
585
586 typedef struct {
587 EFI_QUESTION_ID QuestionId;
588 EFI_FORM_ID FormId;
589 EFI_GUID FormSetGuid;
590 EFI_STRING_ID DevicePath;
591 } EFI_HII_REF;
592
593 typedef union {
594 UINT8 u8;
595 UINT16 u16;
596 UINT32 u32;
597 UINT64 u64;
598 BOOLEAN b;
599 EFI_HII_TIME time;
600 EFI_HII_DATE date;
601 EFI_STRING_ID string;
602 EFI_HII_REF ref;
603 } EFI_IFR_TYPE_VALUE;
604
605 #define EFI_IFR_FORM_OP 0x01
606 #define EFI_IFR_SUBTITLE_OP 0x02
607 #define EFI_IFR_TEXT_OP 0x03
608 #define EFI_IFR_IMAGE_OP 0x04
609 #define EFI_IFR_ONE_OF_OP 0x05
610 #define EFI_IFR_CHECKBOX_OP 0x06
611 #define EFI_IFR_NUMERIC_OP 0x07
612 #define EFI_IFR_PASSWORD_OP 0x08
613 #define EFI_IFR_ONE_OF_OPTION_OP 0x09
614 #define EFI_IFR_SUPPRESS_IF_OP 0x0A
615 #define EFI_IFR_LOCKED_OP 0x0B
616 #define EFI_IFR_ACTION_OP 0x0C
617 #define EFI_IFR_RESET_BUTTON_OP 0x0D
618 #define EFI_IFR_FORM_SET_OP 0x0E
619 #define EFI_IFR_REF_OP 0x0F
620 #define EFI_IFR_NO_SUBMIT_IF_OP 0x10
621 #define EFI_IFR_INCONSISTENT_IF_OP 0x11
622 #define EFI_IFR_EQ_ID_VAL_OP 0x12
623 #define EFI_IFR_EQ_ID_ID_OP 0x13
624 #define EFI_IFR_EQ_ID_VAL_LIST_OP 0x14
625 #define EFI_IFR_AND_OP 0x15
626 #define EFI_IFR_OR_OP 0x16
627 #define EFI_IFR_NOT_OP 0x17
628 #define EFI_IFR_RULE_OP 0x18
629 #define EFI_IFR_GRAY_OUT_IF_OP 0x19
630 #define EFI_IFR_DATE_OP 0x1A
631 #define EFI_IFR_TIME_OP 0x1B
632 #define EFI_IFR_STRING_OP 0x1C
633 #define EFI_IFR_REFRESH_OP 0x1D
634 #define EFI_IFR_DISABLE_IF_OP 0x1E
635 #define EFI_IFR_TO_LOWER_OP 0x20
636 #define EFI_IFR_TO_UPPER_OP 0x21
637 #define EFI_IFR_MAP_OP 0x22
638 #define EFI_IFR_ORDERED_LIST_OP 0x23
639 #define EFI_IFR_VARSTORE_OP 0x24
640 #define EFI_IFR_VARSTORE_NAME_VALUE_OP 0x25
641 #define EFI_IFR_VARSTORE_EFI_OP 0x26
642 #define EFI_IFR_VARSTORE_DEVICE_OP 0x27
643 #define EFI_IFR_VERSION_OP 0x28
644 #define EFI_IFR_END_OP 0x29
645 #define EFI_IFR_MATCH_OP 0x2A
646 #define EFI_IFR_GET_OP 0x2B
647 #define EFI_IFR_SET_OP 0x2C
648 #define EFI_IFR_READ_OP 0x2D
649 #define EFI_IFR_WRITE_OP 0x2E
650 #define EFI_IFR_EQUAL_OP 0x2F
651 #define EFI_IFR_NOT_EQUAL_OP 0x30
652 #define EFI_IFR_GREATER_THAN_OP 0x31
653 #define EFI_IFR_GREATER_EQUAL_OP 0x32
654 #define EFI_IFR_LESS_THAN_OP 0x33
655 #define EFI_IFR_LESS_EQUAL_OP 0x34
656 #define EFI_IFR_BITWISE_AND_OP 0x35
657 #define EFI_IFR_BITWISE_OR_OP 0x36
658 #define EFI_IFR_BITWISE_NOT_OP 0x37
659 #define EFI_IFR_SHIFT_LEFT_OP 0x38
660 #define EFI_IFR_SHIFT_RIGHT_OP 0x39
661 #define EFI_IFR_ADD_OP 0x3A
662 #define EFI_IFR_SUBTRACT_OP 0x3B
663 #define EFI_IFR_MULTIPLY_OP 0x3C
664 #define EFI_IFR_DIVIDE_OP 0x3D
665 #define EFI_IFR_MODULO_OP 0x3E
666 #define EFI_IFR_RULE_REF_OP 0x3F
667 #define EFI_IFR_QUESTION_REF1_OP 0x40
668 #define EFI_IFR_QUESTION_REF2_OP 0x41
669 #define EFI_IFR_UINT8_OP 0x42
670 #define EFI_IFR_UINT16_OP 0x43
671 #define EFI_IFR_UINT32_OP 0x44
672 #define EFI_IFR_UINT64_OP 0x45
673 #define EFI_IFR_TRUE_OP 0x46
674 #define EFI_IFR_FALSE_OP 0x47
675 #define EFI_IFR_TO_UINT_OP 0x48
676 #define EFI_IFR_TO_STRING_OP 0x49
677 #define EFI_IFR_TO_BOOLEAN_OP 0x4A
678 #define EFI_IFR_MID_OP 0x4B
679 #define EFI_IFR_FIND_OP 0x4C
680 #define EFI_IFR_TOKEN_OP 0x4D
681 #define EFI_IFR_STRING_REF1_OP 0x4E
682 #define EFI_IFR_STRING_REF2_OP 0x4F
683 #define EFI_IFR_CONDITIONAL_OP 0x50
684 #define EFI_IFR_QUESTION_REF3_OP 0x51
685 #define EFI_IFR_ZERO_OP 0x52
686 #define EFI_IFR_ONE_OP 0x53
687 #define EFI_IFR_ONES_OP 0x54
688 #define EFI_IFR_UNDEFINED_OP 0x55
689 #define EFI_IFR_LENGTH_OP 0x56
690 #define EFI_IFR_DUP_OP 0x57
691 #define EFI_IFR_THIS_OP 0x58
692 #define EFI_IFR_SPAN_OP 0x59
693 #define EFI_IFR_VALUE_OP 0x5A
694 #define EFI_IFR_DEFAULT_OP 0x5B
695 #define EFI_IFR_DEFAULTSTORE_OP 0x5C
696 #define EFI_IFR_FORM_MAP_OP 0x5D
697 #define EFI_IFR_CATENATE_OP 0x5E
698 #define EFI_IFR_GUID_OP 0x5F
699 #define EFI_IFR_SECURITY_OP 0x60
700 #define EFI_IFR_MODAL_TAG_OP 0x61
701 #define EFI_IFR_REFRESH_ID_OP 0x62
702 #define EFI_IFR_WARNING_IF_OP 0x63
703 #define EFI_IFR_MATCH2_OP 0x64
704
705
706 typedef struct _EFI_IFR_OP_HEADER {
707 UINT8 OpCode;
708 UINT8 Length:7;
709 UINT8 Scope:1;
710 } EFI_IFR_OP_HEADER;
711
712 typedef struct _EFI_IFR_STATEMENT_HEADER {
713 EFI_STRING_ID Prompt;
714 EFI_STRING_ID Help;
715 } EFI_IFR_STATEMENT_HEADER;
716
717 typedef struct _EFI_IFR_QUESTION_HEADER {
718 EFI_IFR_STATEMENT_HEADER Header;
719 EFI_QUESTION_ID QuestionId;
720 EFI_VARSTORE_ID VarStoreId;
721 union {
722 EFI_STRING_ID VarName;
723 UINT16 VarOffset;
724 } VarStoreInfo;
725 UINT8 Flags;
726 } EFI_IFR_QUESTION_HEADER;
727
728 #define EFI_IFR_FLAG_READ_ONLY 0x01
729 #define EFI_IFR_FLAG_CALLBACK 0x04
730 #define EFI_IFR_FLAG_RESET_REQUIRED 0x10
731 #define EFI_IFR_FLAG_RECONNECT_REQUIRED 0x40
732 #define EFI_IFR_FLAG_OPTIONS_ONLY 0x80
733
734 typedef struct _EFI_IFR_DEFAULTSTORE {
735 EFI_IFR_OP_HEADER Header;
736 EFI_STRING_ID DefaultName;
737 UINT16 DefaultId;
738 } EFI_IFR_DEFAULTSTORE;
739
740 #define EFI_HII_DEFAULT_CLASS_STANDARD 0x0000
741 #define EFI_HII_DEFAULT_CLASS_MANUFACTURING 0x0001
742 #define EFI_HII_DEFAULT_CLASS_SAFE 0x0002
743 #define EFI_HII_DEFAULT_CLASS_PLATFORM_BEGIN 0x4000
744 #define EFI_HII_DEFAULT_CLASS_PLATFORM_END 0x7fff
745 #define EFI_HII_DEFAULT_CLASS_HARDWARE_BEGIN 0x8000
746 #define EFI_HII_DEFAULT_CLASS_HARDWARE_END 0xbfff
747 #define EFI_HII_DEFAULT_CLASS_FIRMWARE_BEGIN 0xc000
748 #define EFI_HII_DEFAULT_CLASS_FIRMWARE_END 0xffff
749
750 typedef struct _EFI_IFR_VARSTORE {
751 EFI_IFR_OP_HEADER Header;
752 EFI_GUID Guid;
753 EFI_VARSTORE_ID VarStoreId;
754 UINT16 Size;
755 UINT8 Name[1];
756 } EFI_IFR_VARSTORE;
757
758 typedef struct _EFI_IFR_VARSTORE_EFI {
759 EFI_IFR_OP_HEADER Header;
760 EFI_VARSTORE_ID VarStoreId;
761 EFI_GUID Guid;
762 UINT32 Attributes;
763 UINT16 Size;
764 UINT8 Name[1];
765 } EFI_IFR_VARSTORE_EFI;
766
767 typedef struct _EFI_IFR_VARSTORE_NAME_VALUE {
768 EFI_IFR_OP_HEADER Header;
769 EFI_VARSTORE_ID VarStoreId;
770 EFI_GUID Guid;
771 } EFI_IFR_VARSTORE_NAME_VALUE;
772
773 typedef struct _EFI_IFR_FORM_SET {
774 EFI_IFR_OP_HEADER Header;
775 EFI_GUID Guid;
776 EFI_STRING_ID FormSetTitle;
777 EFI_STRING_ID Help;
778 UINT8 Flags;
779 // EFI_GUID ClassGuid[];
780 } EFI_IFR_FORM_SET;
781
782 typedef struct _EFI_IFR_END {
783 EFI_IFR_OP_HEADER Header;
784 } EFI_IFR_END;
785
786 typedef struct _EFI_IFR_FORM {
787 EFI_IFR_OP_HEADER Header;
788 UINT16 FormId;
789 EFI_STRING_ID FormTitle;
790 } EFI_IFR_FORM;
791
792 typedef struct _EFI_IFR_IMAGE {
793 EFI_IFR_OP_HEADER Header;
794 EFI_IMAGE_ID Id;
795 } EFI_IFR_IMAGE;
796
797 typedef struct _EFI_IFR_MODAL_TAG {
798 EFI_IFR_OP_HEADER Header;
799 } EFI_IFR_MODAL_TAG;
800
801 typedef struct _EFI_IFR_LOCKED {
802 EFI_IFR_OP_HEADER Header;
803 } EFI_IFR_LOCKED;
804
805 typedef struct _EFI_IFR_RULE {
806 EFI_IFR_OP_HEADER Header;
807 UINT8 RuleId;
808 } EFI_IFR_RULE;
809
810 typedef struct _EFI_IFR_DEFAULT {
811 EFI_IFR_OP_HEADER Header;
812 UINT16 DefaultId;
813 UINT8 Type;
814 EFI_IFR_TYPE_VALUE Value;
815 } EFI_IFR_DEFAULT;
816
817 typedef struct _EFI_IFR_DEFAULT_2 {
818 EFI_IFR_OP_HEADER Header;
819 UINT16 DefaultId;
820 UINT8 Type;
821 } EFI_IFR_DEFAULT_2;
822
823 typedef struct _EFI_IFR_VALUE {
824 EFI_IFR_OP_HEADER Header;
825 } EFI_IFR_VALUE;
826
827 typedef struct _EFI_IFR_SUBTITLE {
828 EFI_IFR_OP_HEADER Header;
829 EFI_IFR_STATEMENT_HEADER Statement;
830 UINT8 Flags;
831 } EFI_IFR_SUBTITLE;
832
833 #define EFI_IFR_FLAGS_HORIZONTAL 0x01
834
835 typedef struct _EFI_IFR_CHECKBOX {
836 EFI_IFR_OP_HEADER Header;
837 EFI_IFR_QUESTION_HEADER Question;
838 UINT8 Flags;
839 } EFI_IFR_CHECKBOX;
840
841 #define EFI_IFR_CHECKBOX_DEFAULT 0x01
842 #define EFI_IFR_CHECKBOX_DEFAULT_MFG 0x02
843
844 typedef struct _EFI_IFR_TEXT {
845 EFI_IFR_OP_HEADER Header;
846 EFI_IFR_STATEMENT_HEADER Statement;
847 EFI_STRING_ID TextTwo;
848 } EFI_IFR_TEXT;
849
850 typedef struct _EFI_IFR_REF {
851 EFI_IFR_OP_HEADER Header;
852 EFI_IFR_QUESTION_HEADER Question;
853 EFI_FORM_ID FormId;
854 } EFI_IFR_REF;
855
856 typedef struct _EFI_IFR_REF2 {
857 EFI_IFR_OP_HEADER Header;
858 EFI_IFR_QUESTION_HEADER Question;
859 EFI_FORM_ID FormId;
860 EFI_QUESTION_ID QuestionId;
861 } EFI_IFR_REF2;
862
863 typedef struct _EFI_IFR_REF3 {
864 EFI_IFR_OP_HEADER Header;
865 EFI_IFR_QUESTION_HEADER Question;
866 EFI_FORM_ID FormId;
867 EFI_QUESTION_ID QuestionId;
868 EFI_GUID FormSetId;
869 } EFI_IFR_REF3;
870
871 typedef struct _EFI_IFR_REF4 {
872 EFI_IFR_OP_HEADER Header;
873 EFI_IFR_QUESTION_HEADER Question;
874 EFI_FORM_ID FormId;
875 EFI_QUESTION_ID QuestionId;
876 EFI_GUID FormSetId;
877 EFI_STRING_ID DevicePath;
878 } EFI_IFR_REF4;
879
880 typedef struct _EFI_IFR_REF5 {
881 EFI_IFR_OP_HEADER Header;
882 EFI_IFR_QUESTION_HEADER Question;
883 } EFI_IFR_REF5;
884
885 typedef struct _EFI_IFR_RESET_BUTTON {
886 EFI_IFR_OP_HEADER Header;
887 EFI_IFR_STATEMENT_HEADER Statement;
888 EFI_DEFAULT_ID DefaultId;
889 } EFI_IFR_RESET_BUTTON;
890
891 typedef struct _EFI_IFR_ACTION {
892 EFI_IFR_OP_HEADER Header;
893 EFI_IFR_QUESTION_HEADER Question;
894 EFI_STRING_ID QuestionConfig;
895 } EFI_IFR_ACTION;
896
897 typedef struct _EFI_IFR_ACTION_1 {
898 EFI_IFR_OP_HEADER Header;
899 EFI_IFR_QUESTION_HEADER Question;
900 } EFI_IFR_ACTION_1;
901
902 typedef struct _EFI_IFR_DATE {
903 EFI_IFR_OP_HEADER Header;
904 EFI_IFR_QUESTION_HEADER Question;
905 UINT8 Flags;
906 } EFI_IFR_DATE;
907
908 #define EFI_QF_DATE_YEAR_SUPPRESS 0x01
909 #define EFI_QF_DATE_MONTH_SUPPRESS 0x02
910 #define EFI_QF_DATE_DAY_SUPPRESS 0x04
911
912 #define EFI_QF_DATE_STORAGE 0x30
913 #define QF_DATE_STORAGE_NORMAL 0x00
914 #define QF_DATE_STORAGE_TIME 0x10
915 #define QF_DATE_STORAGE_WAKEUP 0x20
916
917 typedef union {
918 struct {
919 UINT8 MinValue;
920 UINT8 MaxValue;
921 UINT8 Step;
922 } u8;
923 struct {
924 UINT16 MinValue;
925 UINT16 MaxValue;
926 UINT16 Step;
927 } u16;
928 struct {
929 UINT32 MinValue;
930 UINT32 MaxValue;
931 UINT32 Step;
932 } u32;
933 struct {
934 UINT64 MinValue;
935 UINT64 MaxValue;
936 UINT64 Step;
937 } u64;
938 } MINMAXSTEP_DATA;
939
940 typedef struct _EFI_IFR_NUMERIC {
941 EFI_IFR_OP_HEADER Header;
942 EFI_IFR_QUESTION_HEADER Question;
943 UINT8 Flags;
944 MINMAXSTEP_DATA data;
945 } EFI_IFR_NUMERIC;
946
947 #define EFI_IFR_NUMERIC_SIZE 0x03
948 #define EFI_IFR_NUMERIC_SIZE_1 0x00
949 #define EFI_IFR_NUMERIC_SIZE_2 0x01
950 #define EFI_IFR_NUMERIC_SIZE_4 0x02
951 #define EFI_IFR_NUMERIC_SIZE_8 0x03
952
953 #define EFI_IFR_DISPLAY 0x30
954 #define EFI_IFR_DISPLAY_INT_DEC 0x00
955 #define EFI_IFR_DISPLAY_UINT_DEC 0x10
956 #define EFI_IFR_DISPLAY_UINT_HEX 0x20
957
958 typedef struct _EFI_IFR_ONE_OF {
959 EFI_IFR_OP_HEADER Header;
960 EFI_IFR_QUESTION_HEADER Question;
961 UINT8 Flags;
962 MINMAXSTEP_DATA data;
963 } EFI_IFR_ONE_OF;
964
965 typedef struct _EFI_IFR_STRING {
966 EFI_IFR_OP_HEADER Header;
967 EFI_IFR_QUESTION_HEADER Question;
968 UINT8 MinSize;
969 UINT8 MaxSize;
970 UINT8 Flags;
971 } EFI_IFR_STRING;
972
973 #define EFI_IFR_STRING_MULTI_LINE 0x01
974
975 typedef struct _EFI_IFR_PASSWORD {
976 EFI_IFR_OP_HEADER Header;
977 EFI_IFR_QUESTION_HEADER Question;
978 UINT16 MinSize;
979 UINT16 MaxSize;
980 } EFI_IFR_PASSWORD;
981
982 typedef struct _EFI_IFR_ORDERED_LIST {
983 EFI_IFR_OP_HEADER Header;
984 EFI_IFR_QUESTION_HEADER Question;
985 UINT8 MaxContainers;
986 UINT8 Flags;
987 } EFI_IFR_ORDERED_LIST;
988
989 #define EFI_IFR_UNIQUE_SET 0x01
990 #define EFI_IFR_NO_EMPTY_SET 0x02
991
992 typedef struct _EFI_IFR_TIME {
993 EFI_IFR_OP_HEADER Header;
994 EFI_IFR_QUESTION_HEADER Question;
995 UINT8 Flags;
996 } EFI_IFR_TIME;
997
998 #define QF_TIME_HOUR_SUPPRESS 0x01
999 #define QF_TIME_MINUTE_SUPPRESS 0x02
1000 #define QF_TIME_SECOND_SUPPRESS 0x04
1001
1002 #define QF_TIME_STORAGE 0x30
1003 #define QF_TIME_STORAGE_NORMAL 0x00
1004 #define QF_TIME_STORAGE_TIME 0x10
1005 #define QF_TIME_STORAGE_WAKEUP 0x20
1006
1007 typedef struct _EFI_IFR_DISABLE_IF {
1008 EFI_IFR_OP_HEADER Header;
1009 } EFI_IFR_DISABLE_IF;
1010
1011 typedef struct _EFI_IFR_SUPPRESS_IF {
1012 EFI_IFR_OP_HEADER Header;
1013 } EFI_IFR_SUPPRESS_IF;
1014
1015 typedef struct _EFI_IFR_GRAY_OUT_IF {
1016 EFI_IFR_OP_HEADER Header;
1017 } EFI_IFR_GRAY_OUT_IF;
1018
1019 typedef struct _EFI_IFR_INCONSISTENT_IF {
1020 EFI_IFR_OP_HEADER Header;
1021 EFI_STRING_ID Error;
1022 } EFI_IFR_INCONSISTENT_IF;
1023
1024 typedef struct _EFI_IFR_NO_SUBMIT_IF {
1025 EFI_IFR_OP_HEADER Header;
1026 EFI_STRING_ID Error;
1027 } EFI_IFR_NO_SUBMIT_IF;
1028
1029 typedef struct _EFI_IFR_WARNING_IF {
1030 EFI_IFR_OP_HEADER Header;
1031 EFI_STRING_ID Warning;
1032 UINT8 TimeOut;
1033 } EFI_IFR_WARNING_IF;
1034
1035 typedef struct _EFI_IFR_REFRESH {
1036 EFI_IFR_OP_HEADER Header;
1037 UINT8 RefreshInterval;
1038 } EFI_IFR_REFRESH;
1039
1040 typedef struct _EFI_IFR_REFRESH_ID {
1041 EFI_IFR_OP_HEADER Header;
1042 EFI_GUID RefreshEventGroupId;
1043 } EFI_IFR_REFRESH_ID;
1044
1045 typedef struct _EFI_IFR_VARSTORE_DEVICE {
1046 EFI_IFR_OP_HEADER Header;
1047 EFI_STRING_ID DevicePath;
1048 } EFI_IFR_VARSTORE_DEVICE;
1049
1050 typedef struct _EFI_IFR_ONE_OF_OPTION {
1051 EFI_IFR_OP_HEADER Header;
1052 EFI_STRING_ID Option;
1053 UINT8 Flags;
1054 UINT8 Type;
1055 EFI_IFR_TYPE_VALUE Value;
1056 } EFI_IFR_ONE_OF_OPTION;
1057
1058 #define EFI_IFR_TYPE_NUM_SIZE_8 0x00
1059 #define EFI_IFR_TYPE_NUM_SIZE_16 0x01
1060 #define EFI_IFR_TYPE_NUM_SIZE_32 0x02
1061 #define EFI_IFR_TYPE_NUM_SIZE_64 0x03
1062 #define EFI_IFR_TYPE_BOOLEAN 0x04
1063 #define EFI_IFR_TYPE_TIME 0x05
1064 #define EFI_IFR_TYPE_DATE 0x06
1065 #define EFI_IFR_TYPE_STRING 0x07
1066 #define EFI_IFR_TYPE_OTHER 0x08
1067 #define EFI_IFR_TYPE_UNDEFINED 0x09
1068 #define EFI_IFR_TYPE_ACTION 0x0A
1069 #define EFI_IFR_TYPE_BUFFER 0x0B
1070 #define EFI_IFR_TYPE_REF 0x0C
1071
1072 #define EFI_IFR_OPTION_DEFAULT 0x10
1073 #define EFI_IFR_OPTION_DEFAULT_MFG 0x20
1074
1075 typedef struct _EFI_IFR_GUID {
1076 EFI_IFR_OP_HEADER Header;
1077 EFI_GUID Guid;
1078 //Optional Data Follows
1079 } EFI_IFR_GUID;
1080
1081 typedef struct _EFI_IFR_DUP {
1082 EFI_IFR_OP_HEADER Header;
1083 } EFI_IFR_DUP;
1084
1085 typedef struct _EFI_IFR_EQ_ID_ID {
1086 EFI_IFR_OP_HEADER Header;
1087 EFI_QUESTION_ID QuestionId1;
1088 EFI_QUESTION_ID QuestionId2;
1089 } EFI_IFR_EQ_ID_ID;
1090
1091 typedef struct _EFI_IFR_EQ_ID_VAL {
1092 EFI_IFR_OP_HEADER Header;
1093 EFI_QUESTION_ID QuestionId;
1094 UINT16 Value;
1095 } EFI_IFR_EQ_ID_VAL;
1096
1097 typedef struct _EFI_IFR_EQ_ID_VAL_LIST {
1098 EFI_IFR_OP_HEADER Header;
1099 EFI_QUESTION_ID QuestionId;
1100 UINT16 ListLength;
1101 UINT16 ValueList[1];
1102 } EFI_IFR_EQ_ID_VAL_LIST;
1103
1104 typedef struct _EFI_IFR_QUESTION_REF1 {
1105 EFI_IFR_OP_HEADER Header;
1106 EFI_QUESTION_ID QuestionId;
1107 } EFI_IFR_QUESTION_REF1;
1108
1109 typedef struct _EFI_IFR_UINT8 {
1110 EFI_IFR_OP_HEADER Header;
1111 UINT8 Value;
1112 } EFI_IFR_UINT8;
1113
1114 typedef struct _EFI_IFR_UINT16 {
1115 EFI_IFR_OP_HEADER Header;
1116 UINT16 Value;
1117 } EFI_IFR_UINT16;
1118
1119 typedef struct _EFI_IFR_QUESTION_REF2 {
1120 EFI_IFR_OP_HEADER Header;
1121 } EFI_IFR_QUESTION_REF2;
1122
1123 typedef struct _EFI_IFR_UINT32 {
1124 EFI_IFR_OP_HEADER Header;
1125 UINT32 Value;
1126 } EFI_IFR_UINT32;
1127
1128 typedef struct _EFI_IFR_UINT64 {
1129 EFI_IFR_OP_HEADER Header;
1130 UINT64 Value;
1131 } EFI_IFR_UINT64;
1132
1133 typedef struct _EFI_IFR_QUESTION_REF3 {
1134 EFI_IFR_OP_HEADER Header;
1135 } EFI_IFR_QUESTION_REF3;
1136
1137 typedef struct _EFI_IFR_QUESTION_REF3_2 {
1138 EFI_IFR_OP_HEADER Header;
1139 EFI_STRING_ID DevicePath;
1140 } EFI_IFR_QUESTION_REF3_2;
1141
1142 typedef struct _EFI_IFR_QUESTION_REF3_3 {
1143 EFI_IFR_OP_HEADER Header;
1144 EFI_STRING_ID DevicePath;
1145 EFI_GUID Guid;
1146 } EFI_IFR_QUESTION_REF3_3;
1147
1148 typedef struct _EFI_IFR_RULE_REF {
1149 EFI_IFR_OP_HEADER Header;
1150 UINT8 RuleId;
1151 } EFI_IFR_RULE_REF;
1152
1153 typedef struct _EFI_IFR_STRING_REF1 {
1154 EFI_IFR_OP_HEADER Header;
1155 EFI_STRING_ID StringId;
1156 } EFI_IFR_STRING_REF1;
1157
1158 typedef struct _EFI_IFR_STRING_REF2 {
1159 EFI_IFR_OP_HEADER Header;
1160 } EFI_IFR_STRING_REF2;
1161
1162 typedef struct _EFI_IFR_THIS {
1163 EFI_IFR_OP_HEADER Header;
1164 } EFI_IFR_THIS;
1165
1166 typedef struct _EFI_IFR_TRUE {
1167 EFI_IFR_OP_HEADER Header;
1168 } EFI_IFR_TRUE;
1169
1170 typedef struct _EFI_IFR_FALSE {
1171 EFI_IFR_OP_HEADER Header;
1172 } EFI_IFR_FALSE;
1173
1174 typedef struct _EFI_IFR_ONE {
1175 EFI_IFR_OP_HEADER Header;
1176 } EFI_IFR_ONE;
1177
1178 typedef struct _EFI_IFR_ONES {
1179 EFI_IFR_OP_HEADER Header;
1180 } EFI_IFR_ONES;
1181
1182 typedef struct _EFI_IFR_ZERO {
1183 EFI_IFR_OP_HEADER Header;
1184 } EFI_IFR_ZERO;
1185
1186 typedef struct _EFI_IFR_UNDEFINED {
1187 EFI_IFR_OP_HEADER Header;
1188 } EFI_IFR_UNDEFINED;
1189
1190 typedef struct _EFI_IFR_VERSION {
1191 EFI_IFR_OP_HEADER Header;
1192 } EFI_IFR_VERSION;
1193
1194 typedef struct _EFI_IFR_LENGTH {
1195 EFI_IFR_OP_HEADER Header;
1196 } EFI_IFR_LENGTH;
1197
1198 typedef struct _EFI_IFR_NOT {
1199 EFI_IFR_OP_HEADER Header;
1200 } EFI_IFR_NOT;
1201
1202 typedef struct _EFI_IFR_BITWISE_NOT {
1203 EFI_IFR_OP_HEADER Header;
1204 } EFI_IFR_BITWISE_NOT;
1205
1206 typedef struct _EFI_IFR_TO_BOOLEAN {
1207 EFI_IFR_OP_HEADER Header;
1208 } EFI_IFR_TO_BOOLEAN;
1209
1210 #define EFI_IFR_STRING_UNSIGNED_DEC 0
1211 #define EFI_IFR_STRING_SIGNED_DEC 1
1212 #define EFI_IFR_STRING_LOWERCASE_HEX 2
1213 #define EFI_IFR_STRING_UPPERCASE_HEX 3
1214
1215 #define EFI_IFR_STRING_ASCII 0
1216 #define EFI_IFR_STRING_UNICODE 8
1217
1218 typedef struct _EFI_IFR_TO_STRING {
1219 EFI_IFR_OP_HEADER Header;
1220 UINT8 Format;
1221 } EFI_IFR_TO_STRING;
1222
1223 typedef struct _EFI_IFR_TO_UINT {
1224 EFI_IFR_OP_HEADER Header;
1225 } EFI_IFR_TO_UINT;
1226
1227 typedef struct _EFI_IFR_TO_UPPER {
1228 EFI_IFR_OP_HEADER Header;
1229 } EFI_IFR_TO_UPPER;
1230
1231 typedef struct _EFI_IFR_TO_LOWER {
1232 EFI_IFR_OP_HEADER Header;
1233 } EFI_IFR_TO_LOWER;
1234
1235 typedef struct _EFI_IFR_ADD {
1236 EFI_IFR_OP_HEADER Header;
1237 } EFI_IFR_ADD;
1238
1239 typedef struct _EFI_IFR_AND {
1240 EFI_IFR_OP_HEADER Header;
1241 } EFI_IFR_AND;
1242
1243 typedef struct _EFI_IFR_BITWISE_AND {
1244 EFI_IFR_OP_HEADER Header;
1245 } EFI_IFR_BITWISE_AND;
1246
1247 typedef struct _EFI_IFR_BITWISE_OR {
1248 EFI_IFR_OP_HEADER Header;
1249 } EFI_IFR_BITWISE_OR;
1250
1251 typedef struct _EFI_IFR_CATENATE {
1252 EFI_IFR_OP_HEADER Header;
1253 } EFI_IFR_CATENATE;
1254
1255 typedef struct _EFI_IFR_DIVIDE {
1256 EFI_IFR_OP_HEADER Header;
1257 } EFI_IFR_DIVIDE;
1258
1259 typedef struct _EFI_IFR_EQUAL {
1260 EFI_IFR_OP_HEADER Header;
1261 } EFI_IFR_EQUAL;
1262
1263 typedef struct _EFI_IFR_GREATER_EQUAL {
1264 EFI_IFR_OP_HEADER Header;
1265 } EFI_IFR_GREATER_EQUAL;
1266
1267 typedef struct _EFI_IFR_GREATER_THAN {
1268 EFI_IFR_OP_HEADER Header;
1269 } EFI_IFR_GREATER_THAN;
1270
1271 typedef struct _EFI_IFR_LESS_EQUAL {
1272 EFI_IFR_OP_HEADER Header;
1273 } EFI_IFR_LESS_EQUAL;
1274
1275 typedef struct _EFI_IFR_LESS_THAN {
1276 EFI_IFR_OP_HEADER Header;
1277 } EFI_IFR_LESS_THAN;
1278
1279 typedef struct _EFI_IFR_MATCH {
1280 EFI_IFR_OP_HEADER Header;
1281 } EFI_IFR_MATCH;
1282
1283 typedef struct _EFI_IFR_MATCH2 {
1284 EFI_IFR_OP_HEADER Header;
1285 EFI_GUID SyntaxType;
1286 } EFI_IFR_MATCH2;
1287
1288 typedef struct _EFI_IFR_MULTIPLY {
1289 EFI_IFR_OP_HEADER Header;
1290 } EFI_IFR_MULTIPLY;
1291
1292 typedef struct _EFI_IFR_MODULO {
1293 EFI_IFR_OP_HEADER Header;
1294 } EFI_IFR_MODULO;
1295
1296 typedef struct _EFI_IFR_NOT_EQUAL {
1297 EFI_IFR_OP_HEADER Header;
1298 } EFI_IFR_NOT_EQUAL;
1299
1300 typedef struct _EFI_IFR_OR {
1301 EFI_IFR_OP_HEADER Header;
1302 } EFI_IFR_OR;
1303
1304 typedef struct _EFI_IFR_SHIFT_LEFT {
1305 EFI_IFR_OP_HEADER Header;
1306 } EFI_IFR_SHIFT_LEFT;
1307
1308 typedef struct _EFI_IFR_SHIFT_RIGHT {
1309 EFI_IFR_OP_HEADER Header;
1310 } EFI_IFR_SHIFT_RIGHT;
1311
1312 typedef struct _EFI_IFR_SUBTRACT {
1313 EFI_IFR_OP_HEADER Header;
1314 } EFI_IFR_SUBTRACT;
1315
1316 typedef struct _EFI_IFR_CONDITIONAL {
1317 EFI_IFR_OP_HEADER Header;
1318 } EFI_IFR_CONDITIONAL;
1319
1320 #define EFI_IFR_FF_CASE_SENSITIVE 0x00
1321 #define EFI_IFR_FF_CASE_INSENSITIVE 0x01
1322
1323 typedef struct _EFI_IFR_FIND {
1324 EFI_IFR_OP_HEADER Header;
1325 UINT8 Format;
1326 } EFI_IFR_FIND;
1327
1328 typedef struct _EFI_IFR_MID {
1329 EFI_IFR_OP_HEADER Header;
1330 } EFI_IFR_MID;
1331
1332 typedef struct _EFI_IFR_TOKEN {
1333 EFI_IFR_OP_HEADER Header;
1334 } EFI_IFR_TOKEN;
1335
1336 #define EFI_IFR_FLAGS_FIRST_MATCHING 0x00
1337 #define EFI_IFR_FLAGS_FIRST_NON_MATCHING 0x01
1338
1339 typedef struct _EFI_IFR_SPAN {
1340 EFI_IFR_OP_HEADER Header;
1341 UINT8 Flags;
1342 } EFI_IFR_SPAN;
1343
1344 typedef struct _EFI_IFR_SECURITY {
1345 ///
1346 /// Standard opcode header, where Header.Op = EFI_IFR_SECURITY_OP.
1347 ///
1348 EFI_IFR_OP_HEADER Header;
1349 ///
1350 /// Security permission level.
1351 ///
1352 EFI_GUID Permissions;
1353 } EFI_IFR_SECURITY;
1354
1355 typedef struct _EFI_IFR_FORM_MAP_METHOD {
1356 ///
1357 /// The string identifier which provides the human-readable name of
1358 /// the configuration method for this standards map form.
1359 ///
1360 EFI_STRING_ID MethodTitle;
1361 ///
1362 /// Identifier which uniquely specifies the configuration methods
1363 /// associated with this standards map form.
1364 ///
1365 EFI_GUID MethodIdentifier;
1366 } EFI_IFR_FORM_MAP_METHOD;
1367
1368 typedef struct _EFI_IFR_FORM_MAP {
1369 ///
1370 /// The sequence that defines the type of opcode as well as the length
1371 /// of the opcode being defined. Header.OpCode = EFI_IFR_FORM_MAP_OP.
1372 ///
1373 EFI_IFR_OP_HEADER Header;
1374 ///
1375 /// The unique identifier for this particular form.
1376 ///
1377 EFI_FORM_ID FormId;
1378 ///
1379 /// One or more configuration method's name and unique identifier.
1380 ///
1381 // EFI_IFR_FORM_MAP_METHOD Methods[];
1382 } EFI_IFR_FORM_MAP;
1383
1384 typedef struct _EFI_IFR_SET {
1385 ///
1386 /// The sequence that defines the type of opcode as well as the length
1387 /// of the opcode being defined. Header.OpCode = EFI_IFR_SET_OP.
1388 ///
1389 EFI_IFR_OP_HEADER Header;
1390 ///
1391 /// Specifies the identifier of a previously declared variable store to
1392 /// use when storing the question's value.
1393 ///
1394 EFI_VARSTORE_ID VarStoreId;
1395 union {
1396 ///
1397 /// A 16-bit Buffer Storage offset.
1398 ///
1399 EFI_STRING_ID VarName;
1400 ///
1401 /// A Name Value or EFI Variable name (VarName).
1402 ///
1403 UINT16 VarOffset;
1404 } VarStoreInfo;
1405 ///
1406 /// Specifies the type used for storage.
1407 ///
1408 UINT8 VarStoreType;
1409 } EFI_IFR_SET;
1410
1411 typedef struct _EFI_IFR_GET {
1412 ///
1413 /// The sequence that defines the type of opcode as well as the length
1414 /// of the opcode being defined. Header.OpCode = EFI_IFR_GET_OP.
1415 ///
1416 EFI_IFR_OP_HEADER Header;
1417 ///
1418 /// Specifies the identifier of a previously declared variable store to
1419 /// use when retrieving the value.
1420 ///
1421 EFI_VARSTORE_ID VarStoreId;
1422 union {
1423 ///
1424 /// A 16-bit Buffer Storage offset.
1425 ///
1426 EFI_STRING_ID VarName;
1427 ///
1428 /// A Name Value or EFI Variable name (VarName).
1429 ///
1430 UINT16 VarOffset;
1431 } VarStoreInfo;
1432 ///
1433 /// Specifies the type used for storage.
1434 ///
1435 UINT8 VarStoreType;
1436 } EFI_IFR_GET;
1437
1438 typedef struct _EFI_IFR_READ {
1439 EFI_IFR_OP_HEADER Header;
1440 } EFI_IFR_READ;
1441
1442 typedef struct _EFI_IFR_WRITE {
1443 EFI_IFR_OP_HEADER Header;
1444 } EFI_IFR_WRITE;
1445
1446 typedef struct _EFI_IFR_MAP {
1447 EFI_IFR_OP_HEADER Header;
1448 } EFI_IFR_MAP;
1449 //
1450 // Keyboard Package
1451 //
1452
1453 typedef enum {
1454 EfiKeyLCtrl,
1455 EfiKeyA0,
1456 EfiKeyLAlt,
1457 EfiKeySpaceBar,
1458 EfiKeyA2,
1459 EfiKeyA3,
1460 EfiKeyA4,
1461 EfiKeyRCtrl,
1462 EfiKeyLeftArrow,
1463 EfiKeyDownArrow,
1464 EfiKeyRightArrow,
1465 EfiKeyZero,
1466 EfiKeyPeriod,
1467 EfiKeyEnter,
1468 EfiKeyLShift,
1469 EfiKeyB0,
1470 EfiKeyB1,
1471 EfiKeyB2,
1472 EfiKeyB3,
1473 EfiKeyB4,
1474 EfiKeyB5,
1475 EfiKeyB6,
1476 EfiKeyB7,
1477 EfiKeyB8,
1478 EfiKeyB9,
1479 EfiKeyB10,
1480 EfiKeyRshift,
1481 EfiKeyUpArrow,
1482 EfiKeyOne,
1483 EfiKeyTwo,
1484 EfiKeyThree,
1485 EfiKeyCapsLock,
1486 EfiKeyC1,
1487 EfiKeyC2,
1488 EfiKeyC3,
1489 EfiKeyC4,
1490 EfiKeyC5,
1491 EfiKeyC6,
1492 EfiKeyC7,
1493 EfiKeyC8,
1494 EfiKeyC9,
1495 EfiKeyC10,
1496 EfiKeyC11,
1497 EfiKeyC12,
1498 EfiKeyFour,
1499 EfiKeyFive,
1500 EfiKeySix,
1501 EfiKeyPlus,
1502 EfiKeyTab,
1503 EfiKeyD1,
1504 EfiKeyD2,
1505 EfiKeyD3,
1506 EfiKeyD4,
1507 EfiKeyD5,
1508 EfiKeyD6,
1509 EfiKeyD7,
1510 EfiKeyD8,
1511 EfiKeyD9,
1512 EfiKeyD10,
1513 EfiKeyD11,
1514 EfiKeyD12,
1515 EfiKeyD13,
1516 EfiKeyDel,
1517 EfiKeyEnd,
1518 EfiKeyPgDn,
1519 EfiKeySeven,
1520 EfiKeyEight,
1521 EfiKeyNine,
1522 EfiKeyE0,
1523 EfiKeyE1,
1524 EfiKeyE2,
1525 EfiKeyE3,
1526 EfiKeyE4,
1527 EfiKeyE5,
1528 EfiKeyE6,
1529 EfiKeyE7,
1530 EfiKeyE8,
1531 EfiKeyE9,
1532 EfiKeyE10,
1533 EfiKeyE11,
1534 EfiKeyE12,
1535 EfiKeyBackSpace,
1536 EfiKeyIns,
1537 EfiKeyHome,
1538 EfiKeyPgUp,
1539 EfiKeyNLck,
1540 EfiKeySlash,
1541 EfiKeyAsterisk,
1542 EfiKeyMinus,
1543 EfiKeyEsc,
1544 EfiKeyF1,
1545 EfiKeyF2,
1546 EfiKeyF3,
1547 EfiKeyF4,
1548 EfiKeyF5,
1549 EfiKeyF6,
1550 EfiKeyF7,
1551 EfiKeyF8,
1552 EfiKeyF9,
1553 EfiKeyF10,
1554 EfiKeyF11,
1555 EfiKeyF12,
1556 EfiKeyPrint,
1557 EfiKeySLck,
1558 EfiKeyPause
1559 } EFI_KEY;
1560
1561 typedef struct {
1562 EFI_KEY Key;
1563 CHAR16 Unicode;
1564 CHAR16 ShiftedUnicode;
1565 CHAR16 AltGrUnicode;
1566 CHAR16 ShiftedAltGrUnicode;
1567 UINT16 Modifier;
1568 UINT16 AffectedAttribute;
1569 } EFI_KEY_DESCRIPTOR;
1570
1571 //
1572 // A key which is affected by all the standard shift modifiers.
1573 // Most keys would be expected to have this bit active.
1574 //
1575 #define EFI_AFFECTED_BY_STANDARD_SHIFT 0x0001
1576 //
1577 // This key is affected by the caps lock so that if a keyboard driver
1578 // would need to disambiguate between a key which had a "1" defined
1579 // versus a "a" character. Having this bit turned on would tell
1580 // the keyboard driver to use the appropriate shifted state or not.
1581 //
1582 #define EFI_AFFECTED_BY_CAPS_LOCK 0x0002
1583 //
1584 // Similar to the case of CAPS lock, if this bit is active, the key
1585 // is affected by the num lock being turned on.
1586 //
1587 #define EFI_AFFECTED_BY_NUM_LOCK 0x0004
1588
1589 typedef struct {
1590 UINT16 LayoutLength;
1591 EFI_GUID Guid;
1592 UINT32 LayoutDescriptorStringOffset;
1593 UINT8 DescriptorCount;
1594 // EFI_KEY_DESCRIPTOR Descriptors[];
1595 } EFI_HII_KEYBOARD_LAYOUT;
1596
1597 typedef struct {
1598 EFI_HII_PACKAGE_HEADER Header;
1599 UINT16 LayoutCount;
1600 // EFI_HII_KEYBOARD_LAYOUT Layout[];
1601 } EFI_HII_KEYBOARD_PACKAGE_HDR;
1602
1603 typedef struct {
1604 CHAR16 Language[3];
1605 CHAR16 Space;
1606 CHAR16 DescriptionString[1];
1607 } EFI_DESCRIPTION_STRING;
1608
1609 typedef struct {
1610 UINT16 DescriptionCount;
1611 EFI_DESCRIPTION_STRING DescriptionString[1];
1612 } EFI_DESCRIPTION_STRING_BUNDLE;
1613
1614 //
1615 // Modifier values
1616 //
1617 #define EFI_NULL_MODIFIER 0x0000
1618 #define EFI_LEFT_CONTROL_MODIFIER 0x0001
1619 #define EFI_RIGHT_CONTROL_MODIFIER 0x0002
1620 #define EFI_LEFT_ALT_MODIFIER 0x0003
1621 #define EFI_RIGHT_ALT_MODIFIER 0x0004
1622 #define EFI_ALT_GR_MODIFIER 0x0005
1623 #define EFI_INSERT_MODIFIER 0x0006
1624 #define EFI_DELETE_MODIFIER 0x0007
1625 #define EFI_PAGE_DOWN_MODIFIER 0x0008
1626 #define EFI_PAGE_UP_MODIFIER 0x0009
1627 #define EFI_HOME_MODIFIER 0x000A
1628 #define EFI_END_MODIFIER 0x000B
1629 #define EFI_LEFT_SHIFT_MODIFIER 0x000C
1630 #define EFI_RIGHT_SHIFT_MODIFIER 0x000D
1631 #define EFI_CAPS_LOCK_MODIFIER 0x000E
1632 #define EFI_NUM_LOCK _MODIFIER 0x000F
1633 #define EFI_LEFT_ARROW_MODIFIER 0x0010
1634 #define EFI_RIGHT_ARROW_MODIFIER 0x0011
1635 #define EFI_DOWN_ARROW_MODIFIER 0x0012
1636 #define EFI_UP_ARROW_MODIFIER 0x0013
1637 #define EFI_NS_KEY_MODIFIER 0x0014
1638 #define EFI_NS_KEY_DEPENDENCY_MODIFIER 0x0015
1639 #define EFI_FUNCTION_KEY_ONE_MODIFIER 0x0016
1640 #define EFI_FUNCTION_KEY_TWO_MODIFIER 0x0017
1641 #define EFI_FUNCTION_KEY_THREE_MODIFIER 0x0018
1642 #define EFI_FUNCTION_KEY_FOUR_MODIFIER 0x0019
1643 #define EFI_FUNCTION_KEY_FIVE_MODIFIER 0x001A
1644 #define EFI_FUNCTION_KEY_SIX_MODIFIER 0x001B
1645 #define EFI_FUNCTION_KEY_SEVEN_MODIFIER 0x001C
1646 #define EFI_FUNCTION_KEY_EIGHT_MODIFIER 0x001D
1647 #define EFI_FUNCTION_KEY_NINE_MODIFIER 0x001E
1648 #define EFI_FUNCTION_KEY_TEN_MODIFIER 0x001F
1649 #define EFI_FUNCTION_KEY_ELEVEN_MODIFIER 0x0020
1650 #define EFI_FUNCTION_KEY_TWELVE_MODIFIER 0x0021
1651
1652 //
1653 // Keys that have multiple control functions based on modifier
1654 // settings are handled in the keyboard driver implementation.
1655 // For instance PRINT_KEY might have a modifier held down and
1656 // is still a nonprinting character, but might have an alternate
1657 // control function like SYSREQUEST
1658 //
1659 #define EFI_PRINT_MODIFIER 0x0022
1660 #define EFI_SYS_REQUEST_MODIFIER 0x0023
1661 #define EFI_SCROLL_LOCK_MODIFIER 0x0024
1662 #define EFI_PAUSE_MODIFIER 0x0025
1663 #define EFI_BREAK_MODIFIER 0x0026
1664
1665 #pragma pack()
1666
1667
1668
1669 //
1670 // References to string tokens must use this macro to enable scanning for
1671 // token usages.
1672 //
1673 //
1674 // STRING_TOKEN is not defined in UEFI specification. But it is placed
1675 // here for the easy access by C files and VFR source files.
1676 //
1677 #define STRING_TOKEN(t) t
1678
1679 #endif