1 /* $Id: tpam.h,v 1.1.2.1 2001/11/20 14:19:38 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 
25 #ifndef _TPAM_H_
26 #define _TPAM_H_
27 
28 #include <linux/types.h>
29 #include <linux/pci.h>
30 
31 /* IOCTL commands */
32 #define TPAM_CMD_DSPLOAD	0x0001
33 #define TPAM_CMD_DSPSAVE	0x0002
34 #define TPAM_CMD_DSPRUN		0x0003
35 #define TPAM_CMD_LOOPMODEON	0x0004
36 #define TPAM_CMD_LOOPMODEOFF	0x0005
37 
38 /* addresses of debug information zones on board */
39 #define TPAM_TRAPAUDIT_REGISTER		0x005493e4
40 #define TPAM_NCOAUDIT_REGISTER		0x00500000
41 #define TPAM_MSGAUDIT_REGISTER		0x008E30F0
42 
43 /* length of debug information zones on board */
44 #define TPAM_TRAPAUDIT_LENGTH		10000
45 #define TPAM_NCOAUDIT_LENGTH		300000
46 #define TPAM_NCOAUDIT_COUNT		30
47 #define TPAM_MSGAUDIT_LENGTH		60000
48 
49 /* IOCTL load/save parameter */
50 typedef struct tpam_dsp_ioctl {
51 	__u32 address;	/* address to load/save data */
52 	__u32 data_len;	/* size of data to be loaded/saved */
53 	__u8 data[0];	/* data */
54 } tpam_dsp_ioctl;
55 
56 #endif /* _TPAM_H_ */
57