patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / include / asm-sparc / dma-mapping.h
1 #ifndef _ASM_SPARC_DMA_MAPPING_H
2 #define _ASM_SPARC_DMA_MAPPING_H
3
4 #include <linux/config.h>
5 #include <linux/device.h>
6
7 #ifdef CONFIG_PCI
8 #include <asm-generic/dma-mapping.h>
9 #else
10
11 static inline void *dma_alloc_coherent(struct device *dev, size_t size,
12                          dma_addr_t *dma_handle, int flag)
13 {
14         BUG();
15         return NULL;
16 }
17
18 static inline void dma_free_coherent(struct device *dev, size_t size,
19                        void *vaddr, dma_addr_t dma_handle)
20 {
21         BUG();
22 }
23
24 #endif /* PCI */
25
26 #endif /* _ASM_SPARC_DMA_MAPPING_H */