TianoCore EDK2 master
Loading...
Searching...
No Matches
FdtParserLib.h File Reference

Go to the source code of this file.

Functions

UINTN EFIAPI ParseDtb (IN VOID *FdtBase)
 
UINT64 EFIAPI FdtNodeParser (IN VOID *FdtBase)
 
UINTN EFIAPI CustomFdtNodeParser (IN VOID *FdtBase, IN VOID *HostList)
 
UINTN EFIAPI UplInitHob (IN VOID *FdtBase)
 

Detailed Description

This library will parse the FDT (flat device tree) table information.

Copyright (c) 2024, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file FdtParserLib.h.

Function Documentation

◆ CustomFdtNodeParser()

UINTN EFIAPI CustomFdtNodeParser ( IN VOID *  Fdt,
IN VOID *  HobList 
)

It will Parse FDT -custom node based on information.

Parameters
[in]FdtBaseThe starting memory address of FdtBase
[in]HostListThe starting memory address of New Hob list.

It will Parse FDT -custom node based on information from bootloaders.

Parameters
[in]FdtBaseThe starting memory address of FdtBase
[in]HobListThe starting memory address of New Hob list.

It will Parse FDT -custom node based on information from bootloaders.

Parameters
[in]FdtBaseThe starting memory address of FdtBase.
[in]HobListThe starting memory address of New Hob list.
Return values
HobListThe base address of Hoblist.

Definition at line 120 of file CustomFdtNodeParserLib.c.

◆ FdtNodeParser()

UINT64 EFIAPI FdtNodeParser ( IN VOID *  FdtBase)

It will Parse FDT -node based on information.

Parameters
[in]FdtBaseThe starting memory address of FdtBase
Return values
HobListThe base address of Hoblist.

It will Parse FDT -node based on information from bootloaders.

Parameters
[in]FdtBaseThe starting memory address of FdtBase
Return values
HobListThe base address of Hoblist.

Definition at line 1002 of file FdtParserLib.c.

◆ ParseDtb()

UINTN EFIAPI ParseDtb ( IN VOID *  FdtBase)

It will parse FDT based on DTB.

Parameters
[in]FdtBaseAddress of the Fdt data.
Return values
EFI_SUCCESSIf it completed successfully.
OthersIf it failed to parse DTB.

It will parse FDT based on DTB from bootloaders.

Parameters
[in]FdtBaseAddress of the Fdt data.
Returns
The address to the new hob list

Definition at line 792 of file FdtParserLib.c.

◆ UplInitHob()

UINTN EFIAPI UplInitHob ( IN VOID *  FdtBase)

It will initialize HOBs for UPL.

Parameters
[in]FdtBaseAddress of the Fdt data.
Return values
EFI_SUCCESSIf it completed successfully.
OthersIf it failed to initialize HOBs.

Definition at line 1019 of file FdtParserLib.c.