1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * Copyright 2008 by Karsten Keil <kkeil@novell.com>
8 #include <linux/mISDNif.h>
9 #include <linux/skbuff.h>
15 struct mISDNchannel ch
;
16 struct mISDNchannel bcast
;
18 struct list_head layer2
;
21 struct FsmTimer datimer
;
22 struct sk_buff_head sendq
;
23 struct mISDNchannel
*up
;
32 struct FsmTimer timer
;
44 struct list_head list
;
45 struct mISDNchannel ch
;
48 struct mISDNchannel
*up
;
59 struct FsmTimer t200
, t203
;
63 struct sk_buff
*windowar
[MAX_WINDOW
];
64 struct sk_buff_head i_queue
;
65 struct sk_buff_head ui_queue
;
66 struct sk_buff_head down_queue
;
67 struct sk_buff_head tmp_queue
;
81 #define L2_STATE_COUNT (ST_L2_8 + 1)
83 extern struct layer2
*create_l2(struct mISDNchannel
*, u_int
,
85 extern int tei_l2(struct layer2
*, u_int
, u_long arg
);
89 extern int l2_tei(struct layer2
*, u_int
, u_long arg
);
90 extern void TEIrelease(struct layer2
*);
91 extern int TEIInit(u_int
*);
92 extern void TEIFree(void);
94 #define MAX_L2HEADER_LEN 4
111 #define LC_FLUSH_WAIT 1
117 #define FLG_PEND_REL 4
118 #define FLG_L3_INIT 5
119 #define FLG_T200_RUN 6
120 #define FLG_ACK_PEND 7
122 #define FLG_OWN_BUSY 9
123 #define FLG_PEER_BUSY 10
124 #define FLG_DCHAN_BUSY 11
125 #define FLG_L1_ACTIV 12
126 #define FLG_ESTAB_PEND 13
128 #define FLG_FIXED_TEI 15
129 #define FLG_L2BLOCK 16
130 #define FLG_L1_NOTREADY 17
131 #define FLG_LAPD_NET 18