]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0bb2c90b8dd91ea72373ed1da4bdcaf2d927a8c2
tree9bddd5b697883f706a53ef0413181845bb735250
parentdafc4ffd526c324c44b78e00a23e9aba5a1ee5b3
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