aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2009-01-05 09:36:14 -0500
committerIngo Molnar <mingo@elte.hu>2009-01-06 08:06:50 -0500
commitfad6a029c4afa499dddd8e9ff70264bb977ea7bf (patch)
treed35a37d9a76a9c16f9f813f19bedfa6b6d23cba9 /arch
parentb7ea6e951833a3add60fd47f2de6870b5d0589b3 (diff)
remove dma operations in struct ia64_machine_vector
We don't need dma operation hooks in struct ia64_machine_vector now. This also removes unused ia64_mv_dma_* typedefs. 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')
-rw-r--r--arch/ia64/hp/common/hwsw_iommu.c20
-rw-r--r--arch/ia64/include/asm/machvec.h89
-rw-r--r--arch/ia64/include/asm/machvec_dig_vtd.h20
-rw-r--r--arch/ia64/include/asm/machvec_hpzx1.h20
-rw-r--r--arch/ia64/include/asm/machvec_hpzx1_swiotlb.h25
-rw-r--r--arch/ia64/include/asm/machvec_sn2.h24
6 files changed, 12 insertions, 186 deletions
diff --git a/arch/ia64/hp/common/hwsw_iommu.c b/arch/ia64/hp/common/hwsw_iommu.c
index 22145ded58f6..5cf750e1fddc 100644
--- a/arch/ia64/hp/common/hwsw_iommu.c
+++ b/arch/ia64/hp/common/hwsw_iommu.c
@@ -22,14 +22,18 @@ extern int swiotlb_late_init_with_default_size (size_t size);
22 22
23/* hwiommu declarations & definitions: */ 23/* hwiommu declarations & definitions: */
24 24
25extern ia64_mv_dma_alloc_coherent sba_alloc_coherent; 25extern void *sba_alloc_coherent(struct device *, size_t, dma_addr_t *, gfp_t);
26extern ia64_mv_dma_free_coherent sba_free_coherent; 26extern void sba_free_coherent (struct device *, size_t, void *, dma_addr_t);
27extern ia64_mv_dma_map_single_attrs sba_map_single_attrs; 27extern dma_addr_t sba_map_single_attrs(struct device *, void *, size_t, int,
28extern ia64_mv_dma_unmap_single_attrs sba_unmap_single_attrs; 28 struct dma_attrs *);
29extern ia64_mv_dma_map_sg_attrs sba_map_sg_attrs; 29extern void sba_unmap_single_attrs(struct device *, dma_addr_t, size_t, int,
30extern ia64_mv_dma_unmap_sg_attrs sba_unmap_sg_attrs; 30 struct dma_attrs *);
31extern ia64_mv_dma_supported sba_dma_supported; 31extern int sba_map_sg_attrs(struct device *, struct scatterlist *, int, int,
32extern ia64_mv_dma_mapping_error sba_dma_mapping_error; 32 struct dma_attrs *);
33extern void sba_unmap_sg_attrs(struct device *, struct scatterlist *, int, int,
34 struct dma_attrs *);
35extern int sba_dma_supported (struct device *, u64);
36extern int sba_dma_mapping_error(struct device *, dma_addr_t);
33 37
34#define hwiommu_alloc_coherent sba_alloc_coherent 38#define hwiommu_alloc_coherent sba_alloc_coherent
35#define hwiommu_free_coherent sba_free_coherent 39#define hwiommu_free_coherent sba_free_coherent
diff --git a/arch/ia64/include/asm/machvec.h b/arch/ia64/include/asm/machvec.h
index d40722c386b4..6be3010d746a 100644
--- a/arch/ia64/include/asm/machvec.h
+++ b/arch/ia64/include/asm/machvec.h
@@ -45,23 +45,6 @@ typedef void ia64_mv_kernel_launch_event_t(void);
45 45
46/* DMA-mapping interface: */ 46/* DMA-mapping interface: */
47typedef void ia64_mv_dma_init (void); 47typedef void ia64_mv_dma_init (void);
48typedef void *ia64_mv_dma_alloc_coherent (struct device *, size_t, dma_addr_t *, gfp_t);
49typedef void ia64_mv_dma_free_coherent (struct device *, size_t, void *, dma_addr_t);
50typedef dma_addr_t ia64_mv_dma_map_single (struct device *, void *, size_t, int);
51typedef void ia64_mv_dma_unmap_single (struct device *, dma_addr_t, size_t, int);
52typedef int ia64_mv_dma_map_sg (struct device *, struct scatterlist *, int, int);
53typedef void ia64_mv_dma_unmap_sg (struct device *, struct scatterlist *, int, int);
54typedef void ia64_mv_dma_sync_single_for_cpu (struct device *, dma_addr_t, size_t, int);
55typedef void ia64_mv_dma_sync_sg_for_cpu (struct device *, struct scatterlist *, int, int);
56typedef void ia64_mv_dma_sync_single_for_device (struct device *, dma_addr_t, size_t, int);
57typedef void ia64_mv_dma_sync_sg_for_device (struct device *, struct scatterlist *, int, int);
58typedef int ia64_mv_dma_mapping_error(struct device *, dma_addr_t dma_addr);
59typedef int ia64_mv_dma_supported (struct device *, u64);
60
61typedef dma_addr_t ia64_mv_dma_map_single_attrs (struct device *, void *, size_t, int, struct dma_attrs *);
62typedef void ia64_mv_dma_unmap_single_attrs (struct device *, dma_addr_t, size_t, int, struct dma_attrs *);
63typedef int ia64_mv_dma_map_sg_attrs (struct device *, struct scatterlist *, int, int, struct dma_attrs *);
64typedef void ia64_mv_dma_unmap_sg_attrs (struct device *, struct scatterlist *, int, int, struct dma_attrs *);
65 48
66/* 49/*
67 * WARNING: The legacy I/O space is _architected_. Platforms are 50 * WARNING: The legacy I/O space is _architected_. Platforms are
@@ -147,18 +130,6 @@ extern void machvec_tlb_migrate_finish (struct mm_struct *);
147# define platform_global_tlb_purge ia64_mv.global_tlb_purge 130# define platform_global_tlb_purge ia64_mv.global_tlb_purge
148# define platform_tlb_migrate_finish ia64_mv.tlb_migrate_finish 131# define platform_tlb_migrate_finish ia64_mv.tlb_migrate_finish
149# define platform_dma_init ia64_mv.dma_init 132# define platform_dma_init ia64_mv.dma_init
150# define platform_dma_alloc_coherent ia64_mv.dma_alloc_coherent
151# define platform_dma_free_coherent ia64_mv.dma_free_coherent
152# define platform_dma_map_single_attrs ia64_mv.dma_map_single_attrs
153# define platform_dma_unmap_single_attrs ia64_mv.dma_unmap_single_attrs
154# define platform_dma_map_sg_attrs ia64_mv.dma_map_sg_attrs
155# define platform_dma_unmap_sg_attrs ia64_mv.dma_unmap_sg_attrs
156# define platform_dma_sync_single_for_cpu ia64_mv.dma_sync_single_for_cpu
157# define platform_dma_sync_sg_for_cpu ia64_mv.dma_sync_sg_for_cpu
158# define platform_dma_sync_single_for_device ia64_mv.dma_sync_single_for_device
159# define platform_dma_sync_sg_for_device ia64_mv.dma_sync_sg_for_device
160# define platform_dma_mapping_error ia64_mv.dma_mapping_error
161# define platform_dma_supported ia64_mv.dma_supported
162# define platform_irq_to_vector ia64_mv.irq_to_vector 133# define platform_irq_to_vector ia64_mv.irq_to_vector
163# define platform_local_vector_to_irq ia64_mv.local_vector_to_irq 134# define platform_local_vector_to_irq ia64_mv.local_vector_to_irq
164# define platform_pci_get_legacy_mem ia64_mv.pci_get_legacy_mem 135# define platform_pci_get_legacy_mem ia64_mv.pci_get_legacy_mem
@@ -201,18 +172,6 @@ struct ia64_machine_vector {
201 ia64_mv_global_tlb_purge_t *global_tlb_purge; 172 ia64_mv_global_tlb_purge_t *global_tlb_purge;
202 ia64_mv_tlb_migrate_finish_t *tlb_migrate_finish; 173 ia64_mv_tlb_migrate_finish_t *tlb_migrate_finish;
203 ia64_mv_dma_init *dma_init; 174 ia64_mv_dma_init *dma_init;
204 ia64_mv_dma_alloc_coherent *dma_alloc_coherent;
205 ia64_mv_dma_free_coherent *dma_free_coherent;
206 ia64_mv_dma_map_single_attrs *dma_map_single_attrs;
207 ia64_mv_dma_unmap_single_attrs *dma_unmap_single_attrs;
208 ia64_mv_dma_map_sg_attrs *dma_map_sg_attrs;
209 ia64_mv_dma_unmap_sg_attrs *dma_unmap_sg_attrs;
210 ia64_mv_dma_sync_single_for_cpu *dma_sync_single_for_cpu;
211 ia64_mv_dma_sync_sg_for_cpu *dma_sync_sg_for_cpu;
212 ia64_mv_dma_sync_single_for_device *dma_sync_single_for_device;
213 ia64_mv_dma_sync_sg_for_device *dma_sync_sg_for_device;
214 ia64_mv_dma_mapping_error *dma_mapping_error;
215 ia64_mv_dma_supported *dma_supported;
216 ia64_mv_irq_to_vector *irq_to_vector; 175 ia64_mv_irq_to_vector *irq_to_vector;
217 ia64_mv_local_vector_to_irq *local_vector_to_irq; 176 ia64_mv_local_vector_to_irq *local_vector_to_irq;
218 ia64_mv_pci_get_legacy_mem_t *pci_get_legacy_mem; 177 ia64_mv_pci_get_legacy_mem_t *pci_get_legacy_mem;
@@ -251,18 +210,6 @@ struct ia64_machine_vector {
251 platform_global_tlb_purge, \ 210 platform_global_tlb_purge, \
252 platform_tlb_migrate_finish, \ 211 platform_tlb_migrate_finish, \
253 platform_dma_init, \ 212 platform_dma_init, \
254 platform_dma_alloc_coherent, \
255 platform_dma_free_coherent, \
256 platform_dma_map_single_attrs, \
257 platform_dma_unmap_single_attrs, \
258 platform_dma_map_sg_attrs, \
259 platform_dma_unmap_sg_attrs, \
260 platform_dma_sync_single_for_cpu, \
261 platform_dma_sync_sg_for_cpu, \
262 platform_dma_sync_single_for_device, \
263 platform_dma_sync_sg_for_device, \
264 platform_dma_mapping_error, \
265 platform_dma_supported, \
266 platform_irq_to_vector, \ 213 platform_irq_to_vector, \
267 platform_local_vector_to_irq, \ 214 platform_local_vector_to_irq, \
268 platform_pci_get_legacy_mem, \ 215 platform_pci_get_legacy_mem, \
@@ -332,42 +279,6 @@ extern void swiotlb_dma_init(void);
332#ifndef platform_dma_init 279#ifndef platform_dma_init
333# define platform_dma_init swiotlb_dma_init 280# define platform_dma_init swiotlb_dma_init
334#endif 281#endif
335#ifndef platform_dma_alloc_coherent
336# define platform_dma_alloc_coherent swiotlb_alloc_coherent
337#endif
338#ifndef platform_dma_free_coherent
339# define platform_dma_free_coherent swiotlb_free_coherent
340#endif
341#ifndef platform_dma_map_single_attrs
342# define platform_dma_map_single_attrs swiotlb_map_single_attrs
343#endif
344#ifndef platform_dma_unmap_single_attrs
345# define platform_dma_unmap_single_attrs swiotlb_unmap_single_attrs
346#endif
347#ifndef platform_dma_map_sg_attrs
348# define platform_dma_map_sg_attrs swiotlb_map_sg_attrs
349#endif
350#ifndef platform_dma_unmap_sg_attrs
351# define platform_dma_unmap_sg_attrs swiotlb_unmap_sg_attrs
352#endif
353#ifndef platform_dma_sync_single_for_cpu
354# define platform_dma_sync_single_for_cpu swiotlb_sync_single_for_cpu
355#endif
356#ifndef platform_dma_sync_sg_for_cpu
357# define platform_dma_sync_sg_for_cpu swiotlb_sync_sg_for_cpu
358#endif
359#ifndef platform_dma_sync_single_for_device
360# define platform_dma_sync_single_for_device swiotlb_sync_single_for_device
361#endif
362#ifndef platform_dma_sync_sg_for_device
363# define platform_dma_sync_sg_for_device swiotlb_sync_sg_for_device
364#endif
365#ifndef platform_dma_mapping_error
366# define platform_dma_mapping_error swiotlb_dma_mapping_error
367#endif
368#ifndef platform_dma_supported
369# define platform_dma_supported swiotlb_dma_supported
370#endif
371#ifndef platform_irq_to_vector 282#ifndef platform_irq_to_vector
372# define platform_irq_to_vector __ia64_irq_to_vector 283# define platform_irq_to_vector __ia64_irq_to_vector
373#endif 284#endif
diff --git a/arch/ia64/include/asm/machvec_dig_vtd.h b/arch/ia64/include/asm/machvec_dig_vtd.h
index 3400b561e711..6ab1de5c45ef 100644
--- a/arch/ia64/include/asm/machvec_dig_vtd.h
+++ b/arch/ia64/include/asm/machvec_dig_vtd.h
@@ -2,14 +2,6 @@
2#define _ASM_IA64_MACHVEC_DIG_VTD_h 2#define _ASM_IA64_MACHVEC_DIG_VTD_h
3 3
4extern ia64_mv_setup_t dig_setup; 4extern ia64_mv_setup_t dig_setup;
5extern ia64_mv_dma_alloc_coherent vtd_alloc_coherent;
6extern ia64_mv_dma_free_coherent vtd_free_coherent;
7extern ia64_mv_dma_map_single_attrs vtd_map_single_attrs;
8extern ia64_mv_dma_unmap_single_attrs vtd_unmap_single_attrs;
9extern ia64_mv_dma_map_sg_attrs vtd_map_sg_attrs;
10extern ia64_mv_dma_unmap_sg_attrs vtd_unmap_sg_attrs;
11extern ia64_mv_dma_supported iommu_dma_supported;
12extern ia64_mv_dma_mapping_error vtd_dma_mapping_error;
13extern ia64_mv_dma_init pci_iommu_alloc; 5extern ia64_mv_dma_init pci_iommu_alloc;
14 6
15/* 7/*
@@ -22,17 +14,5 @@ extern ia64_mv_dma_init pci_iommu_alloc;
22#define platform_name "dig_vtd" 14#define platform_name "dig_vtd"
23#define platform_setup dig_setup 15#define platform_setup dig_setup
24#define platform_dma_init pci_iommu_alloc 16#define platform_dma_init pci_iommu_alloc
25#define platform_dma_alloc_coherent vtd_alloc_coherent
26#define platform_dma_free_coherent vtd_free_coherent
27#define platform_dma_map_single_attrs vtd_map_single_attrs
28#define platform_dma_unmap_single_attrs vtd_unmap_single_attrs
29#define platform_dma_map_sg_attrs vtd_map_sg_attrs
30#define platform_dma_unmap_sg_attrs vtd_unmap_sg_attrs
31#define platform_dma_sync_single_for_cpu machvec_dma_sync_single
32#define platform_dma_sync_sg_for_cpu machvec_dma_sync_sg
33#define platform_dma_sync_single_for_device machvec_dma_sync_single
34#define platform_dma_sync_sg_for_device machvec_dma_sync_sg
35#define platform_dma_supported iommu_dma_supported
36#define platform_dma_mapping_error vtd_dma_mapping_error
37 17
38#endif /* _ASM_IA64_MACHVEC_DIG_VTD_h */ 18#endif /* _ASM_IA64_MACHVEC_DIG_VTD_h */
diff --git a/arch/ia64/include/asm/machvec_hpzx1.h b/arch/ia64/include/asm/machvec_hpzx1.h
index dd4140b4dd2f..3bd83d78a412 100644
--- a/arch/ia64/include/asm/machvec_hpzx1.h
+++ b/arch/ia64/include/asm/machvec_hpzx1.h
@@ -3,14 +3,6 @@
3 3
4extern ia64_mv_setup_t dig_setup; 4extern ia64_mv_setup_t dig_setup;
5extern ia64_mv_dma_init sba_dma_init; 5extern ia64_mv_dma_init sba_dma_init;
6extern ia64_mv_dma_alloc_coherent sba_alloc_coherent;
7extern ia64_mv_dma_free_coherent sba_free_coherent;
8extern ia64_mv_dma_map_single_attrs sba_map_single_attrs;
9extern ia64_mv_dma_unmap_single_attrs sba_unmap_single_attrs;
10extern ia64_mv_dma_map_sg_attrs sba_map_sg_attrs;
11extern ia64_mv_dma_unmap_sg_attrs sba_unmap_sg_attrs;
12extern ia64_mv_dma_supported sba_dma_supported;
13extern ia64_mv_dma_mapping_error sba_dma_mapping_error;
14 6
15/* 7/*
16 * This stuff has dual use! 8 * This stuff has dual use!
@@ -22,17 +14,5 @@ extern ia64_mv_dma_mapping_error sba_dma_mapping_error;
22#define platform_name "hpzx1" 14#define platform_name "hpzx1"
23#define platform_setup dig_setup 15#define platform_setup dig_setup
24#define platform_dma_init sba_dma_init 16#define platform_dma_init sba_dma_init
25#define platform_dma_alloc_coherent sba_alloc_coherent
26#define platform_dma_free_coherent sba_free_coherent
27#define platform_dma_map_single_attrs sba_map_single_attrs
28#define platform_dma_unmap_single_attrs sba_unmap_single_attrs
29#define platform_dma_map_sg_attrs sba_map_sg_attrs
30#define platform_dma_unmap_sg_attrs sba_unmap_sg_attrs
31#define platform_dma_sync_single_for_cpu machvec_dma_sync_single
32#define platform_dma_sync_sg_for_cpu machvec_dma_sync_sg
33#define platform_dma_sync_single_for_device machvec_dma_sync_single
34#define platform_dma_sync_sg_for_device machvec_dma_sync_sg
35#define platform_dma_supported sba_dma_supported
36#define platform_dma_mapping_error sba_dma_mapping_error
37 17
38#endif /* _ASM_IA64_MACHVEC_HPZX1_h */ 18#endif /* _ASM_IA64_MACHVEC_HPZX1_h */
diff --git a/arch/ia64/include/asm/machvec_hpzx1_swiotlb.h b/arch/ia64/include/asm/machvec_hpzx1_swiotlb.h
index a842cdda827b..48c3a35c95fb 100644
--- a/arch/ia64/include/asm/machvec_hpzx1_swiotlb.h
+++ b/arch/ia64/include/asm/machvec_hpzx1_swiotlb.h
@@ -2,18 +2,6 @@
2#define _ASM_IA64_MACHVEC_HPZX1_SWIOTLB_h 2#define _ASM_IA64_MACHVEC_HPZX1_SWIOTLB_h
3 3
4extern ia64_mv_setup_t dig_setup; 4extern ia64_mv_setup_t dig_setup;
5extern ia64_mv_dma_alloc_coherent hwsw_alloc_coherent;
6extern ia64_mv_dma_free_coherent hwsw_free_coherent;
7extern ia64_mv_dma_map_single_attrs hwsw_map_single_attrs;
8extern ia64_mv_dma_unmap_single_attrs hwsw_unmap_single_attrs;
9extern ia64_mv_dma_map_sg_attrs hwsw_map_sg_attrs;
10extern ia64_mv_dma_unmap_sg_attrs hwsw_unmap_sg_attrs;
11extern ia64_mv_dma_supported hwsw_dma_supported;
12extern ia64_mv_dma_mapping_error hwsw_dma_mapping_error;
13extern ia64_mv_dma_sync_single_for_cpu hwsw_sync_single_for_cpu;
14extern ia64_mv_dma_sync_sg_for_cpu hwsw_sync_sg_for_cpu;
15extern ia64_mv_dma_sync_single_for_device hwsw_sync_single_for_device;
16extern ia64_mv_dma_sync_sg_for_device hwsw_sync_sg_for_device;
17 5
18/* 6/*
19 * This stuff has dual use! 7 * This stuff has dual use!
@@ -23,20 +11,7 @@ extern ia64_mv_dma_sync_sg_for_device hwsw_sync_sg_for_device;
23 * the macros are used directly. 11 * the macros are used directly.
24 */ 12 */
25#define platform_name "hpzx1_swiotlb" 13#define platform_name "hpzx1_swiotlb"
26
27#define platform_setup dig_setup 14#define platform_setup dig_setup
28#define platform_dma_init machvec_noop 15#define platform_dma_init machvec_noop
29#define platform_dma_alloc_coherent hwsw_alloc_coherent
30#define platform_dma_free_coherent hwsw_free_coherent
31#define platform_dma_map_single_attrs hwsw_map_single_attrs
32#define platform_dma_unmap_single_attrs hwsw_unmap_single_attrs
33#define platform_dma_map_sg_attrs hwsw_map_sg_attrs
34#define platform_dma_unmap_sg_attrs hwsw_unmap_sg_attrs
35#define platform_dma_supported hwsw_dma_supported
36#define platform_dma_mapping_error hwsw_dma_mapping_error
37#define platform_dma_sync_single_for_cpu hwsw_sync_single_for_cpu
38#define platform_dma_sync_sg_for_cpu hwsw_sync_sg_for_cpu
39#define platform_dma_sync_single_for_device hwsw_sync_single_for_device
40#define platform_dma_sync_sg_for_device hwsw_sync_sg_for_device
41 16
42#endif /* _ASM_IA64_MACHVEC_HPZX1_SWIOTLB_h */ 17#endif /* _ASM_IA64_MACHVEC_HPZX1_SWIOTLB_h */
diff --git a/arch/ia64/include/asm/machvec_sn2.h b/arch/ia64/include/asm/machvec_sn2.h
index c1f6f871da81..afd029b4797e 100644
--- a/arch/ia64/include/asm/machvec_sn2.h
+++ b/arch/ia64/include/asm/machvec_sn2.h
@@ -56,18 +56,6 @@ extern ia64_mv_readw_t __sn_readw_relaxed;
56extern ia64_mv_readl_t __sn_readl_relaxed; 56extern ia64_mv_readl_t __sn_readl_relaxed;
57extern ia64_mv_readq_t __sn_readq_relaxed; 57extern ia64_mv_readq_t __sn_readq_relaxed;
58extern ia64_mv_dma_init sn_dma_init; 58extern ia64_mv_dma_init sn_dma_init;
59extern ia64_mv_dma_alloc_coherent sn_dma_alloc_coherent;
60extern ia64_mv_dma_free_coherent sn_dma_free_coherent;
61extern ia64_mv_dma_map_single_attrs sn_dma_map_single_attrs;
62extern ia64_mv_dma_unmap_single_attrs sn_dma_unmap_single_attrs;
63extern ia64_mv_dma_map_sg_attrs sn_dma_map_sg_attrs;
64extern ia64_mv_dma_unmap_sg_attrs sn_dma_unmap_sg_attrs;
65extern ia64_mv_dma_sync_single_for_cpu sn_dma_sync_single_for_cpu;
66extern ia64_mv_dma_sync_sg_for_cpu sn_dma_sync_sg_for_cpu;
67extern ia64_mv_dma_sync_single_for_device sn_dma_sync_single_for_device;
68extern ia64_mv_dma_sync_sg_for_device sn_dma_sync_sg_for_device;
69extern ia64_mv_dma_mapping_error sn_dma_mapping_error;
70extern ia64_mv_dma_supported sn_dma_supported;
71extern ia64_mv_migrate_t sn_migrate; 59extern ia64_mv_migrate_t sn_migrate;
72extern ia64_mv_kernel_launch_event_t sn_kernel_launch_event; 60extern ia64_mv_kernel_launch_event_t sn_kernel_launch_event;
73extern ia64_mv_setup_msi_irq_t sn_setup_msi_irq; 61extern ia64_mv_setup_msi_irq_t sn_setup_msi_irq;
@@ -112,18 +100,6 @@ extern ia64_mv_pci_fixup_bus_t sn_pci_fixup_bus;
112#define platform_pci_legacy_read sn_pci_legacy_read 100#define platform_pci_legacy_read sn_pci_legacy_read
113#define platform_pci_legacy_write sn_pci_legacy_write 101#define platform_pci_legacy_write sn_pci_legacy_write
114#define platform_dma_init sn_dma_init 102#define platform_dma_init sn_dma_init
115#define platform_dma_alloc_coherent sn_dma_alloc_coherent
116#define platform_dma_free_coherent sn_dma_free_coherent
117#define platform_dma_map_single_attrs sn_dma_map_single_attrs
118#define platform_dma_unmap_single_attrs sn_dma_unmap_single_attrs
119#define platform_dma_map_sg_attrs sn_dma_map_sg_attrs
120#define platform_dma_unmap_sg_attrs sn_dma_unmap_sg_attrs
121#define platform_dma_sync_single_for_cpu sn_dma_sync_single_for_cpu
122#define platform_dma_sync_sg_for_cpu sn_dma_sync_sg_for_cpu
123#define platform_dma_sync_single_for_device sn_dma_sync_single_for_device
124#define platform_dma_sync_sg_for_device sn_dma_sync_sg_for_device
125#define platform_dma_mapping_error sn_dma_mapping_error
126#define platform_dma_supported sn_dma_supported
127#define platform_migrate sn_migrate 103#define platform_migrate sn_migrate
128#define platform_kernel_launch_event sn_kernel_launch_event 104#define platform_kernel_launch_event sn_kernel_launch_event
129#ifdef CONFIG_PCI_MSI 105#ifdef CONFIG_PCI_MSI