generic: per-device coherent dma allocator
authorDmitry Baryshkov <dbaryshkov@gmail.com>
Sun, 29 Jun 2008 10:18:46 +0000 (14:18 +0400)
committerIngo Molnar <mingo@elte.hu>
Mon, 30 Jun 2008 10:51:05 +0000 (12:51 +0200)
commitee7e5516be4f2107535ad5a3d47d9c79f93661a2
tree57bdb330864036d6241deb8e69f351ee5ee01adb
parent543cf4cb3fe6f6cae3651ba918b9c56200b257d0
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>
include/asm-generic/dma-coherent.h [new file with mode: 0644]
init/Kconfig
kernel/Makefile
kernel/dma-coherent.c [new file with mode: 0644]