diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2005-07-28 04:30:20 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2005-07-28 04:30:20 -0400 |
commit | 661299d9d0437a0ff72240f3d60016ac3a361a6e (patch) | |
tree | 765512576314fc3612b503f182b9ae4e60fcf849 /arch/parisc/kernel/pci.c | |
parent | 05caac585f8abd6c0113856bc8858e3ef214d8a6 (diff) | |
parent | 41c018b7ecb60b1c2c4d5dee0cd37d32a94c45af (diff) |
Merge with Linus' 2.6 tree
Diffstat (limited to 'arch/parisc/kernel/pci.c')
-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 | /* |