diff options
Diffstat (limited to 'arch/ia64/include/asm/dma-mapping.h')
-rw-r--r-- | arch/ia64/include/asm/dma-mapping.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/arch/ia64/include/asm/dma-mapping.h b/arch/ia64/include/asm/dma-mapping.h index cf3ab7e784b5..d36f83cc226a 100644 --- a/arch/ia64/include/asm/dma-mapping.h +++ b/arch/ia64/include/asm/dma-mapping.h | |||
@@ -23,31 +23,6 @@ extern void machvec_dma_sync_single(struct device *, dma_addr_t, size_t, | |||
23 | extern void machvec_dma_sync_sg(struct device *, struct scatterlist *, int, | 23 | extern void machvec_dma_sync_sg(struct device *, struct scatterlist *, int, |
24 | enum dma_data_direction); | 24 | enum dma_data_direction); |
25 | 25 | ||
26 | #define dma_alloc_coherent(d,s,h,f) dma_alloc_attrs(d,s,h,f,NULL) | ||
27 | |||
28 | static inline void *dma_alloc_attrs(struct device *dev, size_t size, | ||
29 | dma_addr_t *daddr, gfp_t gfp, | ||
30 | struct dma_attrs *attrs) | ||
31 | { | ||
32 | struct dma_map_ops *ops = platform_dma_get_ops(dev); | ||
33 | void *caddr; | ||
34 | |||
35 | caddr = ops->alloc(dev, size, daddr, gfp, attrs); | ||
36 | debug_dma_alloc_coherent(dev, size, *daddr, caddr); | ||
37 | return caddr; | ||
38 | } | ||
39 | |||
40 | #define dma_free_coherent(d,s,c,h) dma_free_attrs(d,s,c,h,NULL) | ||
41 | |||
42 | static inline void dma_free_attrs(struct device *dev, size_t size, | ||
43 | void *caddr, dma_addr_t daddr, | ||
44 | struct dma_attrs *attrs) | ||
45 | { | ||
46 | struct dma_map_ops *ops = platform_dma_get_ops(dev); | ||
47 | debug_dma_free_coherent(dev, size, caddr, daddr); | ||
48 | ops->free(dev, size, caddr, daddr, attrs); | ||
49 | } | ||
50 | |||
51 | #define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f) | 26 | #define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f) |
52 | #define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h) | 27 | #define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h) |
53 | 28 | ||