summaryrefslogtreecommitdiff
path: root/arch/arm/include/uapi/asm/byteorder.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2012-10-12 16:05:52 +0400
committerDavid Howells <dhowells@redhat.com>2012-10-12 16:05:52 +0400
commitcb8db5d4578ac9d996200ab59aa655344d305f5b (patch)
tree32b71e0686a2c56b9390bdc47b3e0e0ab5552212 /arch/arm/include/uapi/asm/byteorder.h
parent4f1cd91497774488ed16119ec3f54b3daf1561de (diff)
downloadlinux-cb8db5d4578ac9d996200ab59aa655344d305f5b.tar.xz
UAPI: (Scripted) Disintegrate arch/arm/include/asm
Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Michael Kerrisk <mtk.manpages@gmail.com> Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Acked-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'arch/arm/include/uapi/asm/byteorder.h')
-rw-r--r--arch/arm/include/uapi/asm/byteorder.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/arm/include/uapi/asm/byteorder.h b/arch/arm/include/uapi/asm/byteorder.h
new file mode 100644
index 000000000000..77379748b171
--- /dev/null
+++ b/arch/arm/include/uapi/asm/byteorder.h
@@ -0,0 +1,25 @@
+/*
+ * arch/arm/include/asm/byteorder.h
+ *
+ * ARM Endian-ness. In little endian mode, the data bus is connected such
+ * that byte accesses appear as:
+ * 0 = d0...d7, 1 = d8...d15, 2 = d16...d23, 3 = d24...d31
+ * and word accesses (data or instruction) appear as:
+ * d0...d31
+ *
+ * When in big endian mode, byte accesses appear as:
+ * 0 = d24...d31, 1 = d16...d23, 2 = d8...d15, 3 = d0...d7
+ * and word accesses (data or instruction) appear as:
+ * d0...d31
+ */
+#ifndef __ASM_ARM_BYTEORDER_H
+#define __ASM_ARM_BYTEORDER_H
+
+#ifdef __ARMEB__
+#include <linux/byteorder/big_endian.h>
+#else
+#include <linux/byteorder/little_endian.h>
+#endif
+
+#endif
+