Commit | Line | Data |
---|---|---|
1da177e4 | 1 | /* |
c852ac80 | 2 | * include/asm-arm/arch-iop32x/io.h |
1da177e4 | 3 | * |
c852ac80 | 4 | * Copyright (C) 2001 MontaVista Software, Inc. |
1da177e4 LT |
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 | ||
c852ac80 LB |
11 | #ifndef __IO_H |
12 | #define __IO_H | |
1da177e4 | 13 | |
7fca0aa4 RK |
14 | #include <asm/hardware.h> |
15 | ||
6df26700 DW |
16 | extern void __iomem * __ioremap(unsigned long, size_t, unsigned long); |
17 | extern void __iomem *__iop3xx_ioremap(unsigned long cookie, size_t size, | |
18 | unsigned long flags); | |
19 | extern void __iop3xx_iounmap(void __iomem *addr); | |
1da177e4 | 20 | |
6df26700 DW |
21 | #define IO_SPACE_LIMIT 0xffffffff |
22 | #define __io(p) ((void __iomem *)IOP3XX_PCI_IO_PHYS_TO_VIRT(p)) | |
1da177e4 | 23 | #define __mem_pci(a) (a) |
1da177e4 | 24 | |
6df26700 DW |
25 | #define __arch_ioremap(a, s, f) __iop3xx_ioremap(a, s, f) |
26 | #define __arch_iounmap(a) __iop3xx_iounmap(a) | |
c852ac80 | 27 | |
1da177e4 | 28 | #endif |