2005-04-16 18:20:36 -04:00
|
|
|
#ifndef _M68K_BYTEORDER_H
|
|
|
|
#define _M68K_BYTEORDER_H
|
|
|
|
|
|
|
|
#include <asm/types.h>
|
|
|
|
#include <linux/compiler.h>
|
|
|
|
|
2008-11-18 14:45:23 -05:00
|
|
|
#define __BIG_ENDIAN
|
|
|
|
#define __SWAB_64_THRU_32__
|
2005-04-16 18:20:36 -04:00
|
|
|
|
2008-11-18 14:45:23 -05:00
|
|
|
static inline __attribute_const__ __u32 __arch_swab32(__u32 val)
|
2005-04-16 18:20:36 -04:00
|
|
|
{
|
|
|
|
__asm__("rolw #8,%0; swap %0; rolw #8,%0" : "=d" (val) : "0" (val));
|
|
|
|
return val;
|
|
|
|
}
|
2008-11-18 14:45:23 -05:00
|
|
|
#define __arch_swab32 __arch_swab32
|
2005-04-16 18:20:36 -04:00
|
|
|
|
2008-11-18 14:45:23 -05:00
|
|
|
#include <linux/byteorder.h>
|
2005-04-16 18:20:36 -04:00
|
|
|
|
|
|
|
#endif /* _M68K_BYTEORDER_H */
|