X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Flibfdt_env.h;h=3e3defc76ca36068a297dab17623d9525e288ec4;hb=25b29921b2f5a9a133c6196afaf05fce1be9927b;hp=ab5c3012dbd4ac2fd6b3908a380ed271b0595b3a;hpb=6de5420370f0a796c325579f49a47d859ea1b1da;p=oweals%2Fu-boot.git diff --git a/include/libfdt_env.h b/include/libfdt_env.h index ab5c3012db..3e3defc76c 100644 --- a/include/libfdt_env.h +++ b/include/libfdt_env.h @@ -21,21 +21,18 @@ #ifndef _LIBFDT_ENV_H #define _LIBFDT_ENV_H -#ifdef USE_HOSTCC -#include -#include -#else -#include -#include -#endif /* USE_HOSTCC */ +#include "compiler.h" +#include "linux/types.h" -#include -#include -extern struct fdt_header *fdt; /* Pointer to the working fdt */ +extern struct fdt_header *working_fdt; /* Pointer to the working fdt */ -#define fdt32_to_cpu(x) __be32_to_cpu(x) -#define cpu_to_fdt32(x) __cpu_to_be32(x) -#define fdt64_to_cpu(x) __be64_to_cpu(x) -#define cpu_to_fdt64(x) __cpu_to_be64(x) +typedef __be16 fdt16_t; +typedef __be32 fdt32_t; +typedef __be64 fdt64_t; + +#define fdt32_to_cpu(x) be32_to_cpu(x) +#define cpu_to_fdt32(x) cpu_to_be32(x) +#define fdt64_to_cpu(x) be64_to_cpu(x) +#define cpu_to_fdt64(x) cpu_to_be64(x) #endif /* _LIBFDT_ENV_H */