]> git.ozlabs.org Git - yaboot.git/blobdiff - include/byteorder.h
Commit yaboot 1.3.0
[yaboot.git] / include / byteorder.h
diff --git a/include/byteorder.h b/include/byteorder.h
new file mode 100644 (file)
index 0000000..2403afe
--- /dev/null
@@ -0,0 +1,13 @@
+#ifndef _BYTEORDER_H_
+#define _BYTEORDER_H_
+
+#include "swab.h"
+
+# define le64_to_cpu(x)  swab64((x))
+# define cpu_to_le64(x)  swab64((x))
+# define le32_to_cpu(x)  swab32((x))
+# define cpu_to_le32(x)  swab32((x))
+# define le16_to_cpu(x)  swab16((x))
+# define cpu_to_le16(x)  swab16((x))
+
+#endif /* _BYTEORDER_H_ */