]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabase.h
Update HiiDataBase and UefiHiiLib to support Name/Value varstore.
[mirror_edk2.git] / MdeModulePkg / Universal / HiiDatabaseDxe / HiiDatabase.h
1 /** @file
2 Private structures definitions in HiiDatabase.
3
4 Copyright (c) 2007 - 2011, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 **/
14
15 #ifndef __HII_DATABASE_PRIVATE_H__
16 #define __HII_DATABASE_PRIVATE_H__
17
18 #include <Uefi.h>
19
20 #include <Protocol/DevicePath.h>
21 #include <Protocol/HiiFont.h>
22 #include <Protocol/HiiImage.h>
23 #include <Protocol/HiiString.h>
24 #include <Protocol/HiiDatabase.h>
25 #include <Protocol/HiiConfigRouting.h>
26 #include <Protocol/HiiConfigAccess.h>
27 #include <Protocol/SimpleTextOut.h>
28
29 #include <Guid/HiiKeyBoardLayout.h>
30 #include <Guid/GlobalVariable.h>
31
32
33 #include <Library/DebugLib.h>
34 #include <Library/BaseMemoryLib.h>
35 #include <Library/UefiDriverEntryPoint.h>
36 #include <Library/UefiBootServicesTableLib.h>
37 #include <Library/BaseLib.h>
38 #include <Library/DevicePathLib.h>
39 #include <Library/MemoryAllocationLib.h>
40 #include <Library/UefiLib.h>
41 #include <Library/PcdLib.h>
42 #include <Library/UefiRuntimeServicesTableLib.h>
43 #include <Library/PrintLib.h>
44
45 #define MAX_STRING_LENGTH 1024
46 #define MAX_FONT_NAME_LEN 256
47 #define NARROW_BASELINE 15
48 #define WIDE_BASELINE 14
49 #define SYS_FONT_INFO_MASK 0x37
50 #define REPLACE_UNKNOWN_GLYPH 0xFFFD
51 #define PROPORTIONAL_GLYPH 0x80
52 #define NARROW_GLYPH 0x40
53
54 #define BITMAP_LEN_1_BIT(Width, Height) (((Width) + 7) / 8 * (Height))
55 #define BITMAP_LEN_4_BIT(Width, Height) (((Width) + 1) / 2 * (Height))
56 #define BITMAP_LEN_8_BIT(Width, Height) ((Width) * (Height))
57 #define BITMAP_LEN_24_BIT(Width, Height) ((Width) * (Height) * 3)
58
59 //
60 // IFR data structure
61 //
62 // BASE_CR (a, IFR_DEFAULT_VALUE_DATA, Entry) to get the whole structure.
63
64 typedef struct {
65 LIST_ENTRY Entry; // Link to VarStorage
66 EFI_GUID Guid;
67 CHAR16 *Name;
68 EFI_VARSTORE_ID VarStoreId;
69 UINT16 Size;
70 UINT8 Type;
71 LIST_ENTRY BlockEntry; // Link to its Block array
72 } IFR_VARSTORAGE_DATA;
73
74 typedef struct {
75 LIST_ENTRY Entry; // Link to Block array
76 UINT16 Offset;
77 UINT16 Width;
78 EFI_QUESTION_ID QuestionId;
79 UINT8 OpCode;
80 UINT8 Scope;
81 LIST_ENTRY DefaultValueEntry; // Link to its default value array
82 CHAR16 *Name;
83 } IFR_BLOCK_DATA;
84
85 //
86 // Get default value from IFR data.
87 //
88 typedef enum {
89 DefaultValueFromDefault = 0, // Get from the minimum or first one when not set default value.
90 DefaultValueFromFlag, // Get default value from the defalut flag.
91 DefaultValueFromOpcode // Get default value from default opcode, highest priority.
92 } DEFAULT_VALUE_TYPE;
93
94 typedef struct {
95 LIST_ENTRY Entry;
96 DEFAULT_VALUE_TYPE Type;
97 BOOLEAN Cleaned; // Whether this value is cleaned
98 // TRUE Cleaned, the value can't be used
99 // FALSE Not cleaned, the value can be used.
100 UINT16 DefaultId;
101 EFI_IFR_TYPE_VALUE Value;
102 } IFR_DEFAULT_DATA;
103
104 //
105 // Storage types
106 //
107 #define EFI_HII_VARSTORE_BUFFER 0
108 #define EFI_HII_VARSTORE_NAME_VALUE 1
109 #define EFI_HII_VARSTORE_EFI_VARIABLE 2
110 #define EFI_HII_VARSTORE_EFI_VARIABLE_BUFFER 3
111
112 #define HII_FORMSET_STORAGE_SIGNATURE SIGNATURE_32 ('H', 'S', 'T', 'G')
113 typedef struct {
114 UINTN Signature;
115 LIST_ENTRY Entry;
116
117 EFI_HII_HANDLE HiiHandle;
118 EFI_HANDLE DriverHandle;
119
120 UINT8 Type; // EFI_HII_VARSTORE_BUFFER, EFI_HII_VARSTORE_NAME_VALUE, EFI_HII_VARSTORE_EFI_VARIABLE
121 EFI_GUID Guid;
122 CHAR16 *Name;
123 UINT16 Size;
124 } HII_FORMSET_STORAGE;
125
126
127 //
128 // String Package definitions
129 //
130 #define HII_STRING_PACKAGE_SIGNATURE SIGNATURE_32 ('h','i','s','p')
131 typedef struct _HII_STRING_PACKAGE_INSTANCE {
132 UINTN Signature;
133 EFI_HII_STRING_PACKAGE_HDR *StringPkgHdr;
134 UINT8 *StringBlock;
135 LIST_ENTRY StringEntry;
136 LIST_ENTRY FontInfoList; // local font info list
137 UINT8 FontId;
138 EFI_STRING_ID MaxStringId; // record StringId
139 } HII_STRING_PACKAGE_INSTANCE;
140
141 //
142 // Form Package definitions
143 //
144 #define HII_IFR_PACKAGE_SIGNATURE SIGNATURE_32 ('h','f','r','p')
145 typedef struct _HII_IFR_PACKAGE_INSTANCE {
146 UINTN Signature;
147 EFI_HII_PACKAGE_HEADER FormPkgHdr;
148 UINT8 *IfrData;
149 LIST_ENTRY IfrEntry;
150 } HII_IFR_PACKAGE_INSTANCE;
151
152 //
153 // Simple Font Package definitions
154 //
155 #define HII_S_FONT_PACKAGE_SIGNATURE SIGNATURE_32 ('h','s','f','p')
156 typedef struct _HII_SIMPLE_FONT_PACKAGE_INSTANCE {
157 UINTN Signature;
158 EFI_HII_SIMPLE_FONT_PACKAGE_HDR *SimpleFontPkgHdr;
159 LIST_ENTRY SimpleFontEntry;
160 } HII_SIMPLE_FONT_PACKAGE_INSTANCE;
161
162 //
163 // Font Package definitions
164 //
165 #define HII_FONT_PACKAGE_SIGNATURE SIGNATURE_32 ('h','i','f','p')
166 typedef struct _HII_FONT_PACKAGE_INSTANCE {
167 UINTN Signature;
168 EFI_HII_FONT_PACKAGE_HDR *FontPkgHdr;
169 UINT16 Height;
170 UINT16 BaseLine;
171 UINT8 *GlyphBlock;
172 LIST_ENTRY FontEntry;
173 LIST_ENTRY GlyphInfoList;
174 } HII_FONT_PACKAGE_INSTANCE;
175
176 #define HII_GLYPH_INFO_SIGNATURE SIGNATURE_32 ('h','g','i','s')
177 typedef struct _HII_GLYPH_INFO {
178 UINTN Signature;
179 LIST_ENTRY Entry;
180 CHAR16 CharId;
181 EFI_HII_GLYPH_INFO Cell;
182 } HII_GLYPH_INFO;
183
184 #define HII_FONT_INFO_SIGNATURE SIGNATURE_32 ('h','l','f','i')
185 typedef struct _HII_FONT_INFO {
186 UINTN Signature;
187 LIST_ENTRY Entry;
188 LIST_ENTRY *GlobalEntry;
189 UINT8 FontId;
190 } HII_FONT_INFO;
191
192 #define HII_GLOBAL_FONT_INFO_SIGNATURE SIGNATURE_32 ('h','g','f','i')
193 typedef struct _HII_GLOBAL_FONT_INFO {
194 UINTN Signature;
195 LIST_ENTRY Entry;
196 HII_FONT_PACKAGE_INSTANCE *FontPackage;
197 UINTN FontInfoSize;
198 EFI_FONT_INFO *FontInfo;
199 } HII_GLOBAL_FONT_INFO;
200
201 //
202 // Image Package definitions
203 //
204
205 #define HII_PIXEL_MASK 0x80
206
207 typedef struct _HII_IMAGE_PACKAGE_INSTANCE {
208 EFI_HII_IMAGE_PACKAGE_HDR ImagePkgHdr;
209 UINT32 ImageBlockSize;
210 UINT32 PaletteInfoSize;
211 UINT8 *ImageBlock;
212 UINT8 *PaletteBlock;
213 } HII_IMAGE_PACKAGE_INSTANCE;
214
215 //
216 // Keyboard Layout Pacakge definitions
217 //
218 #define HII_KB_LAYOUT_PACKAGE_SIGNATURE SIGNATURE_32 ('h','k','l','p')
219 typedef struct _HII_KEYBOARD_LAYOUT_PACKAGE_INSTANCE {
220 UINTN Signature;
221 UINT8 *KeyboardPkg;
222 LIST_ENTRY KeyboardEntry;
223 } HII_KEYBOARD_LAYOUT_PACKAGE_INSTANCE;
224
225 //
226 // Guid Package definitions
227 //
228 #define HII_GUID_PACKAGE_SIGNATURE SIGNATURE_32 ('h','i','g','p')
229 typedef struct _HII_GUID_PACKAGE_INSTANCE {
230 UINTN Signature;
231 UINT8 *GuidPkg;
232 LIST_ENTRY GuidEntry;
233 } HII_GUID_PACKAGE_INSTANCE;
234
235 //
236 // A package list can contain only one or less than one device path package.
237 // This rule also applies to image package since ImageId can not be duplicate.
238 //
239 typedef struct _HII_DATABASE_PACKAGE_LIST_INSTANCE {
240 EFI_HII_PACKAGE_LIST_HEADER PackageListHdr;
241 LIST_ENTRY GuidPkgHdr;
242 LIST_ENTRY FormPkgHdr;
243 LIST_ENTRY KeyboardLayoutHdr;
244 LIST_ENTRY StringPkgHdr;
245 LIST_ENTRY FontPkgHdr;
246 HII_IMAGE_PACKAGE_INSTANCE *ImagePkg;
247 LIST_ENTRY SimpleFontPkgHdr;
248 UINT8 *DevicePathPkg;
249 } HII_DATABASE_PACKAGE_LIST_INSTANCE;
250
251 #define HII_HANDLE_SIGNATURE SIGNATURE_32 ('h','i','h','l')
252
253 typedef struct {
254 UINTN Signature;
255 LIST_ENTRY Handle;
256 UINTN Key;
257 } HII_HANDLE;
258
259 #define HII_DATABASE_RECORD_SIGNATURE SIGNATURE_32 ('h','i','d','r')
260
261 typedef struct _HII_DATABASE_RECORD {
262 UINTN Signature;
263 HII_DATABASE_PACKAGE_LIST_INSTANCE *PackageList;
264 EFI_HANDLE DriverHandle;
265 EFI_HII_HANDLE Handle;
266 LIST_ENTRY DatabaseEntry;
267 } HII_DATABASE_RECORD;
268
269 #define HII_DATABASE_NOTIFY_SIGNATURE SIGNATURE_32 ('h','i','d','n')
270
271 typedef struct _HII_DATABASE_NOTIFY {
272 UINTN Signature;
273 EFI_HANDLE NotifyHandle;
274 UINT8 PackageType;
275 EFI_GUID *PackageGuid;
276 EFI_HII_DATABASE_NOTIFY PackageNotifyFn;
277 EFI_HII_DATABASE_NOTIFY_TYPE NotifyType;
278 LIST_ENTRY DatabaseNotifyEntry;
279 } HII_DATABASE_NOTIFY;
280
281 #define HII_DATABASE_PRIVATE_DATA_SIGNATURE SIGNATURE_32 ('H', 'i', 'D', 'p')
282
283 typedef struct _HII_DATABASE_PRIVATE_DATA {
284 UINTN Signature;
285 LIST_ENTRY DatabaseList;
286 LIST_ENTRY DatabaseNotifyList;
287 EFI_HII_FONT_PROTOCOL HiiFont;
288 EFI_HII_IMAGE_PROTOCOL HiiImage;
289 EFI_HII_STRING_PROTOCOL HiiString;
290 EFI_HII_DATABASE_PROTOCOL HiiDatabase;
291 EFI_HII_CONFIG_ROUTING_PROTOCOL ConfigRouting;
292 LIST_ENTRY HiiHandleList;
293 INTN HiiHandleCount;
294 LIST_ENTRY FontInfoList; // global font info list
295 UINTN Attribute; // default system color
296 EFI_GUID CurrentLayoutGuid;
297 EFI_HII_KEYBOARD_LAYOUT *CurrentLayout;
298 } HII_DATABASE_PRIVATE_DATA;
299
300 #define HII_FONT_DATABASE_PRIVATE_DATA_FROM_THIS(a) \
301 CR (a, \
302 HII_DATABASE_PRIVATE_DATA, \
303 HiiFont, \
304 HII_DATABASE_PRIVATE_DATA_SIGNATURE \
305 )
306
307 #define HII_IMAGE_DATABASE_PRIVATE_DATA_FROM_THIS(a) \
308 CR (a, \
309 HII_DATABASE_PRIVATE_DATA, \
310 HiiImage, \
311 HII_DATABASE_PRIVATE_DATA_SIGNATURE \
312 )
313
314 #define HII_STRING_DATABASE_PRIVATE_DATA_FROM_THIS(a) \
315 CR (a, \
316 HII_DATABASE_PRIVATE_DATA, \
317 HiiString, \
318 HII_DATABASE_PRIVATE_DATA_SIGNATURE \
319 )
320
321 #define HII_DATABASE_DATABASE_PRIVATE_DATA_FROM_THIS(a) \
322 CR (a, \
323 HII_DATABASE_PRIVATE_DATA, \
324 HiiDatabase, \
325 HII_DATABASE_PRIVATE_DATA_SIGNATURE \
326 )
327
328 #define CONFIG_ROUTING_DATABASE_PRIVATE_DATA_FROM_THIS(a) \
329 CR (a, \
330 HII_DATABASE_PRIVATE_DATA, \
331 ConfigRouting, \
332 HII_DATABASE_PRIVATE_DATA_SIGNATURE \
333 )
334
335 //
336 // Internal function prototypes.
337 //
338
339 /**
340 This function checks whether a handle is a valid EFI_HII_HANDLE.
341
342 @param Handle Pointer to a EFI_HII_HANDLE
343
344 @retval TRUE Valid
345 @retval FALSE Invalid
346
347 **/
348 BOOLEAN
349 IsHiiHandleValid (
350 EFI_HII_HANDLE Handle
351 );
352
353
354 /**
355 This function checks whether EFI_FONT_INFO exists in current database. If
356 FontInfoMask is specified, check what options can be used to make a match.
357 Note that the masks relate to where the system default should be supplied
358 are ignored by this function.
359
360 @param Private Hii database private structure.
361 @param FontInfo Points to EFI_FONT_INFO structure.
362 @param FontInfoMask If not NULL, describes what options can be used
363 to make a match between the font requested and
364 the font available. The caller must guarantee
365 this mask is valid.
366 @param FontHandle On entry, Points to the font handle returned by a
367 previous call to GetFontInfo() or NULL to start
368 with the first font.
369 @param GlobalFontInfo If not NULL, output the corresponding globa font
370 info.
371
372 @retval TRUE Existed
373 @retval FALSE Not existed
374
375 **/
376 BOOLEAN
377 IsFontInfoExisted (
378 IN HII_DATABASE_PRIVATE_DATA *Private,
379 IN EFI_FONT_INFO *FontInfo,
380 IN EFI_FONT_INFO_MASK *FontInfoMask, OPTIONAL
381 IN EFI_FONT_HANDLE FontHandle, OPTIONAL
382 OUT HII_GLOBAL_FONT_INFO **GlobalFontInfo OPTIONAL
383 );
384
385 /**
386
387 This function invokes the matching registered function.
388
389 @param Private HII Database driver private structure.
390 @param NotifyType The type of change concerning the database.
391 @param PackageInstance Points to the package referred to by the notification.
392 @param PackageType Package type
393 @param Handle The handle of the package list which contains the specified package.
394
395 @retval EFI_SUCCESS Already checked all registered function and invoked
396 if matched.
397 @retval EFI_INVALID_PARAMETER Any input parameter is not valid.
398
399 **/
400 EFI_STATUS
401 InvokeRegisteredFunction (
402 IN HII_DATABASE_PRIVATE_DATA *Private,
403 IN EFI_HII_DATABASE_NOTIFY_TYPE NotifyType,
404 IN VOID *PackageInstance,
405 IN UINT8 PackageType,
406 IN EFI_HII_HANDLE Handle
407 )
408 ;
409
410 /**
411 Retrieve system default font and color.
412
413 @param Private HII database driver private data.
414 @param FontInfo Points to system default font output-related
415 information. It's caller's responsibility to free
416 this buffer.
417 @param FontInfoSize If not NULL, output the size of buffer FontInfo.
418
419 @retval EFI_SUCCESS Cell information is added to the GlyphInfoList.
420 @retval EFI_OUT_OF_RESOURCES The system is out of resources to accomplish the
421 task.
422 @retval EFI_INVALID_PARAMETER Any input parameter is invalid.
423
424 **/
425 EFI_STATUS
426 GetSystemFont (
427 IN HII_DATABASE_PRIVATE_DATA *Private,
428 OUT EFI_FONT_DISPLAY_INFO **FontInfo,
429 OUT UINTN *FontInfoSize OPTIONAL
430 );
431
432
433 /**
434 Parse all string blocks to find a String block specified by StringId.
435 If StringId = (EFI_STRING_ID) (-1), find out all EFI_HII_SIBT_FONT blocks
436 within this string package and backup its information. If LastStringId is
437 specified, the string id of last string block will also be output.
438 If StringId = 0, output the string id of last string block (EFI_HII_SIBT_STRING).
439
440 @param Private Hii database private structure.
441 @param StringPackage Hii string package instance.
442 @param StringId The string's id, which is unique within
443 PackageList.
444 @param BlockType Output the block type of found string block.
445 @param StringBlockAddr Output the block address of found string block.
446 @param StringTextOffset Offset, relative to the found block address, of
447 the string text information.
448 @param LastStringId Output the last string id when StringId = 0 or StringId = -1.
449 @param StartStringId The first id in the skip block which StringId in the block.
450
451 @retval EFI_SUCCESS The string text and font is retrieved
452 successfully.
453 @retval EFI_NOT_FOUND The specified text or font info can not be found
454 out.
455 @retval EFI_OUT_OF_RESOURCES The system is out of resources to accomplish the
456 task.
457
458 **/
459 EFI_STATUS
460 FindStringBlock (
461 IN HII_DATABASE_PRIVATE_DATA *Private,
462 IN HII_STRING_PACKAGE_INSTANCE *StringPackage,
463 IN EFI_STRING_ID StringId,
464 OUT UINT8 *BlockType, OPTIONAL
465 OUT UINT8 **StringBlockAddr, OPTIONAL
466 OUT UINTN *StringTextOffset, OPTIONAL
467 OUT EFI_STRING_ID *LastStringId, OPTIONAL
468 OUT EFI_STRING_ID *StartStringId OPTIONAL
469 );
470
471
472 /**
473 Parse all glyph blocks to find a glyph block specified by CharValue.
474 If CharValue = (CHAR16) (-1), collect all default character cell information
475 within this font package and backup its information.
476
477 @param FontPackage Hii string package instance.
478 @param CharValue Unicode character value, which identifies a glyph
479 block.
480 @param GlyphBuffer Output the corresponding bitmap data of the found
481 block. It is the caller's responsiblity to free
482 this buffer.
483 @param Cell Output cell information of the encoded bitmap.
484 @param GlyphBufferLen If not NULL, output the length of GlyphBuffer.
485
486 @retval EFI_SUCCESS The bitmap data is retrieved successfully.
487 @retval EFI_NOT_FOUND The specified CharValue does not exist in current
488 database.
489 @retval EFI_OUT_OF_RESOURCES The system is out of resources to accomplish the
490 task.
491
492 **/
493 EFI_STATUS
494 FindGlyphBlock (
495 IN HII_FONT_PACKAGE_INSTANCE *FontPackage,
496 IN CHAR16 CharValue,
497 OUT UINT8 **GlyphBuffer, OPTIONAL
498 OUT EFI_HII_GLYPH_INFO *Cell, OPTIONAL
499 OUT UINTN *GlyphBufferLen OPTIONAL
500 );
501
502 /**
503 This function exports Form packages to a buffer.
504 This is a internal function.
505
506 @param Private Hii database private structure.
507 @param Handle Identification of a package list.
508 @param PackageList Pointer to a package list which will be exported.
509 @param UsedSize The length of buffer be used.
510 @param BufferSize Length of the Buffer.
511 @param Buffer Allocated space for storing exported data.
512 @param ResultSize The size of the already exported content of this
513 package list.
514
515 @retval EFI_SUCCESS Form Packages are exported successfully.
516 @retval EFI_INVALID_PARAMETER Any input parameter is invalid.
517
518 **/
519 EFI_STATUS
520 ExportFormPackages (
521 IN HII_DATABASE_PRIVATE_DATA *Private,
522 IN EFI_HII_HANDLE Handle,
523 IN HII_DATABASE_PACKAGE_LIST_INSTANCE *PackageList,
524 IN UINTN UsedSize,
525 IN UINTN BufferSize,
526 IN OUT VOID *Buffer,
527 IN OUT UINTN *ResultSize
528 );
529
530 //
531 // EFI_HII_FONT_PROTOCOL protocol interfaces
532 //
533
534
535 /**
536 Renders a string to a bitmap or to the display.
537
538 @param This A pointer to the EFI_HII_FONT_PROTOCOL instance.
539 @param Flags Describes how the string is to be drawn.
540 @param String Points to the null-terminated string to be
541 displayed.
542 @param StringInfo Points to the string output information,
543 including the color and font. If NULL, then the
544 string will be output in the default system font
545 and color.
546 @param Blt If this points to a non-NULL on entry, this
547 points to the image, which is Width pixels wide
548 and Height pixels high. The string will be drawn
549 onto this image and
550 EFI_HII_OUT_FLAG_CLIP is implied. If this points
551 to a NULL on entry, then a buffer
552 will be allocated to hold the generated image and
553 the pointer updated on exit. It is the caller's
554 responsibility to free this buffer.
555 @param BltX Together with BltX, Specifies the offset from the left and top edge
556 of the image of the first character cell in the
557 image.
558 @param BltY Together with BltY, Specifies the offset from the left and top edge
559 of the image of the first character cell in the
560 image.
561 @param RowInfoArray If this is non-NULL on entry, then on exit, this
562 will point to an allocated buffer containing
563 row information and RowInfoArraySize will be
564 updated to contain the number of elements.
565 This array describes the characters which were at
566 least partially drawn and the heights of the
567 rows. It is the caller's responsibility to free
568 this buffer.
569 @param RowInfoArraySize If this is non-NULL on entry, then on exit it
570 contains the number of elements in RowInfoArray.
571 @param ColumnInfoArray If this is non-NULL, then on return it will be
572 filled with the horizontal offset for each
573 character in the string on the row where it is
574 displayed. Non-printing characters will have
575 the offset ~0. The caller is responsible to
576 allocate a buffer large enough so that there
577 is one entry for each character in the string,
578 not including the null-terminator. It is possible
579 when character display is normalized that some
580 character cells overlap.
581
582 @retval EFI_SUCCESS The string was successfully rendered.
583 @retval EFI_OUT_OF_RESOURCES Unable to allocate an output buffer for
584 RowInfoArray or Blt.
585 @retval EFI_INVALID_PARAMETER The String or Blt.
586 @retval EFI_INVALID_PARAMETER Flags were invalid combination..
587
588 **/
589 EFI_STATUS
590 EFIAPI
591 HiiStringToImage (
592 IN CONST EFI_HII_FONT_PROTOCOL *This,
593 IN EFI_HII_OUT_FLAGS Flags,
594 IN CONST EFI_STRING String,
595 IN CONST EFI_FONT_DISPLAY_INFO *StringInfo OPTIONAL,
596 IN OUT EFI_IMAGE_OUTPUT **Blt,
597 IN UINTN BltX,
598 IN UINTN BltY,
599 OUT EFI_HII_ROW_INFO **RowInfoArray OPTIONAL,
600 OUT UINTN *RowInfoArraySize OPTIONAL,
601 OUT UINTN *ColumnInfoArray OPTIONAL
602 );
603
604
605 /**
606 Render a string to a bitmap or the screen containing the contents of the specified string.
607
608 @param This A pointer to the EFI_HII_FONT_PROTOCOL instance.
609 @param Flags Describes how the string is to be drawn.
610 @param PackageList The package list in the HII database to search
611 for the specified string.
612 @param StringId The string's id, which is unique within
613 PackageList.
614 @param Language Points to the language for the retrieved string.
615 If NULL, then the current system language is
616 used.
617 @param StringInfo Points to the string output information,
618 including the color and font. If NULL, then the
619 string will be output in the default system font
620 and color.
621 @param Blt If this points to a non-NULL on entry, this
622 points to the image, which is Width pixels wide
623 and Height pixels high. The string will be drawn
624 onto this image and
625 EFI_HII_OUT_FLAG_CLIP is implied. If this points
626 to a NULL on entry, then a buffer
627 will be allocated to hold the generated image and
628 the pointer updated on exit. It is the caller's
629 responsibility to free this buffer.
630 @param BltX Together with BltX, Specifies the offset from the left and top edge
631 of the image of the first character cell in the
632 image.
633 @param BltY Together with BltY, Specifies the offset from the left and top edge
634 of the image of the first character cell in the
635 image.
636 @param RowInfoArray If this is non-NULL on entry, then on exit, this
637 will point to an allocated buffer containing
638 row information and RowInfoArraySize will be
639 updated to contain the number of elements.
640 This array describes the characters which were at
641 least partially drawn and the heights of the
642 rows. It is the caller's responsibility to free
643 this buffer.
644 @param RowInfoArraySize If this is non-NULL on entry, then on exit it
645 contains the number of elements in RowInfoArray.
646 @param ColumnInfoArray If this is non-NULL, then on return it will be
647 filled with the horizontal offset for each
648 character in the string on the row where it is
649 displayed. Non-printing characters will have
650 the offset ~0. The caller is responsible to
651 allocate a buffer large enough so that there
652 is one entry for each character in the string,
653 not including the null-terminator. It is possible
654 when character display is normalized that some
655 character cells overlap.
656
657 @retval EFI_SUCCESS The string was successfully rendered.
658 @retval EFI_OUT_OF_RESOURCES Unable to allocate an output buffer for
659 RowInfoArray or Blt.
660 @retval EFI_INVALID_PARAMETER The Blt or PackageList was NULL.
661 @retval EFI_INVALID_PARAMETER Flags were invalid combination.
662 @retval EFI_NOT_FOUND The specified PackageList is not in the Database or the stringid is not
663 in the specified PackageList.
664
665 **/
666 EFI_STATUS
667 EFIAPI
668 HiiStringIdToImage (
669 IN CONST EFI_HII_FONT_PROTOCOL *This,
670 IN EFI_HII_OUT_FLAGS Flags,
671 IN EFI_HII_HANDLE PackageList,
672 IN EFI_STRING_ID StringId,
673 IN CONST CHAR8* Language,
674 IN CONST EFI_FONT_DISPLAY_INFO *StringInfo OPTIONAL,
675 IN OUT EFI_IMAGE_OUTPUT **Blt,
676 IN UINTN BltX,
677 IN UINTN BltY,
678 OUT EFI_HII_ROW_INFO **RowInfoArray OPTIONAL,
679 OUT UINTN *RowInfoArraySize OPTIONAL,
680 OUT UINTN *ColumnInfoArray OPTIONAL
681 );
682
683
684 /**
685 Convert the glyph for a single character into a bitmap.
686
687 @param This A pointer to the EFI_HII_FONT_PROTOCOL instance.
688 @param Char Character to retrieve.
689 @param StringInfo Points to the string font and color information
690 or NULL if the string should use the default
691 system font and color.
692 @param Blt Thus must point to a NULL on entry. A buffer will
693 be allocated to hold the output and the pointer
694 updated on exit. It is the caller's
695 responsibility to free this buffer.
696 @param Baseline Number of pixels from the bottom of the bitmap to
697 the baseline.
698
699 @retval EFI_SUCCESS Glyph bitmap created.
700 @retval EFI_OUT_OF_RESOURCES Unable to allocate the output buffer Blt.
701 @retval EFI_WARN_UNKNOWN_GLYPH The glyph was unknown and was replaced with the
702 glyph for Unicode character 0xFFFD.
703 @retval EFI_INVALID_PARAMETER Blt is NULL or *Blt is not NULL.
704
705 **/
706 EFI_STATUS
707 EFIAPI
708 HiiGetGlyph (
709 IN CONST EFI_HII_FONT_PROTOCOL *This,
710 IN CHAR16 Char,
711 IN CONST EFI_FONT_DISPLAY_INFO *StringInfo,
712 OUT EFI_IMAGE_OUTPUT **Blt,
713 OUT UINTN *Baseline OPTIONAL
714 );
715
716
717 /**
718 This function iterates through fonts which match the specified font, using
719 the specified criteria. If String is non-NULL, then all of the characters in
720 the string must exist in order for a candidate font to be returned.
721
722 @param This A pointer to the EFI_HII_FONT_PROTOCOL instance.
723 @param FontHandle On entry, points to the font handle returned by a
724 previous call to GetFontInfo() or NULL to start
725 with the first font. On return, points to the
726 returned font handle or points to NULL if there
727 are no more matching fonts.
728 @param StringInfoIn Upon entry, points to the font to return
729 information about. If NULL, then the information about the system default
730 font will be returned.
731 @param StringInfoOut Upon return, contains the matching font's
732 information. If NULL, then no information is
733 returned. It's caller's responsibility to free
734 this buffer.
735 @param String Points to the string which will be tested to
736 determine if all characters are available. If
737 NULL, then any font is acceptable.
738
739 @retval EFI_SUCCESS Matching font returned successfully.
740 @retval EFI_NOT_FOUND No matching font was found.
741 @retval EFI_INVALID_PARAMETER StringInfoIn is NULL.
742 @retval EFI_INVALID_PARAMETER StringInfoIn->FontInfoMask is an invalid combination.
743 @retval EFI_OUT_OF_RESOURCES There were insufficient resources to complete the
744 request.
745 **/
746 EFI_STATUS
747 EFIAPI
748 HiiGetFontInfo (
749 IN CONST EFI_HII_FONT_PROTOCOL *This,
750 IN OUT EFI_FONT_HANDLE *FontHandle,
751 IN CONST EFI_FONT_DISPLAY_INFO *StringInfoIn, OPTIONAL
752 OUT EFI_FONT_DISPLAY_INFO **StringInfoOut,
753 IN CONST EFI_STRING String OPTIONAL
754 );
755
756 //
757 // EFI_HII_IMAGE_PROTOCOL interfaces
758 //
759
760
761 /**
762 This function adds the image Image to the group of images owned by PackageList, and returns
763 a new image identifier (ImageId).
764
765 @param This A pointer to the EFI_HII_IMAGE_PROTOCOL instance.
766 @param PackageList Handle of the package list where this image will
767 be added.
768 @param ImageId On return, contains the new image id, which is
769 unique within PackageList.
770 @param Image Points to the image.
771
772 @retval EFI_SUCCESS The new image was added successfully.
773 @retval EFI_NOT_FOUND The specified PackageList could not be found in
774 database.
775 @retval EFI_OUT_OF_RESOURCES Could not add the image due to lack of resources.
776 @retval EFI_INVALID_PARAMETER Image is NULL or ImageId is NULL.
777
778 **/
779 EFI_STATUS
780 EFIAPI
781 HiiNewImage (
782 IN CONST EFI_HII_IMAGE_PROTOCOL *This,
783 IN EFI_HII_HANDLE PackageList,
784 OUT EFI_IMAGE_ID *ImageId,
785 IN CONST EFI_IMAGE_INPUT *Image
786 );
787
788
789 /**
790 This function retrieves the image specified by ImageId which is associated with
791 the specified PackageList and copies it into the buffer specified by Image.
792
793 @param This A pointer to the EFI_HII_IMAGE_PROTOCOL instance.
794 @param PackageList Handle of the package list where this image will
795 be searched.
796 @param ImageId The image's id,, which is unique within
797 PackageList.
798 @param Image Points to the image.
799
800 @retval EFI_SUCCESS The new image was returned successfully.
801 @retval EFI_NOT_FOUND The image specified by ImageId is not available.
802 The specified PackageList is not in the database.
803 @retval EFI_BUFFER_TOO_SMALL The buffer specified by ImageSize is too small to
804 hold the image.
805 @retval EFI_INVALID_PARAMETER The Image or ImageSize was NULL.
806 @retval EFI_OUT_OF_RESOURCES The bitmap could not be retrieved because there was not
807 enough memory.
808
809 **/
810 EFI_STATUS
811 EFIAPI
812 HiiGetImage (
813 IN CONST EFI_HII_IMAGE_PROTOCOL *This,
814 IN EFI_HII_HANDLE PackageList,
815 IN EFI_IMAGE_ID ImageId,
816 OUT EFI_IMAGE_INPUT *Image
817 );
818
819
820 /**
821 This function updates the image specified by ImageId in the specified PackageListHandle to
822 the image specified by Image.
823
824 @param This A pointer to the EFI_HII_IMAGE_PROTOCOL instance.
825 @param PackageList The package list containing the images.
826 @param ImageId The image's id,, which is unique within
827 PackageList.
828 @param Image Points to the image.
829
830 @retval EFI_SUCCESS The new image was updated successfully.
831 @retval EFI_NOT_FOUND The image specified by ImageId is not in the
832 database. The specified PackageList is not in the database.
833 @retval EFI_INVALID_PARAMETER The Image was NULL.
834
835 **/
836 EFI_STATUS
837 EFIAPI
838 HiiSetImage (
839 IN CONST EFI_HII_IMAGE_PROTOCOL *This,
840 IN EFI_HII_HANDLE PackageList,
841 IN EFI_IMAGE_ID ImageId,
842 IN CONST EFI_IMAGE_INPUT *Image
843 );
844
845
846 /**
847 This function renders an image to a bitmap or the screen using the specified
848 color and options. It draws the image on an existing bitmap, allocates a new
849 bitmap or uses the screen. The images can be clipped.
850
851 @param This A pointer to the EFI_HII_IMAGE_PROTOCOL instance.
852 @param Flags Describes how the image is to be drawn.
853 @param Image Points to the image to be displayed.
854 @param Blt If this points to a non-NULL on entry, this
855 points to the image, which is Width pixels wide
856 and Height pixels high. The image will be drawn
857 onto this image and EFI_HII_DRAW_FLAG_CLIP is
858 implied. If this points to a NULL on entry, then
859 a buffer will be allocated to hold the generated
860 image and the pointer updated on exit. It is the
861 caller's responsibility to free this buffer.
862 @param BltX Specifies the offset from the left and top edge
863 of the output image of the first pixel in the
864 image.
865 @param BltY Specifies the offset from the left and top edge
866 of the output image of the first pixel in the
867 image.
868
869 @retval EFI_SUCCESS The image was successfully drawn.
870 @retval EFI_OUT_OF_RESOURCES Unable to allocate an output buffer for Blt.
871 @retval EFI_INVALID_PARAMETER The Image or Blt was NULL.
872 @retval EFI_INVALID_PARAMETER Any combination of Flags is invalid.
873
874 **/
875 EFI_STATUS
876 EFIAPI
877 HiiDrawImage (
878 IN CONST EFI_HII_IMAGE_PROTOCOL *This,
879 IN EFI_HII_DRAW_FLAGS Flags,
880 IN CONST EFI_IMAGE_INPUT *Image,
881 IN OUT EFI_IMAGE_OUTPUT **Blt,
882 IN UINTN BltX,
883 IN UINTN BltY
884 );
885
886
887 /**
888 This function renders an image to a bitmap or the screen using the specified
889 color and options. It draws the image on an existing bitmap, allocates a new
890 bitmap or uses the screen. The images can be clipped.
891
892 @param This A pointer to the EFI_HII_IMAGE_PROTOCOL instance.
893 @param Flags Describes how the image is to be drawn.
894 @param PackageList The package list in the HII database to search
895 for the specified image.
896 @param ImageId The image's id, which is unique within
897 PackageList.
898 @param Blt If this points to a non-NULL on entry, this
899 points to the image, which is Width pixels wide
900 and Height pixels high. The image will be drawn
901 onto this image and
902 EFI_HII_DRAW_FLAG_CLIP is implied. If this points
903 to a NULL on entry, then a buffer will be
904 allocated to hold the generated image and the
905 pointer updated on exit. It is the caller's
906 responsibility to free this buffer.
907 @param BltX Specifies the offset from the left and top edge
908 of the output image of the first pixel in the
909 image.
910 @param BltY Specifies the offset from the left and top edge
911 of the output image of the first pixel in the
912 image.
913
914 @retval EFI_SUCCESS The image was successfully drawn.
915 @retval EFI_OUT_OF_RESOURCES Unable to allocate an output buffer for Blt.
916 @retval EFI_INVALID_PARAMETER The Blt was NULL.
917 @retval EFI_NOT_FOUND The image specified by ImageId is not in the database.
918 The specified PackageList is not in the database.
919
920 **/
921 EFI_STATUS
922 EFIAPI
923 HiiDrawImageId (
924 IN CONST EFI_HII_IMAGE_PROTOCOL *This,
925 IN EFI_HII_DRAW_FLAGS Flags,
926 IN EFI_HII_HANDLE PackageList,
927 IN EFI_IMAGE_ID ImageId,
928 IN OUT EFI_IMAGE_OUTPUT **Blt,
929 IN UINTN BltX,
930 IN UINTN BltY
931 )
932
933 ;
934
935 //
936 // EFI_HII_STRING_PROTOCOL
937 //
938
939
940 /**
941 This function adds the string String to the group of strings owned by PackageList, with the
942 specified font information StringFontInfo and returns a new string id.
943
944 @param This A pointer to the EFI_HII_STRING_PROTOCOL
945 instance.
946 @param PackageList Handle of the package list where this string will
947 be added.
948 @param StringId On return, contains the new strings id, which is
949 unique within PackageList.
950 @param Language Points to the language for the new string.
951 @param LanguageName Points to the printable language name to
952 associate with the passed in Language field.If
953 LanguageName is not NULL and the string package
954 header's LanguageName associated with a given
955 Language is not zero, the LanguageName being
956 passed in will be ignored.
957 @param String Points to the new null-terminated string.
958 @param StringFontInfo Points to the new string's font information or
959 NULL if the string should have the default system
960 font, size and style.
961
962 @retval EFI_SUCCESS The new string was added successfully.
963 @retval EFI_NOT_FOUND The specified PackageList could not be found in
964 database.
965 @retval EFI_OUT_OF_RESOURCES Could not add the string due to lack of
966 resources.
967 @retval EFI_INVALID_PARAMETER String is NULL or StringId is NULL or Language is
968 NULL.
969
970 **/
971 EFI_STATUS
972 EFIAPI
973 HiiNewString (
974 IN CONST EFI_HII_STRING_PROTOCOL *This,
975 IN EFI_HII_HANDLE PackageList,
976 OUT EFI_STRING_ID *StringId,
977 IN CONST CHAR8 *Language,
978 IN CONST CHAR16 *LanguageName, OPTIONAL
979 IN CONST EFI_STRING String,
980 IN CONST EFI_FONT_INFO *StringFontInfo OPTIONAL
981 );
982
983
984 /**
985 This function retrieves the string specified by StringId which is associated
986 with the specified PackageList in the language Language and copies it into
987 the buffer specified by String.
988
989 @param This A pointer to the EFI_HII_STRING_PROTOCOL
990 instance.
991 @param Language Points to the language for the retrieved string.
992 @param PackageList The package list in the HII database to search
993 for the specified string.
994 @param StringId The string's id, which is unique within
995 PackageList.
996 @param String Points to the new null-terminated string.
997 @param StringSize On entry, points to the size of the buffer
998 pointed to by String, in bytes. On return,
999 points to the length of the string, in bytes.
1000 @param StringFontInfo If not NULL, points to the string's font
1001 information. It's caller's responsibility to
1002 free this buffer.
1003
1004 @retval EFI_SUCCESS The string was returned successfully.
1005 @retval EFI_NOT_FOUND The string specified by StringId is not
1006 available.
1007 @retval EFI_NOT_FOUND The string specified by StringId is available but
1008 not in the specified language.
1009 The specified PackageList is not in the database.
1010 @retval EFI_INVALID_LANGUAGE - The string specified by StringId is available but
1011 @retval EFI_BUFFER_TOO_SMALL The buffer specified by StringSize is too small
1012 to hold the string.
1013 @retval EFI_INVALID_PARAMETER The String or Language or StringSize was NULL.
1014 @retval EFI_OUT_OF_RESOURCES There were insufficient resources to complete the
1015 request.
1016
1017 **/
1018 EFI_STATUS
1019 EFIAPI
1020 HiiGetString (
1021 IN CONST EFI_HII_STRING_PROTOCOL *This,
1022 IN CONST CHAR8 *Language,
1023 IN EFI_HII_HANDLE PackageList,
1024 IN EFI_STRING_ID StringId,
1025 OUT EFI_STRING String,
1026 IN OUT UINTN *StringSize,
1027 OUT EFI_FONT_INFO **StringFontInfo OPTIONAL
1028 );
1029
1030
1031 /**
1032 This function updates the string specified by StringId in the specified PackageList to the text
1033 specified by String and, optionally, the font information specified by StringFontInfo.
1034
1035 @param This A pointer to the EFI_HII_STRING_PROTOCOL
1036 instance.
1037 @param PackageList The package list containing the strings.
1038 @param StringId The string's id, which is unique within
1039 PackageList.
1040 @param Language Points to the language for the updated string.
1041 @param String Points to the new null-terminated string.
1042 @param StringFontInfo Points to the string's font information or NULL
1043 if the string font information is not changed.
1044
1045 @retval EFI_SUCCESS The string was updated successfully.
1046 @retval EFI_NOT_FOUND The string specified by StringId is not in the
1047 database.
1048 @retval EFI_INVALID_PARAMETER The String or Language was NULL.
1049 @retval EFI_OUT_OF_RESOURCES The system is out of resources to accomplish the
1050 task.
1051
1052 **/
1053 EFI_STATUS
1054 EFIAPI
1055 HiiSetString (
1056 IN CONST EFI_HII_STRING_PROTOCOL *This,
1057 IN EFI_HII_HANDLE PackageList,
1058 IN EFI_STRING_ID StringId,
1059 IN CONST CHAR8 *Language,
1060 IN CONST EFI_STRING String,
1061 IN CONST EFI_FONT_INFO *StringFontInfo OPTIONAL
1062 );
1063
1064
1065 /**
1066 This function returns the list of supported languages, in the format specified
1067 in Appendix M of UEFI 2.1 spec.
1068
1069 @param This A pointer to the EFI_HII_STRING_PROTOCOL
1070 instance.
1071 @param PackageList The package list to examine.
1072 @param Languages Points to the buffer to hold the returned
1073 null-terminated ASCII string.
1074 @param LanguagesSize On entry, points to the size of the buffer
1075 pointed to by Languages, in bytes. On return,
1076 points to the length of Languages, in bytes.
1077
1078 @retval EFI_SUCCESS The languages were returned successfully.
1079 @retval EFI_INVALID_PARAMETER The Languages or LanguagesSize was NULL.
1080 @retval EFI_BUFFER_TOO_SMALL The LanguagesSize is too small to hold the list
1081 of supported languages. LanguageSize is updated
1082 to contain the required size.
1083 @retval EFI_NOT_FOUND Could not find string package in specified
1084 packagelist.
1085
1086 **/
1087 EFI_STATUS
1088 EFIAPI
1089 HiiGetLanguages (
1090 IN CONST EFI_HII_STRING_PROTOCOL *This,
1091 IN EFI_HII_HANDLE PackageList,
1092 IN OUT CHAR8 *Languages,
1093 IN OUT UINTN *LanguagesSize
1094 );
1095
1096
1097 /**
1098 Each string package has associated with it a single primary language and zero
1099 or more secondary languages. This routine returns the secondary languages
1100 associated with a package list.
1101
1102 @param This A pointer to the EFI_HII_STRING_PROTOCOL
1103 instance.
1104 @param PackageList The package list to examine.
1105 @param PrimaryLanguage Points to the null-terminated ASCII string that specifies
1106 the primary language. Languages are specified in the
1107 format specified in Appendix M of the UEFI 2.0 specification.
1108 @param SecondaryLanguages Points to the buffer to hold the returned null-terminated
1109 ASCII string that describes the list of
1110 secondary languages for the specified
1111 PrimaryLanguage. If there are no secondary
1112 languages, the function returns successfully,
1113 but this is set to NULL.
1114 @param SecondaryLanguagesSize On entry, points to the size of the buffer
1115 pointed to by SecondaryLanguages, in bytes. On
1116 return, points to the length of SecondaryLanguages
1117 in bytes.
1118
1119 @retval EFI_SUCCESS Secondary languages were correctly returned.
1120 @retval EFI_INVALID_PARAMETER PrimaryLanguage or SecondaryLanguages or
1121 SecondaryLanguagesSize was NULL.
1122 @retval EFI_BUFFER_TOO_SMALL The buffer specified by SecondaryLanguagesSize is
1123 too small to hold the returned information.
1124 SecondaryLanguageSize is updated to hold the size of
1125 the buffer required.
1126 @retval EFI_INVALID_LANGUAGE The language specified by PrimaryLanguage is not
1127 present in the specified package list.
1128 @retval EFI_NOT_FOUND The specified PackageList is not in the Database.
1129
1130 **/
1131 EFI_STATUS
1132 EFIAPI
1133 HiiGetSecondaryLanguages (
1134 IN CONST EFI_HII_STRING_PROTOCOL *This,
1135 IN EFI_HII_HANDLE PackageList,
1136 IN CONST CHAR8 *PrimaryLanguage,
1137 IN OUT CHAR8 *SecondaryLanguages,
1138 IN OUT UINTN *SecondaryLanguagesSize
1139 );
1140
1141 //
1142 // EFI_HII_DATABASE_PROTOCOL protocol interfaces
1143 //
1144
1145
1146 /**
1147 This function adds the packages in the package list to the database and returns a handle. If there is a
1148 EFI_DEVICE_PATH_PROTOCOL associated with the DriverHandle, then this function will
1149 create a package of type EFI_PACKAGE_TYPE_DEVICE_PATH and add it to the package list.
1150
1151 @param This A pointer to the EFI_HII_DATABASE_PROTOCOL
1152 instance.
1153 @param PackageList A pointer to an EFI_HII_PACKAGE_LIST_HEADER
1154 structure.
1155 @param DriverHandle Associate the package list with this EFI handle.
1156 If a NULL is specified, this data will not be associate
1157 with any drivers and cannot have a callback induced.
1158 @param Handle A pointer to the EFI_HII_HANDLE instance.
1159
1160 @retval EFI_SUCCESS The package list associated with the Handle was
1161 added to the HII database.
1162 @retval EFI_OUT_OF_RESOURCES Unable to allocate necessary resources for the
1163 new database contents.
1164 @retval EFI_INVALID_PARAMETER PackageList is NULL or Handle is NULL.
1165
1166 **/
1167 EFI_STATUS
1168 EFIAPI
1169 HiiNewPackageList (
1170 IN CONST EFI_HII_DATABASE_PROTOCOL *This,
1171 IN CONST EFI_HII_PACKAGE_LIST_HEADER *PackageList,
1172 IN CONST EFI_HANDLE DriverHandle, OPTIONAL
1173 OUT EFI_HII_HANDLE *Handle
1174 );
1175
1176
1177 /**
1178 This function removes the package list that is associated with a handle Handle
1179 from the HII database. Before removing the package, any registered functions
1180 with the notification type REMOVE_PACK and the same package type will be called.
1181
1182 @param This A pointer to the EFI_HII_DATABASE_PROTOCOL
1183 instance.
1184 @param Handle The handle that was registered to the data that
1185 is requested for removal.
1186
1187 @retval EFI_SUCCESS The data associated with the Handle was removed
1188 from the HII database.
1189 @retval EFI_NOT_FOUND The specified Handle is not in database.
1190
1191 **/
1192 EFI_STATUS
1193 EFIAPI
1194 HiiRemovePackageList (
1195 IN CONST EFI_HII_DATABASE_PROTOCOL *This,
1196 IN EFI_HII_HANDLE Handle
1197 );
1198
1199
1200 /**
1201 This function updates the existing package list (which has the specified Handle)
1202 in the HII databases, using the new package list specified by PackageList.
1203
1204 @param This A pointer to the EFI_HII_DATABASE_PROTOCOL
1205 instance.
1206 @param Handle The handle that was registered to the data that
1207 is requested to be updated.
1208 @param PackageList A pointer to an EFI_HII_PACKAGE_LIST_HEADER
1209 package.
1210
1211 @retval EFI_SUCCESS The HII database was successfully updated.
1212 @retval EFI_OUT_OF_RESOURCES Unable to allocate enough memory for the updated
1213 database.
1214 @retval EFI_INVALID_PARAMETER PackageList was NULL.
1215 @retval EFI_NOT_FOUND The specified Handle is not in database.
1216
1217 **/
1218 EFI_STATUS
1219 EFIAPI
1220 HiiUpdatePackageList (
1221 IN CONST EFI_HII_DATABASE_PROTOCOL *This,
1222 IN EFI_HII_HANDLE Handle,
1223 IN CONST EFI_HII_PACKAGE_LIST_HEADER *PackageList
1224 );
1225
1226
1227 /**
1228 This function returns a list of the package handles of the specified type
1229 that are currently active in the database. The pseudo-type
1230 EFI_HII_PACKAGE_TYPE_ALL will cause all package handles to be listed.
1231
1232 @param This A pointer to the EFI_HII_DATABASE_PROTOCOL
1233 instance.
1234 @param PackageType Specifies the package type of the packages to
1235 list or EFI_HII_PACKAGE_TYPE_ALL for all packages
1236 to be listed.
1237 @param PackageGuid If PackageType is EFI_HII_PACKAGE_TYPE_GUID, then
1238 this is the pointer to the GUID which must match
1239 the Guid field of EFI_HII_GUID_PACKAGE_GUID_HDR.
1240 Otherwise, it must be NULL.
1241 @param HandleBufferLength On input, a pointer to the length of the handle
1242 buffer. On output, the length of the handle
1243 buffer that is required for the handles found.
1244 @param Handle An array of EFI_HII_HANDLE instances returned.
1245
1246 @retval EFI_SUCCESS The matching handles are outputed successfully.
1247 HandleBufferLength is updated with the actual length.
1248 @retval EFI_BUFFER_TO_SMALL The HandleBufferLength parameter indicates that
1249 Handle is too small to support the number of
1250 handles. HandleBufferLength is updated with a
1251 value that will enable the data to fit.
1252 @retval EFI_NOT_FOUND No matching handle could not be found in
1253 database.
1254 @retval EFI_INVALID_PARAMETER Handle or HandleBufferLength was NULL.
1255 @retval EFI_INVALID_PARAMETER PackageType is not a EFI_HII_PACKAGE_TYPE_GUID but
1256 PackageGuid is not NULL, PackageType is a EFI_HII_
1257 PACKAGE_TYPE_GUID but PackageGuid is NULL.
1258
1259
1260 **/
1261 EFI_STATUS
1262 EFIAPI
1263 HiiListPackageLists (
1264 IN CONST EFI_HII_DATABASE_PROTOCOL *This,
1265 IN UINT8 PackageType,
1266 IN CONST EFI_GUID *PackageGuid,
1267 IN OUT UINTN *HandleBufferLength,
1268 OUT EFI_HII_HANDLE *Handle
1269 );
1270
1271
1272 /**
1273 This function will export one or all package lists in the database to a buffer.
1274 For each package list exported, this function will call functions registered
1275 with EXPORT_PACK and then copy the package list to the buffer.
1276
1277 @param This A pointer to the EFI_HII_DATABASE_PROTOCOL
1278 instance.
1279 @param Handle An EFI_HII_HANDLE that corresponds to the desired
1280 package list in the HII database to export or
1281 NULL to indicate all package lists should be
1282 exported.
1283 @param BufferSize On input, a pointer to the length of the buffer.
1284 On output, the length of the buffer that is
1285 required for the exported data.
1286 @param Buffer A pointer to a buffer that will contain the
1287 results of the export function.
1288
1289 @retval EFI_SUCCESS Package exported.
1290 @retval EFI_BUFFER_TO_SMALL The HandleBufferLength parameter indicates that
1291 Handle is too small to support the number of
1292 handles. HandleBufferLength is updated with
1293 a value that will enable the data to fit.
1294 @retval EFI_NOT_FOUND The specifiecd Handle could not be found in the
1295 current database.
1296 @retval EFI_INVALID_PARAMETER Handle or Buffer or BufferSize was NULL.
1297
1298 **/
1299 EFI_STATUS
1300 EFIAPI
1301 HiiExportPackageLists (
1302 IN CONST EFI_HII_DATABASE_PROTOCOL *This,
1303 IN EFI_HII_HANDLE Handle,
1304 IN OUT UINTN *BufferSize,
1305 OUT EFI_HII_PACKAGE_LIST_HEADER *Buffer
1306 );
1307
1308
1309 /**
1310 This function registers a function which will be called when specified actions related to packages of
1311 the specified type occur in the HII database. By registering a function, other HII-related drivers are
1312 notified when specific package types are added, removed or updated in the HII database.
1313 Each driver or application which registers a notification should use
1314 EFI_HII_DATABASE_PROTOCOL.UnregisterPackageNotify() before exiting.
1315
1316 @param This A pointer to the EFI_HII_DATABASE_PROTOCOL
1317 instance.
1318 @param PackageType Specifies the package type of the packages to
1319 list or EFI_HII_PACKAGE_TYPE_ALL for all packages
1320 to be listed.
1321 @param PackageGuid If PackageType is EFI_HII_PACKAGE_TYPE_GUID, then
1322 this is the pointer to the GUID which must match
1323 the Guid field of
1324 EFI_HII_GUID_PACKAGE_GUID_HDR. Otherwise, it must
1325 be NULL.
1326 @param PackageNotifyFn Points to the function to be called when the
1327 event specified by
1328 NotificationType occurs.
1329 @param NotifyType Describes the types of notification which this
1330 function will be receiving.
1331 @param NotifyHandle Points to the unique handle assigned to the
1332 registered notification. Can be used in
1333 EFI_HII_DATABASE_PROTOCOL.UnregisterPackageNotify()
1334 to stop notifications.
1335
1336 @retval EFI_SUCCESS Notification registered successfully.
1337 @retval EFI_OUT_OF_RESOURCES Unable to allocate necessary data structures
1338 @retval EFI_INVALID_PARAMETER NotifyHandle is NULL.
1339 @retval EFI_INVALID_PARAMETER PackageGuid is not NULL when PackageType is not
1340 EFI_HII_PACKAGE_TYPE_GUID.
1341 @retval EFI_INVALID_PARAMETER PackageGuid is NULL when PackageType is
1342 EFI_HII_PACKAGE_TYPE_GUID.
1343
1344 **/
1345 EFI_STATUS
1346 EFIAPI
1347 HiiRegisterPackageNotify (
1348 IN CONST EFI_HII_DATABASE_PROTOCOL *This,
1349 IN UINT8 PackageType,
1350 IN CONST EFI_GUID *PackageGuid,
1351 IN CONST EFI_HII_DATABASE_NOTIFY PackageNotifyFn,
1352 IN EFI_HII_DATABASE_NOTIFY_TYPE NotifyType,
1353 OUT EFI_HANDLE *NotifyHandle
1354 );
1355
1356
1357 /**
1358 Removes the specified HII database package-related notification.
1359
1360 @param This A pointer to the EFI_HII_DATABASE_PROTOCOL
1361 instance.
1362 @param NotificationHandle The handle of the notification function being
1363 unregistered.
1364
1365 @retval EFI_SUCCESS Notification is unregistered successfully.
1366 @retval EFI_NOT_FOUND The incoming notification handle does not exist
1367 in current hii database.
1368
1369 **/
1370 EFI_STATUS
1371 EFIAPI
1372 HiiUnregisterPackageNotify (
1373 IN CONST EFI_HII_DATABASE_PROTOCOL *This,
1374 IN EFI_HANDLE NotificationHandle
1375 );
1376
1377
1378 /**
1379 This routine retrieves an array of GUID values for each keyboard layout that
1380 was previously registered in the system.
1381
1382 @param This A pointer to the EFI_HII_DATABASE_PROTOCOL
1383 instance.
1384 @param KeyGuidBufferLength On input, a pointer to the length of the keyboard
1385 GUID buffer. On output, the length of the handle
1386 buffer that is required for the handles found.
1387 @param KeyGuidBuffer An array of keyboard layout GUID instances
1388 returned.
1389
1390 @retval EFI_SUCCESS KeyGuidBuffer was updated successfully.
1391 @retval EFI_BUFFER_TOO_SMALL The KeyGuidBufferLength parameter indicates
1392 that KeyGuidBuffer is too small to support the
1393 number of GUIDs. KeyGuidBufferLength is
1394 updated with a value that will enable the data to
1395 fit.
1396 @retval EFI_INVALID_PARAMETER The KeyGuidBuffer or KeyGuidBufferLength was
1397 NULL.
1398 @retval EFI_NOT_FOUND There was no keyboard layout.
1399
1400 **/
1401 EFI_STATUS
1402 EFIAPI
1403 HiiFindKeyboardLayouts (
1404 IN CONST EFI_HII_DATABASE_PROTOCOL *This,
1405 IN OUT UINT16 *KeyGuidBufferLength,
1406 OUT EFI_GUID *KeyGuidBuffer
1407 );
1408
1409
1410 /**
1411 This routine retrieves the requested keyboard layout. The layout is a physical description of the keys
1412 on a keyboard and the character(s) that are associated with a particular set of key strokes.
1413
1414 @param This A pointer to the EFI_HII_DATABASE_PROTOCOL
1415 instance.
1416 @param KeyGuid A pointer to the unique ID associated with a
1417 given keyboard layout. If KeyGuid is NULL then
1418 the current layout will be retrieved.
1419 @param KeyboardLayoutLength On input, a pointer to the length of the
1420 KeyboardLayout buffer. On output, the length of
1421 the data placed into KeyboardLayout.
1422 @param KeyboardLayout A pointer to a buffer containing the retrieved
1423 keyboard layout.
1424
1425 @retval EFI_SUCCESS The keyboard layout was retrieved successfully.
1426 @retval EFI_NOT_FOUND The requested keyboard layout was not found.
1427 @retval EFI_INVALID_PARAMETER The KeyboardLayout or KeyboardLayoutLength was
1428 NULL.
1429
1430 **/
1431 EFI_STATUS
1432 EFIAPI
1433 HiiGetKeyboardLayout (
1434 IN CONST EFI_HII_DATABASE_PROTOCOL *This,
1435 IN CONST EFI_GUID *KeyGuid,
1436 IN OUT UINT16 *KeyboardLayoutLength,
1437 OUT EFI_HII_KEYBOARD_LAYOUT *KeyboardLayout
1438 );
1439
1440
1441 /**
1442 This routine sets the default keyboard layout to the one referenced by KeyGuid. When this routine
1443 is called, an event will be signaled of the EFI_HII_SET_KEYBOARD_LAYOUT_EVENT_GUID
1444 group type. This is so that agents which are sensitive to the current keyboard layout being changed
1445 can be notified of this change.
1446
1447 @param This A pointer to the EFI_HII_DATABASE_PROTOCOL
1448 instance.
1449 @param KeyGuid A pointer to the unique ID associated with a
1450 given keyboard layout.
1451
1452 @retval EFI_SUCCESS The current keyboard layout was successfully set.
1453 @retval EFI_NOT_FOUND The referenced keyboard layout was not found, so
1454 action was taken.
1455 @retval EFI_INVALID_PARAMETER The KeyGuid was NULL.
1456
1457 **/
1458 EFI_STATUS
1459 EFIAPI
1460 HiiSetKeyboardLayout (
1461 IN CONST EFI_HII_DATABASE_PROTOCOL *This,
1462 IN CONST EFI_GUID *KeyGuid
1463 );
1464
1465
1466 /**
1467 Return the EFI handle associated with a package list.
1468
1469 @param This A pointer to the EFI_HII_DATABASE_PROTOCOL
1470 instance.
1471 @param PackageListHandle An EFI_HII_HANDLE that corresponds to the desired
1472 package list in the HIIdatabase.
1473 @param DriverHandle On return, contains the EFI_HANDLE which was
1474 registered with the package list in
1475 NewPackageList().
1476
1477 @retval EFI_SUCCESS The DriverHandle was returned successfully.
1478 @retval EFI_INVALID_PARAMETER The PackageListHandle was not valid or
1479 DriverHandle was NULL.
1480
1481 **/
1482 EFI_STATUS
1483 EFIAPI
1484 HiiGetPackageListHandle (
1485 IN CONST EFI_HII_DATABASE_PROTOCOL *This,
1486 IN EFI_HII_HANDLE PackageListHandle,
1487 OUT EFI_HANDLE *DriverHandle
1488 );
1489
1490 //
1491 // EFI_HII_CONFIG_ROUTING_PROTOCOL interfaces
1492 //
1493
1494
1495 /**
1496 This function allows a caller to extract the current configuration
1497 for one or more named elements from one or more drivers.
1498
1499 @param This A pointer to the EFI_HII_CONFIG_ROUTING_PROTOCOL
1500 instance.
1501 @param Request A null-terminated Unicode string in
1502 <MultiConfigRequest> format.
1503 @param Progress On return, points to a character in the Request
1504 string. Points to the string's null terminator if
1505 request was successful. Points to the most recent
1506 & before the first failing name / value pair (or
1507 the beginning of the string if the failure is in
1508 the first name / value pair) if the request was
1509 not successful.
1510 @param Results Null-terminated Unicode string in
1511 <MultiConfigAltResp> format which has all values
1512 filled in for the names in the Request string.
1513 String to be allocated by the called function.
1514
1515 @retval EFI_SUCCESS The Results string is filled with the values
1516 corresponding to all requested names.
1517 @retval EFI_OUT_OF_RESOURCES Not enough memory to store the parts of the
1518 results that must be stored awaiting possible
1519 future protocols.
1520 @retval EFI_NOT_FOUND Routing data doesn't match any known driver.
1521 Progress set to the "G" in "GUID" of the
1522 routing header that doesn't match. Note: There
1523 is no requirement that all routing data
1524 be validated before any configuration extraction.
1525 @retval EFI_INVALID_PARAMETER For example, passing in a NULL for the Request
1526 parameter would result in this type of error. The
1527 Progress parameter is set to NULL.
1528 @retval EFI_INVALID_PARAMETER Illegal syntax. Progress set to most recent &
1529 before the error or the beginning of the string.
1530 @retval EFI_INVALID_PARAMETER Unknown name. Progress points to the & before the
1531 name in question.
1532
1533 **/
1534 EFI_STATUS
1535 EFIAPI
1536 HiiConfigRoutingExtractConfig (
1537 IN CONST EFI_HII_CONFIG_ROUTING_PROTOCOL *This,
1538 IN CONST EFI_STRING Request,
1539 OUT EFI_STRING *Progress,
1540 OUT EFI_STRING *Results
1541 );
1542
1543
1544 /**
1545 This function allows the caller to request the current configuration for the
1546 entirety of the current HII database and returns the data in a null-terminated Unicode string.
1547
1548 @param This A pointer to the EFI_HII_CONFIG_ROUTING_PROTOCOL
1549 instance.
1550 @param Results Null-terminated Unicode string in
1551 <MultiConfigAltResp> format which has all values
1552 filled in for the names in the Request string.
1553 String to be allocated by the called function.
1554 De-allocation is up to the caller.
1555
1556 @retval EFI_SUCCESS The Results string is filled with the values
1557 corresponding to all requested names.
1558 @retval EFI_OUT_OF_RESOURCES Not enough memory to store the parts of the
1559 results that must be stored awaiting possible
1560 future protocols.
1561 @retval EFI_INVALID_PARAMETER For example, passing in a NULL for the Results
1562 parameter would result in this type of error.
1563
1564 **/
1565 EFI_STATUS
1566 EFIAPI
1567 HiiConfigRoutingExportConfig (
1568 IN CONST EFI_HII_CONFIG_ROUTING_PROTOCOL *This,
1569 OUT EFI_STRING *Results
1570 );
1571
1572
1573 /**
1574 This function processes the results of processing forms and routes it to the
1575 appropriate handlers or storage.
1576
1577 @param This A pointer to the EFI_HII_CONFIG_ROUTING_PROTOCOL
1578 instance.
1579 @param Configuration A null-terminated Unicode string in
1580 <MulltiConfigResp> format.
1581 @param Progress A pointer to a string filled in with the offset
1582 of the most recent & before the first failing
1583 name / value pair (or the beginning of the string
1584 if the failure is in the first name / value pair)
1585 or the terminating NULL if all was successful.
1586
1587 @retval EFI_SUCCESS The results have been distributed or are awaiting
1588 distribution.
1589 @retval EFI_OUT_OF_RESOURCES Not enough memory to store the parts of the
1590 results that must be stored awaiting possible
1591 future protocols.
1592 @retval EFI_INVALID_PARAMETER Passing in a NULL for the Configuration parameter
1593 would result in this type of error.
1594 @retval EFI_NOT_FOUND Target for the specified routing data was not
1595 found.
1596
1597 **/
1598 EFI_STATUS
1599 EFIAPI
1600 HiiConfigRoutingRouteConfig (
1601 IN CONST EFI_HII_CONFIG_ROUTING_PROTOCOL *This,
1602 IN CONST EFI_STRING Configuration,
1603 OUT EFI_STRING *Progress
1604 );
1605
1606
1607
1608 /**
1609 This helper function is to be called by drivers to map configuration data stored
1610 in byte array ("block") formats such as UEFI Variables into current configuration strings.
1611
1612 @param This A pointer to the EFI_HII_CONFIG_ROUTING_PROTOCOL
1613 instance.
1614 @param ConfigRequest A null-terminated Unicode string in
1615 <ConfigRequest> format.
1616 @param Block Array of bytes defining the block's
1617 configuration.
1618 @param BlockSize Length in bytes of Block.
1619 @param Config Filled-in configuration string. String allocated
1620 by the function. Returned only if call is
1621 successful.
1622 @param Progress A pointer to a string filled in with the offset
1623 of the most recent & before the first failing
1624 name/value pair (or the beginning of the string
1625 if the failure is in the first name / value pair)
1626 or the terminating NULL if all was successful.
1627
1628 @retval EFI_SUCCESS The request succeeded. Progress points to the
1629 null terminator at the end of the ConfigRequest
1630 string.
1631 @retval EFI_OUT_OF_RESOURCES Not enough memory to allocate Config.
1632 Progress points to the first character of
1633 ConfigRequest.
1634 @retval EFI_INVALID_PARAMETER Passing in a NULL for the ConfigRequest or
1635 Block parameter would result in this type of
1636 error. Progress points to the first character of
1637 ConfigRequest.
1638 @retval EFI_NOT_FOUND Target for the specified routing data was not
1639 found. Progress points to the "G" in "GUID" of
1640 the errant routing data.
1641 @retval EFI_DEVICE_ERROR Block not large enough. Progress undefined.
1642 @retval EFI_INVALID_PARAMETER Encountered non <BlockName> formatted string.
1643 Block is left updated and Progress points at
1644 the '&' preceding the first non-<BlockName>.
1645
1646 **/
1647 EFI_STATUS
1648 EFIAPI
1649 HiiBlockToConfig (
1650 IN CONST EFI_HII_CONFIG_ROUTING_PROTOCOL *This,
1651 IN CONST EFI_STRING ConfigRequest,
1652 IN CONST UINT8 *Block,
1653 IN CONST UINTN BlockSize,
1654 OUT EFI_STRING *Config,
1655 OUT EFI_STRING *Progress
1656 );
1657
1658
1659 /**
1660 This helper function is to be called by drivers to map configuration strings
1661 to configurations stored in byte array ("block") formats such as UEFI Variables.
1662
1663 @param This A pointer to the EFI_HII_CONFIG_ROUTING_PROTOCOL
1664 instance.
1665 @param ConfigResp A null-terminated Unicode string in <ConfigResp>
1666 format.
1667 @param Block A possibly null array of bytes representing the
1668 current block. Only bytes referenced in the
1669 ConfigResp string in the block are modified. If
1670 this parameter is null or if the *BlockSize
1671 parameter is (on input) shorter than required by
1672 the Configuration string, only the BlockSize
1673 parameter is updated and an appropriate status
1674 (see below) is returned.
1675 @param BlockSize The length of the Block in units of UINT8. On
1676 input, this is the size of the Block. On output,
1677 if successful, contains the index of the last
1678 modified byte in the Block.
1679 @param Progress On return, points to an element of the ConfigResp
1680 string filled in with the offset of the most
1681 recent '&' before the first failing name / value
1682 pair (or the beginning of the string if the
1683 failure is in the first name / value pair) or
1684 the terminating NULL if all was successful.
1685
1686 @retval EFI_SUCCESS The request succeeded. Progress points to the
1687 null terminator at the end of the ConfigResp
1688 string.
1689 @retval EFI_OUT_OF_RESOURCES Not enough memory to allocate Config.
1690 Progress points to the first character of
1691 ConfigResp.
1692 @retval EFI_INVALID_PARAMETER Passing in a NULL for the ConfigResp or
1693 Block parameter would result in this type of
1694 error. Progress points to the first character of
1695 ConfigResp.
1696 @retval EFI_NOT_FOUND Target for the specified routing data was not
1697 found. Progress points to the "G" in "GUID" of
1698 the errant routing data.
1699 @retval EFI_INVALID_PARAMETER Encountered non <BlockName> formatted name /
1700 value pair. Block is left updated and
1701 Progress points at the '&' preceding the first
1702 non-<BlockName>.
1703
1704 **/
1705 EFI_STATUS
1706 EFIAPI
1707 HiiConfigToBlock (
1708 IN CONST EFI_HII_CONFIG_ROUTING_PROTOCOL *This,
1709 IN CONST EFI_STRING ConfigResp,
1710 IN OUT UINT8 *Block,
1711 IN OUT UINTN *BlockSize,
1712 OUT EFI_STRING *Progress
1713 );
1714
1715
1716 /**
1717 This helper function is to be called by drivers to extract portions of
1718 a larger configuration string.
1719
1720 @param This A pointer to the EFI_HII_CONFIG_ROUTING_PROTOCOL
1721 instance.
1722 @param Configuration A null-terminated Unicode string in
1723 <MultiConfigAltResp> format.
1724 @param Guid A pointer to the GUID value to search for in the
1725 routing portion of the ConfigResp string when
1726 retrieving the requested data. If Guid is NULL,
1727 then all GUID values will be searched for.
1728 @param Name A pointer to the NAME value to search for in the
1729 routing portion of the ConfigResp string when
1730 retrieving the requested data. If Name is NULL,
1731 then all Name values will be searched for.
1732 @param DevicePath A pointer to the PATH value to search for in the
1733 routing portion of the ConfigResp string when
1734 retrieving the requested data. If DevicePath is
1735 NULL, then all DevicePath values will be
1736 searched for.
1737 @param AltCfgId A pointer to the ALTCFG value to search for in
1738 the routing portion of the ConfigResp string
1739 when retrieving the requested data. If this
1740 parameter is NULL, then the current setting will
1741 be retrieved.
1742 @param AltCfgResp A pointer to a buffer which will be allocated by
1743 the function which contains the retrieved string
1744 as requested. This buffer is only allocated if
1745 the call was successful.
1746
1747 @retval EFI_SUCCESS The request succeeded. The requested data was
1748 extracted and placed in the newly allocated
1749 AltCfgResp buffer.
1750 @retval EFI_OUT_OF_RESOURCES Not enough memory to allocate AltCfgResp.
1751 @retval EFI_INVALID_PARAMETER Any parameter is invalid.
1752 @retval EFI_NOT_FOUND Target for the specified routing data was not
1753 found.
1754
1755 **/
1756 EFI_STATUS
1757 EFIAPI
1758 HiiGetAltCfg (
1759 IN CONST EFI_HII_CONFIG_ROUTING_PROTOCOL *This,
1760 IN CONST EFI_STRING Configuration,
1761 IN CONST EFI_GUID *Guid,
1762 IN CONST EFI_STRING Name,
1763 IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath,
1764 IN CONST UINT16 *AltCfgId,
1765 OUT EFI_STRING *AltCfgResp
1766 );
1767
1768
1769 /**
1770 Compare whether two names of languages are identical.
1771
1772 @param Language1 Name of language 1 from StringPackage
1773 @param Language2 Name of language 2 to be compared with language 1.
1774
1775 @retval TRUE same
1776 @retval FALSE not same
1777
1778 **/
1779 BOOLEAN
1780 HiiCompareLanguage (
1781 IN CHAR8 *Language1,
1782 IN CHAR8 *Language2
1783 )
1784 ;
1785
1786 //
1787 // Global variables
1788 //
1789 extern EFI_EVENT gHiiKeyboardLayoutChanged;
1790 #endif