dma-mapping.h 501 B

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