1#ifndef _LIBFDT_INTERNAL_H
2#define _LIBFDT_INTERNAL_H
56#define FDT_ALIGN(x, a) (((x) + (a) - 1) & ~((a) - 1))
57#define FDT_TAGALIGN(x) (FDT_ALIGN((x), FDT_TAGSIZE))
59#define FDT_CHECK_HEADER(fdt) \
62 if ((__err = fdt_check_header(fdt)) != 0) \
67_fdt_check_node_offset (
73_fdt_check_prop_offset (
91static inline const void *
97 return (
const char *)fdt + fdt_off_dt_struct (fdt) + offset;
106 return (
void *)(uintptr_t)_fdt_offset_ptr (fdt, offset);
117 ((
const char *)fdt + fdt_off_mem_rsvmap (fdt));
119 return rsv_table + n;
128 return (
void *)(uintptr_t)_fdt_mem_rsv (fdt, n);
131#define FDT_SW_MAGIC (~FDT_MAGIC)