summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2004-12-28 12:09:19 +0300
committerRalf Baechle <ralf@linux-mips.org>2005-10-29 22:30:17 +0400
commit8c93650890a33318263880dec36603a6d5749b7e (patch)
tree7db742af92e519a334163dbfa44ad3a04d30752f /arch
parentb188ffe876382ecc009ceb4fe033fd6ec7ba4ede (diff)
downloadlinux-8c93650890a33318263880dec36603a6d5749b7e.tar.xz
Dummy ISA DMA functions for systems that don't have ISA but share
drivers with ISA such as legacy free PCI. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/kernel/dma-no-isa.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/mips/kernel/dma-no-isa.c b/arch/mips/kernel/dma-no-isa.c
new file mode 100644
index 000000000000..6df8b07741e3
--- /dev/null
+++ b/arch/mips/kernel/dma-no-isa.c
@@ -0,0 +1,28 @@
+/*
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License. See the file "COPYING" in the main directory of this archive
+ * for more details.
+ *
+ * Copyright (C) 2004 by Ralf Baechle
+ *
+ * Dummy ISA DMA functions for systems that don't have ISA but share drivers
+ * with ISA such as legacy free PCI.
+ */
+#include <linux/errno.h>
+#include <linux/module.h>
+#include <linux/spinlock.h>
+
+DEFINE_SPINLOCK(dma_spin_lock);
+
+int request_dma(unsigned int dmanr, const char * device_id)
+{
+ return -EINVAL;
+}
+
+void free_dma(unsigned int dmanr)
+{
+}
+
+EXPORT_SYMBOL(dma_spin_lock);
+EXPORT_SYMBOL(request_dma);
+EXPORT_SYMBOL(free_dma);