-
- Downloads
dma-mapping: provide a generic dma-noncoherent implementation
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>
Showing
- MAINTAINERS 2 additions, 0 deletionsMAINTAINERS
- include/asm-generic/dma-mapping.h 9 additions, 0 deletionsinclude/asm-generic/dma-mapping.h
- include/linux/dma-direct.h 6 additions, 1 deletioninclude/linux/dma-direct.h
- include/linux/dma-mapping.h 1 addition, 0 deletionsinclude/linux/dma-mapping.h
- include/linux/dma-noncoherent.h 47 additions, 0 deletionsinclude/linux/dma-noncoherent.h
- lib/Kconfig 20 additions, 0 deletionslib/Kconfig
- lib/Makefile 1 addition, 0 deletionslib/Makefile
- lib/dma-direct.c 4 additions, 4 deletionslib/dma-direct.c
- lib/dma-noncoherent.c 102 additions, 0 deletionslib/dma-noncoherent.c
Loading
Please register or sign in to comment