tpam.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. #include <linux/pci.h>
  28. /* IOCTL commands */
  29. #define TPAM_CMD_DSPLOAD 0x0001
  30. #define TPAM_CMD_DSPSAVE 0x0002
  31. #define TPAM_CMD_DSPRUN 0x0003
  32. #define TPAM_CMD_LOOPMODEON 0x0004
  33. #define TPAM_CMD_LOOPMODEOFF 0x0005
  34. /* addresses of debug information zones on board */
  35. #define TPAM_TRAPAUDIT_REGISTER 0x005493e4
  36. #define TPAM_NCOAUDIT_REGISTER 0x00500000
  37. #define TPAM_MSGAUDIT_REGISTER 0x008E30F0
  38. /* length of debug information zones on board */
  39. #define TPAM_TRAPAUDIT_LENGTH 10000
  40. #define TPAM_NCOAUDIT_LENGTH 300000
  41. #define TPAM_NCOAUDIT_COUNT 30
  42. #define TPAM_MSGAUDIT_LENGTH 60000
  43. /* IOCTL load/save parameter */
  44. typedef struct tpam_dsp_ioctl {
  45. __u32 address; /* address to load/save data */
  46. __u32 data_len; /* size of data to be loaded/saved */
  47. __u8 data[0]; /* data */
  48. } tpam_dsp_ioctl;
  49. #endif /* _TPAM_H_ */