From: Greg Ungerer <gerg@snapgear.com>
To: linux-kernel@vger.kernel.org
Cc: gerg@uclinux.org, linux-m68k@vger.kernel.org
Subject: [PATCH] m68k: merge mmu and non-mmu versions of dma.h
Date: Wed, 17 Jun 2009 17:11:20 +1000 [thread overview]
Message-ID: <200906170711.n5H7BKVi009035@localhost.localdomain> (raw)
[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 */
reply other threads:[~2009-06-17 7:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200906170711.n5H7BKVi009035@localhost.localdomain \
--to=gerg@snapgear.com \
--cc=gerg@uclinux.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-m68k@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox