dma-mapping.h 540 B

12345678910111213141516171819202122232425
  1. #ifndef _ASM_DMA_MAPPING_H
  2. #define _ASM_DMA_MAPPING_H
  3. #include <asm/cache.h>
  4. #include <asm/cacheflush.h>
  5. extern unsigned long __nongprelbss dma_coherent_mem_start;
  6. extern unsigned long __nongprelbss dma_coherent_mem_end;
  7. extern struct dma_map_ops frv_dma_ops;
  8. static inline struct dma_map_ops *get_dma_ops(struct device *dev)
  9. {
  10. return &frv_dma_ops;
  11. }
  12. static inline
  13. void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
  14. enum dma_data_direction direction)
  15. {
  16. flush_write_buffers();
  17. }
  18. #endif /* _ASM_DMA_MAPPING_H */