// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) /* * libfdt - Flat Device Tree manipulation * Copyright (C) 2014 David Gibson <[email protected]> * Copyright (C) 2018 embedded brains GmbH */ #include "libfdt_env.h" #include <fdt.h> #include <libfdt.h> #include "libfdt_internal.h" static int fdt_cells(const void *fdt, int nodeoffset, const char *name) { … } int fdt_address_cells(const void *fdt, int nodeoffset) { … } int fdt_size_cells(const void *fdt, int nodeoffset) { … } /* This function assumes that [address|size]_cells is 1 or 2 */ int fdt_appendprop_addrrange(void *fdt, int parent, int nodeoffset, const char *name, uint64_t addr, uint64_t size) { … }