diff options
author | steveu <steveu@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2003-07-18 18:58:41 +0000 |
---|---|---|
committer | steveu <steveu@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2003-07-18 18:58:41 +0000 |
commit | 90e9470c5bdb89a0aafe75e0dd85bfdad77017f8 (patch) | |
tree | 9f4c99056f7872cb2d12b0cd3b759add0bdc5f7f /zaptel.h | |
parent | 42e4ba5c26ed2b7f12363f39551566995f3da680 (diff) |
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
Diffstat (limited to 'zaptel.h')
-rwxr-xr-x | zaptel.h | 19 |
1 files changed, 13 insertions, 6 deletions
@@ -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 |