[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT PATCHv2 0/8]Add frequently usd APIs to fdt
Arm64 devices' libraries will access device tree to get lots of properties. We will get device addresses, interrupts in each device library. In this case, we will find device node by offset, get address cells, size cells and interrupt cells everywhere. This patch series introduces serveral APIs in lib/fdt to reduce the redundant calls of fdt functions. --- Changes: v1->v2: rebase to latest code. Jia He (8): lib/fdt: Introduce fdt_getprop_u32_by_offset helper lib/fdt: Introduce a helper of fdt_get_cells plat/fdt: Remove redundant code for fdt_address/size_cells lib/fdt: Add a fdt_interrupr_cells helper to parse irq lib/fdt: Introduce a fdt_get_address helper lib/fdt: Add fdt_get_interrupt helper lib/fdt: Introduce fdt_node_offset_by_compatible_list helper lib/fdt: Add two macros to list iterate all compatible nodes lib/fdt/Makefile.uk | 1 + lib/fdt/exportsyms.uk | 5 ++ lib/fdt/fdt_addresses.c | 66 ++++++++++----- lib/fdt/fdt_interrupts.c | 112 +++++++++++++++++++++++++ lib/fdt/fdt_ro.c | 55 ++++++++++++ lib/fdt/include/libfdt.h | 177 ++++++++++++++++++++++++++++++++++++++- 6 files changed, 391 insertions(+), 25 deletions(-) create mode 100644 lib/fdt/fdt_interrupts.c -- 2.17.1 _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |