162306a36Sopenharmony_ci/* 262306a36Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public 362306a36Sopenharmony_ci * License. See the file "COPYING" in the main directory of this archive 462306a36Sopenharmony_ci * for more details. 562306a36Sopenharmony_ci * 662306a36Sopenharmony_ci * Copyright (C) 2003, 2004 Ralf Baechle 762306a36Sopenharmony_ci */ 862306a36Sopenharmony_ci#ifndef __ASM_MACH_IP27_MANGLE_PORT_H 962306a36Sopenharmony_ci#define __ASM_MACH_IP27_MANGLE_PORT_H 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci#define __swizzle_addr_b(port) ((port) ^ 3) 1262306a36Sopenharmony_ci#define __swizzle_addr_w(port) ((port) ^ 2) 1362306a36Sopenharmony_ci#define __swizzle_addr_l(port) (port) 1462306a36Sopenharmony_ci#define __swizzle_addr_q(port) (port) 1562306a36Sopenharmony_ci 1662306a36Sopenharmony_ci# define ioswabb(a, x) (x) 1762306a36Sopenharmony_ci# define __mem_ioswabb(a, x) (x) 1862306a36Sopenharmony_ci# define ioswabw(a, x) (x) 1962306a36Sopenharmony_ci# define __mem_ioswabw(a, x) ((__force u16)cpu_to_le16(x)) 2062306a36Sopenharmony_ci# define ioswabl(a, x) (x) 2162306a36Sopenharmony_ci# define __mem_ioswabl(a, x) ((__force u32)cpu_to_le32(x)) 2262306a36Sopenharmony_ci# define ioswabq(a, x) (x) 2362306a36Sopenharmony_ci# define __mem_ioswabq(a, x) ((__force u64)cpu_to_le64(x)) 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_ci#endif /* __ASM_MACH_IP27_MANGLE_PORT_H */ 26