Dan Williams | 285f5fa | 2006-12-07 02:59:39 +0100 | [diff] [blame] | 1 | /* |
| 2 | * iop13xx custom ioremap implementation |
| 3 | * Copyright (c) 2005-2006, Intel Corporation. |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify it |
| 6 | * under the terms and conditions of the GNU General Public License, |
| 7 | * version 2, as published by the Free Software Foundation. |
| 8 | * |
| 9 | * This program is distributed in the hope it will be useful, but WITHOUT |
| 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
| 12 | * more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License along with |
| 15 | * this program; if not, write to the Free Software Foundation, Inc., 59 Temple |
| 16 | * Place - Suite 330, Boston, MA 02111-1307 USA. |
| 17 | * |
| 18 | */ |
| 19 | #ifndef __ASM_ARM_ARCH_IO_H |
| 20 | #define __ASM_ARM_ARCH_IO_H |
| 21 | |
| 22 | #define IO_SPACE_LIMIT 0xffffffff |
| 23 | |
Dan Williams | b0b1d60 | 2006-12-29 01:30:24 +0100 | [diff] [blame] | 24 | #define __io(a) __iop13xx_io(a) |
Dan Williams | 285f5fa | 2006-12-07 02:59:39 +0100 | [diff] [blame] | 25 | #define __mem_pci(a) (a) |
| 26 | #define __mem_isa(a) (a) |
| 27 | |
Dan Williams | b0b1d60 | 2006-12-29 01:30:24 +0100 | [diff] [blame] | 28 | extern void __iomem * __iop13xx_io(unsigned long io_addr); |
Dan Williams | 285f5fa | 2006-12-07 02:59:39 +0100 | [diff] [blame] | 29 | extern void __iomem *__iop13xx_ioremap(unsigned long cookie, size_t size, |
Russell King | f75fd96 | 2007-05-09 20:21:11 +0100 | [diff] [blame] | 30 | unsigned int mtype); |
Dan Williams | 285f5fa | 2006-12-07 02:59:39 +0100 | [diff] [blame] | 31 | extern void __iop13xx_iounmap(void __iomem *addr); |
| 32 | |
| 33 | extern u32 iop13xx_atue_mem_base; |
| 34 | extern u32 iop13xx_atux_mem_base; |
| 35 | extern size_t iop13xx_atue_mem_size; |
| 36 | extern size_t iop13xx_atux_mem_size; |
| 37 | |
| 38 | #define __arch_ioremap(a, s, f) __iop13xx_ioremap(a, s, f) |
| 39 | #define __arch_iounmap(a) __iop13xx_iounmap(a) |
| 40 | |
| 41 | #endif |