xhfc.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * B400M Quad-BRI module Driver
  3. * Written by Andrew Kohlsmith <akohlsmith@mixdown.ca>
  4. *
  5. * Copyright (C) 2010 Digium, Inc.
  6. * All rights reserved.
  7. *
  8. */
  9. /*
  10. * See http://www.asterisk.org for more information about
  11. * the Asterisk project. Please do not directly contact
  12. * any of the maintainers of this project for assistance;
  13. * the project provides a web site, mailing lists and IRC
  14. * channels for your use.
  15. *
  16. * This program is free software, distributed under the terms of
  17. * the GNU General Public License Version 2 as published by the
  18. * Free Software Foundation. See the LICENSE file included with
  19. * this program for more details.
  20. */
  21. #ifndef _B4XXM_H_
  22. #define _B4XXM_H_
  23. extern int bri_debug;
  24. extern int bri_spanfilter;
  25. extern int bri_teignorered;
  26. extern int bri_alarmdebounce;
  27. extern int bri_persistentlayer1;
  28. extern int timingcable;
  29. struct b400m;
  30. /* probes the given card to see if it's a B400M */
  31. int wctdm_init_b400m(struct wctdm *wc, int card);
  32. int wctdm_bri_checkisr(struct wctdm *wc, int card, int offset);
  33. void wctdm_unload_b400m(struct wctdm *wc, int card);
  34. void wctdm_hdlc_hard_xmit(struct dahdi_chan *chan);
  35. int b400m_spanconfig(struct dahdi_span *span, struct dahdi_lineconfig *lc);
  36. int b400m_dchan(struct dahdi_span *span);
  37. int b400m_chanconfig(struct dahdi_chan *chan, int sigtype);
  38. void b400m_post_init(struct b400m *b4);
  39. void b400m_set_dahdi_span(struct b400m *b4, int spanno,
  40. struct wctdm_span *wspan);
  41. void b400m_module_init(void);
  42. void b400m_module_cleanup(void);
  43. #endif /* _B4XX_H_ */