Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * This file is subject to the terms and conditions of the GNU General Public
0003  * License.  See the file "COPYING" in the main directory of this archive
0004  * for more details.
0005  *
0006  * Copyright (C) 2003 Ladislav Michl
0007  * Copyright (C) 2004 Ralf Baechle
0008  */
0009 #ifndef __ASM_MACH_IP32_MANGLE_PORT_H
0010 #define __ASM_MACH_IP32_MANGLE_PORT_H
0011 
0012 #define __swizzle_addr_b(port)  ((port) ^ 3)
0013 #define __swizzle_addr_w(port)  ((port) ^ 2)
0014 #define __swizzle_addr_l(port)  (port)
0015 #define __swizzle_addr_q(port)  (port)
0016 
0017 # define ioswabb(a, x)      (x)
0018 # define __mem_ioswabb(a, x)    (x)
0019 # define ioswabw(a, x)      (x)
0020 # define __mem_ioswabw(a, x)    ((__force u16)cpu_to_le16(x))
0021 # define ioswabl(a, x)      (x)
0022 # define __mem_ioswabl(a, x)    ((__force u32)cpu_to_le32(x))
0023 # define ioswabq(a, x)      (x)
0024 # define __mem_ioswabq(a, x)    ((__force u64)cpu_to_le64(x))
0025 
0026 #endif /* __ASM_MACH_IP32_MANGLE_PORT_H */