iommu/dma: move the arm64 wrappers to common code
There is nothing really arm64 specific in the iommu_dma_ops implementation, so move it to dma-iommu.c and keep a lot of symbols self-contained. Note the implementation does depend on the DMA_DIRECT_REMAP infrastructure for now, so we'll have to make the DMA_IOMMU support depend on it, but this will be relaxed soon. Signed-off-by:Christoph Hellwig <hch@lst.de> Acked-by:
Robin Murphy <robin.murphy@arm.com> Signed-off-by:
Joerg Roedel <jroedel@suse.de>
Showing
- arch/arm64/mm/dma-mapping.c 4 additions, 390 deletionsarch/arm64/mm/dma-mapping.c
- drivers/iommu/Kconfig 1 addition, 0 deletionsdrivers/iommu/Kconfig
- drivers/iommu/dma-iommu.c 370 additions, 28 deletionsdrivers/iommu/dma-iommu.c
- include/linux/dma-iommu.h 3 additions, 39 deletionsinclude/linux/dma-iommu.h
Please register or sign in to comment