1 |
1626 |
jcastillo |
/* $Id: isdn_common.h,v 1.1 2005-12-20 10:16:56 jcastillo Exp $
|
2 |
|
|
|
3 |
|
|
* header for Linux ISDN subsystem, common used functions and debugging-switches (linklevel).
|
4 |
|
|
*
|
5 |
|
|
* Copyright 1994-1998 by Fritz Elfert (fritz@isdn4linux.de)
|
6 |
|
|
* Copyright 1995,96 by Thinking Objects Software GmbH Wuerzburg
|
7 |
|
|
* Copyright 1995,96 by Michael Hipp (Michael.Hipp@student.uni-tuebingen.de)
|
8 |
|
|
*
|
9 |
|
|
* This program is free software; you can redistribute it and/or modify
|
10 |
|
|
* it under the terms of the GNU General Public License as published by
|
11 |
|
|
* the Free Software Foundation; either version 2, or (at your option)
|
12 |
|
|
* any later version.
|
13 |
|
|
*
|
14 |
|
|
* This program is distributed in the hope that it will be useful,
|
15 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
16 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
17 |
|
|
* GNU General Public License for more details.
|
18 |
|
|
*
|
19 |
|
|
* You should have received a copy of the GNU General Public License
|
20 |
|
|
* along with this program; if not, write to the Free Software
|
21 |
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
22 |
|
|
*
|
23 |
|
|
* $Log: not supported by cvs2svn $
|
24 |
|
|
* Revision 1.1.1.1 2001/09/10 07:44:18 simons
|
25 |
|
|
* Initial import
|
26 |
|
|
*
|
27 |
|
|
* Revision 1.1.1.1 2001/07/02 17:58:31 simons
|
28 |
|
|
* Initial revision
|
29 |
|
|
*
|
30 |
|
|
* Revision 1.6.2.3 1998/11/05 22:11:50 fritz
|
31 |
|
|
* Changed mail-address.
|
32 |
|
|
*
|
33 |
|
|
* Revision 1.6.2.2 1998/10/25 15:48:10 fritz
|
34 |
|
|
* Misc bugfixes and adaptions to new HiSax
|
35 |
|
|
*
|
36 |
|
|
* Revision 1.6.2.1 1998/03/16 09:55:48 cal
|
37 |
|
|
* Merged in TimRu-patches. Still needs validation in conjunction with ABC-patches.
|
38 |
|
|
*
|
39 |
|
|
* Revision 1.6 1997/02/28 02:32:44 fritz
|
40 |
|
|
* Cleanup: Moved some tty related stuff from isdn_common.c
|
41 |
|
|
* to isdn_tty.c
|
42 |
|
|
* Bugfix: Bisync protocol did not behave like documented.
|
43 |
|
|
*
|
44 |
|
|
* Revision 1.5 1997/02/10 10:05:45 fritz
|
45 |
|
|
* More changes for Kernel 2.1.X
|
46 |
|
|
* Symbol information moved to isdn_syms.c
|
47 |
|
|
*
|
48 |
|
|
* Revision 1.4 1997/02/03 22:56:50 fritz
|
49 |
|
|
* Removed isdn_writebuf_stub prototype.
|
50 |
|
|
*
|
51 |
|
|
* Revision 1.3 1996/05/19 00:13:05 fritz
|
52 |
|
|
* Removed debug flag.
|
53 |
|
|
*
|
54 |
|
|
* Revision 1.2 1996/04/20 16:20:40 fritz
|
55 |
|
|
* Misc. typos.
|
56 |
|
|
*
|
57 |
|
|
* Revision 1.1 1996/01/10 21:37:19 fritz
|
58 |
|
|
* Initial revision
|
59 |
|
|
*
|
60 |
|
|
*/
|
61 |
|
|
|
62 |
|
|
#undef ISDN_DEBUG_MODEM_OPEN
|
63 |
|
|
#undef ISDN_DEBUG_MODEM_IOCTL
|
64 |
|
|
#undef ISDN_DEBUG_MODEM_WAITSENT
|
65 |
|
|
#undef ISDN_DEBUG_MODEM_HUP
|
66 |
|
|
#undef ISDN_DEBUG_MODEM_ICALL
|
67 |
|
|
#undef ISDN_DEBUG_MODEM_DUMP
|
68 |
|
|
#undef ISDN_DEBUG_MODEM_VOICE
|
69 |
|
|
#undef ISDN_DEBUG_AT
|
70 |
|
|
#undef ISDN_DEBUG_NET_DUMP
|
71 |
|
|
#undef ISDN_DEBUG_NET_DIAL
|
72 |
|
|
#undef ISDN_DEBUG_NET_ICALL
|
73 |
|
|
|
74 |
|
|
/* Prototypes */
|
75 |
|
|
extern void isdn_MOD_INC_USE_COUNT(void);
|
76 |
|
|
extern void isdn_MOD_DEC_USE_COUNT(void);
|
77 |
|
|
extern void isdn_free_channel(int di, int ch, int usage);
|
78 |
|
|
extern int isdn_command(isdn_ctrl *);
|
79 |
|
|
extern void isdn_all_eaz(int di, int ch);
|
80 |
|
|
extern int isdn_dc2minor(int di, int ch);
|
81 |
|
|
extern void isdn_info_update(void);
|
82 |
|
|
extern char *isdn_map_eaz2msn(char *msn, int di);
|
83 |
|
|
extern void isdn_timer_ctrl(int tf, int onoff);
|
84 |
|
|
extern void isdn_unexclusive_channel(int di, int ch);
|
85 |
|
|
extern int isdn_getnum(char **);
|
86 |
|
|
extern int isdn_readbchan(int, int, u_char *, u_char *, int, int);
|
87 |
|
|
extern int isdn_get_free_channel(int, int, int, int, int);
|
88 |
|
|
extern int isdn_writebuf_skb_stub(int, int, struct sk_buff *);
|
89 |
|
|
extern int register_isdn(isdn_if * i);
|
90 |
|
|
#if (LINUX_VERSION_CODE < 0x020111)
|
91 |
|
|
extern void isdn_export_syms(void);
|
92 |
|
|
#else
|
93 |
|
|
#define isdn_export_syms()
|
94 |
|
|
#endif
|
95 |
|
|
#if defined(ISDN_DEBUG_NET_DUMP) || defined(ISDN_DEBUG_MODEM_DUMP) || defined(CONFIG_ISDN_TIMEOUT_RULES)
|
96 |
|
|
extern void isdn_dumppkt(char *, u_char *, int, int);
|
97 |
|
|
#endif
|