summaryrefslogtreecommitdiffstats
path: root/include/sys/byteorder.h
diff options
context:
space:
mode:
authorbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>2008-03-12 23:48:28 +0000
committerbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>2008-03-12 23:48:28 +0000
commit36e6f86146432207789a0e2027edf8d52326bad7 (patch)
treede2f93798c2583aceb02aacaf3984c8520031d58 /include/sys/byteorder.h
parent2f5d55aac5bfe0931a92f222ebc68c1546b227d9 (diff)
- Add some more missing headers
- Map the LE/BE_* byteorder macros to the linux versions - More minor vnodes fixes git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@41 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
Diffstat (limited to 'include/sys/byteorder.h')
-rw-r--r--include/sys/byteorder.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/include/sys/byteorder.h b/include/sys/byteorder.h
index 3b626163d..7e7d04809 100644
--- a/include/sys/byteorder.h
+++ b/include/sys/byteorder.h
@@ -1,4 +1,13 @@
-#ifndef _SPL_ZMOD_H
-#define _SPL_ZMOD_H
+#ifndef _SPL_BYTEORDER_H
+#define _SPL_BYTEORDER_H
-#endif /* SPL_ZMOD_H */
+#include <asm/byteorder.h>
+
+#define LE_16(x) cpu_to_le16(x)
+#define LE_32(x) cpu_to_le32(x)
+#define LE_64(x) cpu_to_le64(x)
+#define BE_16(x) cpu_to_be16(x)
+#define BE_32(x) cpu_to_be32(x)
+#define BE_64(x) cpu_to_be64(x)
+
+#endif /* SPL_BYTEORDER_H */