aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-generic/pci.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-generic/pci.h')
-rw-r--r--include/asm-generic/pci.h21
1 files changed, 8 insertions, 13 deletions
diff --git a/include/asm-generic/pci.h b/include/asm-generic/pci.h
index c36a77d3bf44..b4326b5466eb 100644
--- a/include/asm-generic/pci.h
+++ b/include/asm-generic/pci.h
@@ -30,19 +30,6 @@ pcibios_bus_to_resource(struct pci_dev *dev, struct resource *res,
30 res->end = region->end; 30 res->end = region->end;
31} 31}
32 32
33static inline struct resource *
34pcibios_select_root(struct pci_dev *pdev, struct resource *res)
35{
36 struct resource *root = NULL;
37
38 if (res->flags & IORESOURCE_IO)
39 root = &ioport_resource;
40 if (res->flags & IORESOURCE_MEM)
41 root = &iomem_resource;
42
43 return root;
44}
45
46#define pcibios_scan_all_fns(a, b) 0 33#define pcibios_scan_all_fns(a, b) 0
47 34
48#ifndef HAVE_ARCH_PCI_GET_LEGACY_IDE_IRQ 35#ifndef HAVE_ARCH_PCI_GET_LEGACY_IDE_IRQ
@@ -52,4 +39,12 @@ static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
52} 39}
53#endif /* HAVE_ARCH_PCI_GET_LEGACY_IDE_IRQ */ 40#endif /* HAVE_ARCH_PCI_GET_LEGACY_IDE_IRQ */
54 41
42/*
43 * By default, assume that no iommu is in use and that the PCI
44 * space is mapped to address physical 0.
45 */
46#ifndef PCI_DMA_BUS_IS_PHYS
47#define PCI_DMA_BUS_IS_PHYS (1)
55#endif 48#endif
49
50#endif /* _ASM_GENERIC_PCI_H */