blob: fec9c53e2b10b5ad6cc6a56af6788f9040f18c2a [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
Lennert Buytenhekc852ac82006-09-18 23:26:25 +01002 * include/asm-arm/arch-iop33x/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 *__iop3xx_ioremap(unsigned long cookie, size_t size,
Russell Kingf75fd962007-05-09 20:21:11 +010017 unsigned int mtype);
Dan Williams6df26702007-02-13 17:11:04 +010018extern void __iop3xx_iounmap(void __iomem *addr);
19
Lennert Buytenhekc852ac82006-09-18 23:26:25 +010020#define IO_SPACE_LIMIT 0xffffffff
Dan Williams6df26702007-02-13 17:11:04 +010021#define __io(p) ((void __iomem *)IOP3XX_PCI_IO_PHYS_TO_VIRT(p))
Linus Torvalds1da177e2005-04-16 15:20:36 -070022#define __mem_pci(a) (a)
Linus Torvalds1da177e2005-04-16 15:20:36 -070023
Dan Williams6df26702007-02-13 17:11:04 +010024#define __arch_ioremap(a, s, f) __iop3xx_ioremap(a, s, f)
25#define __arch_iounmap(a) __iop3xx_iounmap(a)
Lennert Buytenhekc852ac82006-09-18 23:26:25 +010026
Linus Torvalds1da177e2005-04-16 15:20:36 -070027#endif