xhfc.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. void wctdm_bri_checkisr(struct wctdm *wc,
  33. struct wctdm_module *const mod, int offset);
  34. void wctdm_unload_b400m(struct wctdm *wc, int card);
  35. void wctdm_hdlc_hard_xmit(struct dahdi_chan *chan);
  36. int b400m_spanconfig(struct file *file, struct dahdi_span *span,
  37. struct dahdi_lineconfig *lc);
  38. int b400m_dchan(struct dahdi_span *span);
  39. int b400m_chanconfig(struct file *file, struct dahdi_chan *chan, int sigtype);
  40. void b400m_post_init(struct b400m *b4);
  41. void b400m_set_dahdi_span(struct b400m *b4, int spanno,
  42. struct wctdm_span *wspan);
  43. void b400m_module_init(void);
  44. void b400m_module_cleanup(void);
  45. #endif /* _B4XX_H_ */