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 get_dma_ops(struct device * dev)7static inline struct dma_map_ops *get_dma_ops(struct device *dev) 8 { 9 return &v32_dma_ops; 10 } 11 #else get_dma_ops(struct device * dev)12static 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 dma_cache_sync(struct device * dev,void * vaddr,size_t size,enum dma_data_direction direction)20dma_cache_sync(struct device *dev, void *vaddr, size_t size, 21 enum dma_data_direction direction) 22 { 23 } 24 25 #endif 26