diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2012-02-23 22:19:02 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2012-02-23 22:19:02 -0500 |
commit | 4b84b6e9b43cab04099ba7055322d31dbd789475 (patch) | |
tree | 94d185dbce89b1cf9c7f14e1318e38a0e990df9f /arch/mn10300/include/asm | |
parent | 96a6b9ad05a2d5654f168d3ad9d9696d3b03a7c2 (diff) |
mn10300/PCI: get rid of device resource fixups
Tell the PCI core about host bridge address translation so it can take
care of bus-to-resource conversion for us.
CC: David Howells <dhowells@redhat.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'arch/mn10300/include/asm')
-rw-r--r-- | arch/mn10300/include/asm/pci.h | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/arch/mn10300/include/asm/pci.h b/arch/mn10300/include/asm/pci.h index 6095a28561dd..dfe1581c0c9d 100644 --- a/arch/mn10300/include/asm/pci.h +++ b/arch/mn10300/include/asm/pci.h | |||
@@ -85,21 +85,7 @@ extern int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma, | |||
85 | /* implement the pci_ DMA API in terms of the generic device dma_ one */ | 85 | /* implement the pci_ DMA API in terms of the generic device dma_ one */ |
86 | #include <asm-generic/pci-dma-compat.h> | 86 | #include <asm-generic/pci-dma-compat.h> |
87 | 87 | ||
88 | /** | 88 | #define ARCH_HAS_GENERIC_PCI_OFFSETS |
89 | * pcibios_resource_to_bus - convert resource to PCI bus address | ||
90 | * @dev: device which owns this resource | ||
91 | * @region: converted bus-centric region (start,end) | ||
92 | * @res: resource to convert | ||
93 | * | ||
94 | * Convert a resource to a PCI device bus address or bus window. | ||
95 | */ | ||
96 | extern void pcibios_resource_to_bus(struct pci_dev *dev, | ||
97 | struct pci_bus_region *region, | ||
98 | struct resource *res); | ||
99 | |||
100 | extern void pcibios_bus_to_resource(struct pci_dev *dev, | ||
101 | struct resource *res, | ||
102 | struct pci_bus_region *region); | ||
103 | 89 | ||
104 | static inline struct resource * | 90 | static inline struct resource * |
105 | pcibios_select_root(struct pci_dev *pdev, struct resource *res) | 91 | pcibios_select_root(struct pci_dev *pdev, struct resource *res) |