]>
git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Library/VarCheckHiiLib/VarCheckHiiGen.h
2 Include file for Var Check Hii bin generation.
4 Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #ifndef _VAR_CHECK_HII_GEN_H_
10 #define _VAR_CHECK_HII_GEN_H_
12 #include "VarCheckHii.h"
17 @param[in] HiiPackage Pointer to Hii Package.
28 @param[in] HiiDatabase Pointer to Hii Database.
29 @param[in] HiiDatabaseSize Hii Database size.
35 IN UINTN HiiDatabaseSize
39 Allocates and zeros a buffer of type EfiBootServicesData.
41 Allocates the number bytes specified by AllocationSize of type EfiBootServicesData, clears the
42 buffer with zeros, and returns a pointer to the allocated buffer. If AllocationSize is 0, then a
43 valid buffer of 0 size is returned. If there is not enough memory remaining to satisfy the
44 request, then NULL is returned.
46 @param AllocationSize The number of bytes to allocate and zero.
48 @return A pointer to the allocated buffer or NULL if allocation fails.
52 InternalVarCheckAllocateZeroPool (
53 IN UINTN AllocationSize
57 Frees a buffer that was previously allocated with one of the pool allocation functions in the
58 Memory Allocation Library.
60 Frees the buffer specified by Buffer. Buffer must have been allocated on a previous call to the
61 pool allocation services of the Memory Allocation Library. If it is not possible to free pool
62 resources, then this function will perform no actions.
64 If Buffer was not allocated with a pool allocation function in the Memory Allocation Library,
67 @param Buffer The pointer to the buffer to free.
72 InternalVarCheckFreePool (
77 Var Check Parse Hii Package.
79 @param[in] HiiPackage Pointer to Hii Package.
80 @param[in] FromFv Hii Package from FV.
84 VarCheckParseHiiPackage (
90 Var Check Parse Hii Database.
92 @param[in] HiiDatabase Pointer to Hii Database.
93 @param[in] HiiDatabaseSize Hii Database size.
97 VarCheckParseHiiDatabase (
99 IN UINTN HiiDatabaseSize
107 VarCheckHiiGenFromFv (
112 Generate from Hii Database.
116 VarCheckHiiGenFromHiiDatabase (
121 Generate VarCheckHiiBin from Hii Database and FV.