patch-2.2.18 linux/arch/arm/kernel/dma.c
Next file: linux/arch/arm/kernel/dma.h
Previous file: linux/arch/arm/kernel/dma-vnc.c
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Fri Sep 15 23:28:37 2000
- Orig file:
v2.2.17/arch/arm/kernel/dma.c
- Orig date:
Fri Apr 21 12:45:45 2000
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/arch/arm/kernel/dma.c linux/arch/arm/kernel/dma.c
@@ -21,7 +21,6 @@
#include <linux/init.h>
#include <asm/page.h>
-#include <asm/pgtable.h>
#include <asm/irq.h>
#include <asm/hardware.h>
#include <asm/io.h>
@@ -201,6 +200,12 @@
printk (KERN_ERR "Trying to disable free DMA%d\n", channel);
}
+void set_dma_speed(dmach_t channel, int cycle_ns)
+{
+ dma_chan[channel].speed =
+ arch_set_dma_speed(channel, &dma_chan[channel], cycle_ns);
+}
+
int get_dma_residue(dmach_t channel)
{
return arch_get_dma_residue(channel, &dma_chan[channel]);
@@ -214,8 +219,9 @@
EXPORT_SYMBOL(set_dma_mode);
EXPORT_SYMBOL(get_dma_residue);
EXPORT_SYMBOL(set_dma_sg);
+EXPORT_SYMBOL(set_dma_speed);
-__initfunc(void init_dma(void))
+void __init init_dma(void)
{
arch_dma_init(dma_chan);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)