tpam.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /* $Id: tpam.h,v 1.1.2.1 2001/06/08 08:23:46 kai Exp $
  2. *
  3. * Turbo PAM ISDN driver for Linux. (Kernel Driver)
  4. *
  5. * Copyright 2001 Stelian Pop <stelian.pop@fr.alcove.com>, Alcôve
  6. *
  7. * For all support questions please contact: <support@auvertech.fr>
  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. */
  24. #ifndef _TPAM_H_
  25. #define _TPAM_H_
  26. #include <linux/types.h>
  27. /* IOCTL commands */
  28. #define TPAM_CMD_DSPLOAD 0x0001
  29. #define TPAM_CMD_DSPSAVE 0x0002
  30. #define TPAM_CMD_DSPRUN 0x0003
  31. #define TPAM_CMD_LOOPMODEON 0x0004
  32. #define TPAM_CMD_LOOPMODEOFF 0x0005
  33. /* addresses of debug information zones on board */
  34. #define TPAM_TRAPAUDIT_REGISTER 0x005493e4
  35. #define TPAM_NCOAUDIT_REGISTER 0x00500000
  36. #define TPAM_MSGAUDIT_REGISTER 0x008E30F0
  37. /* length of debug information zones on board */
  38. #define TPAM_TRAPAUDIT_LENGTH 10000
  39. #define TPAM_NCOAUDIT_LENGTH 300000
  40. #define TPAM_NCOAUDIT_COUNT 30
  41. #define TPAM_MSGAUDIT_LENGTH 60000
  42. /* IOCTL load/save parameter */
  43. typedef struct tpam_dsp_ioctl {
  44. __u32 address; /* address to load/save data */
  45. __u32 data_len; /* size of data to be loaded/saved */
  46. __u8 data[0]; /* data */
  47. } tpam_dsp_ioctl;
  48. #endif /* _TPAM_H_ */