aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/include/asm/machvec.h
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2009-01-05 09:36:12 -0500
committerIngo Molnar <mingo@elte.hu>2009-01-06 08:06:50 -0500
commit4d9b977ca674dd40cfc1409a75cb73fca2cee423 (patch)
tree417f80889ab49c61c2258b157cfe993bdf8d8357 /arch/ia64/include/asm/machvec.h
parentc82e4417ace9a3a4dddf3332379c771c41040040 (diff)
set up dma_ops appropriately
This patch introduces a global pointer, dma_ops, which points to an appropriate dma_mapping_ops that the kernel should use. This is a common way to handle multiple dma_mapping_ops (X86, POWER, and SPARC). dma_ops is set in platform_dma_init. We also set it by hand where machvec_init is callev via subsys_initcall. - IA64_DIG_VTD uses vtd_dma_ops. - IA64_HP_ZX1 uses sba_dma_ops. - IA64_HP_ZX1_SWIOTLB uses hwsw_dma_ops. - IA64_SGI_SN2 uses sn_dma_ops. - The rest use swiotlb_dma_ops. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Acked-by: Tony Luck <tony.luck@intel.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/ia64/include/asm/machvec.h')
-rw-r--r--arch/ia64/include/asm/machvec.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/ia64/include/asm/machvec.h b/arch/ia64/include/asm/machvec.h
index 59c17e446683..d40722c386b4 100644
--- a/arch/ia64/include/asm/machvec.h
+++ b/arch/ia64/include/asm/machvec.h
@@ -298,6 +298,8 @@ extern void machvec_init_from_cmdline(const char *cmdline);
298# error Unknown configuration. Update arch/ia64/include/asm/machvec.h. 298# error Unknown configuration. Update arch/ia64/include/asm/machvec.h.
299# endif /* CONFIG_IA64_GENERIC */ 299# endif /* CONFIG_IA64_GENERIC */
300 300
301extern void swiotlb_dma_init(void);
302
301/* 303/*
302 * Define default versions so we can extend machvec for new platforms without having 304 * Define default versions so we can extend machvec for new platforms without having
303 * to update the machvec files for all existing platforms. 305 * to update the machvec files for all existing platforms.
@@ -328,7 +330,7 @@ extern void machvec_init_from_cmdline(const char *cmdline);
328# define platform_kernel_launch_event machvec_noop 330# define platform_kernel_launch_event machvec_noop
329#endif 331#endif
330#ifndef platform_dma_init 332#ifndef platform_dma_init
331# define platform_dma_init swiotlb_init 333# define platform_dma_init swiotlb_dma_init
332#endif 334#endif
333#ifndef platform_dma_alloc_coherent 335#ifndef platform_dma_alloc_coherent
334# define platform_dma_alloc_coherent swiotlb_alloc_coherent 336# define platform_dma_alloc_coherent swiotlb_alloc_coherent