blob: 27af5d479ce62fda67f29a604efd852a0ddee7ff [file] [log] [blame]
James Hoganf5077582012-10-05 16:27:03 +01001#ifndef _ASM_METAG_DMA_MAPPING_H
2#define _ASM_METAG_DMA_MAPPING_H
3
Christoph Hellwig5348c1e2016-01-20 15:01:56 -08004extern struct dma_map_ops metag_dma_ops;
James Hoganf5077582012-10-05 16:27:03 +01005
Christoph Hellwig5348c1e2016-01-20 15:01:56 -08006static inline struct dma_map_ops *get_dma_ops(struct device *dev)
James Hoganf5077582012-10-05 16:27:03 +01007{
Christoph Hellwig5348c1e2016-01-20 15:01:56 -08008 return &metag_dma_ops;
James Hoganf5077582012-10-05 16:27:03 +01009}
10
James Hoganf5077582012-10-05 16:27:03 +010011/*
12 * dma_alloc_noncoherent() returns non-cacheable memory, so there's no need to
13 * do any flushing here.
14 */
15static inline void
16dma_cache_sync(struct device *dev, void *vaddr, size_t size,
17 enum dma_data_direction direction)
18{
19}
20
James Hoganf5077582012-10-05 16:27:03 +010021#endif