[POWERPC] Use archdata.dma_data in dma_direct_ops and add the offset
authorMichael Ellerman <michael@ellerman.id.au>
Mon, 21 Jan 2008 05:42:43 +0000 (16:42 +1100)
committerPaul Mackerras <paulus@samba.org>
Fri, 25 Jan 2008 11:52:54 +0000 (22:52 +1100)
commit35e4a6e26d0c6bc7f32087db61f0fb3666531183
tree5ff6c3e0067e0cdfbbae9c6d8c18370070ac0639
parent450d87eaeb4d43bd9e1f9523a6a3bfeb48209fea
[POWERPC] Use archdata.dma_data in dma_direct_ops and add the offset

Now that all platforms using dma_direct_offset setup the
archdata.dma_data correctly, we can change the dma_direct_ops to
retrieve the offset from the dma_data, rather than directly from the
global.

While we're here, change the way the offset is used - instead of
or'ing it into the value, add it.  This should have no effect on
current implementations where the offset is far larger than memory,
however in future we may want to use smaller offsets.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/dma_64.c