USB: add driver for iowarrior devices.
[pandora-kernel.git] / include / asm-sparc / dma-mapping.h
1 #ifndef _ASM_SPARC_DMA_MAPPING_H
2 #define _ASM_SPARC_DMA_MAPPING_H
3
4
5 #ifdef CONFIG_PCI
6 #include <asm-generic/dma-mapping.h>
7 #else
8
9 static inline void *dma_alloc_coherent(struct device *dev, size_t size,
10                          dma_addr_t *dma_handle, gfp_t flag)
11 {
12         BUG();
13         return NULL;
14 }
15
16 static 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 */