Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _ASM_GENERIC_DMA_MAPPING_H |
| 2 | #define _ASM_GENERIC_DMA_MAPPING_H |
| 3 | |
| 4 | /* This is used for archs that do not support DMA */ |
| 5 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | static inline void * |
| 7 | dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, |
Al Viro | 970a9e7 | 2005-10-21 03:21:53 -0400 | [diff] [blame] | 8 | gfp_t flag) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | { |
| 10 | BUG(); |
| 11 | return NULL; |
| 12 | } |
| 13 | |
| 14 | static inline void |
| 15 | dma_free_coherent(struct device *dev, size_t size, void *cpu_addr, |
| 16 | dma_addr_t dma_handle) |
| 17 | { |
| 18 | BUG(); |
| 19 | } |
| 20 | |
Heiko Carstens | 509cb37 | 2007-02-12 00:08:03 +0100 | [diff] [blame] | 21 | #define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f) |
| 22 | #define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h) |
| 23 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 24 | #endif /* _ASM_GENERIC_DMA_MAPPING_H */ |