x86, IA64, powerpc: add phys_to_dma() and dma_to_phys()
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Fri, 10 Jul 2009 01:05:01 +0000 (10:05 +0900)
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Tue, 28 Jul 2009 05:19:20 +0000 (14:19 +0900)
commit8d4f5339d1ee4027c07e6b2a1cfa9dc41b0d383b
treeaeb86783e2c32a77b7dfe64cd0936e704338b2da
parent8f2502fd8157632909ff335a3c628e7caeec5e03
x86, IA64, powerpc: add phys_to_dma() and dma_to_phys()

This adds two functions, phys_to_dma() and dma_to_phys() to x86, IA64
and powerpc. swiotlb uses them. phys_to_dma() converts a physical
address to a dma address. dma_to_phys() does the opposite.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Becky Bruce <beckyb@kernel.crashing.org>
arch/ia64/include/asm/dma-mapping.h
arch/powerpc/include/asm/dma-mapping.h
arch/x86/include/asm/dma-mapping.h