]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Library/VarCheckHiiLib/VarCheckHii.h
7363edf028a6a8c35f07b487eddd6b0beed25c6c
[mirror_edk2.git] / MdeModulePkg / Library / VarCheckHiiLib / VarCheckHii.h
1 /** @file
2 Include file for Var Check Hii handler and bin.
3
4 Copyright (c) 2015 - 2017, 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 _VAR_CHECK_HII_H_
16 #define _VAR_CHECK_HII_H_
17
18 #include <Library/VarCheckLib.h>
19 #include <Library/BaseLib.h>
20 #include <Library/DebugLib.h>
21 #include <Library/BaseMemoryLib.h>
22 #include <Library/UefiBootServicesTableLib.h>
23 #include <Library/MemoryAllocationLib.h>
24
25 #include <Guid/MdeModuleHii.h>
26
27 #include <Protocol/HiiDatabase.h>
28 #include <Protocol/FirmwareVolume2.h>
29 #include <Protocol/FirmwareVolumeBlock.h>
30
31 #include "InternalVarCheckStructure.h"
32 #include "VarCheckHiiGen.h"
33
34 //#define DUMP_VAR_CHECK_HII
35 //#define DUMP_HII_DATA
36
37 typedef struct {
38 UINT8 HiiOpCode;
39 CHAR8 *HiiOpCodeStr;
40 } VAR_CHECK_HII_OPCODE_STRING;
41
42 typedef struct {
43 UINT8 PackageType;
44 CHAR8 *PackageTypeStr;
45 } VAR_CHECK_HII_PACKAGE_TYPE_STRING;
46
47 /**
48 Dump Var Check HII.
49
50 @param[in] VarCheckHiiBin Pointer to VarCheckHiiBin.
51 @param[in] VarCheckHiiBinSize VarCheckHiiBin size.
52
53 **/
54 VOID
55 DumpVarCheckHii (
56 IN VOID *VarCheckHiiBin,
57 IN UINTN VarCheckHiiBinSize
58 );
59
60 extern VAR_CHECK_HII_VARIABLE_HEADER *mVarCheckHiiBin;
61 extern UINTN mVarCheckHiiBinSize;
62
63 #endif