|
@@ -32,4 +32,14 @@ static inline void dma_mark_clean(void *addr, size_t size) {}
|
|
extern void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
|
|
extern void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
|
|
enum dma_data_direction direction);
|
|
enum dma_data_direction direction);
|
|
|
|
|
|
|
|
+#define arch_setup_dma_ops arch_setup_dma_ops
|
|
|
|
+static inline void arch_setup_dma_ops(struct device *dev, u64 dma_base,
|
|
|
|
+ u64 size, const struct iommu_ops *iommu,
|
|
|
|
+ bool coherent)
|
|
|
|
+{
|
|
|
|
+#ifdef CONFIG_DMA_PERDEV_COHERENT
|
|
|
|
+ dev->archdata.dma_coherent = coherent;
|
|
|
|
+#endif
|
|
|
|
+}
|
|
|
|
+
|
|
#endif /* _ASM_DMA_MAPPING_H */
|
|
#endif /* _ASM_DMA_MAPPING_H */
|