]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
x86: Introduce CONFIG_X86_DMA_REMAP
authorAlessandro Rubini <rubini@gnudd.com>
Wed, 4 Apr 2012 17:40:10 +0000 (19:40 +0200)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 12 Apr 2012 18:10:18 +0000 (11:10 -0700)
commitf7219a5300ba753b0c762d631763bd878b8bb00c
tree3876bd0df1e5a8f9c7b4e606a3c1c4c15976e05c
parent4692d77fc3c8978a36406a3cf9e8b899f86f68f1
x86: Introduce CONFIG_X86_DMA_REMAP

The default functions phys_to_dma, dma_to_phys implement identity
mapping as fast inline functions.  Some systems, however, may need a
custom function to implement its own mapping between CPU addresses and
device addresses. This new configuration option allows the functions
to be external when needed (such as for the ConneXt device)

Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
Link: http://lkml.kernel.org/r/6e4329b772df675f1c442f68e59e844e4dd8c965.1333560789.git.rubini@gnudd.com
Acked-by: Giancarlo Asnaghi <giancarlo.asnaghi@st.com>
Cc: Alan Cox <alan@linux.intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/Kconfig
arch/x86/include/asm/dma-mapping.h