]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Library/VarCheckHiiLib/VarCheckHiiGen.h
MdeModulePkg: Replace BSD License with BSD+Patent License
[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
9d510e61 5SPDX-License-Identifier: BSD-2-Clause-Patent\r
1241af95
SZ
6\r
7**/\r
8\r
9#ifndef _VAR_CHECK_HII_GEN_H_\r
10#define _VAR_CHECK_HII_GEN_H_\r
11\r
12#include "VarCheckHii.h"\r
13\r
14/**\r
15 Dump Hii Package.\r
16\r
17 @param[in] HiiPackage Pointer to Hii Package.\r
18\r
19**/\r
20VOID\r
21DumpHiiPackage (\r
22 IN VOID *HiiPackage\r
23 );\r
24\r
25/**\r
26 Dump Hii Database.\r
27\r
28 @param[in] HiiDatabase Pointer to Hii Database.\r
29 @param[in] HiiDatabaseSize Hii Database size.\r
30\r
31**/\r
32VOID\r
33DumpHiiDatabase (\r
34 IN VOID *HiiDatabase,\r
35 IN UINTN HiiDatabaseSize\r
36 );\r
37\r
38/**\r
39 Allocates and zeros a buffer of type EfiBootServicesData.\r
40\r
41 Allocates the number bytes specified by AllocationSize of type EfiBootServicesData, clears the\r
42 buffer with zeros, and returns a pointer to the allocated buffer. If AllocationSize is 0, then a\r
43 valid buffer of 0 size is returned. If there is not enough memory remaining to satisfy the\r
44 request, then NULL is returned.\r
45\r
46 @param AllocationSize The number of bytes to allocate and zero.\r
47\r
48 @return A pointer to the allocated buffer or NULL if allocation fails.\r
49\r
50**/\r
51VOID *\r
52InternalVarCheckAllocateZeroPool (\r
53 IN UINTN AllocationSize\r
54 );\r
55\r
56/**\r
57 Frees a buffer that was previously allocated with one of the pool allocation functions in the\r
58 Memory Allocation Library.\r
59\r
60 Frees the buffer specified by Buffer. Buffer must have been allocated on a previous call to the\r
61 pool allocation services of the Memory Allocation Library. If it is not possible to free pool\r
62 resources, then this function will perform no actions.\r
63\r
64 If Buffer was not allocated with a pool allocation function in the Memory Allocation Library,\r
65 then ASSERT().\r
66\r
67 @param Buffer The pointer to the buffer to free.\r
68\r
69**/\r
70VOID\r
71EFIAPI\r
72InternalVarCheckFreePool (\r
73 IN VOID *Buffer\r
74 );\r
75\r
76/**\r
77 Var Check Parse Hii Package.\r
78\r
79 @param[in] HiiPackage Pointer to Hii Package.\r
80 @param[in] FromFv Hii Package from FV.\r
81\r
82**/\r
83VOID\r
84VarCheckParseHiiPackage (\r
85 IN VOID *HiiPackage,\r
86 IN BOOLEAN FromFv\r
87 );\r
88\r
89/**\r
90 Var Check Parse Hii Database.\r
91\r
92 @param[in] HiiDatabase Pointer to Hii Database.\r
93 @param[in] HiiDatabaseSize Hii Database size.\r
94\r
95**/\r
96VOID\r
97VarCheckParseHiiDatabase (\r
98 IN VOID *HiiDatabase,\r
99 IN UINTN HiiDatabaseSize\r
100 );\r
101\r
102/**\r
103 Generate from FV.\r
104\r
105**/\r
106VOID\r
107VarCheckHiiGenFromFv (\r
108 VOID\r
109 );\r
110\r
111/**\r
112 Generate from Hii Database.\r
113\r
114**/\r
115VOID\r
116VarCheckHiiGenFromHiiDatabase (\r
117 VOID\r
118 );\r
119\r
120/**\r
121 Generate VarCheckHiiBin from Hii Database and FV.\r
122\r
123**/\r
124VOID\r
125EFIAPI\r
126VarCheckHiiGen (\r
127 VOID\r
128 );\r
129\r
130#endif\r