18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public 38c2ecf20Sopenharmony_ci * License. See the file "COPYING" in the main directory of this archive 48c2ecf20Sopenharmony_ci * for more details. 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * Copyright (C) 2003, 2004 Ralf Baechle 78c2ecf20Sopenharmony_ci */ 88c2ecf20Sopenharmony_ci#ifndef __ASM_MACH_IP27_MANGLE_PORT_H 98c2ecf20Sopenharmony_ci#define __ASM_MACH_IP27_MANGLE_PORT_H 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#define __swizzle_addr_b(port) ((port) ^ 3) 128c2ecf20Sopenharmony_ci#define __swizzle_addr_w(port) ((port) ^ 2) 138c2ecf20Sopenharmony_ci#define __swizzle_addr_l(port) (port) 148c2ecf20Sopenharmony_ci#define __swizzle_addr_q(port) (port) 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci# define ioswabb(a, x) (x) 178c2ecf20Sopenharmony_ci# define __mem_ioswabb(a, x) (x) 188c2ecf20Sopenharmony_ci# define ioswabw(a, x) (x) 198c2ecf20Sopenharmony_ci# define __mem_ioswabw(a, x) ((__force u16)cpu_to_le16(x)) 208c2ecf20Sopenharmony_ci# define ioswabl(a, x) (x) 218c2ecf20Sopenharmony_ci# define __mem_ioswabl(a, x) ((__force u32)cpu_to_le32(x)) 228c2ecf20Sopenharmony_ci# define ioswabq(a, x) (x) 238c2ecf20Sopenharmony_ci# define __mem_ioswabq(a, x) ((__force u64)cpu_to_le64(x)) 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci#endif /* __ASM_MACH_IP27_MANGLE_PORT_H */ 26