|
@@ -132,4 +132,19 @@ void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
|
|
|
flush_write_buffers();
|
|
|
}
|
|
|
|
|
|
+/* 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_DMA_MAPPING_H */
|