dma-mapping.h 479 B

12345678910111213141516171819202122232425
  1. #ifndef _ASM_SPARC_DMA_MAPPING_H
  2. #define _ASM_SPARC_DMA_MAPPING_H
  3. #include <linux/config.h>
  4. #ifdef CONFIG_PCI
  5. #include <asm-generic/dma-mapping.h>
  6. #else
  7. static inline void *dma_alloc_coherent(struct device *dev, size_t size,
  8. dma_addr_t *dma_handle, gfp_t flag)
  9. {
  10. BUG();
  11. return NULL;
  12. }
  13. static inline void dma_free_coherent(struct device *dev, size_t size,
  14. void *vaddr, dma_addr_t dma_handle)
  15. {
  16. BUG();
  17. }
  18. #endif /* PCI */
  19. #endif /* _ASM_SPARC_DMA_MAPPING_H */