*/
#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.
*/
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)
*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);