]> git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/UefiIfrParserInternal.h
Bug fixes for FrameworkHiiToUefiHiiThunk;
[mirror_edk2.git] / EdkCompatibilityPkg / Compatibility / FrameworkHiiToUefiHiiThunk / UefiIfrParserInternal.h
1 /** @file
2 Internal Function and Macro defintions for IFR parsing. This header file should only
3 be included by UefiIfrParser.c
4
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
10
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.
13
14 **/
15
16 #ifndef _HII_THUNK_UEFI_IFR_PARSER_INTERNAL_
17 #define _HII_THUNK_UEFI_IFR_PARSER_INTERNAL_
18
19 #include <Protocol/UnicodeCollation.h>
20
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>
29
30 #include <MdeModuleHii.h>
31
32 //
33 // Extern Variables
34 //
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;
39
40 //
41 // Incremental string lenght of ConfigRequest
42 //
43 #define CONFIG_REQUEST_STRING_INCREMENTAL 1024
44
45
46 #define EFI_SPECIFICATION_ERRATA_VERSION 0
47
48 #define EFI_IFR_SPECIFICATION_VERSION \
49 ((((EFI_SPECIFICATION_VERSION) >> 8) & 0xff00) | \
50 (((EFI_SPECIFICATION_VERSION) & 0xf) << 4) | \
51 ((EFI_SPECIFICATION_ERRATA_VERSION) & 0xf))
52
53 extern EFI_GUID gZeroGuid;
54
55 #endif