diff options
| author | Roland Dreier <roland@eddore.topspincom.com> | 2005-07-27 22:12:56 -0400 |
|---|---|---|
| committer | Roland Dreier <roland@eddore.topspincom.com> | 2005-07-27 22:12:56 -0400 |
| commit | 2868bd281fef21d1e73d6b7648a41efc3d75f10c (patch) | |
| tree | 0ad821cfcc9e3f9e8b662d026bec6bb6d4ce69ac /arch/parisc/kernel/pci.c | |
| parent | 6d376756f2cf3478d5a4fdb8d18e958948366b9d (diff) | |
| parent | 41c018b7ecb60b1c2c4d5dee0cd37d32a94c45af (diff) | |
Merge /scratch/Ksrc/linux-git/
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 | /* |
