[svn-commits] rmeyerriecks: linux/trunk r9016 - /linux/trunk/drivers/dahdi/wct4xxp/base.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Jul 26 20:14:12 CDT 2010


Author: rmeyerriecks
Date: Mon Jul 26 20:14:01 2010
New Revision: 9016

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9016
Log:
wct4xxp: Fixed error injection bug

Modified:
    linux/trunk/drivers/dahdi/wct4xxp/base.c

Modified: linux/trunk/drivers/dahdi/wct4xxp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/wct4xxp/base.c?view=diff&rev=9016&r1=9015&r2=9016
==============================================================================
--- linux/trunk/drivers/dahdi/wct4xxp/base.c (original)
+++ linux/trunk/drivers/dahdi/wct4xxp/base.c Mon Jul 26 20:14:01 2010
@@ -468,7 +468,12 @@
 #define FMR1_ECM (1 << 2)	/* Error Counter 1sec Interrupt Enable */
 #define DEC_T 0x60		/* Diable Error Counter */
 #define IERR_T 0x1B		/* Single Bit Defect Insertion Register */
-enum{IBV, IPE, ICASE, ICRCE, IMFE, IFASE};
+#define IBV	0	 /* Bipolar violation */
+#define IPE	(1 << 1) /* PRBS defect */
+#define ICASE	(1 << 2) /* CAS defect */
+#define ICRCE	(1 << 3) /* CRC defect */
+#define IMFE	(1 << 4) /* Multiframe defect */
+#define IFASE	(1 << 5) /* FAS defect */
 #define ISR3_SEC (1 << 6)	/* Internal one-second interrupt bit mask */
 #define ISR3_ES (1 << 7)	/* Errored Second interrupt bit mask */
 #define ESM 0x47		/* Errored Second mask register */




More information about the svn-commits mailing list