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 | SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
6 |
|
---|
7 | **/
|
---|
8 |
|
---|
9 | #ifndef _VAR_CHECK_HII_H_
|
---|
10 | #define _VAR_CHECK_HII_H_
|
---|
11 |
|
---|
12 | #include <Library/VarCheckLib.h>
|
---|
13 | #include <Library/BaseLib.h>
|
---|
14 | #include <Library/DebugLib.h>
|
---|
15 | #include <Library/BaseMemoryLib.h>
|
---|
16 | #include <Library/UefiBootServicesTableLib.h>
|
---|
17 | #include <Library/MemoryAllocationLib.h>
|
---|
18 |
|
---|
19 | #include <Guid/MdeModuleHii.h>
|
---|
20 |
|
---|
21 | #include <Protocol/HiiDatabase.h>
|
---|
22 | #include <Protocol/FirmwareVolume2.h>
|
---|
23 | #include <Protocol/FirmwareVolumeBlock.h>
|
---|
24 |
|
---|
25 | #include "InternalVarCheckStructure.h"
|
---|
26 | #include "VarCheckHiiGen.h"
|
---|
27 |
|
---|
28 | // #define DUMP_VAR_CHECK_HII
|
---|
29 | // #define DUMP_HII_DATA
|
---|
30 |
|
---|
31 | typedef struct {
|
---|
32 | UINT8 HiiOpCode;
|
---|
33 | CHAR8 *HiiOpCodeStr;
|
---|
34 | } VAR_CHECK_HII_OPCODE_STRING;
|
---|
35 |
|
---|
36 | typedef struct {
|
---|
37 | UINT8 PackageType;
|
---|
38 | CHAR8 *PackageTypeStr;
|
---|
39 | } VAR_CHECK_HII_PACKAGE_TYPE_STRING;
|
---|
40 |
|
---|
41 | /**
|
---|
42 | Dump Var Check HII.
|
---|
43 |
|
---|
44 | @param[in] VarCheckHiiBin Pointer to VarCheckHiiBin.
|
---|
45 | @param[in] VarCheckHiiBinSize VarCheckHiiBin size.
|
---|
46 |
|
---|
47 | **/
|
---|
48 | VOID
|
---|
49 | DumpVarCheckHii (
|
---|
50 | IN VOID *VarCheckHiiBin,
|
---|
51 | IN UINTN VarCheckHiiBinSize
|
---|
52 | );
|
---|
53 |
|
---|
54 | extern VAR_CHECK_HII_VARIABLE_HEADER *mVarCheckHiiBin;
|
---|
55 | extern UINTN mVarCheckHiiBinSize;
|
---|
56 |
|
---|
57 | #endif
|
---|