isdn_common.h
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:2k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  1. /* $Id: isdn_common.h,v 1.1.4.1 2001/11/20 14:19:34 kai Exp $
  2.  *
  3.  * header for Linux ISDN subsystem
  4.  * common used functions and debugging-switches (linklevel).
  5.  *
  6.  * Copyright 1994-1999  by Fritz Elfert (fritz@isdn4linux.de)
  7.  * Copyright 1995,96    by Thinking Objects Software GmbH Wuerzburg
  8.  * Copyright 1995,96    by Michael Hipp (Michael.Hipp@student.uni-tuebingen.de)
  9.  *
  10.  * This software may be used and distributed according to the terms
  11.  * of the GNU General Public License, incorporated herein by reference.
  12.  *
  13.  */
  14. #undef  ISDN_DEBUG_MODEM_OPEN
  15. #undef  ISDN_DEBUG_MODEM_IOCTL
  16. #undef  ISDN_DEBUG_MODEM_WAITSENT
  17. #undef  ISDN_DEBUG_MODEM_HUP
  18. #undef  ISDN_DEBUG_MODEM_ICALL
  19. #undef  ISDN_DEBUG_MODEM_DUMP
  20. #undef  ISDN_DEBUG_MODEM_VOICE
  21. #undef  ISDN_DEBUG_AT
  22. #undef  ISDN_DEBUG_NET_DUMP
  23. #undef  ISDN_DEBUG_NET_DIAL
  24. #undef  ISDN_DEBUG_NET_ICALL
  25. /* Prototypes */
  26. extern void isdn_MOD_INC_USE_COUNT(void);
  27. extern void isdn_MOD_DEC_USE_COUNT(void);
  28. extern void isdn_free_channel(int di, int ch, int usage);
  29. extern void isdn_all_eaz(int di, int ch);
  30. extern int isdn_command(isdn_ctrl *);
  31. extern int isdn_dc2minor(int di, int ch);
  32. extern void isdn_info_update(void);
  33. extern char *isdn_map_eaz2msn(char *msn, int di);
  34. extern void isdn_timer_ctrl(int tf, int onoff);
  35. extern void isdn_unexclusive_channel(int di, int ch);
  36. extern int isdn_getnum(char **);
  37. extern int isdn_readbchan(int, int, u_char *, u_char *, int, wait_queue_head_t *);
  38. extern int isdn_get_free_channel(int, int, int, int, int, char *);
  39. extern int isdn_writebuf_skb_stub(int, int, int, struct sk_buff *);
  40. extern int register_isdn(isdn_if * i);
  41. extern int isdn_msncmp( const char *,  const char *);
  42. extern int isdn_add_channels(driver *, int, int, int);
  43. #if defined(ISDN_DEBUG_NET_DUMP) || defined(ISDN_DEBUG_MODEM_DUMP)
  44. extern void isdn_dumppkt(char *, u_char *, int, int);
  45. #endif