[Asterisk-cvs] zaptel wct4xxp.c,1.49,1.50
markster at lists.digium.com
markster at lists.digium.com
Wed Jul 21 23:49:08 CDT 2004
Update of /usr/cvsroot/zaptel
In directory localhost.localdomain:/tmp/cvs-serv28125
Modified Files:
wct4xxp.c
Log Message:
Create "noburst" option to disable burst mode during bus mastering
Index: wct4xxp.c
===================================================================
RCS file: /usr/cvsroot/zaptel/wct4xxp.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- wct4xxp.c 21 Jul 2004 03:40:14 -0000 1.49
+++ wct4xxp.c 22 Jul 2004 03:35:08 -0000 1.50
@@ -60,6 +60,7 @@
static int t1e1override = -1;
static int loopback = 0;
static int alarmdebounce = 0;
+static int noburst = 0;
#ifdef FANCY_ALARM
static int altab[] = {
@@ -878,6 +879,8 @@
/* enable interrupts */
/* Start DMA, enabling DMA interrupts on read only */
wc->dmactrl = 0xc0000003 | (1 << 29);
+ if (noburst)
+ wc->dmactrl |= (1 << 26);
__t4_pci_out(wc, WC_DMACTRL, wc->dmactrl);
}
@@ -1404,6 +1407,8 @@
t4_pci_out(wc, WC_COUNT, ((ZT_MAX_CHUNKSIZE * 2 * 32 - 1) << 18) | ((ZT_MAX_CHUNKSIZE * 2 * 32 - 1) << 2));
t4_pci_out(wc, WC_INTR, 0);
wc->dmactrl = 0xc0000003 | (1 << 29);
+ if (noburst)
+ wc->dmactrl |= (1 << 26);
t4_pci_out(wc, WC_DMACTRL, wc->dmactrl);
return 0;
}
@@ -1732,6 +1737,7 @@
#endif
MODULE_PARM(debug, "i");
MODULE_PARM(loopback, "i");
+MODULE_PARM(noburst, "i");
MODULE_PARM(timingcable, "i");
MODULE_PARM(t1e1override, "i");
MODULE_PARM(alarmdebounce, "i");
More information about the svn-commits
mailing list