1 /* Public domain. */ 2 3 #ifndef _ASM_BYTEORDER_H 4 #define _ASM_BYTEORDER_H 5 6 #include <sys/endian.h> 7 8 #define le16_to_cpu(x) letoh16(x) 9 #define le32_to_cpu(x) letoh32(x) 10 #define be16_to_cpu(x) betoh16(x) 11 #define be32_to_cpu(x) betoh32(x) 12 #define le16_to_cpup(x) lemtoh16(x) 13 #define le32_to_cpup(x) lemtoh32(x) 14 #define be16_to_cpup(x) bemtoh16(x) 15 #define be32_to_cpup(x) bemtoh32(x) 16 #define get_unaligned_le32(x) lemtoh32(x) 17 #define cpu_to_le16(x) htole16(x) 18 #define cpu_to_le32(x) htole32(x) 19 #define cpu_to_be16(x) htobe16(x) 20 #define cpu_to_be32(x) htobe32(x) 21 22 #endif 23