summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wcb4xxp/wcb4xxp.h
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2012-04-18 00:12:06 +0000
committerShaun Ruffell <sruffell@digium.com>2012-04-18 00:12:06 +0000
commit2b6dcd736553860158b345c1d0d741abeb097115 (patch)
tree769f540951c60abe8eb9262b8ebad97e1a459637 /drivers/dahdi/wcb4xxp/wcb4xxp.h
parent2ec923262d529e9c35b5335a4ba9cb414abfa245 (diff)
wcb4xxp: Support for when network side deactivates layer1.
This is a port of the functionality in the wctdm24xxp driver to support power savings modes. Specifically, if the the network side of a BRI spans deactivates the span to save power, the B410P previously automatically activated it again. Now, if persistentlayer1=0 module parameter is set, the span will be allowed to stay deactivated until layer two has a message to send on the dchannel. This patch does not change any of the default behavior of the B410P driver and the defaults for the persistentlayer1 option is inconsistent with that of the B400M modules in the wctdm24xxp driver. Internal-Issue-ID: ABE-2845 From: Matthew Fredrickson <creslin@digium.com> [ Minor formatting, exposed the persistentlayer1 as module parameter, changed defaults for teignorered, alarmdebounce, and persistentlayer1 to match current defaults in wcb4xxp driver ] Signed-off-by: Shaun Ruffell <sruffell@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10661 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wcb4xxp/wcb4xxp.h')
-rw-r--r--drivers/dahdi/wcb4xxp/wcb4xxp.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/dahdi/wcb4xxp/wcb4xxp.h b/drivers/dahdi/wcb4xxp/wcb4xxp.h
index 80a28fe..c35c5dd 100644
--- a/drivers/dahdi/wcb4xxp/wcb4xxp.h
+++ b/drivers/dahdi/wcb4xxp/wcb4xxp.h
@@ -376,6 +376,7 @@
#define HFC_T1 0
#define HFC_T2 1
#define HFC_T3 2
+#define HFC_T4 3
#define MAX_SPANS_PER_CARD 8
@@ -396,8 +397,8 @@ struct b4xxp_span {
unsigned long alarmtimer;
int te_mode; /* 1=TE, 0=NT */
- unsigned long hfc_timers[WCB4XXP_CHANNELS_PER_SPAN]; /* T1, T2, T3 */
- int hfc_timer_on[WCB4XXP_CHANNELS_PER_SPAN]; /* 1=timer active */
+ unsigned long hfc_timers[4]; /* T1, T2, T3, Fake T4 */
+ int hfc_timer_on[4]; /* 1=timer active */
int fifos[WCB4XXP_CHANNELS_PER_SPAN]; /* B1, B2, D <--> host fifo numbers */
/* HDLC controller fields */