apec.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * AP400 Echo Cancelation Hardware support
  3. *
  4. * Written by Wagner Gegler <aligera@aligera.com.br>
  5. *
  6. * Based on previous work written by Mark Spencer <markster@digium.com>
  7. *
  8. * Copyright (C) 2005-2006 Digium, Inc.
  9. *
  10. * Mark Spencer <markster@digium.com>
  11. *
  12. * All Rights Reserved
  13. *
  14. * This program is free software; you can redistribute it and/or modify
  15. * it under the terms of the GNU General Public License as published by
  16. * the Free Software Foundation; either version 2 of the License, or
  17. * (at your option) any later version.
  18. *
  19. * This program is distributed in the hope that it will be useful,
  20. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  21. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22. * GNU General Public License for more details.
  23. *
  24. * You should have received a copy of the GNU General Public License
  25. * along with this program; if not, write to the Free Software
  26. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  27. *
  28. */
  29. #ifndef _APEC_H_
  30. #define _APEC_H_
  31. #include <linux/firmware.h>
  32. struct apec_s;
  33. /* From AP400 */
  34. unsigned int oct_read(void *card, unsigned int addr);
  35. void oct_write(void *card, unsigned int addr, unsigned int data);
  36. /* From APEC */
  37. struct apec_s *apec_init(void *wc, int *isalaw, int numspans, const struct firmware *firmware);
  38. unsigned int apec_capacity_get(void *wc);
  39. void apec_setec(struct apec_s *instance, int channel, int eclen);
  40. int apec_checkirq(struct apec_s *apec);
  41. void apec_release(struct apec_s *instance);
  42. #endif /*_APEC_H_*/