dma-mapping-broken.h 579 B

123456789101112131415161718192021222324
  1. #ifndef _ASM_GENERIC_DMA_MAPPING_H
  2. #define _ASM_GENERIC_DMA_MAPPING_H
  3. /* This is used for archs that do not support DMA */
  4. static inline void *
  5. dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle,
  6. gfp_t flag)
  7. {
  8. BUG();
  9. return NULL;
  10. }
  11. static inline void
  12. dma_free_coherent(struct device *dev, size_t size, void *cpu_addr,
  13. dma_addr_t dma_handle)
  14. {
  15. BUG();
  16. }
  17. #define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
  18. #define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)
  19. #endif /* _ASM_GENERIC_DMA_MAPPING_H */