summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wct4xxp
diff options
context:
space:
mode:
authorRuss Meyerriecks <rmeyerriecks@digium.com>2010-07-27 01:14:01 +0000
committerRuss Meyerriecks <rmeyerriecks@digium.com>2010-07-27 01:14:01 +0000
commitc645f00c080ba9d584a7aa12510affe4e86595c5 (patch)
tree733039316a80fc34b650b09b433a0a03359bf625 /drivers/dahdi/wct4xxp
parente5f76c64ad75d59fb984fd2f88e3c753730d72c1 (diff)
wct4xxp: Fixed error injection bug
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9016 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wct4xxp')
-rw-r--r--drivers/dahdi/wct4xxp/base.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/dahdi/wct4xxp/base.c b/drivers/dahdi/wct4xxp/base.c
index d670ee7..5f7e671 100644
--- a/drivers/dahdi/wct4xxp/base.c
+++ b/drivers/dahdi/wct4xxp/base.c
@@ -468,7 +468,12 @@ static void t4_check_sigbits(struct t4 *wc, int span);
#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 */