dma-mapping.h 453 B

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