blob: 47b2736236e4f7b773480f7558eecb93960f508d [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 Kingbe509722008-08-04 10:41:28 +010014#include <asm/arch/hardware.h>
Russell King7fca0aa2005-10-28 10:20:25 +010015
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);
Linus Torvalds1da177e2005-04-16 15:20:36 -070019
Dan Williams6df26702007-02-13 17:11:04 +010020#define IO_SPACE_LIMIT 0xffffffff
21#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