mirror of
https://github.com/ipxe/ipxe
synced 2026-01-30 04:58:12 +03:00
[fdt] Add fdt_cells() to read cell-based properties such as "reg"
Add fdt_cells() to read scalar values encoded within a cell array, reimplement fdt_u64() as a wrapper around this, and add fdt_u32() for completeness. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -137,8 +137,13 @@ extern const char * fdt_strings ( struct fdt *fdt, unsigned int offset,
|
||||
const char *name, unsigned int *count );
|
||||
extern const char * fdt_string ( struct fdt *fdt, unsigned int offset,
|
||||
const char *name );
|
||||
extern int fdt_cells ( struct fdt *fdt, unsigned int offset, const char *name,
|
||||
unsigned int index, unsigned int count,
|
||||
uint64_t *value );
|
||||
extern int fdt_u64 ( struct fdt *fdt, unsigned int offset, const char *name,
|
||||
uint64_t *value );
|
||||
extern int fdt_u32 ( struct fdt *fdt, unsigned int offset, const char *name,
|
||||
uint32_t *value );
|
||||
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