]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Library/VarCheckHiiLib/VarCheckHiiGen.h
MdeModulePkg: Add VarCheckHiiLib NULL class library
[mirror_edk2.git] / MdeModulePkg / Library / VarCheckHiiLib / VarCheckHiiGen.h
CommitLineData
1241af95
SZ
1/** @file\r
2 Include file for Var Check Hii bin generation.\r
3\r
4Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
5This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#ifndef _VAR_CHECK_HII_GEN_H_\r
16#define _VAR_CHECK_HII_GEN_H_\r
17\r
18#include "VarCheckHii.h"\r
19\r
20/**\r
21 Dump Hii Package.\r
22\r
23 @param[in] HiiPackage Pointer to Hii Package.\r
24\r
25**/\r
26VOID\r
27DumpHiiPackage (\r
28 IN VOID *HiiPackage\r
29 );\r
30\r
31/**\r
32 Dump Hii Database.\r
33\r
34 @param[in] HiiDatabase Pointer to Hii Database.\r
35 @param[in] HiiDatabaseSize Hii Database size.\r
36\r
37**/\r
38VOID\r
39DumpHiiDatabase (\r
40 IN VOID *HiiDatabase,\r
41 IN UINTN HiiDatabaseSize\r
42 );\r
43\r
44/**\r
45 Allocates and zeros a buffer of type EfiBootServicesData.\r
46\r
47 Allocates the number bytes specified by AllocationSize of type EfiBootServicesData, clears the\r
48 buffer with zeros, and returns a pointer to the allocated buffer. If AllocationSize is 0, then a\r
49 valid buffer of 0 size is returned. If there is not enough memory remaining to satisfy the\r
50 request, then NULL is returned.\r
51\r
52 @param AllocationSize The number of bytes to allocate and zero.\r
53\r
54 @return A pointer to the allocated buffer or NULL if allocation fails.\r
55\r
56**/\r
57VOID *\r
58InternalVarCheckAllocateZeroPool (\r
59 IN UINTN AllocationSize\r
60 );\r
61\r
62/**\r
63 Frees a buffer that was previously allocated with one of the pool allocation functions in the\r
64 Memory Allocation Library.\r
65\r
66 Frees the buffer specified by Buffer. Buffer must have been allocated on a previous call to the\r
67 pool allocation services of the Memory Allocation Library. If it is not possible to free pool\r
68 resources, then this function will perform no actions.\r
69\r
70 If Buffer was not allocated with a pool allocation function in the Memory Allocation Library,\r
71 then ASSERT().\r
72\r
73 @param Buffer The pointer to the buffer to free.\r
74\r
75**/\r
76VOID\r
77EFIAPI\r
78InternalVarCheckFreePool (\r
79 IN VOID *Buffer\r
80 );\r
81\r
82/**\r
83 Var Check Parse Hii Package.\r
84\r
85 @param[in] HiiPackage Pointer to Hii Package.\r
86 @param[in] FromFv Hii Package from FV.\r
87\r
88**/\r
89VOID\r
90VarCheckParseHiiPackage (\r
91 IN VOID *HiiPackage,\r
92 IN BOOLEAN FromFv\r
93 );\r
94\r
95/**\r
96 Var Check Parse Hii Database.\r
97\r
98 @param[in] HiiDatabase Pointer to Hii Database.\r
99 @param[in] HiiDatabaseSize Hii Database size.\r
100\r
101**/\r
102VOID\r
103VarCheckParseHiiDatabase (\r
104 IN VOID *HiiDatabase,\r
105 IN UINTN HiiDatabaseSize\r
106 );\r
107\r
108/**\r
109 Generate from FV.\r
110\r
111**/\r
112VOID\r
113VarCheckHiiGenFromFv (\r
114 VOID\r
115 );\r
116\r
117/**\r
118 Generate from Hii Database.\r
119\r
120**/\r
121VOID\r
122VarCheckHiiGenFromHiiDatabase (\r
123 VOID\r
124 );\r
125\r
126/**\r
127 Generate VarCheckHiiBin from Hii Database and FV.\r
128\r
129**/\r
130VOID\r
131EFIAPI\r
132VarCheckHiiGen (\r
133 VOID\r
134 );\r
135\r
136#endif\r