]>
git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Foundation/Library/Dxe/Include/EfiHobLib.h
09aae87117314858544b2ae695f90b8528bf8537
3 Copyright (c) 2004, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
21 #ifndef _EFI_HOB_LIB_H_
22 #define _EFI_HOB_LIB_H_
35 This function returns the first instance of a HOB type in a HOB list.
39 Type The HOB type to return.
40 HobStart The first HOB in the HOB list.
44 HobStart There were no HOBs found with the requested type.
45 else Returns the first HOB with the matching type.
62 HobStart - Start pointer of hob list
83 HobStart - Start pointer of hob list
95 OUT EFI_BOOT_MODE
*BootMode
101 Get current boot mode.
105 HobStart - Start pointer of hob list
107 BootMode - Current boot mode recorded in PHIT hob
111 EFI_NOT_FOUND - Invalid hob header
113 EFI_SUCCESS - Boot mode found
121 OUT UINT8
*SizeOfMemorySpace
,
122 OUT UINT8
*SizeOfIoSpace
128 Get information recorded in CPU hob (Memory space size, Io space size)
132 HobStart - Start pointer of hob list
134 SizeOfMemorySpace - Size of memory size
136 SizeOfIoSpace - Size of IO size
140 EFI_NOT_FOUND - CPU hob not found
142 EFI_SUCCESS - CPU hob found and information got.
150 OUT EFI_PHYSICAL_ADDRESS
*BaseAddress
,
152 OUT VOID
**EntryPoint
,
153 OUT EFI_GUID
**FileName
159 Get memory allocation hob created for DXE core and extract its information
163 HobStart - Start pointer of the hob list
165 BaseAddress - Start address of memory allocated for DXE core
167 Length - Length of memory allocated for DXE core
169 EntryPoint - DXE core file name
175 EFI_NOT_FOUND - DxeCoreHob not found
177 EFI_SUCCESS - DxeCoreHob found and information got
183 GetNextFirmwareVolumeHob (
184 IN OUT VOID
**HobStart
,
185 OUT EFI_PHYSICAL_ADDRESS
*BaseAddress
,
192 Get next firmware volume hob from HobStart
196 HobStart - Start pointer of hob list
198 BaseAddress - Start address of next firmware volume
200 Length - Length of next firmware volume
204 EFI_NOT_FOUND - Next firmware volume not found
206 EFI_SUCCESS - Next firmware volume found with address information
211 #if (PI_SPECIFICATION_VERSION >= 0x00010000)
213 GetNextFirmwareVolume2Hob (
214 IN OUT VOID
**HobStart
,
215 OUT EFI_PHYSICAL_ADDRESS
*BaseAddress
,
217 OUT EFI_GUID
*FileName
223 IN OUT VOID
**HobStart
,
226 OUT UINTN
*BufferSize OPTIONAL
231 Get the next guid hob.
234 HobStart A pointer to the start hob.
235 Guid A pointer to a guid.
236 Buffer A pointer to the buffer.
237 BufferSize Buffer size.
242 EFI_NOT_FOUND - Next Guid hob not found
244 EFI_SUCCESS - Next Guid hob found and data for this Guid got
252 OUT EFI_PHYSICAL_ADDRESS
*PalEntry
258 Get PAL entry from PalEntryHob
262 HobStart - Start pointer of hob list
264 PalEntry - Pointer to PAL entry
274 GetIoPortSpaceAddressHobInfo (
276 OUT EFI_PHYSICAL_ADDRESS
*IoPortSpaceAddress
282 Get IO port space address from IoBaseHob.
286 HobStart - Start pointer of hob list
288 IoPortSpaceAddress - IO port space address