aboutsummaryrefslogtreecommitdiffstats
path: root/arch/parisc/kernel/pci.c
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2005-07-27 14:43:44 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-27 19:25:51 -0400
commit0f94c8e1256fcb786e1918e30bdaeccf669bf63c (patch)
tree0b46d5a6c2da7948841508ebd7078e5f64d4a740 /arch/parisc/kernel/pci.c
parentd912d1ff218195c248c770eb677726695e07aa40 (diff)
[PATCH] Add pcibios_bus_to_resource for parisc
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net> Acked-by: Grant Grundler <grundler@parisc-linux.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/parisc/kernel/pci.c')
-rw-r--r--arch/parisc/kernel/pci.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/parisc/kernel/pci.c b/arch/parisc/kernel/pci.c
index 3cb08a4a513a..e6a891a0cad0 100644
--- a/arch/parisc/kernel/pci.c
+++ b/arch/parisc/kernel/pci.c
@@ -255,8 +255,26 @@ void __devinit pcibios_resource_to_bus(struct pci_dev *dev,
255 pcibios_link_hba_resources(&hba->lmmio_space, bus->resource[1]); 255 pcibios_link_hba_resources(&hba->lmmio_space, bus->resource[1]);
256} 256}
257 257
258void pcibios_bus_to_resource(struct pci_dev *dev, struct resource *res,
259 struct pci_bus_region *region)
260{
261 struct pci_bus *bus = dev->bus;
262 struct pci_hba_data *hba = HBA_DATA(bus->bridge->platform_data);
263
264 if (res->flags & IORESOURCE_MEM) {
265 res->start = PCI_HOST_ADDR(hba, region->start);
266 res->end = PCI_HOST_ADDR(hba, region->end);
267 }
268
269 if (res->flags & IORESOURCE_IO) {
270 res->start = region->start;
271 res->end = region->end;
272 }
273}
274
258#ifdef CONFIG_HOTPLUG 275#ifdef CONFIG_HOTPLUG
259EXPORT_SYMBOL(pcibios_resource_to_bus); 276EXPORT_SYMBOL(pcibios_resource_to_bus);
277EXPORT_SYMBOL(pcibios_bus_to_resource);
260#endif 278#endif
261 279
262/* 280/*