2005-04-16 22:20:36 +00:00
|
|
|
/*
|
2008-08-05 15:14:15 +00:00
|
|
|
* arch/arm/mach-iop32x/include/mach/io.h
|
2005-04-16 22:20:36 +00:00
|
|
|
*
|
2006-09-18 22:26:25 +00:00
|
|
|
* Copyright (C) 2001 MontaVista Software, Inc.
|
2005-04-16 22:20:36 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*/
|
|
|
|
|
2006-09-18 22:26:25 +00:00
|
|
|
#ifndef __IO_H
|
|
|
|
#define __IO_H
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2008-11-28 16:13:44 +00:00
|
|
|
#include <asm/hardware/iop3xx.h>
|
2005-10-28 09:20:25 +00:00
|
|
|
|
2007-02-13 16:11:04 +00:00
|
|
|
extern void __iomem *__iop3xx_ioremap(unsigned long cookie, size_t size,
|
2007-05-09 19:21:11 +00:00
|
|
|
unsigned int mtype);
|
2007-02-13 16:11:04 +00:00
|
|
|
extern void __iop3xx_iounmap(void __iomem *addr);
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2007-02-13 16:11:04 +00:00
|
|
|
#define IO_SPACE_LIMIT 0xffffffff
|
|
|
|
#define __io(p) ((void __iomem *)IOP3XX_PCI_IO_PHYS_TO_VIRT(p))
|
2005-04-16 22:20:36 +00:00
|
|
|
#define __mem_pci(a) (a)
|
|
|
|
|
2007-02-13 16:11:04 +00:00
|
|
|
#define __arch_ioremap(a, s, f) __iop3xx_ioremap(a, s, f)
|
|
|
|
#define __arch_iounmap(a) __iop3xx_iounmap(a)
|
2006-09-18 22:26:25 +00:00
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
#endif
|