2 Internal Function and Macro defintions for IFR parsing. This header file should only
3 be included by UefiIfrParser.c
5 Copyright (c) 2008, Intel Corporation
6 All rights reserved. This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 #ifndef _HII_THUNK_UEFI_IFR_PARSER_INTERNAL_
17 #define _HII_THUNK_UEFI_IFR_PARSER_INTERNAL_
19 #include <Protocol/UnicodeCollation.h>
21 #include <Library/BaseLib.h>
22 #include <Library/BaseMemoryLib.h>
23 #include <Library/DebugLib.h>
24 #include <Library/HiiLib.h>
25 #include <Library/IfrSupportLib.h>
26 #include <Library/MemoryAllocationLib.h>
27 #include <Library/PrintLib.h>
28 #include <Library/UefiBootServicesTableLib.h>
30 #include <MdeModuleHii.h>
35 extern CONST EFI_HII_DATABASE_PROTOCOL
*mHiiDatabase
;
36 extern CONST EFI_HII_IMAGE_PROTOCOL
*mHiiImageProtocol
;
37 extern CONST EFI_HII_STRING_PROTOCOL
*mHiiStringProtocol
;
38 extern CONST EFI_HII_CONFIG_ROUTING_PROTOCOL
*mHiiConfigRoutingProtocol
;
41 // Incremental string lenght of ConfigRequest
43 #define CONFIG_REQUEST_STRING_INCREMENTAL 1024
46 #define EFI_SPECIFICATION_ERRATA_VERSION 0
48 #define EFI_IFR_SPECIFICATION_VERSION \
49 ((((EFI_SPECIFICATION_VERSION) >> 8) & 0xff00) | \
50 (((EFI_SPECIFICATION_VERSION) & 0xf) << 4) | \
51 ((EFI_SPECIFICATION_ERRATA_VERSION) & 0xf))
53 extern EFI_GUID gZeroGuid
;