CVSROOT: /home/cvs
Module name: linux
Changes by: ralf@ftp.linux-mips.org 04/12/28 09:09:19
Modified files:
arch/mips/kernel: Makefile
Added files:
arch/mips/kernel: dma-no-isa.c
Log message:
Dummy ISA DMA functions for systems that don't have ISA but share
drivers with ISA such as legacy free PCI.
diff -urN linux/arch/mips/kernel/dma-no-isa.c
linux/arch/mips/kernel/dma-no-isa.c
--- linux/arch/mips/kernel/dma-no-isa.c 1970/01/01 00:00:00
+++ linux/arch/mips/kernel/dma-no-isa.c Tue Dec 28 09:09:19 2004 1.1
@@ -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>
+
+spinlock_t dma_spin_lock = SPIN_LOCK_UNLOCKED;
+
+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);
diff -urN linux/arch/mips/kernel/Makefile linux/arch/mips/kernel/Makefile
--- linux/arch/mips/kernel/Makefile 2004/12/12 02:14:02 1.85
+++ linux/arch/mips/kernel/Makefile 2004/12/28 09:09:19 1.86
@@ -35,6 +35,7 @@
obj-$(CONFIG_SMP) += smp.o
+obj-$(CONFIG_NO_ISA) += dma-no-isa.o
obj-$(CONFIG_I8259) += i8259.o
obj-$(CONFIG_IRQ_CPU) += irq_cpu.o
obj-$(CONFIG_IRQ_CPU_RM7K) += irq-rm7000.o
|