[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT PATCH 0/8] Add frequently usd APIs to fdt library (series#2)



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.

---
This series depends on:
[UNIKRAFT PATCHv3  00/25] Follow up patches for Arm64 support series#1

Wei Chen (8):
  lib/fdt: Introduce fdt_getprop_u32_by_offset helper
  lib/fdt: Introduce a helper of fdt_get_cells
  lib/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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.