]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Library/Dxe/Include/EfiHobLib.h
clean up the un-suitable ';' location when declaring the functions. The regular is...
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / Dxe / Include / EfiHobLib.h
CommitLineData
3eb9473e 1/*++\r
2\r
3Copyright (c) 2004, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13 \r
14 EfiHobLib.h\r
15\r
16Abstract:\r
17\r
18 \r
19--*/\r
20\r
21#ifndef _EFI_HOB_LIB_H_\r
22#define _EFI_HOB_LIB_H_\r
23\r
24#include "PeiHob.h"\r
25\r
26VOID *\r
27GetHob (\r
28 IN UINT16 Type,\r
29 IN VOID *HobStart\r
30 )\r
31/*++\r
32\r
33Routine Description:\r
34\r
35 This function returns the first instance of a HOB type in a HOB list.\r
36 \r
37Arguments:\r
38\r
39 Type The HOB type to return.\r
40 HobStart The first HOB in the HOB list.\r
41 \r
42Returns:\r
43\r
44 HobStart There were no HOBs found with the requested type.\r
45 else Returns the first HOB with the matching type.\r
46\r
47--*/\r
48;\r
49\r
50UINTN\r
51GetHobListSize (\r
52 IN VOID *HobStart\r
53 )\r
54/*++\r
55\r
56Routine Description:\r
57\r
58 Get size of hob list.\r
59\r
60Arguments:\r
61\r
62 HobStart - Start pointer of hob list\r
63\r
64Returns:\r
65\r
66 Size of hob list.\r
67\r
68--*/\r
69;\r
70\r
71UINT32\r
72GetHobVersion (\r
73 IN VOID *HobStart\r
74 )\r
75/*++\r
76\r
77Routine Description:\r
78\r
79 Get hob version.\r
80\r
81Arguments:\r
82\r
83 HobStart - Start pointer of hob list\r
84\r
85Returns:\r
86\r
87 Hob version.\r
88\r
89--*/\r
90;\r
91\r
92EFI_STATUS\r
93GetHobBootMode (\r
94 IN VOID *HobStart,\r
95 OUT EFI_BOOT_MODE *BootMode\r
96 )\r
97/*++\r
98\r
99Routine Description:\r
100\r
101 Get current boot mode.\r
102\r
103Arguments:\r
104\r
105 HobStart - Start pointer of hob list\r
106 \r
107 BootMode - Current boot mode recorded in PHIT hob\r
108\r
109Returns:\r
110\r
111 EFI_NOT_FOUND - Invalid hob header\r
112 \r
113 EFI_SUCCESS - Boot mode found\r
114\r
115--*/\r
116;\r
117\r
118EFI_STATUS\r
119GetCpuHobInfo (\r
120 IN VOID *HobStart,\r
121 OUT UINT8 *SizeOfMemorySpace,\r
122 OUT UINT8 *SizeOfIoSpace\r
123 )\r
124/*++\r
125\r
126Routine Description:\r
127\r
128 Get information recorded in CPU hob (Memory space size, Io space size)\r
129\r
130Arguments:\r
131\r
132 HobStart - Start pointer of hob list\r
133 \r
134 SizeOfMemorySpace - Size of memory size\r
135 \r
136 SizeOfIoSpace - Size of IO size\r
137\r
138Returns:\r
139\r
140 EFI_NOT_FOUND - CPU hob not found\r
141 \r
142 EFI_SUCCESS - CPU hob found and information got.\r
143\r
144--*/\r
145;\r
146\r
147EFI_STATUS\r
148GetDxeCoreHobInfo (\r
149 IN VOID *HobStart,\r
150 OUT EFI_PHYSICAL_ADDRESS *BaseAddress,\r
151 OUT UINT64 *Length,\r
152 OUT VOID **EntryPoint,\r
153 OUT EFI_GUID **FileName\r
154 )\r
155/*++\r
156\r
157Routine Description:\r
158\r
159 Get memory allocation hob created for DXE core and extract its information\r
160\r
161Arguments:\r
162\r
163 HobStart - Start pointer of the hob list\r
164 \r
165 BaseAddress - Start address of memory allocated for DXE core\r
166 \r
167 Length - Length of memory allocated for DXE core\r
168 \r
169 EntryPoint - DXE core file name\r
170\r
171 FileName - FileName \r
172\r
173Returns:\r
174\r
175 EFI_NOT_FOUND - DxeCoreHob not found\r
176 \r
177 EFI_SUCCESS - DxeCoreHob found and information got\r
178\r
179--*/\r
180;\r
181\r
182EFI_STATUS\r
183GetNextFirmwareVolumeHob (\r
184 IN OUT VOID **HobStart,\r
185 OUT EFI_PHYSICAL_ADDRESS *BaseAddress,\r
186 OUT UINT64 *Length\r
187 )\r
188/*++\r
189\r
190Routine Description:\r
191\r
192 Get next firmware volume hob from HobStart\r
193\r
194Arguments:\r
195\r
196 HobStart - Start pointer of hob list\r
197 \r
198 BaseAddress - Start address of next firmware volume\r
199 \r
200 Length - Length of next firmware volume\r
201\r
202Returns:\r
203\r
204 EFI_NOT_FOUND - Next firmware volume not found\r
205 \r
206 EFI_SUCCESS - Next firmware volume found with address information\r
207\r
208--*/\r
209;\r
210\r
211#if (PI_SPECIFICATION_VERSION >= 0x00010000)\r
212EFI_STATUS\r
213GetNextFirmwareVolume2Hob (\r
214 IN OUT VOID **HobStart,\r
215 OUT EFI_PHYSICAL_ADDRESS *BaseAddress,\r
216 OUT UINT64 *Length,\r
217 OUT EFI_GUID *FileName\r
e00e1d46 218 );\r
3eb9473e 219#endif\r
220\r
221EFI_STATUS\r
222GetNextGuidHob (\r
223 IN OUT VOID **HobStart,\r
224 IN EFI_GUID * Guid,\r
225 OUT VOID **Buffer,\r
226 OUT UINTN *BufferSize OPTIONAL\r
227 )\r
228/*++\r
229\r
230Routine Description:\r
231 Get the next guid hob.\r
232 \r
233Arguments:\r
234 HobStart A pointer to the start hob.\r
235 Guid A pointer to a guid.\r
236 Buffer A pointer to the buffer.\r
237 BufferSize Buffer size.\r
238 \r
239Returns:\r
240 Status code.\r
241 \r
242 EFI_NOT_FOUND - Next Guid hob not found\r
243 \r
244 EFI_SUCCESS - Next Guid hob found and data for this Guid got\r
245\r
246--*/\r
247;\r
248\r
249EFI_STATUS\r
250GetPalEntryHobInfo (\r
251 IN VOID *HobStart,\r
252 OUT EFI_PHYSICAL_ADDRESS *PalEntry\r
253 )\r
254/*++\r
255\r
256Routine Description:\r
257\r
258 Get PAL entry from PalEntryHob\r
259\r
260Arguments:\r
261\r
262 HobStart - Start pointer of hob list\r
263 \r
264 PalEntry - Pointer to PAL entry\r
265\r
266Returns:\r
267\r
268 Status code.\r
269\r
270--*/\r
271;\r
272\r
273EFI_STATUS\r
274GetIoPortSpaceAddressHobInfo (\r
275 IN VOID *HobStart,\r
276 OUT EFI_PHYSICAL_ADDRESS *IoPortSpaceAddress\r
277 )\r
278/*++\r
279\r
280Routine Description:\r
281\r
282 Get IO port space address from IoBaseHob.\r
283\r
284Arguments:\r
285\r
286 HobStart - Start pointer of hob list\r
287 \r
288 IoPortSpaceAddress - IO port space address\r
289\r
290Returns:\r
291\r
292 Status code\r
293\r
294--*/\r
295;\r
296\r
297#endif\r