summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/dahdi/kernel.h12
-rw-r--r--include/dahdi/user.h24
2 files changed, 23 insertions, 13 deletions
diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h
index 8ce81b0..3f1bc54 100644
--- a/include/dahdi/kernel.h
+++ b/include/dahdi/kernel.h
@@ -701,6 +701,18 @@ enum {
DAHDI_FLAGBIT_HDLC56 = 20, /*!< Sets the given channel (if in HDLC mode) to use 56K HDLC instead of 64K */
};
+struct dahdi_count {
+ __u32 fe; /*!< Framing error counter */
+ __u32 cv; /*!< Coding violations counter */
+ __u32 bpv; /*!< Bipolar Violation counter */
+ __u32 crc4; /*!< CRC4 error counter */
+ __u32 ebit; /*!< current E-bit error count */
+ __u32 fas; /*!< current FAS error count */
+ __u32 be; /*!< current bit error count */
+ __u32 prbs; /*!< current PRBS detected pattern */
+ __u32 errsec; /*!< errored seconds */
+};
+
/* map flagbits to flag masks */
#define DAHDI_FLAG(x) (1 << (DAHDI_FLAGBIT_ ## x))
diff --git a/include/dahdi/user.h b/include/dahdi/user.h
index 5bd03d7..84cae22 100644
--- a/include/dahdi/user.h
+++ b/include/dahdi/user.h
@@ -532,18 +532,6 @@ struct dahdi_params {
*/
#define DAHDI_IOMUX _IOWR(DAHDI_CODE, 9, int)
-struct dahdi_count {
- __u32 fe; /*!< Framing error counter */
- __u32 cv; /*!< Coding violations counter */
- __u32 bpv; /*!< Bipolar Violation counter */
- __u32 crc4; /*!< CRC4 error counter */
- __u32 ebit; /*!< current E-bit error count */
- __u32 fas; /*!< current FAS error count */
- __u32 be; /*!< current bit error count */
- __u32 prbs; /*!< current PRBS detected pattern */
- __u32 errsec; /*!< errored seconds */
-};
-
/*
* Get Span Status
*/
@@ -554,7 +542,17 @@ struct dahdi_spaninfo {
int alarms; /* alarms status */
int txlevel; /* what TX level is set to */
int rxlevel; /* current RX level */
- struct dahdi_count count;/* Performance and Error counters */
+
+ int bpvcount; /* current BPV count */
+ int crc4count; /* current CRC4 error count */
+ int ebitcount; /* current E-bit error count */
+ int fascount; /* current FAS error count */
+ __u32 fecount; /* Framing error counter */
+ __u32 cvcount; /* Coding violations counter */
+ __u32 becount; /* current bit error count */
+ __u32 prbs; /* current PRBS detected pattern */
+ __u32 errsec; /* errored seconds */
+
int irqmisses; /* current IRQ misses */
int syncsrc; /* span # of current sync source,
or 0 for free run */