dma-mapping.h 456 B

1234567891011121314151617181920212223242526
  1. #ifndef _ASM_CRIS_DMA_MAPPING_H
  2. #define _ASM_CRIS_DMA_MAPPING_H
  3. #ifdef CONFIG_PCI
  4. extern struct dma_map_ops v32_dma_ops;
  5. static inline struct dma_map_ops *get_dma_ops(struct device *dev)
  6. {
  7. return &v32_dma_ops;
  8. }
  9. #else
  10. static inline struct dma_map_ops *get_dma_ops(struct device *dev)
  11. {
  12. BUG();
  13. return NULL;
  14. }
  15. #endif
  16. static inline void
  17. dma_cache_sync(struct device *dev, void *vaddr, size_t size,
  18. enum dma_data_direction direction)
  19. {
  20. }
  21. #endif