summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/include/asm/byteorder.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/xtensa/include/asm/byteorder.h')
-rw-r--r--arch/xtensa/include/asm/byteorder.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/xtensa/include/asm/byteorder.h b/arch/xtensa/include/asm/byteorder.h
new file mode 100644
index 000000000000..329b94591ca4
--- /dev/null
+++ b/arch/xtensa/include/asm/byteorder.h
@@ -0,0 +1,14 @@
+#ifndef _XTENSA_BYTEORDER_H
+#define _XTENSA_BYTEORDER_H
+
+#include <asm/swab.h>
+
+#ifdef __XTENSA_EL__
+#include <linux/byteorder/little_endian.h>
+#elif defined(__XTENSA_EB__)
+#include <linux/byteorder/big_endian.h>
+#else
+# error processor byte order undefined!
+#endif
+
+#endif /* _XTENSA_BYTEORDER_H */
OpenPOWER on IntegriCloud