summaryrefslogtreecommitdiff
path: root/include/libfdt.h
diff options
context:
space:
mode:
authorGerald Van Baren <vanbaren@cideas.com>2007-04-14 22:46:41 -0400
committerGerald Van Baren <vanbaren@cideas.com>2007-04-14 22:46:41 -0400
commit3f9f08cf91c8a6949a5d78a18bd3d8df7b86d888 (patch)
tree1b8be22f97b41128b210f98dc0262d606ce56913 /include/libfdt.h
parent64dbbd40c58349b64f43fd33dbb5ca0adb67d642 (diff)
downloadu-boot-imx-3f9f08cf91c8a6949a5d78a18bd3d8df7b86d888.zip
u-boot-imx-3f9f08cf91c8a6949a5d78a18bd3d8df7b86d888.tar.gz
u-boot-imx-3f9f08cf91c8a6949a5d78a18bd3d8df7b86d888.tar.bz2
Add some utilities to manipulate the reserved memory map.
Diffstat (limited to 'include/libfdt.h')
-rw-r--r--include/libfdt.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libfdt.h b/include/libfdt.h
index 61f56ec..f8bac73 100644
--- a/include/libfdt.h
+++ b/include/libfdt.h
@@ -86,6 +86,8 @@ void *fdt_getprop(const void *fdt, int nodeoffset,
uint32_t fdt_next_tag(const void *fdt, int offset,
int *nextoffset, char **namep);
+int fdt_num_reservemap(void *fdt, int *used, int *total);
+int fdt_get_reservemap(void *fdt, int n, struct fdt_reserve_entry *re);
/* Write-in-place functions */
int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name,
@@ -99,6 +101,8 @@ int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name,
int fdt_nop_property(void *fdt, int nodeoffset, const char *name);
int fdt_nop_node(void *fdt, int nodeoffset);
+int fdt_insert_reservemap_entry(void *fdt, int n, uint64_t addr, uint64_t size);
+
/* Sequential-write functions */
int fdt_create(void *buf, int bufsize);
@@ -115,6 +119,7 @@ int fdt_property(void *fdt, const char *name, const void *val, int len);
fdt_property(fdt, name, str, strlen(str)+1)
int fdt_end_node(void *fdt);
int fdt_finish(void *fdt);
+int fdt_replace_reservemap_entry(void *fdt, int n, uint64_t addr, uint64_t size);
/* Read-write functions */
int fdt_open_into(void *fdt, void *buf, int bufsize);