TianoCore EDK2 master
|
#include <PiPei.h>
#include <Pi/PiHob.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/DebugLib.h>
#include <Library/IoLib.h>
#include <Library/PrintLib.h>
#include <Library/FdtLib.h>
#include <Library/HobLib.h>
#include <Library/PcdLib.h>
Go to the source code of this file.
Functions | |
VOID *EFIAPI | CreateHob (IN UINT16 HobType, IN UINT16 HobLength) |
VOID | AddNewHob (IN EFI_PEI_HOB_POINTERS *Hob) |
BOOLEAN EFIAPI | FitIsHobNeed (EFI_PEI_HOB_POINTERS Hob) |
UINTN EFIAPI | CustomFdtNodeParser (IN VOID *FdtBase, IN VOID *HobList) |
Copyright (c) 2024, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file CustomFdtNodeParserLib.c.
VOID AddNewHob | ( | IN EFI_PEI_HOB_POINTERS * | Hob | ) |
Add HOB into HOB list
[in] | Hob | The HOB to be added into the HOB list. |
Definition at line 101 of file HobParseLib.c.
Add a new HOB to the HOB List.
HobType | Type of the new HOB. |
HobLength | Length of the new HOB to allocate. |
This service enables PEIMs to create various types of HOBs.
Type | The type of HOB to be installed. |
Length | The length of the HOB to be added. |
!NULL | The HOB was successfully created. |
NULL | There is no additional space for HOB creation. |
It will Parse FDT -custom node based on information from bootloaders.
[in] | FdtBase | The starting memory address of FdtBase |
[in] | HobList | The starting memory address of New Hob list. |
Definition at line 120 of file CustomFdtNodeParserLib.c.
BOOLEAN EFIAPI FitIsHobNeed | ( | EFI_PEI_HOB_POINTERS | Hob | ) |
Check the HOB and decide if it is need inside Payload Payload maintainer may make decision which HOB is need or needn't Then add the check logic in the function.
[in] | Hob | The HOB to check |
TRUE | If HOB is need inside Payload |
FALSE | If HOB is needn't inside Payload |
Definition at line 53 of file CustomFdtNodeParserLib.c.