diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2007-10-10 17:12:12 +1000 |
---|---|---|
committer | Jon Loeliger <jdl@freescale.com> | 2007-10-15 08:31:52 -0500 |
commit | fd1bf3a5ae46962528ef89a824261a88830758a2 (patch) | |
tree | 9d141fecf1d7d495b3800993e2ecc810f25a468a /tests/tests.h | |
parent | ad9593f229362782b953da4b805df713e8468df0 (diff) | |
download | dtc-fd1bf3a5ae46962528ef89a824261a88830758a2.zip dtc-fd1bf3a5ae46962528ef89a824261a88830758a2.tar.gz dtc-fd1bf3a5ae46962528ef89a824261a88830758a2.tar.bz2 |
libfdt: Add functions to get/add/delete memory reservemap entries
This patch adds functions to libfdt for accessing the memory
reservation map section of a device tree blob. fdt_num_mem_rsv()
retreives the number of reservation entries in a dtb, and
fdt_get_mem_rsv() retreives a specific reservation entry.
fdt_add_mem_rsv() adds a new entry, and fdt_del_mem_rsv() removes a
specific numbered entry.
Testcases for these new functions are also included.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'tests/tests.h')
-rw-r--r-- | tests/tests.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/tests.h b/tests/tests.h index 62716ce..97f15d8 100644 --- a/tests/tests.h +++ b/tests/tests.h @@ -108,6 +108,8 @@ static inline void *xrealloc(void *p, size_t size) return p; } +void check_mem_rsv(void *fdt, int n, uint64_t addr, uint64_t size); + void check_property(void *fdt, int nodeoffset, const char *name, int len, const void *val); #define check_property_typed(fdt, nodeoffset, name, val) \ |