blob: e62956e1203094bc6daa022486b93bd490c70057 [file] [log] [blame]
Russell King59244862006-06-22 15:05:36 +01001/*
2 * linux/arch/arm/mm/iomap.c
3 *
4 * Map IO port and PCI memory spaces so that {read,write}[bwl] can
5 * be used to access this memory.
6 */
7#include <linux/module.h>
8#include <linux/pci.h>
9#include <linux/ioport.h>
Russell Kingfced80c2008-09-06 12:10:45 +010010#include <linux/io.h>
Russell King59244862006-06-22 15:05:36 +010011
Rob Herringcc22b4c2011-06-28 21:22:40 -050012unsigned long vga_base;
13EXPORT_SYMBOL(vga_base);
14
Russell King59244862006-06-22 15:05:36 +010015#ifdef __io
16void __iomem *ioport_map(unsigned long port, unsigned int nr)
17{
18 return __io(port);
19}
20EXPORT_SYMBOL(ioport_map);
21
22void ioport_unmap(void __iomem *addr)
23{
24}
25EXPORT_SYMBOL(ioport_unmap);
26#endif
27
28#ifdef CONFIG_PCI
Rob Herringc9d95fb2011-06-28 21:16:13 -050029unsigned long pcibios_min_io = 0x1000;
30EXPORT_SYMBOL(pcibios_min_io);
31
32unsigned long pcibios_min_mem = 0x01000000;
33EXPORT_SYMBOL(pcibios_min_mem);
34
Rob Herringdc8d9662011-06-29 10:59:45 -050035unsigned int pci_flags = PCI_REASSIGN_ALL_RSRC;
36EXPORT_SYMBOL(pci_flags);
37
Russell King59244862006-06-22 15:05:36 +010038void pci_iounmap(struct pci_dev *dev, void __iomem *addr)
39{
40 if ((unsigned long)addr >= VMALLOC_START &&
41 (unsigned long)addr < VMALLOC_END)
42 iounmap(addr);
43}
44EXPORT_SYMBOL(pci_iounmap);
45#endif