[PATCH] USB: pl2303: adds new IDs.
[linux-2.6/mini2440.git] / include / asm-sparc64 / dma-mapping.h
blobc7d5804ba76df1a1e458746cea57a828cbe93ac2
1 #ifndef _ASM_SPARC64_DMA_MAPPING_H
2 #define _ASM_SPARC64_DMA_MAPPING_H
4 #include <linux/config.h>
6 #ifdef CONFIG_PCI
7 #include <asm-generic/dma-mapping.h>
8 #else
10 struct device;
12 static inline void *dma_alloc_coherent(struct device *dev, size_t size,
13 dma_addr_t *dma_handle, gfp_t flag)
15 BUG();
16 return NULL;
19 static inline void dma_free_coherent(struct device *dev, size_t size,
20 void *vaddr, dma_addr_t dma_handle)
22 BUG();
25 #endif /* PCI */
27 #endif /* _ASM_SPARC64_DMA_MAPPING_H */