public inbox for linux-m68k@lists.linux-m68k.org
 help / color / mirror / Atom feed
* [PATCH] m68k: merge mmu and non-mmu versions of dma.h
@ 2009-06-17  7:11 Greg Ungerer
  0 siblings, 0 replies; only message in thread
From: Greg Ungerer @ 2009-06-17  7:11 UTC (permalink / raw)
  To: linux-kernel; +Cc: gerg, linux-m68k

[PATCH] m68k: merge mmu and non-mmu versions of dma.h

The non-mmu version of dma.h contains a lot of ColdFire specific DMA
support, but also all of the base m68k support. So use the non-mmu
version of dma.h for all.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
---
 arch/m68k/include/asm/{dma_no.h => dma.h} |   19 ++++++++-----------
 arch/m68k/include/asm/dma_mm.h            |   16 ----------------
 2 files changed, 8 insertions(+), 27 deletions(-)
 rename arch/m68k/include/asm/{dma_no.h => dma.h} (97%)
 delete mode 100644 arch/m68k/include/asm/dma_mm.h

diff --git a/arch/m68k/include/asm/dma_no.h b/arch/m68k/include/asm/dma.h
similarity index 97%
rename from arch/m68k/include/asm/dma_no.h
rename to arch/m68k/include/asm/dma.h
index 939a020..7cf7066 100644
--- a/arch/m68k/include/asm/dma_no.h
+++ b/arch/m68k/include/asm/dma.h
@@ -1,9 +1,6 @@
 #ifndef _M68K_DMA_H
 #define _M68K_DMA_H 1
  
-//#define	DMA_DEBUG	1
-
-
 #ifdef CONFIG_COLDFIRE
 /*
  * ColdFire DMA Model:
@@ -479,16 +476,16 @@ static __inline__ int get_dma_residue(unsigned int dmanr)
 
 #endif /* !defined(CONFIG_M5272) */
 #endif /* CONFIG_COLDFIRE */
- 
-#define MAX_DMA_CHANNELS 8
 
-/* Don't define MAX_DMA_ADDRESS; it's useless on the m68k/coldfire and any
-   occurrence should be flagged as an error.  */
-/* under 2.4 it is actually needed by the new bootmem allocator */
+/* it's useless on the m68k, but unfortunately needed by the new
+   bootmem allocator (but this should do it for this) */
 #define MAX_DMA_ADDRESS PAGE_OFFSET
 
-/* These are in kernel/dma.c: */
-extern int request_dma(unsigned int dmanr, const char *device_id);	/* reserve a DMA channel */
+#define MAX_DMA_CHANNELS 8
+
+extern int request_dma(unsigned int dmanr, const char * device_id);	/* reserve a DMA channel */
 extern void free_dma(unsigned int dmanr);	/* release it again */
- 
+
+#define isa_dma_bridge_buggy    (0)
+
 #endif /* _M68K_DMA_H */
diff --git a/arch/m68k/include/asm/dma_mm.h b/arch/m68k/include/asm/dma_mm.h
deleted file mode 100644
index 4240fbc..0000000
--- a/arch/m68k/include/asm/dma_mm.h
+++ /dev/null
@@ -1,16 +0,0 @@
-#ifndef _M68K_DMA_H
-#define _M68K_DMA_H 1
-
-
-/* it's useless on the m68k, but unfortunately needed by the new
-   bootmem allocator (but this should do it for this) */
-#define MAX_DMA_ADDRESS PAGE_OFFSET
-
-#define MAX_DMA_CHANNELS 8
-
-extern int request_dma(unsigned int dmanr, const char * device_id);	/* reserve a DMA channel */
-extern void free_dma(unsigned int dmanr);	/* release it again */
-
-#define isa_dma_bridge_buggy    (0)
-
-#endif /* _M68K_DMA_H */

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-06-17  7:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-17  7:11 [PATCH] m68k: merge mmu and non-mmu versions of dma.h Greg Ungerer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox