From 091463c1057f50b47156a138d7d1dbd09494a6d5 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Mon, 11 Oct 2021 13:58:11 +0300 Subject: Moved some functions to common/ --- include/libfdt.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/libfdt.h') diff --git a/include/libfdt.h b/include/libfdt.h index 406b6d7..aa95bd3 100644 --- a/include/libfdt.h +++ b/include/libfdt.h @@ -2,6 +2,15 @@ #define APOS_LIBFDT_H #include "../dtc/libfdt/libfdt.h" +/* apos additions, implementation can be found in common/fdt.c */ +struct cell_info_t { + uint32_t size_cells; + uint32_t addr_cells; +}; + +struct cell_info_t get_cellinfo(void *fdt, int offset); +struct cell_info_t get_reginfo(void *fdt, const char *path); + #if defined(DEBUG) void __dbg_fdt(void *fdt, int node_offset, int depth); #define dbg_fdt(fdt) __dbg_fdt(fdt, 0, 0) -- cgit v1.3