diff options
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/dma-mapping.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/arch/arm/include/asm/dma-mapping.h b/arch/arm/include/asm/dma-mapping.h index 80777d871422..a04803331144 100644 --- a/arch/arm/include/asm/dma-mapping.h +++ b/arch/arm/include/asm/dma-mapping.h | |||
@@ -186,17 +186,6 @@ extern int arm_dma_mmap(struct device *dev, struct vm_area_struct *vma, | |||
186 | void *cpu_addr, dma_addr_t dma_addr, size_t size, | 186 | void *cpu_addr, dma_addr_t dma_addr, size_t size, |
187 | struct dma_attrs *attrs); | 187 | struct dma_attrs *attrs); |
188 | 188 | ||
189 | #define dma_mmap_coherent(d, v, c, h, s) dma_mmap_attrs(d, v, c, h, s, NULL) | ||
190 | |||
191 | static inline int dma_mmap_attrs(struct device *dev, struct vm_area_struct *vma, | ||
192 | void *cpu_addr, dma_addr_t dma_addr, | ||
193 | size_t size, struct dma_attrs *attrs) | ||
194 | { | ||
195 | struct dma_map_ops *ops = get_dma_ops(dev); | ||
196 | BUG_ON(!ops); | ||
197 | return ops->mmap(dev, vma, cpu_addr, dma_addr, size, attrs); | ||
198 | } | ||
199 | |||
200 | static inline void *dma_alloc_writecombine(struct device *dev, size_t size, | 189 | static inline void *dma_alloc_writecombine(struct device *dev, size_t size, |
201 | dma_addr_t *dma_handle, gfp_t flag) | 190 | dma_addr_t *dma_handle, gfp_t flag) |
202 | { | 191 | { |
@@ -213,14 +202,6 @@ static inline void dma_free_writecombine(struct device *dev, size_t size, | |||
213 | return dma_free_attrs(dev, size, cpu_addr, dma_handle, &attrs); | 202 | return dma_free_attrs(dev, size, cpu_addr, dma_handle, &attrs); |
214 | } | 203 | } |
215 | 204 | ||
216 | static inline int dma_mmap_writecombine(struct device *dev, struct vm_area_struct *vma, | ||
217 | void *cpu_addr, dma_addr_t dma_addr, size_t size) | ||
218 | { | ||
219 | DEFINE_DMA_ATTRS(attrs); | ||
220 | dma_set_attr(DMA_ATTR_WRITE_COMBINE, &attrs); | ||
221 | return dma_mmap_attrs(dev, vma, cpu_addr, dma_addr, size, &attrs); | ||
222 | } | ||
223 | |||
224 | /* | 205 | /* |
225 | * This can be called during boot to increase the size of the consistent | 206 | * This can be called during boot to increase the size of the consistent |
226 | * DMA region above it's default value of 2MB. It must be called before the | 207 | * DMA region above it's default value of 2MB. It must be called before the |