summaryrefslogtreecommitdiffstats
path: root/lib/dma-noncoherent.c
Commit message (Collapse)AuthorAgeFilesLines
* dma-mapping: move all DMA mapping code to kernel/dmaChristoph Hellwig2018-06-141-102/+0
| | | | | | | | | | Currently the code is split over various files with dma- prefixes in the lib/ and drives/base directories, and the number of files keeps growing. Move them into a single directory to keep the code together and remove the file name prefixes. To match the irq infrastructure this directory is placed under the kernel/ directory. Signed-off-by: Christoph Hellwig <hch@lst.de>
* dma-mapping: provide a generic dma-noncoherent implementationChristoph Hellwig2018-05-191-0/+102
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>
OpenPOWER on IntegriCloud