diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-02-22 07:04:34 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-02-22 07:04:34 -0800 |
| commit | cb74ba0d864691f33765a78c01510ded5e08f2fa (patch) | |
| tree | b4e88e0149754166d64384fce9d755147476c0d1 /include/asm-generic | |
| parent | 297b5efbf77b0fd7150de785d0a97af1a6f011f9 (diff) | |
[PATCH] m68k: Dummy dma mapping
From: Geert Uytterhoeven <geert@linux-m68k.org>
Add a dummy <asm-generic/dma-mapping-broken.h> for systems that don't support
the new DMA API, and make m68k use it if !CONFIG_PCI
Diffstat (limited to 'include/asm-generic')
| -rw-r--r-- | include/asm-generic/dma-mapping-broken.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/asm-generic/dma-mapping-broken.h b/include/asm-generic/dma-mapping-broken.h new file mode 100644 index 000000000000..e3185b194c3e --- /dev/null +++ b/include/asm-generic/dma-mapping-broken.h @@ -0,0 +1,22 @@ +#ifndef _ASM_GENERIC_DMA_MAPPING_H +#define _ASM_GENERIC_DMA_MAPPING_H + +/* This is used for archs that do not support DMA */ + + +static inline void * +dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, + int flag) +{ + BUG(); + return 0; +} + +static inline void +dma_free_coherent(struct device *dev, size_t size, void *cpu_addr, + dma_addr_t dma_handle) +{ + BUG(); +} + +#endif /* _ASM_GENERIC_DMA_MAPPING_H */ |
