blob: 6db83dc93cb7c58fa595d0666c7f44d96c096f84 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _ASM_SPARC_DMA_MAPPING_H
2#define _ASM_SPARC_DMA_MAPPING_H
3
Linus Torvalds1da177e2005-04-16 15:20:36 -07004
5#ifdef CONFIG_PCI
6#include <asm-generic/dma-mapping.h>
7#else
8
9static inline void *dma_alloc_coherent(struct device *dev, size_t size,
Al Viro970a9e72005-10-21 03:21:53 -040010 dma_addr_t *dma_handle, gfp_t flag)
Linus Torvalds1da177e2005-04-16 15:20:36 -070011{
12 BUG();
13 return NULL;
14}
15
16static inline void dma_free_coherent(struct device *dev, size_t size,
17 void *vaddr, dma_addr_t dma_handle)
18{
19 BUG();
20}
21
22#endif /* PCI */
23
24#endif /* _ASM_SPARC_DMA_MAPPING_H */