V4L/DVB (10069): Add ov7725 support to ov772x driver
[safe/jmp/linux-2.6] / include / asm-m68k / byteorder.h
1 #ifndef _M68K_BYTEORDER_H
2 #define _M68K_BYTEORDER_H
3
4 #include <asm/types.h>
5 #include <linux/compiler.h>
6
7 #define __BIG_ENDIAN
8 #define __SWAB_64_THRU_32__
9
10 static inline __attribute_const__ __u32 __arch_swab32(__u32 val)
11 {
12         __asm__("rolw #8,%0; swap %0; rolw #8,%0" : "=d" (val) : "0" (val));
13         return val;
14 }
15 #define __arch_swab32 __arch_swab32
16
17 #include <linux/byteorder.h>
18
19 #endif /* _M68K_BYTEORDER_H */