mirror of
https://github.com/acidanthera/audk.git
synced 2025-09-23 17:57:45 +02:00
MdePkg: export FdtAddressCells/FdtSizeCells from BaseFdtLib
Signed-off-by: Leif Lindholm <quic_llindhol@quicinc.com>
This commit is contained in:
parent
9ba11ee131
commit
5bad560935
@ -639,6 +639,36 @@ FdtNodeOffsetByCompatible (
|
|||||||
IN CONST CHAR8 *Compatible
|
IN CONST CHAR8 *Compatible
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
Retrieve address size for a bus represented in the tree
|
||||||
|
|
||||||
|
@param[in] Fdt The pointer to FDT blob.
|
||||||
|
@param[in] NodeOffset Offset of node to check.
|
||||||
|
|
||||||
|
@return Number of cells in the bus address, or negative error.
|
||||||
|
**/
|
||||||
|
INT32
|
||||||
|
EFIAPI
|
||||||
|
FdtAddressCells (
|
||||||
|
IN CONST VOID *Fdt,
|
||||||
|
IN INT32 NodeOffset
|
||||||
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
Retrieve address range size for a bus represented in the tree
|
||||||
|
|
||||||
|
@param[in] Fdt The pointer to FDT blob.
|
||||||
|
@param[in] NodeOffset Offset of node to check.
|
||||||
|
|
||||||
|
@return Number of cells in the bus size, or negative error.
|
||||||
|
**/
|
||||||
|
INT32
|
||||||
|
EFIAPI
|
||||||
|
FdtSizeCells (
|
||||||
|
IN CONST VOID *Fdt,
|
||||||
|
IN INT32 NodeOffset
|
||||||
|
);
|
||||||
|
|
||||||
/* Debug functions. */
|
/* Debug functions. */
|
||||||
CONST
|
CONST
|
||||||
CHAR8
|
CHAR8
|
||||||
|
@ -542,6 +542,42 @@ FdtNodeOffsetByCompatible (
|
|||||||
return fdt_node_offset_by_compatible (Fdt, StartOffset, Compatible);
|
return fdt_node_offset_by_compatible (Fdt, StartOffset, Compatible);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
Retrieve address size for a bus represented in the tree
|
||||||
|
|
||||||
|
@param[in] Fdt The pointer to FDT blob.
|
||||||
|
@param[in] NodeOffset Offset of node to check.
|
||||||
|
|
||||||
|
@return Number of cells in the bus address, or negative error.
|
||||||
|
**/
|
||||||
|
INT32
|
||||||
|
EFIAPI
|
||||||
|
FdtAddressCells (
|
||||||
|
IN CONST VOID *Fdt,
|
||||||
|
IN INT32 NodeOffset
|
||||||
|
)
|
||||||
|
{
|
||||||
|
return fdt_address_cells (Fdt, NodeOffset);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
Retrieve address range size for a bus represented in the tree
|
||||||
|
|
||||||
|
@param[in] Fdt The pointer to FDT blob.
|
||||||
|
@param[in] NodeOffset Offset of node to check.
|
||||||
|
|
||||||
|
@return Number of cells in the bus size, or negative error.
|
||||||
|
**/
|
||||||
|
INT32
|
||||||
|
EFIAPI
|
||||||
|
FdtSizeCells (
|
||||||
|
IN CONST VOID *Fdt,
|
||||||
|
IN INT32 NodeOffset
|
||||||
|
)
|
||||||
|
{
|
||||||
|
return fdt_size_cells (Fdt, NodeOffset);
|
||||||
|
}
|
||||||
|
|
||||||
/* Debug functions. */
|
/* Debug functions. */
|
||||||
CONST
|
CONST
|
||||||
CHAR8
|
CHAR8
|
||||||
|
Loading…
x
Reference in New Issue
Block a user