diff options
Diffstat (limited to 'arch/parisc')
-rw-r--r-- | arch/parisc/kernel/pci.c | 18 |
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 | ||
258 | void 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 |
259 | EXPORT_SYMBOL(pcibios_resource_to_bus); | 276 | EXPORT_SYMBOL(pcibios_resource_to_bus); |
277 | EXPORT_SYMBOL(pcibios_bus_to_resource); | ||
260 | #endif | 278 | #endif |
261 | 279 | ||
262 | /* | 280 | /* |