]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[fdt] Add fdt_cells() to read cell-based properties such as "reg"
authorMichael Brown <mcb30@ipxe.org>
Tue, 15 Apr 2025 19:14:03 +0000 (20:14 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 15 Apr 2025 19:24:19 +0000 (20:24 +0100)
commit99322fd3b37abd88867ccc3e9f60df0195730036
tree69d3e97fc97bb2ab3e11f74b26ecd8813292e55e
parent2c406ec0b1bb2e8b858bdb43e2922a7adee3917e
[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>
src/core/fdt.c
src/include/ipxe/fdt.h
src/tests/fdt_test.c