aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/drivers/pci/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/drivers/pci/pci.c')
-rw-r--r--arch/sh/drivers/pci/pci.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/arch/sh/drivers/pci/pci.c b/arch/sh/drivers/pci/pci.c
index f670988e033d..d39f24091ade 100644
--- a/arch/sh/drivers/pci/pci.c
+++ b/arch/sh/drivers/pci/pci.c
@@ -144,39 +144,4 @@ void __init pcibios_update_irq(struct pci_dev *dev, int irq)
144 pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); 144 pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq);
145} 145}
146 146
147void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long maxlen)
148{
149 resource_size_t start = pci_resource_start(dev, bar);
150 resource_size_t len = pci_resource_len(dev, bar);
151 unsigned long flags = pci_resource_flags(dev, bar);
152
153 if (unlikely(!len || !start))
154 return NULL;
155 if (maxlen && len > maxlen)
156 len = maxlen;
157
158 /*
159 * Presently the IORESOURCE_MEM case is a bit special, most
160 * SH7751 style PCI controllers have PCI memory at a fixed
161 * location in the address space where no remapping is desired.
162 * With the IORESOURCE_MEM case more care has to be taken
163 * to inhibit page table mapping for legacy cores, but this is
164 * punted off to __ioremap().
165 * -- PFM.
166 */
167 if (flags & IORESOURCE_IO)
168 return ioport_map(start, len);
169 if (flags & IORESOURCE_MEM)
170 return ioremap(start, len);
171
172 return NULL;
173}
174EXPORT_SYMBOL(pci_iomap);
175
176void pci_iounmap(struct pci_dev *dev, void __iomem *addr)
177{
178 iounmap(addr);
179}
180EXPORT_SYMBOL(pci_iounmap);
181
182EXPORT_SYMBOL(board_pci_channels); 147EXPORT_SYMBOL(board_pci_channels);