summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2009-05-13 22:56:31 +0000
committerArnd Bergmann <arnd@klappe2.(none)>2009-06-11 21:02:22 +0200
commitd7c4f1b78afeedfc22b1756fcdc1acbe84284d74 (patch)
tree62e74285b3f9093b7261ddc6b90831f9892dbf8e /include
parent3aef392822e1a42e80077a332ea2efdfd8a4248a (diff)
downloadop-kernel-dev-d7c4f1b78afeedfc22b1756fcdc1acbe84284d74.zip
op-kernel-dev-d7c4f1b78afeedfc22b1756fcdc1acbe84284d74.tar.gz
asm-generic: make pci.h usable directly
Some generic code is using the horribly misnamed PCI_DMA_BUS_IS_PHYS from asm/pci.h. This makes sure that an architecture without PCI support does not have to define this itself but can rely on the asm-generic version. Signed-off-by: Remis Lima Baima <remis.developer@googlemail.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'include')
-rw-r--r--include/asm-generic/pci.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-generic/pci.h b/include/asm-generic/pci.h
index c36a77d..515c6e2 100644
--- a/include/asm-generic/pci.h
+++ b/include/asm-generic/pci.h
@@ -52,4 +52,12 @@ static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
}
#endif /* HAVE_ARCH_PCI_GET_LEGACY_IDE_IRQ */
+/*
+ * By default, assume that no iommu is in use and that the PCI
+ * space is mapped to address physical 0.
+ */
+#ifndef PCI_DMA_BUS_IS_PHYS
+#define PCI_DMA_BUS_IS_PHYS (1)
#endif
+
+#endif /* _ASM_GENERIC_PCI_H */
OpenPOWER on IntegriCloud