summaryrefslogtreecommitdiffstats
path: root/include/linux/isdn/tpam.h
blob: 9f65bea49d117fcd067ac391bfef5982914d0227 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/* $Id: tpam.h,v 1.1.2.1 2001/06/08 08:23:46 kai Exp $
 *
 * Turbo PAM ISDN driver for Linux. (Kernel Driver)
 *
 * Copyright 2001 Stelian Pop <stelian.pop@fr.alcove.com>, Alcôve
 *
 * For all support questions please contact: <support@auvertech.fr>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 */

#ifndef _TPAM_H_
#define _TPAM_H_

#include <linux/types.h>
#include <linux/pci.h>

/* IOCTL commands */
#define TPAM_CMD_DSPLOAD	0x0001
#define TPAM_CMD_DSPSAVE	0x0002
#define TPAM_CMD_DSPRUN		0x0003
#define TPAM_CMD_LOOPMODEON	0x0004
#define TPAM_CMD_LOOPMODEOFF	0x0005

/* addresses of debug information zones on board */
#define TPAM_TRAPAUDIT_REGISTER		0x005493e4
#define TPAM_NCOAUDIT_REGISTER		0x00500000
#define TPAM_MSGAUDIT_REGISTER		0x008E30F0

/* length of debug information zones on board */
#define TPAM_TRAPAUDIT_LENGTH		10000
#define TPAM_NCOAUDIT_LENGTH		300000
#define TPAM_NCOAUDIT_COUNT		30
#define TPAM_MSGAUDIT_LENGTH		60000

/* IOCTL load/save parameter */
typedef struct tpam_dsp_ioctl {
	__u32 address;	/* address to load/save data */
	__u32 data_len;	/* size of data to be loaded/saved */
	__u8 data[0];	/* data */
} tpam_dsp_ioctl;

#endif /* _TPAM_H_ */
OpenPOWER on IntegriCloud