1 #ifndef _ASM_DMA_MAPPING_H
2 #define _ASM_DMA_MAPPING_H
4 #include <asm/scatterlist.h>
8 #ifndef CONFIG_SGI_IP27
9 #include <dma-coherence.h>
27 return addr + size <= *dev->
dma_mask;
60 #define dma_alloc_coherent(d,s,h,f) dma_alloc_attrs(d,s,h,f,NULL)
62 static inline void *dma_alloc_attrs(
struct device *dev,
size_t size,
69 ret = ops->
alloc(dev, size, dma_handle, gfp, attrs);
76 #define dma_free_coherent(d,s,c,h) dma_free_attrs(d,s,c,h,NULL)
78 static inline void dma_free_attrs(
struct device *dev,
size_t size,
84 ops->
free(dev, size, vaddr, dma_handle, attrs);