libfdt: add fdt type definitions
authorRob Herring <robh@kernel.org>
Wed, 29 Apr 2015 21:02:30 +0000 (16:02 -0500)
committerRob Herring <robh@kernel.org>
Wed, 29 Apr 2015 22:17:17 +0000 (17:17 -0500)
In preparation for libfdt/dtc update, add the new fdt specific types.

Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linuxppc-dev@lists.ozlabs.org
arch/arm/boot/compressed/libfdt_env.h
arch/powerpc/boot/libfdt_env.h
arch/powerpc/boot/of.h
include/linux/libfdt_env.h

index 1f4e71876b00a0719c57b40ff9805accbb1f45bd..17ae0f3efac8e71d45043252e32298772ee43237 100644 (file)
@@ -5,6 +5,10 @@
 #include <linux/string.h>
 #include <asm/byteorder.h>
 
+typedef __be16 fdt16_t;
+typedef __be32 fdt32_t;
+typedef __be64 fdt64_t;
+
 #define fdt16_to_cpu(x)                be16_to_cpu(x)
 #define cpu_to_fdt16(x)                cpu_to_be16(x)
 #define fdt32_to_cpu(x)                be32_to_cpu(x)
index 8dcd744e5728c86e889bc2a9c4dda71c0c8787f0..7e3789ea396b88103644cf14726337fb98b00392 100644 (file)
@@ -10,6 +10,10 @@ typedef u32 uint32_t;
 typedef u64 uint64_t;
 typedef unsigned long uintptr_t;
 
+typedef __be16 fdt16_t;
+typedef __be32 fdt32_t;
+typedef __be64 fdt64_t;
+
 #define fdt16_to_cpu(x)                be16_to_cpu(x)
 #define cpu_to_fdt16(x)                cpu_to_be16(x)
 #define fdt32_to_cpu(x)                be32_to_cpu(x)
index 5603320dce07dc55b5c84f36dc834617f6db4597..53f8f27f94e4e57d37d0f8bb6ebc9a17e32b506e 100644 (file)
@@ -21,7 +21,9 @@ int of_setprop(const void *phandle, const char *name, const void *buf,
 /* Console functions */
 void of_console_init(void);
 
+typedef u16                    __be16;
 typedef u32                    __be32;
+typedef u64                    __be64;
 
 #ifdef __LITTLE_ENDIAN__
 #define cpu_to_be16(x) swab16(x)
index 01508c7b8c812b1965c7d382ed996eada23280b5..2a663c6bb4285851a7a0270728ad7c2ddcab33ef 100644 (file)
@@ -5,6 +5,10 @@
 
 #include <asm/byteorder.h>
 
+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)