[svn-commits] rmeyerriecks: branch linux/rmeyerriecks/dahdi-linux-maintmodes r8048 - /linux...
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Feb 18 17:27:39 CST 2010
Author: rmeyerriecks
Date: Thu Feb 18 17:27:33 2010
New Revision: 8048
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=8048
Log:
Added network line and payload loopback to the wcte12xp single span cards
Modified:
linux/team/rmeyerriecks/dahdi-linux-maintmodes/drivers/dahdi/wcte12xp/base.c
linux/team/rmeyerriecks/dahdi-linux-maintmodes/drivers/dahdi/wcte12xp/wcte12xp.h
Modified: linux/team/rmeyerriecks/dahdi-linux-maintmodes/drivers/dahdi/wcte12xp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/team/rmeyerriecks/dahdi-linux-maintmodes/drivers/dahdi/wcte12xp/base.c?view=diff&rev=8048&r1=8047&r2=8048
==============================================================================
--- linux/team/rmeyerriecks/dahdi-linux-maintmodes/drivers/dahdi/wcte12xp/base.c (original)
+++ linux/team/rmeyerriecks/dahdi-linux-maintmodes/drivers/dahdi/wcte12xp/base.c Thu Feb 18 17:27:33 2010
@@ -1101,16 +1101,27 @@
module_printk("XXX Turn off all looping T1 XXX\n");
// Turn off local loop
- reg = t1_getreg(wc, 0x36);
+ reg = t1_getreg(wc, LIM0);
t1_setreg(wc, LIM0, reg & ~LIM0_LL);
+
+ // Turn off remote loop & jitter attenuator
+ reg = t1_getreg(wc, LIM1);
+ t1_setreg(wc, LIM1, reg & ~(LIM1_RL | LIM1_JATT));
break;
case DAHDI_MAINT_LOCALLOOP:
module_printk("XXX Turn on local loop XXX\n");
- reg = t1_getreg(wc, 0x36);
+ reg = t1_getreg(wc, LIM0);
t1_setreg(wc, LIM0, reg | LIM0_LL);
break;
- case DAHDI_MAINT_REMOTELOOP:
- module_printk("XXX Turn on remote loopup XXX\n");
+ case DAHDI_MAINT_NETWORKLINELOOP:
+ module_printk("XXX Turn on network line loop XXX\n");
+ reg = t1_getreg(wc, LIM1);
+ t1_setreg(wc, LIM1, reg | LIM1_RL);
+ break;
+ case DAHDI_MAINT_NETWORKPAYLOADLOOP:
+ module_printk("XXX Turn on network payload loop XXX\n");
+ reg = t1_getreg(wc, LIM1);
+ t1_setreg(wc, LIM1, reg | (LIM1_RL | LIM1_JATT));
break;
case DAHDI_MAINT_LOOPUP:
t1_setreg(wc, 0x21, 0x50); /* FMR5: Nothing but RBS mode */
Modified: linux/team/rmeyerriecks/dahdi-linux-maintmodes/drivers/dahdi/wcte12xp/wcte12xp.h
URL: http://svnview.digium.com/svn/dahdi/linux/team/rmeyerriecks/dahdi-linux-maintmodes/drivers/dahdi/wcte12xp/wcte12xp.h?view=diff&rev=8048&r1=8047&r2=8048
==============================================================================
--- linux/team/rmeyerriecks/dahdi-linux-maintmodes/drivers/dahdi/wcte12xp/wcte12xp.h (original)
+++ linux/team/rmeyerriecks/dahdi-linux-maintmodes/drivers/dahdi/wcte12xp/wcte12xp.h Thu Feb 18 17:27:33 2010
@@ -137,7 +137,10 @@
};
// Maintenance Mode
-#define LIM0 0x36
-#define LIM0_LL (1<<1)
+#define LIM0 0x36
+#define LIM0_LL (1<<1)
+#define LIM1 0x37
+#define LIM1_RL (1<<1)
+#define LIM1_JATT (1<<2)
#endif
More information about the svn-commits
mailing list