diff options
Diffstat (limited to 'include/libfdt.h')
| -rw-r--r-- | include/libfdt.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libfdt.h b/include/libfdt.h index d734715..7425aef 100644 --- a/include/libfdt.h +++ b/include/libfdt.h @@ -9,4 +9,7 @@ void __dbg_fdt(void *fdt, int node_offset, int depth); #define dbg_fdt(...) #endif +#define fdt_load_int_ptr(t, c, p)\ + ((c) == 2 ? (t)fdt64_to_cpu(*(fdt64_t *)(p)) : (t)fdt32_to_cpu(*(fdt32_t *)(p))) + #endif |
