summaryrefslogtreecommitdiff
path: root/include/linux/dma-noncoherent.h
AgeCommit message (Collapse)AuthorFilesLines
2018-05-19dma-mapping: provide a generic dma-noncoherent implementationChristoph Hellwig1-0/+47
Add a new dma_map_ops implementation that uses dma-direct for the address mapping of streaming mappings, and which requires arch-specific implemenations of coherent allocate/free. Architectures have to provide flushing helpers to ownership trasnfers to the device and/or CPU, and can provide optional implementations of the coherent mmap functionality, and the cache_flush routines for non-coherent long term allocations. Signed-off-by: Christoph Hellwig <hch@lst.de> Tested-by: Alexey Brodkin <abrodkin@synopsys.com> Acked-by: Vineet Gupta <vgupta@synopsys.com>