diff options
author | Wolfgang Denk <wd@denx.de> | 2008-03-25 00:12:54 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-03-25 00:12:54 +0100 |
commit | b38d7fc2f1d27957a810950f07c27f2be353f50f (patch) | |
tree | b947276514cda8100cfef630f624e563378cbca3 /libfdt/libfdt_internal.h | |
parent | 55774b512fdf63c0516d441cc5da7c54bbffb7f2 (diff) | |
parent | 47310715f4316a3677b206acf9f83adb7949ecd1 (diff) | |
download | u-boot-imx-b38d7fc2f1d27957a810950f07c27f2be353f50f.zip u-boot-imx-b38d7fc2f1d27957a810950f07c27f2be353f50f.tar.gz u-boot-imx-b38d7fc2f1d27957a810950f07c27f2be353f50f.tar.bz2 |
Merge branch 'master' of /home/wd/git/u-boot/master/
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); |