patch-2.1.51 linux/arch/mips/jazz/jazzdma.c
Next file: linux/arch/mips/jazz/setup.c
Previous file: linux/arch/mips/jazz/hw-access.c
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Sat Aug 16 09:51:07 1997
- Orig file:
v2.1.50/linux/arch/mips/jazz/jazzdma.c
- Orig date:
Mon Aug 4 16:25:36 1997
diff -u --recursive --new-file v2.1.50/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