|
@@ -89,4 +89,19 @@ extern void dma_free_coherent(struct device *, size_t, void *, dma_addr_t);
|
|
|
#define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent((d), (s), (h), (f))
|
|
|
#define dma_free_noncoherent(d, s, v, h) dma_free_coherent((d), (s), (v), (h))
|
|
|
|
|
|
+/* Not supported for now */
|
|
|
+static inline int dma_mmap_coherent(struct device *dev,
|
|
|
+ struct vm_area_struct *vma, void *cpu_addr,
|
|
|
+ dma_addr_t dma_addr, size_t size)
|
|
|
+{
|
|
|
+ return -EINVAL;
|
|
|
+}
|
|
|
+
|
|
|
+static inline int dma_get_sgtable(struct device *dev, struct sg_table *sgt,
|
|
|
+ void *cpu_addr, dma_addr_t dma_addr,
|
|
|
+ size_t size)
|
|
|
+{
|
|
|
+ return -EINVAL;
|
|
|
+}
|
|
|
+
|
|
|
#endif /* _ASM_C6X_DMA_MAPPING_H */
|