Haavard Skinnemoen | 5f97f7f | 2006-09-25 23:32:13 -0700 | [diff] [blame] | 1 | #ifndef __ASM_AVR32_DMA_MAPPING_H |
| 2 | #define __ASM_AVR32_DMA_MAPPING_H |
| 3 | |
Ralf Baechle | d3fa72e | 2006-12-06 20:38:56 -0800 | [diff] [blame] | 4 | extern void dma_cache_sync(struct device *dev, void *vaddr, size_t size, |
| 5 | int direction); |
Haavard Skinnemoen | 5f97f7f | 2006-09-25 23:32:13 -0700 | [diff] [blame] | 6 | |
Christoph Hellwig | a34a517 | 2016-01-20 15:01:29 -0800 | [diff] [blame] | 7 | extern struct dma_map_ops avr32_dma_ops; |
| 8 | |
| 9 | static inline struct dma_map_ops *get_dma_ops(struct device *dev) |
Haavard Skinnemoen | 5f97f7f | 2006-09-25 23:32:13 -0700 | [diff] [blame] | 10 | { |
Christoph Hellwig | a34a517 | 2016-01-20 15:01:29 -0800 | [diff] [blame] | 11 | return &avr32_dma_ops; |
Haavard Skinnemoen | 5f97f7f | 2006-09-25 23:32:13 -0700 | [diff] [blame] | 12 | } |
| 13 | |
Haavard Skinnemoen | 5f97f7f | 2006-09-25 23:32:13 -0700 | [diff] [blame] | 14 | #endif /* __ASM_AVR32_DMA_MAPPING_H */ |