Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _ASM_SPARC_DMA_MAPPING_H |
| 2 | #define _ASM_SPARC_DMA_MAPPING_H |
| 3 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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, |
Al Viro | 970a9e7 | 2005-10-21 03:21:53 -0400 | [diff] [blame] | 10 | dma_addr_t *dma_handle, gfp_t flag) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 */ |