Go to the documentation of this file.
46 #define DSS1_CMD_INVOKE ((0x00 << 8) | ISDN_PTYPE_EURO)
47 #define DSS1_CMD_INVOKE_ABORT ((0x01 << 8) | ISDN_PTYPE_EURO)
52 #define DSS1_STAT_INVOKE_RES ((0x80 << 8) | ISDN_PTYPE_EURO)
53 #define DSS1_STAT_INVOKE_ERR ((0x81 << 8) | ISDN_PTYPE_EURO)
54 #define DSS1_STAT_INVOKE_BRD ((0x82 << 8) | ISDN_PTYPE_EURO)
91 #define NI1_CMD_INVOKE ((0x00 << 8) | ISDN_PTYPE_NI1)
92 #define NI1_CMD_INVOKE_ABORT ((0x01 << 8) | ISDN_PTYPE_NI1)
97 #define NI1_STAT_INVOKE_RES ((0x80 << 8) | ISDN_PTYPE_NI1)
98 #define NI1_STAT_INVOKE_ERR ((0x81 << 8) | ISDN_PTYPE_NI1)
99 #define NI1_STAT_INVOKE_BRD ((0x82 << 8) | ISDN_PTYPE_NI1)
122 #define ISDN_CMD_IOCTL 0
123 #define ISDN_CMD_DIAL 1
124 #define ISDN_CMD_ACCEPTD 2
125 #define ISDN_CMD_ACCEPTB 3
126 #define ISDN_CMD_HANGUP 4
127 #define ISDN_CMD_CLREAZ 5
128 #define ISDN_CMD_SETEAZ 6
129 #define ISDN_CMD_GETEAZ 7
130 #define ISDN_CMD_SETSIL 8
131 #define ISDN_CMD_GETSIL 9
132 #define ISDN_CMD_SETL2 10
133 #define ISDN_CMD_GETL2 11
134 #define ISDN_CMD_SETL3 12
135 #define ISDN_CMD_GETL3 13
138 #define ISDN_CMD_SUSPEND 16
139 #define ISDN_CMD_RESUME 17
140 #define ISDN_CMD_PROCEED 18
141 #define ISDN_CMD_ALERT 19
142 #define ISDN_CMD_REDIR 20
143 #define ISDN_CMD_PROT_IO 21
144 #define CAPI_PUT_MESSAGE 22
145 #define ISDN_CMD_FAXCMD 23
146 #define ISDN_CMD_AUDIO 24
153 #define ISDN_STAT_STAVAIL 256
154 #define ISDN_STAT_ICALL 257
155 #define ISDN_STAT_RUN 258
156 #define ISDN_STAT_STOP 259
157 #define ISDN_STAT_DCONN 260
158 #define ISDN_STAT_BCONN 261
159 #define ISDN_STAT_DHUP 262
160 #define ISDN_STAT_BHUP 263
161 #define ISDN_STAT_CINF 264
162 #define ISDN_STAT_LOAD 265
163 #define ISDN_STAT_UNLOAD 266
164 #define ISDN_STAT_BSENT 267
165 #define ISDN_STAT_NODCH 268
166 #define ISDN_STAT_ADDCH 269
167 #define ISDN_STAT_CAUSE 270
168 #define ISDN_STAT_ICALLW 271
169 #define ISDN_STAT_REDIR 272
170 #define ISDN_STAT_PROT 273
171 #define ISDN_STAT_DISPLAY 274
172 #define ISDN_STAT_L1ERR 275
173 #define ISDN_STAT_FAXIND 276
174 #define ISDN_STAT_AUDIO 277
175 #define ISDN_STAT_DISCH 278
180 #define ISDN_AUDIO_SETDD 0
181 #define ISDN_AUDIO_DTMF 1
186 #define ISDN_STAT_L1ERR_SEND 1
187 #define ISDN_STAT_L1ERR_RECV 2
193 #define ISDN_FEATURE_L2_X75I (0x0001 << ISDN_PROTO_L2_X75I)
194 #define ISDN_FEATURE_L2_X75UI (0x0001 << ISDN_PROTO_L2_X75UI)
195 #define ISDN_FEATURE_L2_X75BUI (0x0001 << ISDN_PROTO_L2_X75BUI)
196 #define ISDN_FEATURE_L2_HDLC (0x0001 << ISDN_PROTO_L2_HDLC)
197 #define ISDN_FEATURE_L2_TRANS (0x0001 << ISDN_PROTO_L2_TRANS)
198 #define ISDN_FEATURE_L2_X25DTE (0x0001 << ISDN_PROTO_L2_X25DTE)
199 #define ISDN_FEATURE_L2_X25DCE (0x0001 << ISDN_PROTO_L2_X25DCE)
200 #define ISDN_FEATURE_L2_V11096 (0x0001 << ISDN_PROTO_L2_V11096)
201 #define ISDN_FEATURE_L2_V11019 (0x0001 << ISDN_PROTO_L2_V11019)
202 #define ISDN_FEATURE_L2_V11038 (0x0001 << ISDN_PROTO_L2_V11038)
203 #define ISDN_FEATURE_L2_MODEM (0x0001 << ISDN_PROTO_L2_MODEM)
204 #define ISDN_FEATURE_L2_FAX (0x0001 << ISDN_PROTO_L2_FAX)
205 #define ISDN_FEATURE_L2_HDLC_56K (0x0001 << ISDN_PROTO_L2_HDLC_56K)
207 #define ISDN_FEATURE_L2_MASK (0x0FFFF)
208 #define ISDN_FEATURE_L2_SHIFT (0)
211 #define ISDN_FEATURE_L3_TRANS (0x10000 << ISDN_PROTO_L3_TRANS)
212 #define ISDN_FEATURE_L3_TRANSDSP (0x10000 << ISDN_PROTO_L3_TRANSDSP)
213 #define ISDN_FEATURE_L3_FCLASS2 (0x10000 << ISDN_PROTO_L3_FCLASS2)
214 #define ISDN_FEATURE_L3_FCLASS1 (0x10000 << ISDN_PROTO_L3_FCLASS1)
216 #define ISDN_FEATURE_L3_MASK (0x0FF0000)
217 #define ISDN_FEATURE_L3_SHIFT (16)
220 #define ISDN_FEATURE_P_UNKNOWN (0x1000000 << ISDN_PTYPE_UNKNOWN)
221 #define ISDN_FEATURE_P_1TR6 (0x1000000 << ISDN_PTYPE_1TR6)
222 #define ISDN_FEATURE_P_EURO (0x1000000 << ISDN_PTYPE_EURO)
223 #define ISDN_FEATURE_P_NI1 (0x1000000 << ISDN_PTYPE_NI1)
225 #define ISDN_FEATURE_P_MASK (0x0FF000000)
226 #define ISDN_FEATURE_P_SHIFT (24)
238 #ifdef CONFIG_ISDN_TTY_FAX
243 typedef struct T30_s {
262 __u8 pollid[FAXIDLEN];
283 #define ISDN_TTY_FAX_CONN_IN 0
284 #define ISDN_TTY_FAX_CONN_OUT 1
286 #define ISDN_TTY_FAX_FCON 0
287 #define ISDN_TTY_FAX_DIS 1
288 #define ISDN_TTY_FAX_FTT 2
289 #define ISDN_TTY_FAX_MCF 3
290 #define ISDN_TTY_FAX_DCS 4
291 #define ISDN_TTY_FAX_TRAIN_OK 5
292 #define ISDN_TTY_FAX_EOP 6
293 #define ISDN_TTY_FAX_EOM 7
294 #define ISDN_TTY_FAX_MPS 8
295 #define ISDN_TTY_FAX_DTC 9
296 #define ISDN_TTY_FAX_RID 10
297 #define ISDN_TTY_FAX_HNG 11
298 #define ISDN_TTY_FAX_DT 12
299 #define ISDN_TTY_FAX_FCON_I 13
300 #define ISDN_TTY_FAX_DR 14
301 #define ISDN_TTY_FAX_ET 15
302 #define ISDN_TTY_FAX_CFR 16
303 #define ISDN_TTY_FAX_PTS 17
304 #define ISDN_TTY_FAX_SENT 18
306 #define ISDN_FAX_PHASE_IDLE 0
307 #define ISDN_FAX_PHASE_A 1
308 #define ISDN_FAX_PHASE_B 2
309 #define ISDN_FAX_PHASE_C 3
310 #define ISDN_FAX_PHASE_D 4
311 #define ISDN_FAX_PHASE_E 5
315 #define ISDN_FAX_CLASS1_FAE 0
316 #define ISDN_FAX_CLASS1_FTS 1
317 #define ISDN_FAX_CLASS1_FRS 2
318 #define ISDN_FAX_CLASS1_FTM 3
319 #define ISDN_FAX_CLASS1_FRM 4
320 #define ISDN_FAX_CLASS1_FTH 5
321 #define ISDN_FAX_CLASS1_FRH 6
322 #define ISDN_FAX_CLASS1_CTRL 7
324 #define ISDN_FAX_CLASS1_OK 0
325 #define ISDN_FAX_CLASS1_CONNECT 1
326 #define ISDN_FAX_CLASS1_NOCARR 2
327 #define ISDN_FAX_CLASS1_ERROR 3
328 #define ISDN_FAX_CLASS1_FCERROR 4
329 #define ISDN_FAX_CLASS1_QUERY 5
338 #define AT_EQ_VALUE 1
340 #define AT_EQ_QUERY 3
345 #define MAX_CAPI_PARA_LEN 50
381 #ifdef CONFIG_ISDN_TTY_FAX
388 #define dss1_io isdn_io
389 #define ni1_io isdn_io
503 #include <asm/uaccess.h>