]>
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 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
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.
15 #ifndef _VAR_CHECK_HII_GEN_H_
16 #define _VAR_CHECK_HII_GEN_H_
18 #include "VarCheckHii.h"
23 @param[in] HiiPackage Pointer to Hii Package.
34 @param[in] HiiDatabase Pointer to Hii Database.
35 @param[in] HiiDatabaseSize Hii Database size.
41 IN UINTN HiiDatabaseSize
45 Allocates and zeros a buffer of type EfiBootServicesData.
47 Allocates the number bytes specified by AllocationSize of type EfiBootServicesData, clears the
48 buffer with zeros, and returns a pointer to the allocated buffer. If AllocationSize is 0, then a
49 valid buffer of 0 size is returned. If there is not enough memory remaining to satisfy the
50 request, then NULL is returned.
52 @param AllocationSize The number of bytes to allocate and zero.
54 @return A pointer to the allocated buffer or NULL if allocation fails.
58 InternalVarCheckAllocateZeroPool (
59 IN UINTN AllocationSize
63 Frees a buffer that was previously allocated with one of the pool allocation functions in the
64 Memory Allocation Library.
66 Frees the buffer specified by Buffer. Buffer must have been allocated on a previous call to the
67 pool allocation services of the Memory Allocation Library. If it is not possible to free pool
68 resources, then this function will perform no actions.
70 If Buffer was not allocated with a pool allocation function in the Memory Allocation Library,
73 @param Buffer The pointer to the buffer to free.
78 InternalVarCheckFreePool (
83 Var Check Parse Hii Package.
85 @param[in] HiiPackage Pointer to Hii Package.
86 @param[in] FromFv Hii Package from FV.
90 VarCheckParseHiiPackage (
96 Var Check Parse Hii Database.
98 @param[in] HiiDatabase Pointer to Hii Database.
99 @param[in] HiiDatabaseSize Hii Database size.
103 VarCheckParseHiiDatabase (
104 IN VOID
*HiiDatabase
,
105 IN UINTN HiiDatabaseSize
113 VarCheckHiiGenFromFv (
118 Generate from Hii Database.
122 VarCheckHiiGenFromHiiDatabase (
127 Generate VarCheckHiiBin from Hii Database and FV.