00001 #ifndef _BYTEORDER_H
00002 #define _BYTEORDER_H
00003
00004 #define __LITTLE_ENDIAN 1234
00005
00006 #include <swab.h>
00007
00008 #define cpu_to_le32(x) ((unsigned int)(x))
00009 #define le32_to_cpu(x) ((unsigned int)(x))
00010 #define cpu_to_le16(x) ((unsigned short)(x))
00011 #define le16_to_cpu(x) ((unsigned short)(x))
00012 #define cpu_to_be32(x) swab32((x))
00013 #define be32_to_cpu(x) swab32((x))
00014 #define cpu_to_be16(x) swab16((x))
00015 #define be16_to_cpu(x) swab16((x))
00016
00017 #endif