|
@@ -58,6 +58,13 @@
|
|
#define memeq(p, q, n) (memcmp((p), (q), (n)) == 0)
|
|
#define memeq(p, q, n) (memcmp((p), (q), (n)) == 0)
|
|
#define streq(p, q) (strcmp((p), (q)) == 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);
|
|
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);
|
|
const char *_fdt_find_string(const char *strtab, int tabsize, const char *s);
|
|
int _fdt_node_end_offset(void *fdt, int nodeoffset);
|
|
int _fdt_node_end_offset(void *fdt, int nodeoffset);
|