Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5117
b: refs/heads/master
c: 0f94c8e
h: refs/heads/master
i:
  5115: 6c57bf2
v: v3
  • Loading branch information
Dominik Brodowski authored and Linus Torvalds committed Jul 27, 2005
1 parent 0d0afd8 commit 84d2606
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d912d1ff218195c248c770eb677726695e07aa40
refs/heads/master: 0f94c8e1256fcb786e1918e30bdaeccf669bf63c
18 changes: 18 additions & 0 deletions trunk/arch/parisc/kernel/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,26 @@ void __devinit pcibios_resource_to_bus(struct pci_dev *dev,
pcibios_link_hba_resources(&hba->lmmio_space, bus->resource[1]);
}

void pcibios_bus_to_resource(struct pci_dev *dev, struct resource *res,
struct pci_bus_region *region)
{
struct pci_bus *bus = dev->bus;
struct pci_hba_data *hba = HBA_DATA(bus->bridge->platform_data);

if (res->flags & IORESOURCE_MEM) {
res->start = PCI_HOST_ADDR(hba, region->start);
res->end = PCI_HOST_ADDR(hba, region->end);
}

if (res->flags & IORESOURCE_IO) {
res->start = region->start;
res->end = region->end;
}
}

#ifdef CONFIG_HOTPLUG
EXPORT_SYMBOL(pcibios_resource_to_bus);
EXPORT_SYMBOL(pcibios_bus_to_resource);
#endif

/*
Expand Down

0 comments on commit 84d2606

Please sign in to comment.