diff options
author | Wolfgang Denk <wd@denx.de> | 2008-03-23 00:52:58 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-03-23 00:52:58 +0100 |
commit | 161efeb011ecaeb7e9a52dd56d88b94c25c5db1f (patch) | |
tree | 8a351c9921418fcaebdd8f2a0856d779b179cff4 /libfdt/libfdt_internal.h | |
parent | 6887cb6817dac9c6e8fb43b560c58b6a37926529 (diff) | |
parent | 01026a6e613e1cfe580122fb5350677025f896fa (diff) | |
download | u-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.h | 7 |
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); |