From b3f9edafd9af8fbe153c06c1d0ee478c3c21bd4b Mon Sep 17 00:00:00 2001 From: Russ Meyerriecks Date: Tue, 27 Jul 2010 01:14:01 +0000 Subject: wct4xxp: Fixed error injection bug git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9016 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/wct4xxp/base.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'drivers/dahdi/wct4xxp') 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 */ -- cgit v1.2.3