hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/rknpu/include/rknpu_mm.h
....@@ -10,7 +10,6 @@
1010 #include <linux/mutex.h>
1111 #include <linux/seq_file.h>
1212 #include <linux/iommu.h>
13
-#include <linux/dma-iommu.h>
1413 #include <linux/iova.h>
1514
1615 #include "rknpu_drv.h"
....@@ -39,23 +38,5 @@
3938 int rknpu_mm_free(struct rknpu_mm *mm, struct rknpu_mm_obj *mm_obj);
4039
4140 int rknpu_mm_dump(struct seq_file *m, void *data);
42
-
43
-enum iommu_dma_cookie_type {
44
- IOMMU_DMA_IOVA_COOKIE,
45
- IOMMU_DMA_MSI_COOKIE,
46
-};
47
-
48
-struct rknpu_iommu_dma_cookie {
49
- enum iommu_dma_cookie_type type;
50
-
51
- /* Full allocator for IOMMU_DMA_IOVA_COOKIE */
52
- struct iova_domain iovad;
53
-};
54
-
55
-dma_addr_t rknpu_iommu_dma_alloc_iova(struct iommu_domain *domain, size_t size,
56
- u64 dma_limit, struct device *dev);
57
-
58
-void rknpu_iommu_dma_free_iova(struct rknpu_iommu_dma_cookie *cookie,
59
- dma_addr_t iova, size_t size);
6041
6142 #endif