boot/efi: rework address-cells and size-cells handling

see Devicetree Specification,
section 2.3.5 #address-cells and #size-cells

The #address-cells and #size-cells properties may be used in any
device node that has children in the devicetree hierarchy and
describes how child device nodes should be addressed.

The #address-cells and #size-cells properties are not inherited from
ancestors in the devicetree. They shall be explicitly defined.

If missing, a client program should assume a default value of 2
for #address-cells, and a value of 1 for #size-cells.

Change-Id: Iafed49358540f8ac7aa673c3dc0191c9b580250b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5144
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Alex von Gluck IV <[email protected]>
This commit is contained in:
David Karoly
2022-03-24 13:24:22 +00:00
committed by waddlesplash
parent f5ea62c478
commit 9d65dbf1cb
5 changed files with 53 additions and 28 deletions
@@ -9,7 +9,7 @@
#include <SupportDefs.h>
void arch_handle_fdt(const void* fdt, int node, uint32 addressCells, uint32 sizeCells);
void arch_handle_fdt(const void* fdt, int node);
void arch_dtb_set_kernel_args(void);