summaryrefslogtreecommitdiff
path: root/arch/xtensa/include/uapi/asm/byteorder.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/xtensa/include/uapi/asm/byteorder.h')
-rw-r--r--arch/xtensa/include/uapi/asm/byteorder.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/xtensa/include/uapi/asm/byteorder.h b/arch/xtensa/include/uapi/asm/byteorder.h
new file mode 100644
index 0000000..54eb631
--- /dev/null
+++ b/arch/xtensa/include/uapi/asm/byteorder.h
@@ -0,0 +1,12 @@
+#ifndef _XTENSA_BYTEORDER_H
+#define _XTENSA_BYTEORDER_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 */