aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/drivers/pci
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-04-20 02:38:25 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-04-20 02:38:25 -0400
commit9ade1217c9ba39ad2f004a898ddfbb815fd5fe74 (patch)
tree5983659bb85a596df5a9f17042c2d6af6f3511b9 /arch/sh/drivers/pci
parent62c7ae87cb5962d3dfaa6d916a15e4faa9e07363 (diff)
sh: pci: Drop asm-generic/pci.h, so we can use our own fixups.
The new PCI code wants its own bus<->resource mappings instead of the generic equivalents, so drop the asm-generic include in preparation. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/drivers/pci')
-rw-r--r--arch/sh/drivers/pci/pci.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/sh/drivers/pci/pci.c b/arch/sh/drivers/pci/pci.c
index 8aaacc99b710..6d659cd93c9d 100644
--- a/arch/sh/drivers/pci/pci.c
+++ b/arch/sh/drivers/pci/pci.c
@@ -72,6 +72,20 @@ void __devinit __weak pcibios_fixup_bus(struct pci_bus *bus)
72 pci_read_bridge_bases(bus); 72 pci_read_bridge_bases(bus);
73} 73}
74 74
75void pcibios_resource_to_bus(struct pci_dev *dev, struct pci_bus_region *region,
76 struct resource *res)
77{
78 region->start = res->start;
79 region->end = res->end;
80}
81
82void pcibios_bus_to_resource(struct pci_dev *dev, struct resource *res,
83 struct pci_bus_region *region)
84{
85 res->start = region->start;
86 res->end = region->end;
87}
88
75void pcibios_align_resource(void *data, struct resource *res, 89void pcibios_align_resource(void *data, struct resource *res,
76 resource_size_t size, resource_size_t align) 90 resource_size_t size, resource_size_t align)
77 __attribute__ ((weak)); 91 __attribute__ ((weak));