Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

libfdt: add fdt type definitions

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

+14
+4
arch/arm/boot/compressed/libfdt_env.h
··· 5 5 #include <linux/string.h> 6 6 #include <asm/byteorder.h> 7 7 8 + typedef __be16 fdt16_t; 9 + typedef __be32 fdt32_t; 10 + typedef __be64 fdt64_t; 11 + 8 12 #define fdt16_to_cpu(x) be16_to_cpu(x) 9 13 #define cpu_to_fdt16(x) cpu_to_be16(x) 10 14 #define fdt32_to_cpu(x) be32_to_cpu(x)
+4
arch/powerpc/boot/libfdt_env.h
··· 10 10 typedef u64 uint64_t; 11 11 typedef unsigned long uintptr_t; 12 12 13 + typedef __be16 fdt16_t; 14 + typedef __be32 fdt32_t; 15 + typedef __be64 fdt64_t; 16 + 13 17 #define fdt16_to_cpu(x) be16_to_cpu(x) 14 18 #define cpu_to_fdt16(x) cpu_to_be16(x) 15 19 #define fdt32_to_cpu(x) be32_to_cpu(x)
+2
arch/powerpc/boot/of.h
··· 21 21 /* Console functions */ 22 22 void of_console_init(void); 23 23 24 + typedef u16 __be16; 24 25 typedef u32 __be32; 26 + typedef u64 __be64; 25 27 26 28 #ifdef __LITTLE_ENDIAN__ 27 29 #define cpu_to_be16(x) swab16(x)
+4
include/linux/libfdt_env.h
··· 5 5 6 6 #include <asm/byteorder.h> 7 7 8 + typedef __be16 fdt16_t; 9 + typedef __be32 fdt32_t; 10 + typedef __be64 fdt64_t; 11 + 8 12 #define fdt32_to_cpu(x) be32_to_cpu(x) 9 13 #define cpu_to_fdt32(x) cpu_to_be32(x) 10 14 #define fdt64_to_cpu(x) be64_to_cpu(x)