]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit980b9dc89953123bffee5f7a450d858fa4da68d5
treeaeb86783e2c32a77b7dfe64cd0936e704338b2da
parent5bd776190f73edad0e19cb5712f0679dfb98bbdf
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