dma-mapping.h 505 B

1234567891011121314151617181920212223
  1. #ifndef _ASM_M32R_DMA_MAPPING_H
  2. #define _ASM_M32R_DMA_MAPPING_H
  3. /*
  4. * NOTE: Do not include <asm-generic/dma-mapping.h>
  5. * Because it requires PCI stuffs, but current M32R don't provide these.
  6. */
  7. static inline void *
  8. dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle,
  9. gfp_t flag)
  10. {
  11. return (void *)NULL;
  12. }
  13. static inline void
  14. dma_free_coherent(struct device *dev, size_t size, void *cpu_addr,
  15. dma_addr_t dma_handle)
  16. {
  17. return;
  18. }
  19. #endif /* _ASM_M32R_DMA_MAPPING_H */