diff options
Diffstat (limited to 'arch/frv/include/asm/dma-mapping.h')
| -rw-r--r-- | arch/frv/include/asm/dma-mapping.h | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/arch/frv/include/asm/dma-mapping.h b/arch/frv/include/asm/dma-mapping.h index 6af5d83e2fb..1746a2b8e6e 100644 --- a/arch/frv/include/asm/dma-mapping.h +++ b/arch/frv/include/asm/dma-mapping.h @@ -126,18 +126,25 @@ int dma_set_mask(struct device *dev, u64 mask) } static inline -int dma_get_cache_alignment(void) +void dma_cache_sync(struct device *dev, void *vaddr, size_t size, + enum dma_data_direction direction) { - return 1 << L1_CACHE_SHIFT; + flush_write_buffers(); } -#define dma_is_consistent(d, h) (1) +/* 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 -void dma_cache_sync(struct device *dev, void *vaddr, size_t size, - enum dma_data_direction direction) +static inline int dma_get_sgtable(struct device *dev, struct sg_table *sgt, + void *cpu_addr, dma_addr_t dma_addr, + size_t size) { - flush_write_buffers(); + return -EINVAL; } #endif /* _ASM_DMA_MAPPING_H */ |
