dma-mapping: always provide the dma_map_ops based implementation
[deliverable/linux.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 struct dma_map_ops v32_dma_ops;
6
7 static inline struct dma_map_ops *get_dma_ops(struct device *dev)
8 {
9 return &v32_dma_ops;
10 }
11 #else
12 static inline struct dma_map_ops *get_dma_ops(struct device *dev)
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
This page took 0.035935 seconds and 5 git commands to generate.