]>
Commit | Line | Data |
---|---|---|
3eb9473e | 1 | /*++\r |
2 | \r | |
f57387d5 HT |
3 | Copyright (c) 2004 - 2006, Intel Corporation. All rights reserved.<BR>\r |
4 | This program and the accompanying materials \r | |
3eb9473e | 5 | are licensed and made available under the terms and conditions of the BSD License \r |
6 | which accompanies this distribution. The full text of the license may be found at \r | |
7 | http://opensource.org/licenses/bsd-license.php \r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
11 | \r | |
12 | Module Name:\r | |
13 | \r | |
14 | Hii.h\r | |
15 | \r | |
16 | Abstract:\r | |
17 | \r | |
18 | This file defines the Human Interface Infrastructure protocol which will \r | |
19 | be used by resources which want to publish IFR/Font/String data and have it \r | |
20 | collected by the Configuration engine.\r | |
21 | \r | |
22 | --*/\r | |
23 | \r | |
24 | #ifndef _HII_H_\r | |
25 | #define _HII_H_\r | |
26 | \r | |
27 | #include "EfiInternalFormRepresentation.h"\r | |
28 | #include EFI_PROTOCOL_DEFINITION (UgaDraw)\r | |
29 | #include EFI_PROTOCOL_DEFINITION (GraphicsOutput)\r | |
30 | \r | |
d4589db6 | 31 | //\r |
32 | // EFI_HII_PROTOCOL_GUID has been changed from the one defined in Framework HII 0.92 as the\r | |
33 | // Framework HII protocol produced by HII Thunk Layer support the UEF IFR and UEFI String Package\r | |
34 | // format.\r | |
35 | //\r | |
3eb9473e | 36 | #define EFI_HII_PROTOCOL_GUID \\r |
37 | { \\r | |
d4589db6 | 38 | 0x5542cce1, 0xdf5c, 0x4d1b, { 0xab, 0xca, 0x36, 0x4f, 0x77, 0xd3, 0x99, 0xfb } \\r |
3eb9473e | 39 | }\r |
40 | \r | |
fa41279f | 41 | /*\r |
42 | #define EFI_HII_PROTOCOL_GUID \\r | |
43 | { \\r | |
44 | 0xd7ad636e, 0xb997, 0x459b, {0xbf, 0x3f, 0x88, 0x46, 0x89, 0x79, 0x80, 0xe1} \\r | |
45 | }\r | |
46 | */\r | |
d4589db6 | 47 | \r |
3eb9473e | 48 | //\r |
49 | // Forward reference for pure ANSI compatability\r | |
50 | //\r | |
3eb9473e | 51 | typedef struct _EFI_HII_PROTOCOL EFI_HII_PROTOCOL;\r |
52 | \r | |
53 | //\r | |
54 | // Global definition\r | |
55 | //\r | |
56 | #define NARROW_CHAR 0xFFF0\r | |
57 | #define WIDE_CHAR 0xFFF1\r | |
58 | #define NON_BREAKING_CHAR 0xFFF2\r | |
59 | #define GLYPH_WIDTH 8\r | |
60 | #define GLYPH_HEIGHT 19\r | |
61 | \r | |
62 | #define EFI_HII_FONT 1\r | |
63 | #define EFI_HII_STRING 2\r | |
64 | #define EFI_HII_IFR 3\r | |
65 | #define EFI_HII_KEYBOARD 4\r | |
66 | #define EFI_HII_HANDLES 5\r | |
67 | #define EFI_HII_VARIABLE 6\r | |
68 | #define EFI_HII_DEVICE_PATH 7\r | |
69 | \r | |
70 | #define HANG(foo) { \\r | |
71 | volatile INT32 __iii; \\r | |
72 | __iii = foo; \\r | |
73 | while (__iii) \\r | |
74 | ; \\r | |
75 | }\r | |
76 | //\r | |
77 | // #define HANG(foo)\r | |
78 | //\r | |
79 | // References to string tokens must use this macro to enable scanning for\r | |
80 | // token usages.\r | |
81 | //\r | |
82 | #define STRING_TOKEN(t) t\r | |
83 | \r | |
84 | //\r | |
85 | // The following types are currently defined:\r | |
86 | //\r | |
87 | typedef UINT16 EFI_FORM_ID;\r | |
88 | typedef UINT16 EFI_FORM_LABEL;\r | |
89 | typedef UINT16 EFI_HII_HANDLE;\r | |
90 | \r | |
91 | #pragma pack(1)\r | |
92 | \r | |
93 | typedef struct {\r | |
94 | UINT32 Length;\r | |
95 | UINT16 Type;\r | |
96 | } EFI_HII_PACK_HEADER;\r | |
97 | \r | |
98 | //\r | |
99 | // A form list consists of a large variety of structure\r | |
100 | // possibilities so to represent the binary blob of data\r | |
101 | // associated with a package of forms, we will assume a\r | |
102 | // pointer to a self-describing data buffer.\r | |
103 | //\r | |
104 | typedef struct {\r | |
105 | EFI_HII_PACK_HEADER Header;\r | |
106 | } EFI_HII_IFR_PACK;\r | |
107 | \r | |
108 | typedef struct {\r | |
109 | EFI_HII_PACK_HEADER Header; // Must be filled in\r | |
110 | EFI_HANDLE ImageHandle; // Must be filled in\r | |
111 | EFI_HANDLE DeviceHandle; // Optional\r | |
112 | EFI_HANDLE ControllerHandle; // Optional\r | |
113 | EFI_HANDLE CallbackHandle; // Optional\r | |
114 | EFI_HANDLE COBExportHandle; // Optional\r | |
115 | } EFI_HII_HANDLE_PACK;\r | |
116 | \r | |
117 | //\r | |
118 | // ********************************************************\r | |
119 | // EFI_VARIABLE_CONTENTS\r | |
120 | // ********************************************************\r | |
121 | //\r | |
122 | typedef struct {\r | |
123 | EFI_HII_PACK_HEADER Header;\r | |
124 | EFI_GUID VariableGuid;\r | |
125 | UINT32 VariableNameLength;\r | |
126 | UINT16 VariableId;\r | |
127 | //\r | |
128 | // CHAR16 VariableName[]; //Null-terminated\r | |
129 | //\r | |
130 | } EFI_HII_VARIABLE_PACK;\r | |
131 | \r | |
132 | //\r | |
133 | // ********************************************************\r | |
134 | // EFI_DEVICE_PATH_PACK\r | |
135 | // ********************************************************\r | |
136 | //\r | |
137 | typedef struct {\r | |
138 | EFI_HII_PACK_HEADER Header;\r | |
139 | //\r | |
140 | // EFI_DEVICE_PATH DevicePath[];\r | |
141 | //\r | |
142 | } EFI_HII_DEVICE_PATH_PACK;\r | |
143 | \r | |
144 | //\r | |
145 | // ********************************************************\r | |
146 | // EFI_HII_DATA_TABLE\r | |
147 | // ********************************************************\r | |
148 | //\r | |
149 | typedef struct {\r | |
150 | EFI_HII_HANDLE HiiHandle;\r | |
151 | EFI_GUID PackageGuid;\r | |
152 | UINT32 DataTableSize;\r | |
153 | UINT32 IfrDataOffset;\r | |
154 | UINT32 StringDataOffset;\r | |
155 | UINT32 VariableDataOffset;\r | |
156 | UINT32 DevicePathOffset;\r | |
157 | UINT32 NumberOfVariableData;\r | |
158 | UINT32 NumberOfLanguages;\r | |
159 | //\r | |
160 | // EFI_HII_DEVICE_PATH_PACK DevicePath[];\r | |
161 | // EFI_HII_VARIABLE_PACK VariableData[];\r | |
162 | // EFI_HII_IFR_PACK IfrData;\r | |
163 | // EFI_HII_STRING_PACK StringData[];\r | |
164 | //\r | |
165 | } EFI_HII_DATA_TABLE;\r | |
166 | \r | |
167 | //\r | |
168 | // ********************************************************\r | |
169 | // EFI_HII_EXPORT_TABLE\r | |
170 | // ********************************************************\r | |
171 | //\r | |
172 | typedef struct {\r | |
173 | UINT16 NumberOfHiiDataTables;\r | |
174 | EFI_GUID Revision;\r | |
175 | //\r | |
176 | // EFI_HII_DATA_TABLE HiiDataTable[];\r | |
177 | //\r | |
178 | } EFI_HII_EXPORT_TABLE;\r | |
179 | \r | |
180 | typedef struct {\r | |
181 | BOOLEAN FormSetUpdate; // If TRUE, next variable is significant\r | |
182 | EFI_PHYSICAL_ADDRESS FormCallbackHandle; // If not 0, will update Formset with this info\r | |
183 | BOOLEAN FormUpdate; // If TRUE, next variable is significant\r | |
6d9a6cf0 | 184 | UINT16 FormValue; // specify which form is to be updated if FormUpdate value is TRUE.\r |
3eb9473e | 185 | STRING_REF FormTitle; // If not 0, will update Form with this info\r |
186 | UINT16 DataCount; // The number of Data entries in this structure\r | |
187 | UINT8 *Data; // An array of 1+ op-codes, specified by DataCount\r | |
188 | } EFI_HII_UPDATE_DATA;\r | |
189 | \r | |
190 | //\r | |
191 | // String attributes\r | |
192 | //\r | |
193 | #define LANG_RIGHT_TO_LEFT 0x00000001\r | |
194 | \r | |
195 | //\r | |
196 | // A string package is used to localize strings to a particular\r | |
197 | // language. The package is associated with a particular driver\r | |
198 | // or set of drivers. Tools are used to associate tokens with\r | |
199 | // string references in forms and in programs. These tokens are\r | |
200 | // language agnostic. When paired with a language pack (directly\r | |
201 | // or indirectly), the string token resolves into an actual\r | |
202 | // UNICODE string. The NumStringPointers determines how many\r | |
203 | // StringPointers (offset values) there are as well as the total\r | |
204 | // number of Strings that are defined.\r | |
205 | //\r | |
206 | typedef struct {\r | |
207 | EFI_HII_PACK_HEADER Header;\r | |
208 | RELOFST LanguageNameString;\r | |
209 | RELOFST PrintableLanguageName;\r | |
210 | UINT32 NumStringPointers;\r | |
211 | UINT32 Attributes;\r | |
212 | //\r | |
213 | // RELOFST StringPointers[];\r | |
214 | // EFI_STRING Strings[];\r | |
215 | //\r | |
216 | } EFI_HII_STRING_PACK;\r | |
217 | \r | |
218 | //\r | |
219 | // We use this one to get the real size of the header\r | |
220 | //\r | |
221 | typedef struct {\r | |
222 | EFI_HII_PACK_HEADER Header;\r | |
223 | RELOFST LanguageNameString;\r | |
224 | RELOFST PrintableLanguageName;\r | |
225 | UINT32 NumStringPointers;\r | |
226 | UINT32 Attributes;\r | |
227 | } EFI_HII_STRING_PACK_HEADER;\r | |
228 | \r | |
229 | //\r | |
230 | // Glyph Attributes\r | |
231 | //\r | |
232 | #define GLYPH_NON_SPACING 1\r | |
233 | #define GLYPH_NON_BREAKING 2\r | |
234 | \r | |
235 | typedef struct {\r | |
236 | CHAR16 UnicodeWeight;\r | |
237 | UINT8 Attributes;\r | |
238 | UINT8 GlyphCol1[GLYPH_HEIGHT];\r | |
239 | } EFI_NARROW_GLYPH;\r | |
240 | \r | |
241 | typedef struct {\r | |
242 | CHAR16 UnicodeWeight;\r | |
243 | UINT8 Attributes;\r | |
244 | UINT8 GlyphCol1[GLYPH_HEIGHT];\r | |
245 | UINT8 GlyphCol2[GLYPH_HEIGHT];\r | |
246 | UINT8 Pad[3];\r | |
247 | } EFI_WIDE_GLYPH;\r | |
248 | \r | |
249 | //\r | |
250 | // A font list consists of a font header followed by a series\r | |
251 | // of glyph structures. Note that fonts are not language specific.\r | |
252 | //\r | |
253 | typedef struct {\r | |
254 | EFI_HII_PACK_HEADER Header;\r | |
255 | UINT16 NumberOfNarrowGlyphs;\r | |
256 | UINT16 NumberOfWideGlyphs;\r | |
257 | } EFI_HII_FONT_PACK;\r | |
258 | \r | |
259 | //\r | |
260 | // The IfrData in the EFI_HII_IFR_PACK structure definition\r | |
261 | // is variable length, and not really part of the header. To\r | |
262 | // simplify from code the size of the header, define an\r | |
263 | // identical structure that does not include the IfrData field.\r | |
264 | // Then use sizeof() this new structure to determine the\r | |
265 | // actual size of the header.\r | |
266 | //\r | |
267 | typedef struct {\r | |
268 | EFI_HII_PACK_HEADER Header;\r | |
269 | } EFI_HII_IFR_PACK_HEADER;\r | |
270 | \r | |
271 | //\r | |
272 | // pedef EFI_HII_PACK_HEADER EFI_HII_IFR_PACK_HEADER;\r | |
273 | //\r | |
274 | typedef enum {\r | |
275 | EfiKeyLCtrl,\r | |
276 | EfiKeyA0,\r | |
277 | EfiKeyLAlt,\r | |
278 | EfiKeySpaceBar,\r | |
279 | EfiKeyA2,\r | |
280 | EfiKeyA3,\r | |
281 | EfiKeyA4,\r | |
282 | EfiKeyRCtrl,\r | |
283 | EfiKeyLeftArrow,\r | |
284 | EfiKeyDownArrow,\r | |
285 | EfiKeyRightArrow,\r | |
286 | EfiKeyZero,\r | |
287 | EfiKeyPeriod,\r | |
288 | EfiKeyEnter,\r | |
289 | EfiKeyLShift,\r | |
290 | EfiKeyB0,\r | |
291 | EfiKeyB1,\r | |
292 | EfiKeyB2,\r | |
293 | EfiKeyB3,\r | |
294 | EfiKeyB4,\r | |
295 | EfiKeyB5,\r | |
296 | EfiKeyB6,\r | |
297 | EfiKeyB7,\r | |
298 | EfiKeyB8,\r | |
299 | EfiKeyB9,\r | |
300 | EfiKeyB10,\r | |
301 | EfiKeyRshift,\r | |
302 | EfiKeyUpArrow,\r | |
303 | EfiKeyOne,\r | |
304 | EfiKeyTwo,\r | |
305 | EfiKeyThree,\r | |
306 | EfiKeyCapsLock,\r | |
307 | EfiKeyC1,\r | |
308 | EfiKeyC2,\r | |
309 | EfiKeyC3,\r | |
310 | EfiKeyC4,\r | |
311 | EfiKeyC5,\r | |
312 | EfiKeyC6,\r | |
313 | EfiKeyC7,\r | |
314 | EfiKeyC8,\r | |
315 | EfiKeyC9,\r | |
316 | EfiKeyC10,\r | |
317 | EfiKeyC11,\r | |
318 | EfiKeyC12,\r | |
319 | EfiKeyFour,\r | |
320 | EfiKeyFive,\r | |
321 | EfiKeySix,\r | |
322 | EfiKeyPlus,\r | |
323 | EfiKeyTab,\r | |
324 | EfiKeyD1,\r | |
325 | EfiKeyD2,\r | |
326 | EfiKeyD3,\r | |
327 | EfiKeyD4,\r | |
328 | EfiKeyD5,\r | |
329 | EfiKeyD6,\r | |
330 | EfiKeyD7,\r | |
331 | EfiKeyD8,\r | |
332 | EfiKeyD9,\r | |
333 | EfiKeyD10,\r | |
334 | EfiKeyD11,\r | |
335 | EfiKeyD12,\r | |
336 | EfiKeyD13,\r | |
337 | EfiKeyDel,\r | |
338 | EfiKeyEnd,\r | |
339 | EfiKeyPgDn,\r | |
340 | EfiKeySeven,\r | |
341 | EfiKeyEight,\r | |
342 | EfiKeyNine,\r | |
343 | EfiKeyE0,\r | |
344 | EfiKeyE1,\r | |
345 | EfiKeyE2,\r | |
346 | EfiKeyE3,\r | |
347 | EfiKeyE4,\r | |
348 | EfiKeyE5,\r | |
349 | EfiKeyE6,\r | |
350 | EfiKeyE7,\r | |
351 | EfiKeyE8,\r | |
352 | EfiKeyE9,\r | |
353 | EfiKeyE10,\r | |
354 | EfiKeyE11,\r | |
355 | EfiKeyE12,\r | |
356 | EfiKeyBackSpace,\r | |
357 | EfiKeyIns,\r | |
358 | EfiKeyHome,\r | |
359 | EfiKeyPgUp,\r | |
360 | EfiKeyNLck,\r | |
361 | EfiKeySlash,\r | |
362 | EfiKeyAsterisk,\r | |
363 | EfiKeyMinus,\r | |
364 | EfiKeyEsc,\r | |
365 | EfiKeyF1,\r | |
366 | EfiKeyF2,\r | |
367 | EfiKeyF3,\r | |
368 | EfiKeyF4,\r | |
369 | EfiKeyF5,\r | |
370 | EfiKeyF6,\r | |
371 | EfiKeyF7,\r | |
372 | EfiKeyF8,\r | |
373 | EfiKeyF9,\r | |
374 | EfiKeyF10,\r | |
375 | EfiKeyF11,\r | |
376 | EfiKeyF12,\r | |
377 | EfiKeyPrint,\r | |
378 | EfiKeySLck,\r | |
379 | EfiKeyPause\r | |
380 | } EFI_KEY;\r | |
381 | \r | |
382 | typedef struct {\r | |
383 | EFI_KEY Key;\r | |
384 | CHAR16 Unicode;\r | |
385 | CHAR16 ShiftedUnicode;\r | |
386 | CHAR16 AltGrUnicode;\r | |
387 | CHAR16 ShiftedAltGrUnicode;\r | |
388 | UINT16 Modifier;\r | |
389 | } EFI_KEY_DESCRIPTOR;\r | |
390 | \r | |
391 | //\r | |
392 | // This structure allows a sparse set of keys to be redefined\r | |
393 | // or a complete redefinition of the keyboard layout. Most\r | |
394 | // keyboards have a lot of commonality in their layouts, therefore\r | |
395 | // only defining those keys that need to change from the default\r | |
396 | // minimizes the passed in information.\r | |
397 | //\r | |
398 | // Additionally, when an update occurs, the active keyboard layout\r | |
399 | // will be switched to the newly updated keyboard layout. This\r | |
400 | // allows for situations that when a keyboard layout driver is\r | |
401 | // loaded as part of system initialization, the system will default\r | |
402 | // the keyboard behavior to the new layout.\r | |
403 | //\r | |
404 | // Each call to update the keyboard mapping should contain the\r | |
405 | // complete set of key descriptors to be updated, since every\r | |
406 | // call to the HII which contains an EFI_HII_KEYBOARD_PACK will\r | |
407 | // wipe the previous set of overrides. A call to\r | |
408 | //\r | |
409 | typedef struct {\r | |
410 | EFI_HII_PACK_HEADER Header;\r | |
411 | EFI_KEY_DESCRIPTOR *Descriptor;\r | |
412 | UINT8 DescriptorCount;\r | |
413 | } EFI_HII_KEYBOARD_PACK;\r | |
414 | \r | |
415 | //\r | |
416 | // The EFI_HII_PACKAGES can contain different types of packages just\r | |
417 | // after the structure as inline data.\r | |
418 | //\r | |
419 | typedef struct {\r | |
420 | UINTN NumberOfPackages;\r | |
421 | EFI_GUID *GuidId;\r | |
422 | //\r | |
423 | // EFI_HII_HANDLE_PACK *HandlePack; // Only one pack.\r | |
424 | // EFI_HII_IFR_PACK *IfrPack; // Only one pack.\r | |
425 | // EFI_HII_FONT_PACK *FontPack[]; // Multiple packs ok\r | |
426 | // EFI_HII_STRING_PACK *StringPack[]; // Multiple packs ok\r | |
427 | // EFI_HII_KEYBOARD_PACK *KeyboardPack[]; // Multiple packs ok\r | |
428 | //\r | |
429 | } EFI_HII_PACKAGES;\r | |
430 | \r | |
431 | typedef struct _EFI_HII_VARIABLE_PACK_LIST {\r | |
432 | struct _EFI_HII_VARIABLE_PACK_LIST *NextVariablePack;\r | |
433 | EFI_HII_VARIABLE_PACK *VariablePack;\r | |
434 | } EFI_HII_VARIABLE_PACK_LIST;\r | |
435 | \r | |
436 | #pragma pack()\r | |
437 | \r | |
438 | typedef\r | |
439 | EFI_STATUS\r | |
440 | (EFIAPI *EFI_HII_NEW_PACK) (\r | |
441 | IN EFI_HII_PROTOCOL * This,\r | |
442 | IN EFI_HII_PACKAGES * Packages,\r | |
443 | OUT EFI_HII_HANDLE * Handle\r | |
444 | );\r | |
445 | \r | |
446 | typedef\r | |
447 | EFI_STATUS\r | |
448 | (EFIAPI *EFI_HII_REMOVE_PACK) (\r | |
449 | IN EFI_HII_PROTOCOL *This,\r | |
450 | IN EFI_HII_HANDLE Handle\r | |
451 | );\r | |
452 | \r | |
453 | typedef\r | |
454 | EFI_STATUS\r | |
455 | (EFIAPI *EFI_HII_FIND_HANDLES) (\r | |
456 | IN EFI_HII_PROTOCOL *This,\r | |
457 | IN OUT UINT16 *HandleBufferLength,\r | |
458 | OUT EFI_HII_HANDLE *Handle\r | |
459 | );\r | |
460 | \r | |
461 | typedef\r | |
462 | EFI_STATUS\r | |
463 | (EFIAPI *EFI_HII_EXPORT) (\r | |
464 | IN EFI_HII_PROTOCOL *This,\r | |
465 | IN EFI_HII_HANDLE Handle,\r | |
466 | IN OUT UINTN *BufferSize,\r | |
467 | OUT VOID *Buffer\r | |
468 | );\r | |
469 | \r | |
470 | typedef\r | |
471 | EFI_STATUS\r | |
472 | (EFIAPI *EFI_HII_RESET_STRINGS) (\r | |
473 | IN EFI_HII_PROTOCOL *This,\r | |
474 | IN EFI_HII_HANDLE Handle\r | |
475 | );\r | |
476 | \r | |
477 | typedef\r | |
478 | EFI_STATUS\r | |
479 | (EFIAPI *EFI_HII_TEST_STRING) (\r | |
480 | IN EFI_HII_PROTOCOL *This,\r | |
481 | IN CHAR16 *StringToTest,\r | |
482 | IN OUT UINT32 *FirstMissing,\r | |
483 | OUT UINT32 *GlyphBufferSize\r | |
484 | );\r | |
485 | \r | |
486 | typedef\r | |
487 | EFI_STATUS\r | |
488 | (EFIAPI *EFI_HII_GET_GLYPH) (\r | |
489 | IN EFI_HII_PROTOCOL *This,\r | |
490 | IN CHAR16 *Source,\r | |
491 | IN OUT UINT16 *Index,\r | |
492 | OUT UINT8 **GlyphBuffer,\r | |
493 | OUT UINT16 *BitWidth,\r | |
494 | IN OUT UINT32 *InternalStatus\r | |
495 | );\r | |
496 | \r | |
497 | typedef\r | |
498 | EFI_STATUS\r | |
499 | (EFIAPI *EFI_HII_GLYPH_TO_BLT) (\r | |
500 | IN EFI_HII_PROTOCOL *This,\r | |
501 | IN UINT8 *GlyphBuffer,\r | |
502 | IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL Foreground,\r | |
503 | IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL Background,\r | |
504 | IN UINTN Count,\r | |
505 | IN UINTN Width,\r | |
506 | IN UINTN Height,\r | |
507 | IN OUT EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BltBuffer\r | |
508 | );\r | |
509 | \r | |
510 | typedef\r | |
511 | EFI_STATUS\r | |
512 | (EFIAPI *EFI_HII_NEW_STRING) (\r | |
513 | IN EFI_HII_PROTOCOL *This,\r | |
514 | IN CHAR16 *Language,\r | |
515 | IN EFI_HII_HANDLE Handle,\r | |
516 | IN OUT STRING_REF *Reference,\r | |
517 | IN CHAR16 *NewString\r | |
518 | );\r | |
519 | \r | |
520 | typedef\r | |
521 | EFI_STATUS\r | |
522 | (EFIAPI *EFI_HII_GET_PRI_LANGUAGES) (\r | |
523 | IN EFI_HII_PROTOCOL *This,\r | |
524 | IN EFI_HII_HANDLE Handle,\r | |
525 | OUT EFI_STRING *LanguageString\r | |
526 | );\r | |
527 | \r | |
528 | typedef\r | |
529 | EFI_STATUS\r | |
530 | (EFIAPI *EFI_HII_GET_SEC_LANGUAGES) (\r | |
531 | IN EFI_HII_PROTOCOL *This,\r | |
532 | IN EFI_HII_HANDLE Handle,\r | |
533 | IN CHAR16 *PrimaryLanguage,\r | |
534 | OUT EFI_STRING *LanguageString\r | |
535 | );\r | |
536 | \r | |
537 | typedef\r | |
538 | EFI_STATUS\r | |
539 | (EFIAPI *EFI_HII_GET_STRING) (\r | |
540 | IN EFI_HII_PROTOCOL *This,\r | |
541 | IN EFI_HII_HANDLE Handle,\r | |
542 | IN STRING_REF Token,\r | |
543 | IN BOOLEAN Raw,\r | |
544 | IN CHAR16 *LanguageString,\r | |
545 | IN OUT UINTN *BufferLength,\r | |
546 | OUT EFI_STRING StringBuffer\r | |
547 | );\r | |
548 | \r | |
549 | typedef\r | |
550 | EFI_STATUS\r | |
551 | (EFIAPI *EFI_HII_GET_LINE) (\r | |
552 | IN EFI_HII_PROTOCOL *This,\r | |
553 | IN EFI_HII_HANDLE Handle,\r | |
554 | IN STRING_REF Token,\r | |
555 | IN OUT UINT16 *Index,\r | |
556 | IN UINT16 LineWidth,\r | |
557 | IN CHAR16 *LanguageString,\r | |
558 | IN OUT UINT16 *BufferLength,\r | |
559 | OUT EFI_STRING StringBuffer\r | |
560 | );\r | |
561 | \r | |
562 | typedef\r | |
563 | EFI_STATUS\r | |
564 | (EFIAPI *EFI_HII_GET_FORMS) (\r | |
565 | IN EFI_HII_PROTOCOL *This,\r | |
566 | IN EFI_HII_HANDLE Handle,\r | |
567 | IN EFI_FORM_ID FormId,\r | |
568 | IN OUT UINTN *BufferLength,\r | |
569 | OUT UINT8 *Buffer\r | |
570 | );\r | |
571 | \r | |
572 | typedef\r | |
573 | EFI_STATUS\r | |
574 | (EFIAPI *EFI_HII_GET_DEFAULT_IMAGE) (\r | |
575 | IN EFI_HII_PROTOCOL *This,\r | |
576 | IN EFI_HII_HANDLE Handle,\r | |
577 | IN UINTN DefaultMask,\r | |
578 | OUT EFI_HII_VARIABLE_PACK_LIST **VariablePackList\r | |
579 | );\r | |
580 | \r | |
581 | typedef\r | |
582 | EFI_STATUS\r | |
583 | (EFIAPI *EFI_HII_UPDATE_FORM) (\r | |
584 | IN EFI_HII_PROTOCOL *This,\r | |
585 | IN EFI_HII_HANDLE Handle,\r | |
586 | IN EFI_FORM_LABEL Label,\r | |
587 | IN BOOLEAN AddData,\r | |
588 | IN EFI_HII_UPDATE_DATA *Data\r | |
589 | );\r | |
590 | \r | |
591 | typedef\r | |
592 | EFI_STATUS\r | |
593 | (EFIAPI *EFI_HII_GET_KEYBOARD_LAYOUT) (\r | |
594 | IN EFI_HII_PROTOCOL * This,\r | |
595 | OUT UINT16 *DescriptorCount,\r | |
596 | OUT EFI_KEY_DESCRIPTOR * Descriptor\r | |
597 | );\r | |
598 | \r | |
5d46191d | 599 | struct _EFI_HII_PROTOCOL {\r |
3eb9473e | 600 | EFI_HII_NEW_PACK NewPack;\r |
601 | EFI_HII_REMOVE_PACK RemovePack;\r | |
602 | EFI_HII_FIND_HANDLES FindHandles;\r | |
603 | EFI_HII_EXPORT ExportDatabase;\r | |
604 | \r | |
605 | EFI_HII_TEST_STRING TestString;\r | |
606 | EFI_HII_GET_GLYPH GetGlyph;\r | |
607 | EFI_HII_GLYPH_TO_BLT GlyphToBlt;\r | |
608 | \r | |
609 | EFI_HII_NEW_STRING NewString;\r | |
610 | EFI_HII_GET_PRI_LANGUAGES GetPrimaryLanguages;\r | |
611 | EFI_HII_GET_SEC_LANGUAGES GetSecondaryLanguages;\r | |
612 | EFI_HII_GET_STRING GetString;\r | |
613 | EFI_HII_RESET_STRINGS ResetStrings;\r | |
614 | EFI_HII_GET_LINE GetLine;\r | |
615 | EFI_HII_GET_FORMS GetForms;\r | |
616 | EFI_HII_GET_DEFAULT_IMAGE GetDefaultImage;\r | |
617 | EFI_HII_UPDATE_FORM UpdateForm;\r | |
618 | \r | |
619 | EFI_HII_GET_KEYBOARD_LAYOUT GetKeyboardLayout;\r | |
5d46191d | 620 | };\r |
3eb9473e | 621 | \r |
622 | extern EFI_GUID gEfiHiiProtocolGuid;\r | |
623 | \r | |
624 | #endif\r |