]>
Commit | Line | Data |
---|---|---|
1241af95 SZ |
1 | /** @file\r |
2 | Include file for Var Check Hii bin generation.\r | |
3 | \r | |
4 | Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r | |
5 | This program and the accompanying materials\r | |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT 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 | |
26 | VOID\r | |
27 | DumpHiiPackage (\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 | |
38 | VOID\r | |
39 | DumpHiiDatabase (\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 | |
57 | VOID *\r | |
58 | InternalVarCheckAllocateZeroPool (\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 | |
76 | VOID\r | |
77 | EFIAPI\r | |
78 | InternalVarCheckFreePool (\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 | |
89 | VOID\r | |
90 | VarCheckParseHiiPackage (\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 | |
102 | VOID\r | |
103 | VarCheckParseHiiDatabase (\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 | |
112 | VOID\r | |
113 | VarCheckHiiGenFromFv (\r | |
114 | VOID\r | |
115 | );\r | |
116 | \r | |
117 | /**\r | |
118 | Generate from Hii Database.\r | |
119 | \r | |
120 | **/\r | |
121 | VOID\r | |
122 | VarCheckHiiGenFromHiiDatabase (\r | |
123 | VOID\r | |
124 | );\r | |
125 | \r | |
126 | /**\r | |
127 | Generate VarCheckHiiBin from Hii Database and FV.\r | |
128 | \r | |
129 | **/\r | |
130 | VOID\r | |
131 | EFIAPI\r | |
132 | VarCheckHiiGen (\r | |
133 | VOID\r | |
134 | );\r | |
135 | \r | |
136 | #endif\r |