Go to the documentation of this file.
35 #include <libfdt_env.h>
41 #define debug(fmt,args...) printf(fmt, ##args)
43 #define debug(fmt,args...)
47 #define DEFAULT_FDT_VERSION 17
58 #define PHANDLE_LEGACY 0x1
59 #define PHANDLE_EPAPR 0x2
60 #define PHANDLE_BOTH 0x3
65 #define streq(a, b) (strcmp((a), (b)) == 0)
66 #define strneq(a, b, n) (strncmp((a), (b), (n)) == 0)
68 #define ALIGN(x, a) (((x) + (a) - 1) & ~((a) - 1))
69 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
92 #define empty_data ((struct data){ })
94 #define for_each_marker(m) \
95 for (; (m); (m) = (m)->next)
96 #define for_each_marker_of_type(m, t) \
110 const void *
p,
int len);
126 #define MAX_PROPNAME_LEN 31
127 #define MAX_NODENAME_LEN 31
164 #define for_each_label_withdel(l0, l) \
165 for ((l) = (l0); (l); (l) = (l)->next)
167 #define for_each_label(l0, l) \
168 for_each_label_withdel(l0, l) \
171 #define for_each_property_withdel(n, p) \
172 for ((p) = (n)->proplist; (p); (p) = (p)->next)
174 #define for_each_property(n, p) \
175 for_each_property_withdel(n, p) \
178 #define for_each_child_withdel(n, c) \
179 for ((c) = (n)->children; (c); (c) = (c)->next_sibling)
181 #define for_each_child(n, c) \
182 for_each_child_withdel(n, c) \