X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-mips%2Fmach-ip32%2Fmangle-port.h;h=81320eb553249f6fcb8b2fdadda303ed709fd023;hb=97bf2856c6014879bd04983a3e9dfcdac1e7fe85;hp=6842af46eeff332b13075229946f83444b69196f;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/include/asm-mips/mach-ip32/mangle-port.h b/include/asm-mips/mach-ip32/mangle-port.h index 6842af46e..81320eb55 100644 --- a/include/asm-mips/mach-ip32/mangle-port.h +++ b/include/asm-mips/mach-ip32/mangle-port.h @@ -4,6 +4,7 @@ * for more details. * * Copyright (C) 2003 Ladislav Michl + * Copyright (C) 2004 Ralf Baechle */ #ifndef __ASM_MACH_IP32_MANGLE_PORT_H #define __ASM_MACH_IP32_MANGLE_PORT_H @@ -11,5 +12,15 @@ #define __swizzle_addr_b(port) ((port) ^ 3) #define __swizzle_addr_w(port) ((port) ^ 2) #define __swizzle_addr_l(port) (port) +#define __swizzle_addr_q(port) (port) + +# define ioswabb(a,x) (x) +# define __mem_ioswabb(a,x) (x) +# define ioswabw(a,x) (x) +# define __mem_ioswabw(a,x) cpu_to_le16(x) +# define ioswabl(a,x) (x) +# define __mem_ioswabl(a,x) cpu_to_le32(x) +# define ioswabq(a,x) (x) +# define __mem_ioswabq(a,x) cpu_to_le32(x) #endif /* __ASM_MACH_IP32_MANGLE_PORT_H */