forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/rknpu/include/rknpu_mm.h
....@@ -40,22 +40,4 @@
4040
4141 int rknpu_mm_dump(struct seq_file *m, void *data);
4242
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);
60
-
6143 #endif