1 /* $Id: isdn_tty.h,v 1.1.2.2 2004/01/12 22:37:19 keil Exp $
3 * header for Linux ISDN subsystem, tty related functions (linklevel).
5 * Copyright 1994-1999 by Fritz Elfert (fritz@isdn4linux.de)
6 * Copyright 1995,96 by Thinking Objects Software GmbH Wuerzburg
8 * This software may be used and distributed according to the terms
9 * of the GNU General Public License, incorporated herein by reference.
13 #include <linux/config.h>
21 * Definition of some special Registers of AT-Emulator
24 #define REG_RINGCNT 1 /* ring counter register */
32 #define REG_RESP 12 /* show response messages register */
33 #define BIT_RESP 1 /* show response messages bit */
34 #define REG_RESPNUM 12 /* show numeric responses register */
35 #define BIT_RESPNUM 2 /* show numeric responses bit */
53 #define BIT_T70_EXT 32
58 #define REG_CIDONCE 13
59 #define BIT_CIDONCE 16
60 #define REG_RUNG 13 /* show RUNG message register */
61 #define BIT_RUNG 64 /* show RUNG message bit */
62 #define REG_DISPLAY 13
63 #define BIT_DISPLAY 128
77 #define REG_CPNFCON 23
82 /* defines for result codes */
84 #define RESULT_CONNECT 1
86 #define RESULT_NO_CARRIER 3
87 #define RESULT_ERROR 4
88 #define RESULT_CONNECT64000 5
89 #define RESULT_NO_DIALTONE 6
91 #define RESULT_NO_ANSWER 8
92 #define RESULT_RINGING 9
93 #define RESULT_NO_MSN_EAZ 10
94 #define RESULT_VCON 11
95 #define RESULT_RUNG 12
97 #define TTY_IS_FCLASS1(info) \
98 ((info->emu.mdmreg[REG_L2PROT] == ISDN_PROTO_L2_FAX) && \
99 (info->emu.mdmreg[REG_L3PROT] == ISDN_PROTO_L3_FCLASS1))
100 #define TTY_IS_FCLASS2(info) \
101 ((info->emu.mdmreg[REG_L2PROT] == ISDN_PROTO_L2_FAX) && \
102 (info->emu.mdmreg[REG_L3PROT] == ISDN_PROTO_L3_FCLASS2))
104 extern void isdn_tty_modem_escape(void);
105 extern void isdn_tty_modem_ring(void);
106 extern void isdn_tty_carrier_timeout(void);
107 extern void isdn_tty_modem_xmit(void);
108 extern int isdn_tty_modem_init(void);
109 extern void isdn_tty_exit(void);
110 extern void isdn_tty_readmodem(void);
111 extern int isdn_tty_find_icall(int, int, setup_parm
*);
112 extern int isdn_tty_stat_callback(int, isdn_ctrl
*);
113 extern int isdn_tty_rcv_skb(int, int, int, struct sk_buff
*);
114 extern int isdn_tty_capi_facility(capi_msg
*cm
);
115 extern void isdn_tty_at_cout(char *, modem_info
*);
116 extern void isdn_tty_modem_hup(modem_info
*, int);
117 #ifdef CONFIG_ISDN_TTY_FAX
118 extern int isdn_tty_cmd_PLUSF_FAX(char **, modem_info
*);
119 extern int isdn_tty_fax_command(modem_info
*, isdn_ctrl
*);
120 extern void isdn_tty_fax_bitorder(modem_info
*, struct sk_buff
*);