aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mISDNhw.h
diff options
context:
space:
mode:
authorKarsten Keil <kkeil@linux-pingi.de>2012-05-15 19:51:07 -0400
committerDavid S. Miller <davem@davemloft.net>2012-05-16 15:24:05 -0400
commit6d1ee48fd0d8d2586aaeda24dacffc426c2be44a (patch)
tree0a94204bfdf5ac0eb4d03885cb2f87ddb0e8eb1a /include/linux/mISDNhw.h
parent034005a0119b9c2aabe0ac3953eb9a65ca937a69 (diff)
mISDN: Implement MISDN_CTRL_FILL_EMPTY for more drivers
MISDN_CTRL_FILL_EMPTY is a meachanism to send a fixed value (normally silence) as long no data from upper layers is available. It can be used when recording voice messages or with unidirectional protocols. Signed-off-by: Karsten Keil <kkeil@linux-pingi.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mISDNhw.h')
-rw-r--r--include/linux/mISDNhw.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/mISDNhw.h b/include/linux/mISDNhw.h
index 226886cf31e7..621184216566 100644
--- a/include/linux/mISDNhw.h
+++ b/include/linux/mISDNhw.h
@@ -72,7 +72,7 @@
72#define FLG_LL_OK 24 72#define FLG_LL_OK 24
73#define FLG_LL_CONN 25 73#define FLG_LL_CONN 25
74#define FLG_DTMFSEND 26 74#define FLG_DTMFSEND 26
75 75#define FLG_TX_EMPTY 27
76/* workq events */ 76/* workq events */
77#define FLG_RECVQUEUE 30 77#define FLG_RECVQUEUE 30
78#define FLG_PHCHANGE 31 78#define FLG_PHCHANGE 31
@@ -142,6 +142,7 @@ extern int create_l1(struct dchannel *, dchannel_l1callback *);
142struct layer1; 142struct layer1;
143extern int l1_event(struct layer1 *, u_int); 143extern int l1_event(struct layer1 *, u_int);
144 144
145#define MISDN_BCH_FILL_SIZE 4
145 146
146struct bchannel { 147struct bchannel {
147 struct mISDNchannel ch; 148 struct mISDNchannel ch;
@@ -153,6 +154,7 @@ struct bchannel {
153 int slot; /* multiport card channel slot */ 154 int slot; /* multiport card channel slot */
154 struct timer_list timer; 155 struct timer_list timer;
155 /* receive data */ 156 /* receive data */
157 u8 fill[MISDN_BCH_FILL_SIZE];
156 struct sk_buff *rx_skb; 158 struct sk_buff *rx_skb;
157 unsigned short maxlen; 159 unsigned short maxlen;
158 unsigned short init_maxlen; /* initial value */ 160 unsigned short init_maxlen; /* initial value */