Commit graph android_kernel_sony_sdm845/include/asm-generic/dma-coherent.h
Message SHA1
common: add dma_mmap_from_coherent() function
Add a common helper for dma-mapping core for mapping a coherent buffer
to userspace.

Reported-by: Subash Patel <subashrp@gmail.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Tested-By: Subash Patel <subash.ramaswamy@linaro.org>

Marek Szyprowski   commited 2012-05-21 15:06:09 +02:00
bca0fa5f12
generic: per-device coherent dma allocator
Currently x86_32, sh and cris-v32 provide per-device coherent dma
memory allocator.

However their implementation is nearly identical. Refactor out
common code to be reused by them.

Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

Dmitry Baryshkov   authored and   Ingo Molnar   commited 2008-06-30 12:51:05 +02:00
ee7e5516be