forked from Minki/linux
a0b7bd0829
Defining iounmap() with arguments prevents it from being used as a function pointer, causing platforms to work around this. Instead, define it to be a simple macro. Do the same for __arch_io(re|un)map too. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
28 lines
718 B
C
28 lines
718 B
C
/*
|
|
* arch/arm/mach-iop33x/include/mach/io.h
|
|
*
|
|
* Copyright (C) 2001 MontaVista Software, Inc.
|
|
*
|
|
* 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.
|
|
*/
|
|
|
|
#ifndef __IO_H
|
|
#define __IO_H
|
|
|
|
#include <asm/hardware/iop3xx.h>
|
|
|
|
extern void __iomem *__iop3xx_ioremap(unsigned long cookie, size_t size,
|
|
unsigned int mtype);
|
|
extern void __iop3xx_iounmap(void __iomem *addr);
|
|
|
|
#define IO_SPACE_LIMIT 0xffffffff
|
|
#define __io(p) ((void __iomem *)IOP3XX_PCI_IO_PHYS_TO_VIRT(p))
|
|
#define __mem_pci(a) (a)
|
|
|
|
#define __arch_ioremap __iop3xx_ioremap
|
|
#define __arch_iounmap __iop3xx_iounmap
|
|
|
|
#endif
|