summaryrefslogtreecommitdiff
path: root/libfdt/libfdt_internal.h
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2008-03-23 00:52:58 +0100
committerWolfgang Denk <wd@denx.de>2008-03-23 00:52:58 +0100
commit161efeb011ecaeb7e9a52dd56d88b94c25c5db1f (patch)
tree8a351c9921418fcaebdd8f2a0856d779b179cff4 /libfdt/libfdt_internal.h
parent6887cb6817dac9c6e8fb43b560c58b6a37926529 (diff)
parent01026a6e613e1cfe580122fb5350677025f896fa (diff)
downloadu-boot-imx-161efeb011ecaeb7e9a52dd56d88b94c25c5db1f.zip
u-boot-imx-161efeb011ecaeb7e9a52dd56d88b94c25c5db1f.tar.gz
u-boot-imx-161efeb011ecaeb7e9a52dd56d88b94c25c5db1f.tar.bz2
Merge branch 'master' of git://www.denx.de/git/u-boot-fdt
Diffstat (limited to 'libfdt/libfdt_internal.h')
-rw-r--r--libfdt/libfdt_internal.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libfdt/libfdt_internal.h b/libfdt/libfdt_internal.h
index 1e60936..52e1b8d 100644
--- a/libfdt/libfdt_internal.h
+++ b/libfdt/libfdt_internal.h
@@ -58,6 +58,13 @@
#define memeq(p, q, n) (memcmp((p), (q), (n)) == 0)
#define streq(p, q) (strcmp((p), (q)) == 0)
+#define CHECK_HEADER(fdt) \
+ { \
+ int err; \
+ if ((err = fdt_check_header(fdt)) != 0) \
+ return err; \
+ }
+
uint32_t _fdt_next_tag(const void *fdt, int startoffset, int *nextoffset);
const char *_fdt_find_string(const char *strtab, int tabsize, const char *s);
int _fdt_node_end_offset(void *fdt, int nodeoffset);