[TG3]: Add tagged status support.
[linux-2.6/verdex.git] / include / asm-sparc64 / dma-mapping.h
blob1c5da41653a44c1ed21dd6d5d554958ea67b51cc
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, int 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 */