powerpc: Implement dma_mmap_coherent()
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 24 Mar 2011 20:50:06 +0000 (20:50 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 29 Mar 2011 23:44:00 +0000 (10:44 +1100)
commit6090912c4abcfc6c81b156cf2bb4cda23ae6e847
tree9bddd5b697883f706a53ef0413181845bb735250
parent15d260b36facc1aa769fb39b0efc41f4c8c44729
powerpc: Implement dma_mmap_coherent()

This is used by Alsa to mmap buffers allocated with dma_alloc_coherent()
into userspace. We need a special variant to handle machines with
non-coherent DMAs as those buffers have "special" virt addresses and
require non-cachable mappings

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/dma-mapping.h
arch/powerpc/kernel/dma.c
arch/powerpc/mm/dma-noncoherent.c