0001
0002 #ifndef _ARCH_POWERPC_BOOT_LIBFDT_ENV_H
0003 #define _ARCH_POWERPC_BOOT_LIBFDT_ENV_H
0004
0005 #include <types.h>
0006 #include <string.h>
0007
0008 #define INT_MAX ((int)(~0U>>1))
0009 #define UINT32_MAX ((u32)~0U)
0010 #define INT32_MAX ((s32)(UINT32_MAX >> 1))
0011
0012 #include "of.h"
0013
0014 typedef unsigned long uintptr_t;
0015
0016 typedef __be16 fdt16_t;
0017 typedef __be32 fdt32_t;
0018 typedef __be64 fdt64_t;
0019
0020 #define fdt16_to_cpu(x) be16_to_cpu(x)
0021 #define cpu_to_fdt16(x) cpu_to_be16(x)
0022 #define fdt32_to_cpu(x) be32_to_cpu(x)
0023 #define cpu_to_fdt32(x) cpu_to_be32(x)
0024 #define fdt64_to_cpu(x) be64_to_cpu(x)
0025 #define cpu_to_fdt64(x) cpu_to_be64(x)
0026
0027 #endif