From: Geert Uytterhoeven Add a dummy for systems that don't support the new DMA API, and make m68k use it if !CONFIG_PCI --- 25-akpm/include/asm-generic/dma-mapping-broken.h | 22 ++++++++++++++++++++++ 25-akpm/include/asm-m68k/dma-mapping.h | 2 ++ 2 files changed, 24 insertions(+) diff -puN /dev/null include/asm-generic/dma-mapping-broken.h --- /dev/null Thu Apr 11 07:25:15 2002 +++ 25-akpm/include/asm-generic/dma-mapping-broken.h Fri Feb 20 15:12:30 2004 @@ -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 */ diff -puN include/asm-m68k/dma-mapping.h~m68k-414 include/asm-m68k/dma-mapping.h --- 25/include/asm-m68k/dma-mapping.h~m68k-414 Fri Feb 20 15:12:30 2004 +++ 25-akpm/include/asm-m68k/dma-mapping.h Fri Feb 20 15:12:30 2004 @@ -5,6 +5,8 @@ #ifdef CONFIG_PCI #include +#else +#include #endif #endif /* _M68K_DMA_MAPPING_H */ _