summaryrefslogtreecommitdiffstats
path: root/include/libfdt.h
diff options
context:
space:
mode:
authorGerald Van Baren <vanbaren@cideas.com>2007-03-31 12:13:43 -0400
committerGerald Van Baren <vanbaren@cideas.com>2007-03-31 12:13:43 -0400
commit3af0d587d93e0be5f96e1b30fa41e662f8b0803e (patch)
treeaff9722cacec7ea01fc4a8464df5a2dfce39f703 /include/libfdt.h
parentfa3a74cec73dfd06a5ae35a9a3368200273aaa71 (diff)
downloadblackbird-obmc-uboot-3af0d587d93e0be5f96e1b30fa41e662f8b0803e.tar.gz
blackbird-obmc-uboot-3af0d587d93e0be5f96e1b30fa41e662f8b0803e.zip
libfdt: Enhanced and published fdt_next_tag()
Enhanced the formerly private function _fdt_next_tag() to allow stepping through the tree, used to produce a human-readable dump, and made it part of the published interface. Also added some comments.
Diffstat (limited to 'include/libfdt.h')
-rw-r--r--include/libfdt.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libfdt.h b/include/libfdt.h
index acdc72eac6..c4b3c249bf 100644
--- a/include/libfdt.h
+++ b/include/libfdt.h
@@ -81,6 +81,9 @@ struct fdt_property *fdt_get_property(const void *fdt, int nodeoffset,
void *fdt_getprop(const void *fdt, int nodeoffset,
const char *name, int *lenp);
+uint32_t fdt_next_tag(const void *fdt, int offset,
+ int *nextoffset, char **namep);
+
/* Write-in-place functions */
int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name,
const void *val, int len);
OpenPOWER on IntegriCloud