TianoCore EDK2 master
|
#include "UnitTestPeiServicesTablePointerLib.h"
Go to the source code of this file.
Functions | |
EFI_STATUS EFIAPI | UnitTestGetHobList (IN CONST EFI_PEI_SERVICES **PeiServices, IN OUT VOID **HobList) |
EFI_STATUS EFIAPI | UnitTestCreateHob (IN CONST EFI_PEI_SERVICES **PeiServices, IN UINT16 Type, IN UINT16 Length, IN OUT VOID **Hob) |
EFI_STATUS | UnitTestCoreBuildHobHandoffInfoTable (IN EFI_BOOT_MODE BootMode, IN EFI_PHYSICAL_ADDRESS MemoryBegin, IN UINT64 MemoryLength) |
This file implements some PEI services about Hob.
Copyright (c) 2023, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file UnitTestPeiServicesTablePointerLibHob.c.
EFI_STATUS UnitTestCoreBuildHobHandoffInfoTable | ( | IN EFI_BOOT_MODE | BootMode, |
IN EFI_PHYSICAL_ADDRESS | MemoryBegin, | ||
IN UINT64 | MemoryLength | ||
) |
Builds a Handoff Information Table HOB
BootMode | - Current Bootmode |
MemoryBegin | - Start Memory Address. |
MemoryLength | - Length of Memory. |
Definition at line 126 of file UnitTestPeiServicesTablePointerLibHob.c.
EFI_STATUS EFIAPI UnitTestCreateHob | ( | IN CONST EFI_PEI_SERVICES ** | PeiServices, |
IN UINT16 | Type, | ||
IN UINT16 | Length, | ||
IN OUT VOID ** | Hob | ||
) |
Add a new HOB to the HOB List.
PeiServices | An indirect pointer to the EFI_PEI_SERVICES table published by the PEI Foundation. |
Type | Type of the new HOB. |
Length | Length of the new HOB to allocate. |
Hob | Pointer to the new HOB. |
EFI_INVALID_PARAMETER | if Hob is NULL |
EFI_NOT_AVAILABLE_YET | if HobList is still not available. |
EFI_OUT_OF_RESOURCES | if there is no more memory to grow the Hoblist. |
Definition at line 59 of file UnitTestPeiServicesTablePointerLibHob.c.
EFI_STATUS EFIAPI UnitTestGetHobList | ( | IN CONST EFI_PEI_SERVICES ** | PeiServices, |
IN OUT VOID ** | HobList | ||
) |
Gets the pointer to the HOB List.
PeiServices | An indirect pointer to the EFI_PEI_SERVICES table published by the PEI Foundation. |
HobList | Pointer to the HOB List. |
EFI_SUCCESS | Get the pointer of HOB List |
EFI_NOT_AVAILABLE_YET | the HOB List is not yet published |
EFI_INVALID_PARAMETER | HobList is NULL (in debug mode) |
Definition at line 25 of file UnitTestPeiServicesTablePointerLibHob.c.