]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/UefiIfrParserInternal.h
Bug fixes for FrameworkHiiToUefiHiiThunk;
[mirror_edk2.git] / EdkCompatibilityPkg / Compatibility / FrameworkHiiToUefiHiiThunk / UefiIfrParserInternal.h
CommitLineData
59336178 1/** @file\r
2 Internal Function and Macro defintions for IFR parsing. This header file should only\r
3 be included by UefiIfrParser.c\r
4\r
5 Copyright (c) 2008, Intel Corporation\r
6 All rights reserved. This program and the accompanying materials\r
7 are licensed and made available under the terms and conditions of the BSD License\r
8 which accompanies this distribution. The full text of the license may be found at\r
9 http://opensource.org/licenses/bsd-license.php\r
10\r
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
14**/\r
15\r
16#ifndef _HII_THUNK_UEFI_IFR_PARSER_INTERNAL_\r
17#define _HII_THUNK_UEFI_IFR_PARSER_INTERNAL_\r
18\r
19#include <Protocol/UnicodeCollation.h>\r
20\r
21#include <Library/BaseLib.h>\r
22#include <Library/BaseMemoryLib.h>\r
23#include <Library/DebugLib.h>\r
24#include <Library/HiiLib.h>\r
25#include <Library/IfrSupportLib.h>\r
26#include <Library/MemoryAllocationLib.h>\r
27#include <Library/PrintLib.h>\r
28#include <Library/UefiBootServicesTableLib.h>\r
29\r
30#include <MdeModuleHii.h>\r
31\r
32//\r
33// Extern Variables\r
34//\r
35extern CONST EFI_HII_DATABASE_PROTOCOL *mHiiDatabase;\r
59336178 36extern CONST EFI_HII_IMAGE_PROTOCOL *mHiiImageProtocol;\r
37extern CONST EFI_HII_STRING_PROTOCOL *mHiiStringProtocol;\r
38extern CONST EFI_HII_CONFIG_ROUTING_PROTOCOL *mHiiConfigRoutingProtocol;\r
39\r
40//\r
41// Incremental string lenght of ConfigRequest\r
42//\r
43#define CONFIG_REQUEST_STRING_INCREMENTAL 1024\r
44\r
45\r
46#define EFI_SPECIFICATION_ERRATA_VERSION 0\r
47\r
48#define EFI_IFR_SPECIFICATION_VERSION \\r
49 ((((EFI_SPECIFICATION_VERSION) >> 8) & 0xff00) | \\r
50 (((EFI_SPECIFICATION_VERSION) & 0xf) << 4) | \\r
51 ((EFI_SPECIFICATION_ERRATA_VERSION) & 0xf))\r
52\r
53extern EFI_GUID gZeroGuid;\r
54\r
55#endif\r