dma-mapping.h 765 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (C) 2011 Tobias Klauser <tklauser@distanz.ch>
  3. * Copyright (C) 2009 Wind River Systems Inc
  4. *
  5. * This file is subject to the terms and conditions of the GNU General
  6. * Public License. See the file COPYING in the main directory of this
  7. * archive for more details.
  8. */
  9. #ifndef _ASM_NIOS2_DMA_MAPPING_H
  10. #define _ASM_NIOS2_DMA_MAPPING_H
  11. extern struct dma_map_ops nios2_dma_ops;
  12. static inline struct dma_map_ops *get_dma_ops(struct device *dev)
  13. {
  14. return &nios2_dma_ops;
  15. }
  16. /*
  17. * dma_alloc_noncoherent() returns non-cacheable memory, so there's no need to
  18. * do any flushing here.
  19. */
  20. static inline void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
  21. enum dma_data_direction direction)
  22. {
  23. }
  24. #endif /* _ASM_NIOS2_DMA_MAPPING_H */