Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Copyright (C) 2003, 2004 Ralf Baechle
0004  */
0005 #ifndef __ASM_MACH_IP30_MANGLE_PORT_H
0006 #define __ASM_MACH_IP30_MANGLE_PORT_H
0007 
0008 #define __swizzle_addr_b(port)  ((port)^3)
0009 #define __swizzle_addr_w(port)  ((port)^2)
0010 #define __swizzle_addr_l(port)  (port)
0011 #define __swizzle_addr_q(port)  (port)
0012 
0013 #define ioswabb(a, x)       (x)
0014 #define __mem_ioswabb(a, x) (x)
0015 #define ioswabw(a, x)       (x)
0016 #define __mem_ioswabw(a, x) ((__force u16)cpu_to_le16(x))
0017 #define ioswabl(a, x)       (x)
0018 #define __mem_ioswabl(a, x) ((__force u32)cpu_to_le32(x))
0019 #define ioswabq(a, x)       (x)
0020 #define __mem_ioswabq(a, x) ((__force u64)cpu_to_le64(x))
0021 
0022 #endif /* __ASM_MACH_IP30_MANGLE_PORT_H */