patch-2.1.101 linux/arch/mips/jazz/jazzdma.c

Next file: linux/arch/mips/jazz/reset.c
Previous file: linux/arch/mips/jazz/int-handler.S
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.100/linux/arch/mips/jazz/jazzdma.c linux/arch/mips/jazz/jazzdma.c
@@ -514,3 +514,18 @@
   
     return residual;
 }
+
+/*
+ * Get DMA channel enable register
+ */
+int vdma_get_enable(int channel)
+{
+    int enable;
+    
+    enable = r4030_read_reg32(JAZZ_R4030_CHNL_ENABLE+(channel<<5));
+    
+    if (vdma_debug)
+	printk("vdma_get_enable: channel %d: enable=%d\n",channel,enable);
+    
+    return enable;
+}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov