mirror of
https://github.com/ipxe/ipxe
synced 2025-12-12 14:32:49 +03:00
[fdt] Provide fdt_reg() for unsized single-entry regions
Many region types (e.g. I2C bus addresses) can only ever contain a single region with no size cells specified. Provide fdt_reg() to reduce boilerplate in this common use case. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -190,6 +190,8 @@ extern int fdt_u32 ( struct fdt *fdt, unsigned int offset, const char *name,
|
||||
extern uint32_t fdt_phandle ( struct fdt *fdt, unsigned int offset );
|
||||
extern void fdt_reg_cells ( struct fdt *fdt, unsigned int offset,
|
||||
struct fdt_reg_cells *regs );
|
||||
extern int fdt_parent_reg_cells ( struct fdt *fdt, unsigned int offset,
|
||||
struct fdt_reg_cells *regs );
|
||||
extern int fdt_reg_count ( struct fdt *fdt, unsigned int offset,
|
||||
struct fdt_reg_cells *regs );
|
||||
extern int fdt_reg_address ( struct fdt *fdt, unsigned int offset,
|
||||
@@ -198,6 +200,7 @@ extern int fdt_reg_address ( struct fdt *fdt, unsigned int offset,
|
||||
extern int fdt_reg_size ( struct fdt *fdt, unsigned int offset,
|
||||
struct fdt_reg_cells *regs, unsigned int index,
|
||||
uint64_t *size );
|
||||
extern int fdt_reg ( struct fdt *fdt, unsigned int offset, uint64_t *region );
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user