Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 6960
b: refs/heads/master
c: e63ea56
h: refs/heads/master
v: v3
  • Loading branch information
Yoichi Yuasa authored and Linus Torvalds committed Sep 5, 2005
1 parent 30ac451 commit 0c06b57
Show file tree
Hide file tree
Showing 3 changed files with 20 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: e2de84920d9489f7fd87fa4b04d996d569def4fa
refs/heads/master: e63ea56fe2669c20f4668d89522500f4ab439b04
17 changes: 17 additions & 0 deletions trunk/arch/mips/pci/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,25 @@ pcibios_resource_to_bus(struct pci_dev *dev, struct pci_bus_region *region,
region->end = res->end - offset;
}

void __devinit
pcibios_bus_to_resource(struct pci_dev *dev, struct resource *res,
struct pci_bus_region *region)
{
struct pci_controller *hose = (struct pci_controller *)dev->sysdata;
unsigned long offset = 0;

if (res->flags & IORESOURCE_IO)
offset = hose->io_offset;
else if (res->flags & IORESOURCE_MEM)
offset = hose->mem_offset;

res->start = region->start + offset;
res->end = region->end + offset;
}

#ifdef CONFIG_HOTPLUG
EXPORT_SYMBOL(pcibios_resource_to_bus);
EXPORT_SYMBOL(pcibios_bus_to_resource);
EXPORT_SYMBOL(PCIBIOS_MIN_IO);
EXPORT_SYMBOL(PCIBIOS_MIN_MEM);
#endif
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/asm-mips/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ static inline void pci_dma_burst_advice(struct pci_dev *pdev,

extern void pcibios_resource_to_bus(struct pci_dev *dev,
struct pci_bus_region *region, struct resource *res);
extern void pcibios_bus_to_resource(struct pci_dev *dev,
struct resource *res, struct pci_bus_region *region);

#ifdef CONFIG_PCI_DOMAINS

Expand Down

0 comments on commit 0c06b57

Please sign in to comment.