2
* Wilcard T400P FXS Interface Driver for Zapata Telephony interface
4
* Written by Mark Spencer <markster@linux-support.net>
6
* Copyright (C) 2001, Linux Support Services, Inc.
10
* This program is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 2 of the License, or
13
* (at your option) any later version.
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU General Public License for more details.
20
* You should have received a copy of the GNU General Public License
21
* along with this program; if not, write to the Free Software
22
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26
#include <linux/ioctl.h>
28
#define FRMR_TTR_BASE 0x10
29
#define FRMR_RTR_BASE 0x0c
30
#define FRMR_TSEO 0xa0
31
#define FRMR_TSBS1 0xa1
32
#define FRMR_CCR1 0x09
33
#define FRMR_CCR1_ITF 0x08
34
#define FRMR_CCR1_EITS 0x10
35
#define FRMR_CCR2 0x0a
36
#define FRMR_CCR2_RCRC 0x04
37
#define FRMR_CCR2_RADD 0x10
38
#define FRMR_MODE 0x03
39
#define FRMR_MODE_NO_ADDR_CMP 0x80
40
#define FRMR_MODE_SS7 0x20
41
#define FRMR_MODE_HRAC 0x08
42
#define FRMR_IMR0 0x14
43
#define FRMR_IMR0_RME 0x80
44
#define FRMR_IMR0_RPF 0x01
45
#define FRMR_IMR1 0x15
46
#define FRMR_IMR1_ALLS 0x20
47
#define FRMR_IMR1_XDU 0x10
48
#define FRMR_IMR1_XPR 0x01
53
#define FRMR_SIC1 0x3e
54
#define FRMR_SIC2 0x3f
55
#define FRMR_SIC3 0x40
56
#define FRMR_CMR1 0x44
57
#define FRMR_CMR2 0x45
59
#define FRMR_ISR0 0x68
60
#define FRMR_ISR0_RME 0x80
61
#define FRMR_ISR0_RPF 0x01
62
#define FRMR_ISR1 0x69
63
#define FRMR_ISR1_ALLS 0x20
64
#define FRMR_ISR1_XDU 0x10
65
#define FRMR_ISR1_XPR 0x01
66
#define FRMR_ISR2 0x6a
67
#define FRMR_ISR3 0x6b
68
#define FRMR_ISR4 0x6c
70
#define FRMR_GIS_ISR0 0x01
71
#define FRMR_GIS_ISR1 0x02
72
#define FRMR_GIS_ISR2 0x04
73
#define FRMR_GIS_ISR3 0x08
74
#define FRMR_GIS_ISR4 0x10
76
#define FRMR_CIS_GIS1 0x01
77
#define FRMR_CIS_GIS2 0x02
78
#define FRMR_CIS_GIS3 0x04
79
#define FRMR_CIS_GIS4 0x08
80
#define FRMR_CMDR 0x02
81
#define FRMR_CMDR_SRES 0x01
82
#define FRMR_CMDR_XRES 0x10
83
#define FRMR_CMDR_RMC 0x80
84
#define FRMR_CMDR_XTF 0x04
85
#define FRMR_CMDR_XHF 0x08
86
#define FRMR_CMDR_XME 0x02
87
#define FRMR_RSIS 0x65
88
#define FRMR_RSIS_VFR 0x80
89
#define FRMR_RSIS_RDO 0x40
90
#define FRMR_RSIS_CRC16 0x20
91
#define FRMR_RSIS_RAB 0x10
92
#define FRMR_RBCL 0x66
93
#define FRMR_RBCL_MAX_SIZE 0x1f
94
#define FRMR_RBCH 0x67
95
#define FRMR_RXFIFO 0x00
97
#define FRMR_SIS_XFW 0x40
98
#define FRMR_TXFIFO 0x00
100
#define NUM_REGS 0xa9
104
unsigned int pci[NUM_PCI];
105
unsigned char regs[NUM_REGS];
108
#define T4_CHECK_VPM 0
109
#define T4_LOADING_FW 1
110
#define T4_STOP_DMA 2
111
#define T4_CHECK_TIMING 3
113
#define WCT4_GET_REGS _IOW (ZT_CODE, 60, struct t4_regs)