~ubuntu-branches/ubuntu/quantal/zaptel/quantal

« back to all changes in this revision

Viewing changes to kernel/wct4xxp/wct4xxp.h

  • Committer: Bazaar Package Importer
  • Author(s): Tzafrir Cohen
  • Date: 2008-08-28 22:58:23 UTC
  • mfrom: (11.1.11 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080828225823-r8bdunirm8hmc76m
Tags: 1:1.4.11~dfsg-2
* Patch xpp_fxs_power: Fixed an issue with hook detection of the Astribank
  FXS module.
* Don't fail init.d script if fxotune fails. This may happen if running it
  when Asterisk is already running.
* Bump standards version to 3.8.0.0 .
* Ignore false lintian warning ("m-a a-i" has "a a").
* Patch xpp_fxo_cid_always: do always pass PCM if that's what the user
  asked.
* Patch vzaphfc_proc_root_dir: fix vzaphfc on 2.6.26.
* Patch wcte12xp_flags: Proper time for irq save flags.
* Patch headers_2627: Fix location of semaphore.h for 2.6.27 .
* Patch xpp_fxs_dtmf_leak: Don't play DTMFs to the wrong channel.
* Patch wctdm_fix_alarm: Fix sending channel alarms.
* Patch device_class_2626: Fix building 2.6.26 (Closes: #493397).
* Using dh_lintian for lintian overrides, hence requiring debhelper 6.0.7.
* Lintian: we know we have direct changes. Too bad we're half-upstream :-(
* Fix doc-base section names. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Wilcard T400P FXS Interface Driver for Zapata Telephony interface
 
3
 *
 
4
 * Written by Mark Spencer <markster@linux-support.net>
 
5
 *
 
6
 * Copyright (C) 2001, Linux Support Services, Inc.
 
7
 *
 
8
 * All rights reserved.
 
9
 *
 
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.
 
14
 * 
 
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.
 
19
 * 
 
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. 
 
23
 *
 
24
 */
 
25
 
 
26
#include <linux/ioctl.h>
 
27
 
 
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
 
49
#define FRMR_XC0 0x22
 
50
#define FRMR_XC1 0x23
 
51
#define FRMR_RC0 0x24
 
52
#define FRMR_RC1 0x25
 
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
 
58
#define FRMR_GCR 0x46
 
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
 
69
#define FRMR_GIS  0x6e
 
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
 
75
#define FRMR_CIS 0x6f
 
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
 
96
#define FRMR_SIS 0x64
 
97
#define FRMR_SIS_XFW 0x40
 
98
#define FRMR_TXFIFO 0x00
 
99
 
 
100
#define NUM_REGS 0xa9
 
101
#define NUM_PCI 12
 
102
 
 
103
struct t4_regs {
 
104
        unsigned int pci[NUM_PCI];
 
105
        unsigned char regs[NUM_REGS];
 
106
};
 
107
 
 
108
#define T4_CHECK_VPM            0
 
109
#define T4_LOADING_FW           1
 
110
#define T4_STOP_DMA             2
 
111
#define T4_CHECK_TIMING         3
 
112
 
 
113
#define WCT4_GET_REGS   _IOW (ZT_CODE, 60, struct t4_regs)
 
114