From 90e9470c5bdb89a0aafe75e0dd85bfdad77017f8 Mon Sep 17 00:00:00 2001 From: steveu Date: Fri, 18 Jul 2003 18:58:41 +0000 Subject: Added new entries to the ZT_SPANINFO and zt_span structureis to store additional error counts. git-svn-id: http://svn.digium.com/svn/zaptel/trunk@220 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- zaptel.h | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'zaptel.h') diff --git a/zaptel.h b/zaptel.h index 5ce9567..ca02dae 100755 --- a/zaptel.h +++ b/zaptel.h @@ -24,6 +24,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * + * $Id$ */ #ifndef _LINUX_ZAPTEL_H @@ -176,7 +177,10 @@ int alarms; /* alarms status */ int txlevel; /* what TX level is set to */ int rxlevel; /* current RX level */ int bpvcount; /* current BPV count */ -int irqmisses; /* current IRQ misses */ +int crc4count; /* current CRC4 error count */ +int ebitcount; /* current E-bit error count */ +int fascount; /* current FAS error count */ +int irqmisses; /* current IRQ misses */ int syncsrc; /* span # of current sync source, or 0 for free run */ int numchans; /* number of configured channels on this span */ int totalchans; /* total number of channels on the span */ @@ -1090,9 +1094,9 @@ typedef enum { struct zt_span { spinlock_t lock; void *pvt; /* Private stuff */ - char name[40]; /* Span name */ - char desc[80]; /* Span description */ - int deflaw; /* Default law (ZT_MULAW or ZT_ALAW) */ + char name[40]; /* Span name */ + char desc[80]; /* Span description */ + int deflaw; /* Default law (ZT_MULAW or ZT_ALAW) */ int alarms; /* Pending alarms on span */ int flags; int irq; /* IRQ for this span's hardware */ @@ -1104,14 +1108,17 @@ struct zt_span { int rxlevel; /* Rx level */ int syncsrc; /* current sync src (gets copied here) */ unsigned int bpvcount; /* BPV counter */ + unsigned int crc4count; /* CRC4 error counter */ + unsigned int ebitcount; /* current E-bit error count */ + unsigned int fascount; /* current FAS error count */ int maintstat; /* Maintenance state */ - wait_queue_head_t maintq; /* Maintenance queue */ + wait_queue_head_t maintq; /* Maintenance queue */ int mainttimer; /* Maintenance timer */ int irqmisses; /* Interrupt misses */ - struct zt_chan *chans; /* Member channel structures */ + struct zt_chan *chans; /* Member channel structures */ /* ==== Span Callback Operations ==== */ /* Req: Set the requested chunk size. This is the unit in which you must -- cgit v1.2.3