]>
Commit | Line | Data |
---|---|---|
79964ac8 | 1 | /** @file\r |
2 | This file defines the Human Interface Infrastructure protocol which will\r | |
3 | be used by resources which want to publish IFR/Font/String data and have it\r | |
06a098c4 | 4 | collected by the Configuration engine. This protocol is defined in the.\r |
5 | Intel Platform Innovation Framework for EFI Human Interface Infrastructure\r | |
6 | Specification Version 0.92.\r | |
79964ac8 | 7 | \r |
06a098c4 | 8 | Copyright (c) 2007 - 2009, Intel Corporation\r |
79964ac8 | 9 | All rights reserved. This program and the accompanying materials\r |
10 | are licensed and made available under the terms and conditions of the BSD License\r | |
11 | which accompanies this distribution. The full text of the license may be found at\r | |
12 | http://opensource.org/licenses/bsd-license.php\r | |
13 | \r | |
14 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
15 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
16 | \r | |
79964ac8 | 17 | **/\r |
18 | \r | |
7c6d55db | 19 | #ifndef _FRAMEWORK_HII_H_\r |
20 | #define _FRAMEWORK_HII_H_\r | |
21 | \r | |
b80fbe85 | 22 | #include <PiDxe.h>\r |
23 | \r | |
7c6d55db | 24 | //\r |
25 | // To get EFI_GRAPHICS_OUTPUT_BLT_PIXEL,\r | |
26 | // is defined in MdePkg/Protocol/GraphicsOutput.h\r | |
27 | //\r | |
28 | #include <Protocol/GraphicsOutput.h>\r | |
2997220a | 29 | \r |
06a098c4 | 30 | ///\r |
31 | /// In both EDK and EDK II, incompatbile change is done to Framework HII protocol. \r | |
32 | /// This change should cause a change of GUID in both of code and HII spec. But we \r | |
33 | /// update the GUID in code in EDK and EDK II. The 0.92 spec is not updated. This\r | |
34 | /// is a known issue.\r | |
35 | ///\r | |
36 | ///\r | |
37 | /// Note that EFI_HII_PROTOCOL_GUID is different from that defined in the Framework HII\r | |
38 | /// 0.92 spec because the spec changed part of HII interfaces but did not update the protocol\r | |
39 | /// GUID.\r | |
40 | ///\r | |
79964ac8 | 41 | #define EFI_HII_PROTOCOL_GUID \\r |
42 | { \\r | |
43 | 0xd7ad636e, 0xb997, 0x459b, {0xbf, 0x3f, 0x88, 0x46, 0x89, 0x79, 0x80, 0xe1} \\r | |
44 | }\r | |
45 | \r | |
c39940b5 | 46 | #define EFI_HII_COMPATIBILITY_PROTOCOL_GUID \\r |
47 | { \\r | |
48 | 0x5542cce1, 0xdf5c, 0x4d1b, { 0xab, 0xca, 0x36, 0x4f, 0x77, 0xd3, 0x99, 0xfb } \\r | |
49 | }\r | |
50 | \r | |
73449862 | 51 | typedef UINT16 STRING_REF;\r |
52 | typedef UINT32 RELOFST;\r | |
53 | \r | |
79964ac8 | 54 | typedef struct _EFI_HII_PROTOCOL EFI_HII_PROTOCOL;\r |
55 | \r | |
06a098c4 | 56 | ///\r |
57 | /// Note: Name difference between code and the Framework HII 0.92 spec.\r | |
58 | /// Add FRAMEWORK_ prefix to avoid name confict with EFI_HII_HANDLE defined in the\r | |
59 | /// UEFI 2.1d spec.\r | |
60 | ///\r | |
dc7b4a5c | 61 | typedef UINT16 FRAMEWORK_EFI_HII_HANDLE;\r |
62 | \r | |
06a098c4 | 63 | ///\r |
64 | /// HII package type values\r | |
65 | ///\r | |
79964ac8 | 66 | #define EFI_HII_FONT 1\r |
67 | #define EFI_HII_STRING 2\r | |
68 | #define EFI_HII_IFR 3\r | |
69 | #define EFI_HII_KEYBOARD 4\r | |
70 | #define EFI_HII_HANDLES 5\r | |
71 | #define EFI_HII_VARIABLE 6\r | |
72 | #define EFI_HII_DEVICE_PATH 7\r | |
73 | \r | |
06a098c4 | 74 | //\r |
79964ac8 | 75 | // References to string tokens must use this macro to enable scanning for\r |
76 | // token usages.\r | |
77 | //\r | |
78 | #define STRING_TOKEN(t) t\r | |
79 | \r | |
80 | //\r | |
81 | // The following types are currently defined:\r | |
409f118c | 82 | // EFI_FORM_ID has been defined in UEFI spec.\r |
79964ac8 | 83 | //\r |
79964ac8 | 84 | typedef UINT16 EFI_FORM_LABEL;\r |
85 | \r | |
86 | #pragma pack(1)\r | |
87 | \r | |
06a098c4 | 88 | ///\r |
89 | /// The header found at the start of each package.\r | |
90 | ///\r | |
79964ac8 | 91 | typedef struct {\r |
06a098c4 | 92 | UINT32 Length; ///< The size of the package in bytes.\r |
93 | UINT16 Type; ///< The type of the package.\r | |
79964ac8 | 94 | } EFI_HII_PACK_HEADER;\r |
95 | \r | |
06a098c4 | 96 | ///\r |
97 | /// IFR package structure.\r | |
98 | /// Immediately following the EFI_HII_IFR_PACK structure will be a series of IFR opcodes. \r | |
99 | ///\r | |
79964ac8 | 100 | typedef struct {\r |
06a098c4 | 101 | EFI_HII_PACK_HEADER Header; ///< Header of the IFR package.\r |
79964ac8 | 102 | } EFI_HII_IFR_PACK;\r |
103 | \r | |
06a098c4 | 104 | ///\r |
105 | /// HII Handle package structure.\r | |
106 | /// \r | |
79964ac8 | 107 | typedef struct {\r |
06a098c4 | 108 | ///\r |
109 | /// Header of the package.\r | |
110 | ///\r | |
79964ac8 | 111 | EFI_HII_PACK_HEADER Header; // Must be filled in\r |
06a098c4 | 112 | ///\r |
113 | /// The image handle of the driver to which the package is referring.\r | |
114 | ///\r | |
79964ac8 | 115 | EFI_HANDLE ImageHandle; // Must be filled in\r |
06a098c4 | 116 | ///\r |
117 | /// The handle of the device that is being described by this package.\r | |
118 | ///\r | |
79964ac8 | 119 | EFI_HANDLE DeviceHandle; // Optional\r |
06a098c4 | 120 | ///\r |
121 | /// The handle of the parent of the device that is being described by this package.\r | |
122 | ///\r | |
79964ac8 | 123 | EFI_HANDLE ControllerHandle; // Optional\r |
06a098c4 | 124 | ///\r |
125 | /// The handle that was registered to receive EFI_FORM_CALLBACK_PROTOCOL calls from other drivers.\r | |
126 | ///\r | |
79964ac8 | 127 | EFI_HANDLE CallbackHandle; // Optional\r |
06a098c4 | 128 | ///\r |
129 | /// Note this field is not defined in the Framework HII 0.92 spec.\r | |
130 | /// Unused. Reserved for source code compatibility.\r | |
131 | ///\r | |
79964ac8 | 132 | EFI_HANDLE COBExportHandle; // Optional\r |
133 | } EFI_HII_HANDLE_PACK;\r | |
134 | \r | |
06a098c4 | 135 | ///\r |
136 | /// Variable package structure.\r | |
137 | /// \r | |
79964ac8 | 138 | typedef struct {\r |
06a098c4 | 139 | ///\r |
140 | /// Header of the package.\r | |
141 | ///\r | |
79964ac8 | 142 | EFI_HII_PACK_HEADER Header;\r |
06a098c4 | 143 | ///\r |
144 | /// GUID of the EFI variable\r | |
145 | ///\r | |
79964ac8 | 146 | EFI_GUID VariableGuid;\r |
06a098c4 | 147 | ///\r |
148 | /// Length in bytes of the EFI variable\r | |
149 | ///\r | |
79964ac8 | 150 | UINT32 VariableNameLength;\r |
06a098c4 | 151 | ///\r |
152 | /// The unique value for this variable\r | |
153 | ///\r | |
79964ac8 | 154 | UINT16 VariableId;\r |
155 | //\r | |
156 | // CHAR16 VariableName[]; //Null-terminated\r | |
157 | //\r | |
158 | } EFI_HII_VARIABLE_PACK;\r | |
159 | \r | |
06a098c4 | 160 | ///\r |
161 | /// Device path package structure.\r | |
162 | ///\r | |
79964ac8 | 163 | typedef struct {\r |
06a098c4 | 164 | ///\r |
165 | /// Header of the package.\r | |
166 | ///\r | |
79964ac8 | 167 | EFI_HII_PACK_HEADER Header;\r |
168 | //\r | |
169 | // EFI_DEVICE_PATH DevicePath[];\r | |
170 | //\r | |
171 | } EFI_HII_DEVICE_PATH_PACK;\r | |
172 | \r | |
79964ac8 | 173 | typedef struct {\r |
06a098c4 | 174 | ///\r |
175 | /// Unique value that correlates to the original HII handle. \r | |
176 | ///\r | |
dc7b4a5c | 177 | FRAMEWORK_EFI_HII_HANDLE HiiHandle;\r |
06a098c4 | 178 | ///\r |
179 | /// If an IFR pack exists in a data table that does not contain strings,\r | |
180 | /// then the strings for that IFR pack are located in another data table \r | |
181 | /// that contains a string pack and has a matching HiiDataTable.PackageGuid. \r | |
182 | ///\r | |
183 | EFI_GUID PackageGuid;\r | |
184 | ///\r | |
185 | /// Size of the EFI_HII_DATA_TABLE in bytes.\r | |
186 | ///\r | |
187 | UINT32 DataTableSize;\r | |
188 | ///\r | |
189 | /// Byte offset from the start of this structure to the IFR data.\r | |
190 | /// If the offset value is 0, then no IFR data is enclosed.\r | |
191 | ///\r | |
192 | UINT32 IfrDataOffset;\r | |
193 | ///\r | |
194 | /// Byte offset from the start of this structure to the string data. \r | |
195 | /// If the offset value is 0, then no string data is enclosed.\r | |
196 | ///\r | |
197 | UINT32 StringDataOffset;\r | |
198 | ///\r | |
199 | /// Byte offset from the start of this structure to the variable data.\r | |
200 | /// If the offset value is 0, then no variable data is enclosed.\r | |
201 | ///\r | |
202 | UINT32 VariableDataOffset;\r | |
203 | ///\r | |
204 | /// Byte offset from the start of this structure to the device path data.\r | |
205 | /// If the offset value is 0, then no DevicePath data is enclosed.\r | |
206 | ///\r | |
207 | UINT32 DevicePathOffset;\r | |
208 | ///\r | |
209 | /// Number of VariableData[] elements in the array.\r | |
210 | ///\r | |
211 | UINT32 NumberOfVariableData;\r | |
212 | ///\r | |
213 | /// The number of language string packages.\r | |
214 | ///\r | |
215 | UINT32 NumberOfLanguages;\r | |
79964ac8 | 216 | //\r |
217 | // EFI_HII_DEVICE_PATH_PACK DevicePath[];\r | |
218 | // EFI_HII_VARIABLE_PACK VariableData[];\r | |
219 | // EFI_HII_IFR_PACK IfrData;\r | |
220 | // EFI_HII_STRING_PACK StringData[];\r | |
221 | //\r | |
222 | } EFI_HII_DATA_TABLE;\r | |
223 | \r | |
06a098c4 | 224 | ///\r |
225 | /// Structure defining format for exporting data from the HII Database.\r | |
226 | ///\r | |
79964ac8 | 227 | typedef struct {\r |
06a098c4 | 228 | ///\r |
229 | /// Number of EFI_HII_DATA_TABLE entries.\r | |
230 | ///\r | |
79964ac8 | 231 | UINT32 NumberOfHiiDataTables;\r |
06a098c4 | 232 | ///\r |
233 | /// Defines the revision of the EFI_HII_DATA_TABLE structure.\r | |
234 | ///\r | |
79964ac8 | 235 | EFI_GUID Revision;\r |
236 | //\r | |
237 | // EFI_HII_DATA_TABLE HiiDataTable[];\r | |
238 | //\r | |
239 | } EFI_HII_EXPORT_TABLE;\r | |
240 | \r | |
06a098c4 | 241 | ///\r |
242 | /// Structure used to pass data to update a form or form package\r | |
243 | /// that has previously been registered with the EFI HII database.\r | |
244 | ///\r | |
79964ac8 | 245 | typedef struct {\r |
06a098c4 | 246 | ///\r |
247 | /// If TRUE, indicates that the FormCallbackHandle value will \r | |
248 | /// be used to update the contents of the CallBackHandle entry in the form set.\r | |
249 | ///\r | |
250 | BOOLEAN FormSetUpdate;\r | |
251 | ///\r | |
252 | /// This parameter is valid only when FormSetUpdate is TRUE.\r | |
253 | /// The value in this parameter will be used to update the contents \r | |
254 | /// of the CallbackHandle entry in the form set.\r | |
255 | ///\r | |
256 | EFI_PHYSICAL_ADDRESS FormCallbackHandle;\r | |
257 | ///\r | |
258 | /// If TRUE, indicates that the FormTitle contents will be \r | |
259 | /// used to update the FormValue's title.\r | |
260 | ///\r | |
261 | BOOLEAN FormUpdate;\r | |
262 | ///\r | |
263 | /// Specifies which form is to be updated if the FormUpdate value is TRUE.\r | |
264 | ///\r | |
265 | UINT16 FormValue;\r | |
266 | ///\r | |
267 | /// This parameter is valid only when the FormUpdate parameter is TRUE.\r | |
268 | /// The value in this parameter will be used to update the contents of the form title. \r | |
269 | ///\r | |
270 | STRING_REF FormTitle;\r | |
271 | ///\r | |
272 | /// The number of Data entries in this structure.\r | |
273 | UINT16 DataCount;\r | |
274 | ///\r | |
275 | /// An array of 1+ opcodes, specified by DataCount.\r | |
276 | ///\r | |
277 | UINT8 *Data;\r | |
278 | } EFI_HII_UPDATE_DATA;\r | |
79964ac8 | 279 | \r |
280 | //\r | |
281 | // String attributes\r | |
282 | //\r | |
283 | #define LANG_RIGHT_TO_LEFT 0x00000001\r | |
284 | \r | |
06a098c4 | 285 | ///\r |
286 | /// A string package is used to localize strings to a particular\r | |
287 | /// language. The package is associated with a particular driver\r | |
288 | /// or set of drivers. Tools are used to associate tokens with\r | |
289 | /// string references in forms and in programs. These tokens are\r | |
290 | /// language agnostic. When paired with a language pack (directly\r | |
291 | /// or indirectly), the string token resolves into an actual\r | |
292 | /// UNICODE string. The NumStringPointers determines how many\r | |
293 | /// StringPointers (offset values) there are as well as the total\r | |
294 | /// number of Strings that are defined.\r | |
295 | ///\r | |
79964ac8 | 296 | typedef struct {\r |
06a098c4 | 297 | ///\r |
298 | /// Header of the package.\r | |
299 | ///\r | |
79964ac8 | 300 | EFI_HII_PACK_HEADER Header;\r |
06a098c4 | 301 | ///\r |
302 | /// The string containing one or more ISO 639-2 three-character designator(s)\r | |
303 | /// of the language or languages whose translations are contained in this language pack.\r | |
304 | /// The first designator indicates the primary language while the others are secondary languages. \r | |
305 | ///\r | |
79964ac8 | 306 | RELOFST LanguageNameString;\r |
06a098c4 | 307 | ///\r |
308 | /// Contains the offset into this structure of a printable name of the language\r | |
309 | /// for use when prompting the user. The language printed is to be the primary language.\r | |
310 | ///\r | |
79964ac8 | 311 | RELOFST PrintableLanguageName;\r |
06a098c4 | 312 | ///\r |
313 | /// The number of Strings and StringPointers contained within the string package.\r | |
314 | ///\r | |
79964ac8 | 315 | UINT32 NumStringPointers;\r |
06a098c4 | 316 | ///\r |
317 | /// Indicates the direction the language is to be printed.\r | |
318 | ///\r | |
79964ac8 | 319 | UINT32 Attributes;\r |
320 | //\r | |
321 | // RELOFST StringPointers[];\r | |
322 | // EFI_STRING Strings[];\r | |
323 | //\r | |
324 | } EFI_HII_STRING_PACK;\r | |
325 | \r | |
79964ac8 | 326 | \r |
06a098c4 | 327 | ///\r |
328 | /// A font list consists of a font header followed by a series\r | |
329 | /// of glyph structures. Note that fonts are not language specific.\r | |
330 | ///\r | |
79964ac8 | 331 | typedef struct {\r |
06a098c4 | 332 | ///\r |
333 | /// Header of the package.\r | |
334 | ///\r | |
79964ac8 | 335 | EFI_HII_PACK_HEADER Header;\r |
06a098c4 | 336 | ///\r |
337 | /// The number of NarrowGlyphs that are included in the font package.\r | |
338 | ///\r | |
79964ac8 | 339 | UINT16 NumberOfNarrowGlyphs;\r |
06a098c4 | 340 | ///\r |
341 | /// The number of WideGlyphs that are included in the font package.\r | |
342 | ///\r | |
79964ac8 | 343 | UINT16 NumberOfWideGlyphs;\r |
06a098c4 | 344 | //EFI_NARROW_GLYPH NarrowGlyphs[];\r |
345 | //EFI_WIDE_GLYPH WideGlyphs[];\r | |
79964ac8 | 346 | } EFI_HII_FONT_PACK;\r |
347 | \r | |
06a098c4 | 348 | ///\r |
349 | /// The definition of a specific physical key\r | |
350 | ///\r | |
351 | /// Note: Name difference between code and the Framework HII 0.92 spec.\r | |
352 | /// Add FRAMEWORK_ prefix to avoid name confict with EFI_KEY_DESCRIPTOR defined in the\r | |
353 | /// UEFI 2.1d spec.\r | |
354 | ///\r | |
79964ac8 | 355 | typedef struct {\r |
06a098c4 | 356 | ///\r |
357 | /// Used to describe a physical key on a keyboard.\r | |
358 | ///\r | |
79964ac8 | 359 | EFI_KEY Key;\r |
06a098c4 | 360 | ///\r |
361 | /// Unicode value for the Key.\r | |
79964ac8 | 362 | CHAR16 Unicode;\r |
06a098c4 | 363 | ///\r |
364 | /// Unicode value for the key with the shift key being held down.\r | |
365 | ///\r | |
79964ac8 | 366 | CHAR16 ShiftedUnicode;\r |
06a098c4 | 367 | ///\r |
368 | /// Unicode value for the key with the Alt-GR being held down.\r | |
369 | ///\r | |
79964ac8 | 370 | CHAR16 AltGrUnicode;\r |
06a098c4 | 371 | ///\r |
372 | /// Unicode value for the key with the Alt-GR and shift keys being held down.\r | |
373 | ///\r | |
79964ac8 | 374 | CHAR16 ShiftedAltGrUnicode;\r |
06a098c4 | 375 | ///\r |
376 | /// Modifier keys are defined to allow for special functionality that \r | |
377 | /// is not necessarily accomplished by a printable character. \r | |
378 | ///\r | |
79964ac8 | 379 | UINT16 Modifier;\r |
dc7b4a5c | 380 | } FRAMEWORK_EFI_KEY_DESCRIPTOR;\r |
79964ac8 | 381 | \r |
06a098c4 | 382 | ///\r |
383 | /// This structure allows a sparse set of keys to be redefined\r | |
384 | /// or a complete redefinition of the keyboard layout. Most\r | |
385 | /// keyboards have a lot of commonality in their layouts, therefore\r | |
386 | /// only defining those keys that need to change from the default\r | |
387 | /// minimizes the passed in information.\r | |
388 | ///\r | |
389 | /// Additionally, when an update occurs, the active keyboard layout\r | |
390 | /// will be switched to the newly updated keyboard layout. This\r | |
391 | /// allows for situations that when a keyboard layout driver is\r | |
392 | /// loaded as part of system initialization, the system will default\r | |
393 | /// the keyboard behavior to the new layout.\r | |
394 | ///\r | |
79964ac8 | 395 | typedef struct {\r |
06a098c4 | 396 | ///\r |
397 | /// Header of the package.\r | |
398 | EFI_HII_PACK_HEADER Header;\r | |
399 | ///\r | |
400 | /// A pointer to a buffer containing an array of EFI_KEY_DESCRIPTOR entries.\r | |
401 | /// Each entry will reflect the definition of a specific physical key.\r | |
402 | ///\r | |
dc7b4a5c | 403 | FRAMEWORK_EFI_KEY_DESCRIPTOR *Descriptor;\r |
06a098c4 | 404 | ///\r |
405 | /// The number of Descriptor entries being described.\r | |
406 | ///\r | |
407 | UINT8 DescriptorCount;\r | |
79964ac8 | 408 | } EFI_HII_KEYBOARD_PACK;\r |
409 | \r | |
06a098c4 | 410 | ///\r |
411 | /// The packages structure that will be used to pass contents into the HII database.\r | |
412 | ///\r | |
413 | /// The EFI_HII_PACKAGES can contain various number of packages of different types just\r | |
414 | /// after the structure as inline data.\r | |
415 | ///\r | |
79964ac8 | 416 | typedef struct {\r |
06a098c4 | 417 | ///\r |
418 | /// The number of packages being defined in this structure.\r | |
419 | ///\r | |
79964ac8 | 420 | UINTN NumberOfPackages;\r |
06a098c4 | 421 | ///\r |
422 | /// The GUID to be used to identify this set of packages that are being exported\r | |
423 | /// to the HII database.\r | |
424 | ///\r | |
79964ac8 | 425 | EFI_GUID *GuidId;\r |
426 | //\r | |
427 | // EFI_HII_HANDLE_PACK *HandlePack; // Only one pack.\r | |
428 | // EFI_HII_IFR_PACK *IfrPack; // Only one pack.\r | |
429 | // EFI_HII_FONT_PACK *FontPack[]; // Multiple packs ok\r | |
430 | // EFI_HII_STRING_PACK *StringPack[]; // Multiple packs ok\r | |
431 | // EFI_HII_KEYBOARD_PACK *KeyboardPack[]; // Multiple packs ok\r | |
432 | //\r | |
433 | } EFI_HII_PACKAGES;\r | |
434 | \r | |
06a098c4 | 435 | ///\r |
436 | /// Packed link list that contains all the discernable defaults of variables\r | |
437 | /// for the opcodes that are defined in this Handle's domain of data.\r | |
438 | ///\r | |
79964ac8 | 439 | typedef struct _EFI_HII_VARIABLE_PACK_LIST {\r |
06a098c4 | 440 | ///\r |
441 | /// A pointer points to the next data structure of type \r | |
442 | /// EFI_HII_VARIABLE_PACK_LIST in the packed link list.\r | |
443 | ///\r | |
79964ac8 | 444 | struct _EFI_HII_VARIABLE_PACK_LIST *NextVariablePack;\r |
06a098c4 | 445 | ///\r |
446 | /// A pointer points to the content of the variable entry defined by GUID/name/data.\r | |
447 | ///\r | |
79964ac8 | 448 | EFI_HII_VARIABLE_PACK *VariablePack;\r |
06a098c4 | 449 | //EFI_HII_VARIABLE_PACK Content\r |
79964ac8 | 450 | } EFI_HII_VARIABLE_PACK_LIST;\r |
451 | \r | |
61a30832 | 452 | \r |
79964ac8 | 453 | #pragma pack()\r |
454 | \r | |
455 | /**\r | |
456 | Registers the various packs that are passed in via the Packages parameter.\r | |
457 | \r | |
458 | @param This A pointer to the EFI_HII_PROTOCOL instance.\r | |
459 | @param Packages A pointer to an EFI_HII_PACKAGES package instance.\r | |
534b8251 | 460 | @param Handle A pointer to the FRAMEWORK_EFI_HII_HANDLE instance.\r |
79964ac8 | 461 | \r |
462 | @retval EFI_SUCCESS Data was extracted from Packages, the database\r | |
463 | was updated with the data, and Handle returned successfully.\r | |
464 | @retval EFI_INVALID_PARAMETER The content of Packages was invalid.\r | |
465 | \r | |
466 | **/\r | |
467 | typedef\r | |
468 | EFI_STATUS\r | |
06a098c4 | 469 | (EFIAPI *EFI_HII_NEW_PACK)(\r |
470 | IN EFI_HII_PROTOCOL *This,\r | |
471 | IN EFI_HII_PACKAGES *Packages,\r | |
472 | OUT FRAMEWORK_EFI_HII_HANDLE *Handle\r | |
79964ac8 | 473 | );\r |
474 | \r | |
475 | /**\r | |
476 | Removes a package from the HII database.\r | |
477 | \r | |
478 | @param This A pointer to the EFI_HII_PROTOCOL instance.\r | |
479 | @param Handle The handle that was registered to the data that is requested\r | |
480 | for removal.\r | |
481 | \r | |
482 | @retval EFI_SUCCESS The data associated with the Handle was removed\r | |
483 | from the HII database.\r | |
484 | @retval EFI_INVALID_PARAMETER The Handle was not valid.\r | |
485 | \r | |
486 | **/\r | |
487 | typedef\r | |
488 | EFI_STATUS\r | |
06a098c4 | 489 | (EFIAPI *EFI_HII_REMOVE_PACK)(\r |
490 | IN EFI_HII_PROTOCOL *This,\r | |
491 | IN FRAMEWORK_EFI_HII_HANDLE Handle\r | |
79964ac8 | 492 | );\r |
493 | \r | |
494 | /**\r | |
495 | Determines the handles that are currently active in the database.\r | |
496 | \r | |
497 | @param This A pointer to the EFI_HII_PROTOCOL instance.\r | |
498 | @param HandleBufferLength On input, a pointer to the length of the handle\r | |
499 | buffer. On output, the length of the handle buffer that is required\r | |
500 | for the handles found.\r | |
dc7b4a5c | 501 | @param Handle An array of FRAMEWORK_EFI_HII_HANDLE instances returned.\r |
79964ac8 | 502 | \r |
503 | @retval EFI_SUCCESS Handle was updated successfully.\r | |
504 | @retval EFI_BUFFER_TOO_SMALL The HandleBufferLength parameter indicates\r | |
505 | that Handle is too small to support the number of handles.\r | |
506 | \r | |
507 | **/\r | |
508 | typedef\r | |
509 | EFI_STATUS\r | |
06a098c4 | 510 | (EFIAPI *EFI_HII_FIND_HANDLES)(\r |
511 | IN EFI_HII_PROTOCOL *This,\r | |
512 | IN OUT UINT16 *HandleBufferLength,\r | |
513 | OUT FRAMEWORK_EFI_HII_HANDLE *Handle\r | |
79964ac8 | 514 | );\r |
515 | \r | |
516 | /**\r | |
517 | Exports the contents of the database into a buffer.\r | |
518 | \r | |
519 | @param This A pointer to the EFI_HII_PROTOCOL instance.\r | |
dc7b4a5c | 520 | @param Handle An FRAMEWORK_EFI_HII_HANDLE that corresponds to the desired\r |
79964ac8 | 521 | handle to export. If the value is 0, the entire database will be exported.\r |
522 | In either case, the data will be exported in a format described by the\r | |
523 | structure definition of EFI_HII_EXPORT_TABLE.\r | |
524 | @param BufferSize\r | |
525 | On input, a pointer to the length of the buffer. On output, the length\r | |
526 | of the buffer that is required for the export data.\r | |
527 | @param Buffer A pointer to a buffer that will contain the results of the export function.\r | |
528 | \r | |
529 | @retval EFI_SUCCESS The buffer was successfully filled with BufferSize amount of data.\r | |
530 | @retval EFI_BUFFER_TOO_SMALL The value in BufferSize was too small to contain the export data.\r | |
531 | \r | |
532 | **/\r | |
533 | typedef\r | |
534 | EFI_STATUS\r | |
06a098c4 | 535 | (EFIAPI *EFI_HII_EXPORT)(\r |
536 | IN EFI_HII_PROTOCOL *This,\r | |
537 | IN FRAMEWORK_EFI_HII_HANDLE Handle,\r | |
538 | IN OUT UINTN *BufferSize,\r | |
539 | OUT VOID *Buffer\r | |
79964ac8 | 540 | );\r |
541 | \r | |
542 | /**\r | |
543 | Remove any new strings that were added after the initial string export\r | |
544 | for this handle.\r | |
545 | \r | |
546 | @param This A pointer to the EFI_HII_PROTOCOL instance.\r | |
547 | @param Handle The handle on which the string resides.\r | |
548 | \r | |
549 | @retval EFI_SUCCESS Remove strings from the handle successfully.\r | |
550 | @retval EFI_INVALID_PARAMETER The Handle was unknown.\r | |
551 | \r | |
552 | **/\r | |
553 | typedef\r | |
554 | EFI_STATUS\r | |
06a098c4 | 555 | (EFIAPI *EFI_HII_RESET_STRINGS)(\r |
556 | IN EFI_HII_PROTOCOL *This,\r | |
557 | IN FRAMEWORK_EFI_HII_HANDLE Handle\r | |
79964ac8 | 558 | );\r |
559 | \r | |
560 | /**\r | |
561 | Tests if all of the characters in a string have corresponding font characters.\r | |
562 | \r | |
563 | @param This A pointer to the EFI_HII_PROTOCOL instance.\r | |
564 | @param StringToTest A pointer to a Unicode string.\r | |
565 | @param FirstMissing A pointer to an index into the string. On input,\r | |
566 | the index of the first character in the StringToTest to examine. On exit,\r | |
567 | the index of the first character encountered for which a glyph is unavailable.\r | |
568 | If all glyphs in the string are available, the index is the index of the\r | |
569 | terminator of the string.\r | |
570 | @param GlyphBufferSize A pointer to a value. On output, if the function\r | |
571 | returns EFI_SUCCESS, it contains the amount of memory that is required to\r | |
572 | store the string's glyph equivalent.\r | |
573 | \r | |
574 | @retval EFI_SUCCESS All glyphs are available. Note that an empty string\r | |
575 | always returns this value.\r | |
576 | @retval EFI_NOT_FOUND A glyph was not found for a character.\r | |
577 | \r | |
578 | **/\r | |
579 | typedef\r | |
580 | EFI_STATUS\r | |
06a098c4 | 581 | (EFIAPI *EFI_HII_TEST_STRING) (\r |
79964ac8 | 582 | IN EFI_HII_PROTOCOL *This,\r |
583 | IN CHAR16 *StringToTest,\r | |
584 | IN OUT UINT32 *FirstMissing,\r | |
585 | OUT UINT32 *GlyphBufferSize\r | |
586 | );\r | |
587 | \r | |
588 | /**\r | |
589 | Translates a Unicode character into the corresponding font glyph.\r | |
590 | \r | |
06a098c4 | 591 | Note that this function prototype name is different from that in the Framework HII 0.92 spec\r |
592 | to avoid name confict with EFI_HII_GET_GLYPH defined in the UEFI 2.1d spec.\r | |
593 | \r | |
79964ac8 | 594 | @param This A pointer to the EFI_HII_PROTOCOL instance.\r |
595 | @param Source A pointer to a Unicode string.\r | |
596 | @param Index On input, the offset into the string from which to fetch\r | |
597 | the character.On successful completion, the index is updated to the first\r | |
598 | character past the character(s) making up the just extracted glyph.\r | |
599 | @param GlyphBuffer Pointer to an array where the glyphs corresponding\r | |
600 | to the characters in the source may be stored. GlyphBuffer is assumed\r | |
601 | to be wide enough to accept a wide glyph character.\r | |
602 | @param BitWidth If EFI_SUCCESS was returned, the UINT16 pointed to by\r | |
603 | this value is filled with the length of the glyph in pixels. It is unchanged\r | |
604 | if the call was unsuccessful.\r | |
605 | @param InternalStatus The cell pointed to by this parameter must be\r | |
606 | initialized to zero prior to invoking the call the first time for any string.\r | |
607 | \r | |
608 | @retval EFI_SUCCESS It worked.\r | |
609 | @retval EFI_NOT_FOUND A glyph for a character was not found.\r | |
610 | \r | |
611 | **/\r | |
612 | typedef\r | |
613 | EFI_STATUS\r | |
69686d56 | 614 | (EFIAPI *FRAMEWORK_EFI_HII_GET_GLYPH)(\r |
79964ac8 | 615 | IN EFI_HII_PROTOCOL *This,\r |
616 | IN CHAR16 *Source,\r | |
617 | IN OUT UINT16 *Index,\r | |
618 | OUT UINT8 **GlyphBuffer,\r | |
619 | OUT UINT16 *BitWidth,\r | |
620 | IN OUT UINT32 *InternalStatus\r | |
621 | );\r | |
622 | \r | |
623 | /**\r | |
624 | Translates a glyph into the format required for input to the Universal\r | |
625 | Graphics Adapter (UGA) Block Transfer (BLT) routines.\r | |
626 | \r | |
627 | @param This A pointer to the EFI_HII_PROTOCOL instance.\r | |
628 | @param GlyphBuffer A pointer to the buffer that contains glyph data.\r | |
629 | @param Foreground The foreground setting requested to be used for the\r | |
630 | generated BltBuffer data.\r | |
631 | @param Background The background setting requested to be used for the\r | |
632 | generated BltBuffer data.\r | |
633 | @param Count The entry in the BltBuffer upon which to act.\r | |
634 | @param Width The width in bits of the glyph being converted.\r | |
635 | @param Height The height in bits of the glyph being converted\r | |
636 | @param BltBuffer A pointer to the buffer that contains the data that is\r | |
637 | ready to be used by the UGA BLT routines.\r | |
638 | \r | |
639 | @retval EFI_SUCCESS It worked.\r | |
640 | @retval EFI_NOT_FOUND A glyph for a character was not found.\r | |
6d1824fc | 641 | @note: Inconsistent with specification here:\r |
642 | In Framework Spec,HII spec 0.92. The type of 3rd, 4th and 8th parameter is EFI_UGA_PIXEL.\r | |
643 | Here the definition use the EFI_GRAPHICS_OUTPUT_BLT_PIXEL which defined in UEFI2.1 spec\r | |
79964ac8 | 644 | **/\r |
645 | typedef\r | |
646 | EFI_STATUS\r | |
06a098c4 | 647 | (EFIAPI *EFI_HII_GLYPH_TO_BLT)(\r |
79964ac8 | 648 | IN EFI_HII_PROTOCOL *This,\r |
649 | IN UINT8 *GlyphBuffer,\r | |
650 | IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL Foreground,\r | |
651 | IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL Background,\r | |
652 | IN UINTN Count,\r | |
653 | IN UINTN Width,\r | |
654 | IN UINTN Height,\r | |
655 | IN OUT EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BltBuffer\r | |
656 | );\r | |
657 | \r | |
658 | /**\r | |
659 | Allows a new string to be added to an already existing string package.\r | |
660 | \r | |
06a098c4 | 661 | Note that this function prototype name is different from that in the Framework HII 0.92 spec\r |
662 | to avoid name confict with EFI_HII_NEW_STRING defined in the UEFI 2.1d spec.\r | |
663 | \r | |
79964ac8 | 664 | @param This A pointer to the EFI_HII_PROTOCOL instance.\r |
665 | @param Pointer to a NULL-terminated string containing a single ISO 639-2\r | |
666 | language identifier, indicating the language in which the string is translated.\r | |
667 | @param Handle The handle of the language pack to which the string is to be added.\r | |
668 | @param Reference The identifier of the string to be added. If the reference\r | |
669 | value is zero, then the string will be assigned a new identifier on that\r | |
670 | handle for the language specified. Otherwise, the string will be updated\r | |
671 | with the NewString Value.\r | |
672 | @param NewString The string to be added.\r | |
673 | \r | |
674 | @retval EFI_SUCCESS The string was effectively registered.\r | |
675 | @retval EFI_INVALID_PARAMETER The Handle was unknown.\r | |
676 | \r | |
677 | **/\r | |
678 | typedef\r | |
679 | EFI_STATUS\r | |
69686d56 | 680 | (EFIAPI *FRAMEWORK_EFI_HII_NEW_STRING)(\r |
06a098c4 | 681 | IN EFI_HII_PROTOCOL *This,\r |
682 | IN CHAR16 *Language,\r | |
683 | IN FRAMEWORK_EFI_HII_HANDLE Handle,\r | |
684 | IN OUT STRING_REF *Reference,\r | |
685 | IN CHAR16 *NewString\r | |
79964ac8 | 686 | );\r |
687 | \r | |
688 | /**\r | |
689 | Allows a program to determine the primary languages that are supported\r | |
690 | on a given handle.\r | |
691 | \r | |
692 | @param This A pointer to the EFI_HII_PROTOCOL instance.\r | |
693 | @param Handle The handle on which the strings reside.\r | |
694 | @param LanguageString A string allocated by GetPrimaryLanguages() that\r | |
695 | contains a list of all primary languages registered on the handle.\r | |
696 | \r | |
697 | @retval EFI_SUCCESS LanguageString was correctly returned.\r | |
698 | @retval EFI_INVALID_PARAMETER The Handle was unknown.\r | |
699 | \r | |
700 | **/\r | |
701 | typedef\r | |
702 | EFI_STATUS\r | |
06a098c4 | 703 | (EFIAPI *EFI_HII_GET_PRI_LANGUAGES)(\r |
704 | IN EFI_HII_PROTOCOL *This,\r | |
705 | IN FRAMEWORK_EFI_HII_HANDLE Handle,\r | |
706 | OUT EFI_STRING *LanguageString\r | |
79964ac8 | 707 | );\r |
708 | \r | |
709 | /**\r | |
710 | Allows a program to determine which secondary languages are supported\r | |
711 | on a given handle for a given primary language.\r | |
712 | \r | |
713 | @param This A pointer to the EFI_HII_PROTOCOL instance.\r | |
714 | @param Handle The handle on which the strings reside.\r | |
715 | @param PrimaryLanguage Pointer to a NULL-terminated string containing a single\r | |
716 | ISO 639-2 language identifier, indicating the primary language.\r | |
717 | @param LanguageString A string allocated by GetSecondaryLanguages()\r | |
718 | containing a list of all secondary languages registered on the handle.\r | |
719 | \r | |
720 | @retval EFI_SUCCESS LanguageString was correctly returned.\r | |
721 | @retval EFI_INVALID_PARAMETER The Handle was unknown.\r | |
722 | \r | |
723 | **/\r | |
724 | typedef\r | |
725 | EFI_STATUS\r | |
06a098c4 | 726 | (EFIAPI *EFI_HII_GET_SEC_LANGUAGES)(\r |
727 | IN EFI_HII_PROTOCOL *This,\r | |
728 | IN FRAMEWORK_EFI_HII_HANDLE Handle,\r | |
729 | IN CHAR16 *PrimaryLanguage,\r | |
730 | OUT EFI_STRING *LanguageString\r | |
79964ac8 | 731 | );\r |
732 | \r | |
733 | /**\r | |
734 | Extracts a string from a package already registered with the EFI HII database.\r | |
735 | \r | |
06a098c4 | 736 | Note that this function prototype name is different from that in the Framework HII 0.92 spec\r |
737 | to avoid name confict with EFI_HII_GET_STRING defined in the UEFI 2.1d spec.\r | |
738 | \r | |
79964ac8 | 739 | @param This A pointer to the EFI_HII_PROTOCOL instance.\r |
740 | @param Handle The handle on which the string resides.\r | |
741 | @param Token The string token assigned to the string.\r | |
742 | @param Raw If TRUE, the string is returned unedited in the internal\r | |
06a098c4 | 743 | storage format. If false, the string returned is edited\r |
79964ac8 | 744 | by replacing <cr> with <space> and by removing special characters such\r |
745 | as the <wide> prefix.\r | |
746 | @param LanguageString Pointer to a NULL-terminated string containing a\r | |
747 | single ISO 639-2 language identifier, indicating the language to print.\r | |
748 | If the LanguageString is empty (starts with a NULL), the default system\r | |
749 | language will be used to determine the language.\r | |
750 | @param BufferLength Length of the StringBuffer.\r | |
751 | @param StringBuffer The buffer designed to receive the characters in the string.\r | |
752 | \r | |
753 | @retval EFI_SUCCESS StringBuffer is filled with a NULL-terminated string.\r | |
754 | @retval EFI_INVALID_PARAMETER The handle or string token is unknown.\r | |
755 | @retval EFI_BUFFER_TOO_SMALL The buffer provided was not large enough to\r | |
756 | allow the entire string to be stored.\r | |
757 | \r | |
758 | **/\r | |
759 | typedef\r | |
760 | EFI_STATUS\r | |
69686d56 | 761 | (EFIAPI *FRAMEWORK_EFI_HII_GET_STRING)(\r |
06a098c4 | 762 | IN EFI_HII_PROTOCOL *This,\r |
763 | IN FRAMEWORK_EFI_HII_HANDLE Handle,\r | |
764 | IN STRING_REF Token,\r | |
765 | IN BOOLEAN Raw,\r | |
766 | IN CHAR16 *LanguageString,\r | |
767 | IN OUT UINTN *BufferLength,\r | |
768 | OUT EFI_STRING StringBuffer\r | |
79964ac8 | 769 | );\r |
770 | \r | |
771 | /**\r | |
772 | Allows a program to extract a part of a string of not more than a given width.\r | |
773 | \r | |
774 | @param This A pointer to the EFI_HII_PROTOCOL instance.\r | |
775 | @param Handle The handle on which the string resides.\r | |
776 | @param Token The string token assigned to the string.\r | |
777 | @param Index On input, the offset into the string where the line is to start.\r | |
778 | On output, the index is updated to point to beyond the last character returned\r | |
779 | in the call.\r | |
780 | @param LineWidth The maximum width of the line in units of narrow glyphs.\r | |
781 | @param LanguageString Pointer to a NULL-terminated string containing a\r | |
782 | single ISO 639-2 language identifier, indicating the language to print.\r | |
783 | @param BufferLength Pointer to the length of the StringBuffer.\r | |
784 | @param StringBuffer The buffer designed to receive the characters in the string.\r | |
785 | \r | |
786 | @retval EFI_SUCCESS StringBuffer filled with characters that will fit on the line.\r | |
787 | @retval EFI_NOT_FOUND The font glyph for at least one of the characters in\r | |
788 | the string is not in the font database.\r | |
789 | @retval EFI_BUFFER_TOO_SMALL The buffer provided was not large enough\r | |
790 | to allow the entire string to be stored.\r | |
791 | \r | |
792 | **/\r | |
793 | typedef\r | |
794 | EFI_STATUS\r | |
06a098c4 | 795 | (EFIAPI *EFI_HII_GET_LINE)(\r |
796 | IN EFI_HII_PROTOCOL *This,\r | |
797 | IN FRAMEWORK_EFI_HII_HANDLE Handle,\r | |
798 | IN STRING_REF Token,\r | |
799 | IN OUT UINT16 *Index,\r | |
800 | IN UINT16 LineWidth,\r | |
801 | IN CHAR16 *LanguageString,\r | |
802 | IN OUT UINT16 *BufferLength,\r | |
803 | OUT EFI_STRING StringBuffer\r | |
79964ac8 | 804 | );\r |
805 | \r | |
806 | /**\r | |
807 | Allows a program to extract a form or form package that has previously\r | |
808 | been registered with the HII database.\r | |
809 | \r | |
810 | @param This A pointer to the EFI_HII_PROTOCOL instance.\r | |
811 | @param Handle Handle on which the form resides.\r | |
812 | @param FormId The ID of the form to return. If the ID is zero,\r | |
813 | the entire form package is returned.\r | |
814 | @param BufferLength On input, the length of the Buffer. On output,\r | |
815 | the length of the returned buffer,\r | |
816 | @param Buffer The buffer designed to receive the form(s).\r | |
817 | \r | |
818 | @retval EFI_SUCCESS Buffer filled with the requested forms. BufferLength\r | |
819 | was updated.\r | |
820 | @retval EFI_INVALID_PARAMETER The handle is unknown.\r | |
821 | @retval EFI_NOT_FOUND A form on the requested handle cannot be found with\r | |
822 | the requested FormId.\r | |
823 | @retval EFI_BUFFER_TOO_SMALL The buffer provided was not large enough\r | |
824 | to allow the form to be stored.\r | |
825 | \r | |
826 | **/\r | |
827 | typedef\r | |
828 | EFI_STATUS\r | |
06a098c4 | 829 | (EFIAPI *EFI_HII_GET_FORMS)(\r |
830 | IN EFI_HII_PROTOCOL *This,\r | |
831 | IN FRAMEWORK_EFI_HII_HANDLE Handle,\r | |
832 | IN EFI_FORM_ID FormId,\r | |
833 | IN OUT UINTN *BufferLength,\r | |
834 | OUT UINT8 *Buffer\r | |
79964ac8 | 835 | );\r |
836 | \r | |
837 | /**\r | |
838 | Extracts the defaults that are associated with a given handle in the HII database.\r | |
839 | \r | |
840 | @param This A pointer to the EFI_HII_PROTOCOL instance.\r | |
841 | @param Handle The HII handle from which will have default data retrieved.\r | |
842 | @param DefaultMask The mask used to specify some type of default override when extracting\r | |
843 | the default image data.\r | |
844 | @param VariablePackList A indirect pointer to the first entry of a link list with\r | |
845 | type EFI_HII_VARIABLE_PACK_LIST.\r | |
846 | \r | |
847 | @retval EFI_SUCCESS The VariablePackList was populated with the appropriate\r | |
848 | default setting data.\r | |
849 | @retval EFI_NOT_FOUND The IFR does not have any explicit or default map(s).\r | |
850 | @retval EFI_INVALID_PARAMETER The HII database entry associated with Handle\r | |
851 | contain invalid data.\r | |
852 | \r | |
853 | **/\r | |
854 | typedef\r | |
855 | EFI_STATUS\r | |
06a098c4 | 856 | (EFIAPI *EFI_HII_GET_DEFAULT_IMAGE)(\r |
79964ac8 | 857 | IN EFI_HII_PROTOCOL *This,\r |
dc7b4a5c | 858 | IN FRAMEWORK_EFI_HII_HANDLE Handle,\r |
79964ac8 | 859 | IN UINTN DefaultMask,\r |
860 | OUT EFI_HII_VARIABLE_PACK_LIST **VariablePackList\r | |
861 | );\r | |
862 | \r | |
863 | /**\r | |
864 | Allows the caller to update a form or form package that has previously been\r | |
865 | registered with the EFI HII database.\r | |
866 | \r | |
867 | @param This A pointer to the EFI_HII_PROTOCOL instance.\r | |
868 | @param Handle Handle of the package where the form to be updated resides.\r | |
869 | @param Label The label inside the form package where the update is to take place.\r | |
870 | @param AddData If TRUE, adding data at a given Label; otherwise,\r | |
871 | if FALSE, removing data at a given Label.\r | |
872 | @param Data The buffer containing the new tags to insert after the Label\r | |
873 | \r | |
874 | @retval EFI_SUCCESS The form was updated with the new tags.\r | |
875 | @retval EFI_INVALID_PARAMETER The buffer for the buffer length does not\r | |
876 | contain an integral number of tags.\r | |
877 | @retval EFI_NOT_FOUND The Handle, Label, or FormId was not found.\r | |
878 | \r | |
879 | **/\r | |
880 | typedef\r | |
881 | EFI_STATUS\r | |
06a098c4 | 882 | (EFIAPI *EFI_HII_UPDATE_FORM)(\r |
883 | IN EFI_HII_PROTOCOL *This,\r | |
884 | IN FRAMEWORK_EFI_HII_HANDLE Handle,\r | |
885 | IN EFI_FORM_LABEL Label,\r | |
886 | IN BOOLEAN AddData,\r | |
887 | IN EFI_HII_UPDATE_DATA *Data\r | |
79964ac8 | 888 | );\r |
889 | \r | |
890 | /**\r | |
891 | Retrieves the current keyboard layout.\r | |
892 | \r | |
06a098c4 | 893 | Note that this function prototype name is different from that in the Framework HII 0.92 spec\r |
894 | to avoid name confict with EFI_HII_GET_KEYBOARD_LAYOUT defined in the UEFI 2.1d spec.\r | |
895 | \r | |
79964ac8 | 896 | @param This A pointer to the EFI_HII_PROTOCOL instance.\r |
897 | @param DescriptorCount A pointer to the number of Descriptor entries being\r | |
898 | described in the keyboard layout being retrieved.\r | |
dc7b4a5c | 899 | @param Descriptor A pointer to a buffer containing an array of FRAMEWORK_EFI_KEY_DESCRIPTOR\r |
79964ac8 | 900 | entries. Each entry will reflect the definition of a specific physical key.\r |
901 | \r | |
902 | @retval EFI_SUCCESS The keyboard layout was retrieved successfully.\r | |
903 | \r | |
904 | **/\r | |
905 | typedef\r | |
906 | EFI_STATUS\r | |
69686d56 | 907 | (EFIAPI *FRAMEWORK_EFI_HII_GET_KEYBOARD_LAYOUT)(\r |
06a098c4 | 908 | IN EFI_HII_PROTOCOL *This,\r |
909 | OUT UINT16 *DescriptorCount,\r | |
dc7b4a5c | 910 | OUT FRAMEWORK_EFI_KEY_DESCRIPTOR *Descriptor\r |
79964ac8 | 911 | );\r |
912 | \r | |
06a098c4 | 913 | ///\r |
914 | /// The HII Protocol manages the HII database, which is a repository for data\r | |
915 | /// having to do with fonts, strings, forms, keyboards, and other future human\r | |
916 | /// interface items.\r | |
917 | ///\r | |
79964ac8 | 918 | struct _EFI_HII_PROTOCOL {\r |
2bbaeb0d | 919 | ///\r |
920 | /// Extracts the various packs from a package list.\r | |
921 | ///\r | |
06a098c4 | 922 | EFI_HII_NEW_PACK NewPack;\r |
2bbaeb0d | 923 | \r |
924 | ///\r | |
925 | /// Removes a package from the HII database.\r | |
926 | ///\r | |
06a098c4 | 927 | EFI_HII_REMOVE_PACK RemovePack;\r |
2bbaeb0d | 928 | \r |
929 | ///\r | |
930 | /// Determines the handles that are currently active in the database.\r | |
931 | /// \r | |
06a098c4 | 932 | EFI_HII_FIND_HANDLES FindHandles;\r |
2bbaeb0d | 933 | \r |
934 | ///\r | |
935 | /// Export the entire contents of the database to a buffer.\r | |
936 | ///\r | |
06a098c4 | 937 | EFI_HII_EXPORT ExportDatabase;\r |
c1adc63d | 938 | \r |
2bbaeb0d | 939 | ///\r |
940 | /// Tests if all of the characters in a string have corresponding font characters.\r | |
941 | ///\r | |
06a098c4 | 942 | EFI_HII_TEST_STRING TestString;\r |
2bbaeb0d | 943 | \r |
944 | ///\r | |
945 | /// Translates a Unicode character into the corresponding font glyph.\r | |
946 | ///\r | |
c1adc63d | 947 | FRAMEWORK_EFI_HII_GET_GLYPH GetGlyph;\r |
2bbaeb0d | 948 | \r |
949 | ///\r | |
950 | /// Converts a glyph value into a format that is ready for a UGA BLT command.\r | |
951 | ///\r | |
06a098c4 | 952 | EFI_HII_GLYPH_TO_BLT GlyphToBlt;\r |
c1adc63d | 953 | \r |
2bbaeb0d | 954 | ///\r |
955 | /// Allows a new string to be added to an already existing string package.\r | |
956 | ///\r | |
c1adc63d | 957 | FRAMEWORK_EFI_HII_NEW_STRING NewString;\r |
2bbaeb0d | 958 | \r |
959 | ///\r | |
960 | /// Allows a program to determine the primary languages that are supported\r | |
961 | /// on a given handle. \r | |
962 | ///\r | |
06a098c4 | 963 | EFI_HII_GET_PRI_LANGUAGES GetPrimaryLanguages;\r |
2bbaeb0d | 964 | \r |
965 | ///\r | |
966 | /// Allows a program to determine which secondary languages are supported\r | |
967 | /// on a given handle for a given primary language. \r | |
968 | ///\r | |
06a098c4 | 969 | EFI_HII_GET_SEC_LANGUAGES GetSecondaryLanguages;\r |
2bbaeb0d | 970 | \r |
971 | ///\r | |
972 | /// Extracts a string from a package that is already registered with the\r | |
973 | /// EFI HII database. \r | |
974 | ///\r | |
c1adc63d | 975 | FRAMEWORK_EFI_HII_GET_STRING GetString;\r |
2bbaeb0d | 976 | \r |
977 | ///\r | |
978 | /// Remove any new strings that were added after the initial string export\r | |
979 | /// for this handle. \r | |
06a098c4 | 980 | /// \r |
981 | /// Note this function is not defined in the Framework HII 0.92 spec.\r | |
2bbaeb0d | 982 | ///\r |
06a098c4 | 983 | EFI_HII_RESET_STRINGS ResetStrings;\r |
2bbaeb0d | 984 | \r |
985 | ///\r | |
986 | /// Allows a program to extract a part of a string of not more than a given width.\r | |
987 | ///\r | |
06a098c4 | 988 | EFI_HII_GET_LINE GetLine;\r |
2bbaeb0d | 989 | \r |
990 | ///\r | |
991 | /// Allows a program to extract a form or form package that has been previously registered.\r | |
992 | ///\r | |
06a098c4 | 993 | EFI_HII_GET_FORMS GetForms;\r |
2bbaeb0d | 994 | \r |
995 | ///\r | |
996 | /// Allows a program to extract the nonvolatile image that represents the default storage image.\r | |
997 | ///\r | |
06a098c4 | 998 | EFI_HII_GET_DEFAULT_IMAGE GetDefaultImage;\r |
2bbaeb0d | 999 | \r |
1000 | ///\r | |
1001 | /// Allows a program to update a previously registered form.\r | |
1002 | ///\r | |
06a098c4 | 1003 | EFI_HII_UPDATE_FORM UpdateForm;\r |
c1adc63d | 1004 | \r |
2bbaeb0d | 1005 | ///\r |
1006 | /// Allows a program to extract the current keyboard layout.\r | |
1007 | ///\r | |
c1adc63d | 1008 | FRAMEWORK_EFI_HII_GET_KEYBOARD_LAYOUT GetKeyboardLayout;\r |
79964ac8 | 1009 | };\r |
1010 | \r | |
1011 | extern EFI_GUID gEfiHiiProtocolGuid;\r | |
c39940b5 | 1012 | extern EFI_GUID gEfiHiiCompatibilityProtocolGuid;\r |
1013 | \r | |
79964ac8 | 1014 | #endif\r |
06a098c4 | 1015 | \r |