Merge ../linus
[pv_ops_mirror.git] / include / asm-sparc / dma-mapping.h
blob6db83dc93cb7c58fa595d0666c7f44d96c096f84
1 #ifndef _ASM_SPARC_DMA_MAPPING_H
2 #define _ASM_SPARC_DMA_MAPPING_H
5 #ifdef CONFIG_PCI
6 #include <asm-generic/dma-mapping.h>
7 #else
9 static inline void *dma_alloc_coherent(struct device *dev, size_t size,
10 dma_addr_t *dma_handle, gfp_t flag)
12 BUG();
13 return NULL;
16 static inline void dma_free_coherent(struct device *dev, size_t size,
17 void *vaddr, dma_addr_t dma_handle)
19 BUG();
22 #endif /* PCI */
24 #endif /* _ASM_SPARC_DMA_MAPPING_H */