2015-08-25 05:10:04 +02:00
|
|
|
/** @file
|
|
|
|
Include file for Var Check Hii handler and bin.
|
|
|
|
|
2017-11-03 09:34:25 +01:00
|
|
|
Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.<BR>
|
2019-04-04 01:05:13 +02:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
2015-08-25 05:10:04 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef _VAR_CHECK_HII_H_
|
|
|
|
#define _VAR_CHECK_HII_H_
|
|
|
|
|
|
|
|
#include <Library/VarCheckLib.h>
|
|
|
|
#include <Library/BaseLib.h>
|
|
|
|
#include <Library/DebugLib.h>
|
|
|
|
#include <Library/BaseMemoryLib.h>
|
|
|
|
#include <Library/UefiBootServicesTableLib.h>
|
|
|
|
#include <Library/MemoryAllocationLib.h>
|
|
|
|
|
2017-11-03 09:34:25 +01:00
|
|
|
#include <Guid/MdeModuleHii.h>
|
|
|
|
|
2015-08-25 05:10:04 +02:00
|
|
|
#include <Protocol/HiiDatabase.h>
|
|
|
|
#include <Protocol/FirmwareVolume2.h>
|
|
|
|
#include <Protocol/FirmwareVolumeBlock.h>
|
|
|
|
|
|
|
|
#include "InternalVarCheckStructure.h"
|
|
|
|
#include "VarCheckHiiGen.h"
|
|
|
|
|
|
|
|
// #define DUMP_VAR_CHECK_HII
|
|
|
|
// #define DUMP_HII_DATA
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
UINT8 HiiOpCode;
|
|
|
|
CHAR8 *HiiOpCodeStr;
|
|
|
|
} VAR_CHECK_HII_OPCODE_STRING;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
UINT8 PackageType;
|
|
|
|
CHAR8 *PackageTypeStr;
|
|
|
|
} VAR_CHECK_HII_PACKAGE_TYPE_STRING;
|
|
|
|
|
|
|
|
/**
|
|
|
|
Dump Var Check HII.
|
|
|
|
|
|
|
|
@param[in] VarCheckHiiBin Pointer to VarCheckHiiBin.
|
|
|
|
@param[in] VarCheckHiiBinSize VarCheckHiiBin size.
|
|
|
|
|
|
|
|
**/
|
|
|
|
VOID
|
|
|
|
DumpVarCheckHii (
|
|
|
|
IN VOID *VarCheckHiiBin,
|
|
|
|
IN UINTN VarCheckHiiBinSize
|
|
|
|
);
|
|
|
|
|
|
|
|
extern VAR_CHECK_HII_VARIABLE_HEADER *mVarCheckHiiBin;
|
|
|
|
extern UINTN mVarCheckHiiBinSize;
|
|
|
|
|
|
|
|
#endif
|