summaryrefslogtreecommitdiff
path: root/include/asm-powerpc/pci.h
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2007-03-04 16:58:39 +1100
committerPaul Mackerras <paulus@samba.org>2007-03-09 15:03:25 +1100
commit9874777016e06ad2df420237963e81389776cb6d (patch)
treeabd509f5d37da4f8e2cdef8e3e41ec498c4a10ca /include/asm-powerpc/pci.h
parent618d3adc351a24c4c48437c767befb88ca2d199d (diff)
[POWERPC] Create and use set_pci_dma_ops
This will allow us to build without PCI easier. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/pci.h')
-rw-r--r--include/asm-powerpc/pci.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/asm-powerpc/pci.h b/include/asm-powerpc/pci.h
index ac656ee6bb19..ebf31f1c5915 100644
--- a/include/asm-powerpc/pci.h
+++ b/include/asm-powerpc/pci.h
@@ -70,8 +70,11 @@ static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
*/
#define PCI_DISABLE_MWI
+#ifdef CONFIG_PCI
extern struct dma_mapping_ops *pci_dma_ops;
+extern void set_pci_dma_ops(struct dma_mapping_ops *dma_ops);
+
/* For DAC DMA, we currently don't support it by default, but
* we let 64-bit platforms override this.
*/
@@ -82,7 +85,6 @@ static inline int pci_dac_dma_supported(struct pci_dev *hwdev,u64 mask)
return 0;
}
-#ifdef CONFIG_PCI
static inline void pci_dma_burst_advice(struct pci_dev *pdev,
enum pci_dma_burst_strategy *strat,
unsigned long *strategy_parameter)
@@ -99,6 +101,8 @@ static inline void pci_dma_burst_advice(struct pci_dev *pdev,
*strat = PCI_DMA_BURST_MULTIPLE;
*strategy_parameter = cacheline_size;
}
+#else /* CONFIG_PCI */
+#define set_pci_dma_ops(d)
#endif
extern int pci_domain_nr(struct pci_bus *bus);