[zaptel-commits] mattf: trunk r1440 - /trunk/wct4xxp/base.c
zaptel-commits at lists.digium.com
zaptel-commits at lists.digium.com
Fri Sep 8 09:32:15 MST 2006
Author: mattf
Date: Fri Sep 8 11:32:15 2006
New Revision: 1440
URL: http://svn.digium.com/view/zaptel?rev=1440&view=rev
Log:
Add support for 56kbps ANSI links in hardhdlc mode.
Modified:
trunk/wct4xxp/base.c
Modified: trunk/wct4xxp/base.c
URL: http://svn.digium.com/view/zaptel/trunk/wct4xxp/base.c?rev=1440&r1=1439&r2=1440&view=diff
==============================================================================
--- trunk/wct4xxp/base.c (original)
+++ trunk/wct4xxp/base.c Fri Sep 8 11:32:15 2006
@@ -201,6 +201,8 @@
static int noburst = 1;
static int debugslips = 0;
static int polling = 0;
+/* For 56kbps links, set this module parameter to 0x7f */
+static int hardhdlcmode = 0xff;
#ifdef FANCY_ALARM
static int altab[] = {
@@ -943,7 +945,7 @@
/* Make sure we're in the right mode */
__t4_framer_out(wc, span, FRMR_MODE, mode);
__t4_framer_out(wc, span, FRMR_TSEO, 0x00);
- __t4_framer_out(wc, span, FRMR_TSBS1, 0xff);
+ __t4_framer_out(wc, span, FRMR_TSBS1, hardhdlcmode);
/* Set the interframe gaps, etc */
__t4_framer_out(wc, span, FRMR_CCR1, FRMR_CCR1_ITF|FRMR_CCR1_EITS);
@@ -3817,6 +3819,7 @@
MODULE_PARM(noburst, "i");
MODULE_PARM(debugslips, "i");
MODULE_PARM(polling, "i");
+MODULE_PARM(hardhdlcmode, "i");
MODULE_PARM(timingcable, "i");
MODULE_PARM(t1e1override, "i");
MODULE_PARM(alarmdebounce, "i");
More information about the zaptel-commits
mailing list