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, 2004 Ralf Baechle
0007  */
0008 #ifndef __ASM_MACH_IP27_MANGLE_PORT_H
0009 #define __ASM_MACH_IP27_MANGLE_PORT_H
0010 
0011 #define __swizzle_addr_b(port)  ((port) ^ 3)
0012 #define __swizzle_addr_w(port)  ((port) ^ 2)
0013 #define __swizzle_addr_l(port)  (port)
0014 #define __swizzle_addr_q(port)  (port)
0015 
0016 # define ioswabb(a, x)      (x)
0017 # define __mem_ioswabb(a, x)    (x)
0018 # define ioswabw(a, x)      (x)
0019 # define __mem_ioswabw(a, x)    ((__force u16)cpu_to_le16(x))
0020 # define ioswabl(a, x)      (x)
0021 # define __mem_ioswabl(a, x)    ((__force u32)cpu_to_le32(x))
0022 # define ioswabq(a, x)      (x)
0023 # define __mem_ioswabq(a, x)    ((__force u64)cpu_to_le64(x))
0024 
0025 #endif /* __ASM_MACH_IP27_MANGLE_PORT_H */