2005-04-17 06:20:36 +08:00
|
|
|
/*
|
2008-08-05 23:14:15 +08:00
|
|
|
* arch/arm/mach-iop33x/include/mach/io.h
|
2005-04-17 06:20:36 +08:00
|
|
|
*
|
2006-09-19 06:26:25 +08:00
|
|
|
* Copyright (C) 2001 MontaVista Software, Inc.
|
2005-04-17 06:20:36 +08: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-19 06:26:25 +08:00
|
|
|
#ifndef __IO_H
|
|
|
|
#define __IO_H
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2008-11-29 00:13:44 +08:00
|
|
|
#include <asm/hardware/iop3xx.h>
|
2005-10-28 17:20:25 +08:00
|
|
|
|
2007-02-14 00:11:04 +08:00
|
|
|
extern void __iomem *__iop3xx_ioremap(unsigned long cookie, size_t size,
|
2007-05-10 03:21:11 +08:00
|
|
|
unsigned int mtype);
|
2007-02-14 00:11:04 +08:00
|
|
|
extern void __iop3xx_iounmap(void __iomem *addr);
|
|
|
|
|
2006-09-19 06:26:25 +08:00
|
|
|
#define IO_SPACE_LIMIT 0xffffffff
|
2007-02-14 00:11:04 +08:00
|
|
|
#define __io(p) ((void __iomem *)IOP3XX_PCI_IO_PHYS_TO_VIRT(p))
|
2005-04-17 06:20:36 +08:00
|
|
|
#define __mem_pci(a) (a)
|
|
|
|
|
2010-12-08 21:49:04 +08:00
|
|
|
#define __arch_ioremap __iop3xx_ioremap
|
|
|
|
#define __arch_iounmap __iop3xx_iounmap
|
2006-09-19 06:26:25 +08:00
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
#endif
|