blob: 5f570a598a376919ba839da1750a7fe3f6bbe2ec [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
Lennert Buytenhekc852ac82006-09-18 23:26:25 +01002 * include/asm-arm/arch-iop32x/io.h
Linus Torvalds1da177e2005-04-16 15:20:36 -07003 *
Lennert Buytenhekc852ac82006-09-18 23:26:25 +01004 * Copyright (C) 2001 MontaVista Software, Inc.
Linus Torvalds1da177e2005-04-16 15:20:36 -07005 *
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 Buytenhekc852ac82006-09-18 23:26:25 +010011#ifndef __IO_H
12#define __IO_H
Linus Torvalds1da177e2005-04-16 15:20:36 -070013
Russell King7fca0aa2005-10-28 10:20:25 +010014#include <asm/hardware.h>
15
Dan Williams6df26702007-02-13 17:11:04 +010016extern void __iomem * __ioremap(unsigned long, size_t, unsigned long);
17extern void __iomem *__iop3xx_ioremap(unsigned long cookie, size_t size,
18 unsigned long flags);
19extern void __iop3xx_iounmap(void __iomem *addr);
Linus Torvalds1da177e2005-04-16 15:20:36 -070020
Dan Williams6df26702007-02-13 17:11:04 +010021#define IO_SPACE_LIMIT 0xffffffff
22#define __io(p) ((void __iomem *)IOP3XX_PCI_IO_PHYS_TO_VIRT(p))
Linus Torvalds1da177e2005-04-16 15:20:36 -070023#define __mem_pci(a) (a)
Linus Torvalds1da177e2005-04-16 15:20:36 -070024
Dan Williams6df26702007-02-13 17:11:04 +010025#define __arch_ioremap(a, s, f) __iop3xx_ioremap(a, s, f)
26#define __arch_iounmap(a) __iop3xx_iounmap(a)
Lennert Buytenhekc852ac82006-09-18 23:26:25 +010027
Linus Torvalds1da177e2005-04-16 15:20:36 -070028#endif