mirror of https://github.com/OpenIPC/firmware.git
13 lines
572 B
Diff
13 lines
572 B
Diff
diff -drupN a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h
|
|
--- a/include/linux/dma-mapping.h 2018-08-06 17:23:04.000000000 +0300
|
|
+++ b/include/linux/dma-mapping.h 2022-06-12 05:28:14.000000000 +0300
|
|
@@ -606,6 +606,8 @@ static inline void arch_setup_dma_ops(st
|
|
u64 size, const struct iommu_ops *iommu,
|
|
bool coherent) { }
|
|
#endif
|
|
+extern bool do_iommu_attach(struct device *dev, const struct iommu_ops *ops,
|
|
+ u64 dma_base, u64 size);
|
|
|
|
#ifndef arch_teardown_dma_ops
|
|
static inline void arch_teardown_dma_ops(struct device *dev) { }
|