[fdt] Provide the ability to create a device tree for a booted OS

Provide fdt_create() to create a device tree to be passed to a booted
operating system.  The device tree will be created from the FDT image
(if present), falling back to the system device tree (if present).

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2025-03-28 14:17:29 +00:00
parent 666929e311
commit 761f43ce12
2 changed files with 81 additions and 0 deletions

View File

@@ -109,5 +109,7 @@ extern int fdt_mac ( struct fdt *fdt, unsigned int offset,
struct net_device *netdev );
extern int fdt_parse ( struct fdt *fdt, struct fdt_header *hdr,
size_t max_len );
extern int fdt_create ( struct fdt_header **hdr );
extern void fdt_remove ( struct fdt_header *hdr );
#endif /* _IPXE_FDT_H */