1 #ifndef _ALPHA_DMA_MAPPING_H
2 #define _ALPHA_DMA_MAPPING_H
15 #define dma_alloc_coherent(d,s,h,f) dma_alloc_attrs(d,s,h,f,NULL)
17 static inline void *dma_alloc_attrs(
struct device *
dev,
size_t size,
21 return get_dma_ops(dev)->alloc(dev, size, dma_handle, gfp, attrs);
24 #define dma_free_coherent(d,s,c,h) dma_free_attrs(d,s,c,h,NULL)
26 static inline void dma_free_attrs(
struct device *
dev,
size_t size,
30 get_dma_ops(dev)->free(dev, size, vaddr, dma_handle, attrs);
35 return get_dma_ops(dev)->mapping_error(dev, dma_addr);
43 static inline int dma_set_mask(
struct device *dev,
u64 mask)
48 #define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
49 #define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)
51 #define dma_cache_sync(dev, va, size, dir) ((void)0)