Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
Lennert Buytenhek | c852ac8 | 2006-09-18 23:26:25 +0100 | [diff] [blame] | 2 | * include/asm-arm/arch-iop33x/io.h |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 | * |
Lennert Buytenhek | c852ac8 | 2006-09-18 23:26:25 +0100 | [diff] [blame] | 4 | * Copyright (C) 2001 MontaVista Software, Inc. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License version 2 as |
| 8 | * published by the Free Software Foundation. |
| 9 | */ |
| 10 | |
Lennert Buytenhek | c852ac8 | 2006-09-18 23:26:25 +0100 | [diff] [blame] | 11 | #ifndef __IO_H |
| 12 | #define __IO_H |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | |
Russell King | 7fca0aa | 2005-10-28 10:20:25 +0100 | [diff] [blame] | 14 | #include <asm/hardware.h> |
| 15 | |
Dan Williams | 6df2670 | 2007-02-13 17:11:04 +0100 | [diff] [blame] | 16 | extern void __iomem *__iop3xx_ioremap(unsigned long cookie, size_t size, |
Russell King | f75fd96 | 2007-05-09 20:21:11 +0100 | [diff] [blame] | 17 | unsigned int mtype); |
Dan Williams | 6df2670 | 2007-02-13 17:11:04 +0100 | [diff] [blame] | 18 | extern void __iop3xx_iounmap(void __iomem *addr); |
| 19 | |
Lennert Buytenhek | c852ac8 | 2006-09-18 23:26:25 +0100 | [diff] [blame] | 20 | #define IO_SPACE_LIMIT 0xffffffff |
Dan Williams | 6df2670 | 2007-02-13 17:11:04 +0100 | [diff] [blame] | 21 | #define __io(p) ((void __iomem *)IOP3XX_PCI_IO_PHYS_TO_VIRT(p)) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | #define __mem_pci(a) (a) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 | |
Dan Williams | 6df2670 | 2007-02-13 17:11:04 +0100 | [diff] [blame] | 24 | #define __arch_ioremap(a, s, f) __iop3xx_ioremap(a, s, f) |
| 25 | #define __arch_iounmap(a) __iop3xx_iounmap(a) |
Lennert Buytenhek | c852ac8 | 2006-09-18 23:26:25 +0100 | [diff] [blame] | 26 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 27 | #endif |