Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
[sfrench/cifs-2.6.git] / arch / cris / include / asm / dma-mapping.h
1 #ifndef _ASM_CRIS_DMA_MAPPING_H
2 #define _ASM_CRIS_DMA_MAPPING_H
3
4 #ifdef CONFIG_PCI
5 extern const struct dma_map_ops v32_dma_ops;
6
7 static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
8 {
9         return &v32_dma_ops;
10 }
11 #else
12 static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
13 {
14         BUG();
15         return NULL;
16 }
17 #endif
18
19 static inline void
20 dma_cache_sync(struct device *dev, void *vaddr, size_t size,
21                enum dma_data_direction direction)
22 {
23 }
24
25 #endif