~xnox/debian/sid/dahdi-linux/nmu-659818

« back to all changes in this revision

Viewing changes to drivers/dahdi/wctdm24xxp/gpakenum.h

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell, Tzafrir Cohen, Victor Seva
  • Date: 2009-05-20 07:22:46 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090520072246-y1ba8ofc81ykgf8z
Tags: 1:2.2.0~dfsg~rc4-1
* New upstream release

[ Tzafrir Cohen ]
* NOT RELEASED YET
* Dropped qozap as wcb4xxp provides that functionality.
* New upstream RC.
* Actually build OpenVox drivers.
* opvxa1200.c: rev. 1.4.12.4 (battery fixes and such)
* Fix '${match}' in udev rules file (hardwire).
* no_firmware_download: Disable downloading a binary kernel module at 
  build time.

[ Victor Seva ]
* fix debian/watch. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (c) 2005, Adaptive Digital Technologies, Inc.
3
 
 *
4
 
 * File Name: gpakenum.h
5
 
 *
6
 
 * Description:
7
 
 *   This file contains common enumerations related to G.PAK application
8
 
 *   software.
9
 
 *
10
 
 * Version: 1.0
11
 
 *
12
 
 * Revision History:
13
 
 *   06/15/05 - Initial release.
14
 
 *
15
 
 * This program has been released under the terms of the GPL version 2 by
16
 
 * permission of Adaptive Digital Technologies, Inc.
17
 
 *
18
 
 */
19
 
 
20
 
/*
21
 
 * See http://www.asterisk.org for more information about
22
 
 * the Asterisk project. Please do not directly contact
23
 
 * any of the maintainers of this project for assistance;
24
 
 * the project provides a web site, mailing lists and IRC
25
 
 * channels for your use.
26
 
 *
27
 
 * This program is free software, distributed under the terms of
28
 
 * the GNU General Public License Version 2 as published by the
29
 
 * Free Software Foundation. See the LICENSE file included with
30
 
 * this program for more details.
31
 
 */
32
 
 
33
 
#ifndef _GPAKENUM_H  /* prevent multiple inclusion */
34
 
#define _GPAKENUM_H
35
 
 
36
 
/* G.PAK Serial Port Word Size */
37
 
typedef enum
38
 
{
39
 
    SerWordSize8 = 0,       // 8-bit seial word
40
 
    SerWordSize16 = 1       // 16-bit serial word
41
 
} GpakSerWordSize_t;
42
 
 
43
 
/* G.PAK Serial Port FrameSync Polarity */
44
 
typedef enum
45
 
{
46
 
    FrameSyncActLow = 0,    // active low frame sync signal
47
 
    FrameSyncActHigh = 1    // active high frame sync signal
48
 
} GpakSerFrameSyncPol_t;
49
 
 
50
 
/* G.PAK Serial Port Clock Polarity */
51
 
typedef enum
52
 
{
53
 
    SerClockActLow = 0,     // active low serial clock
54
 
    SerClockActHigh = 1     // active high serial clock
55
 
} GpakSerClockPol_t;
56
 
 
57
 
/* G.PAK Serial Port Data Delay */
58
 
typedef enum
59
 
{
60
 
    DataDelay0 = 0,         // no data delay
61
 
    DataDelay1 = 1,         // 1-bit data delay
62
 
    DataDelay2 = 2          // 2-bit data delay
63
 
} GpakSerDataDelay_t;
64
 
 
65
 
/* G.PAK Serial Port Ids. */
66
 
typedef enum
67
 
{
68
 
    SerialPortNull = 0,     // null serial port 
69
 
    SerialPort1 = 1,        // first PCM serial stream port (McBSP0) 
70
 
    SerialPort2 = 2,        // second PCM serial stream port (McBSP1) 
71
 
    SerialPort3 = 3         // third PCM serial stream port (McBSP2) 
72
 
} GpakSerialPort_t;
73
 
 
74
 
/* G.PAK serial port Slot Configuration selection codes. */
75
 
typedef enum
76
 
{
77
 
    SlotCfgNone = 0,        // no time slots used 
78
 
    SlotCfg2Groups = 2,     // 2 groups of 16 time slots used, 32 Channels system
79
 
    SlotCfg8Groups = 8      // 8-partition mode for 128-channel system
80
 
} GpakSlotCfg_t;
81
 
 
82
 
/* G.PAK serial port Companding Mode codes. */
83
 
typedef enum 
84
 
85
 
    cmpPCMU=0,              // u-Law 
86
 
    cmpPCMA=1,              // A-Law 
87
 
    cmpNone=2               // none 
88
 
} GpakCompandModes;
89
 
 
90
 
/* G.PAK Active/Inactive selection codes. */
91
 
typedef enum
92
 
{
93
 
    Disabled=0,             // Inactive 
94
 
    Enabled=1               // Active 
95
 
} GpakActivation;
96
 
 
97
 
/* G.PAK Channel Type codes. */
98
 
typedef enum
99
 
{
100
 
    inactive=0,          // channel inactive 
101
 
    tdmToTdm=1           // tdmToTdm
102
 
} GpakChanType;
103
 
 
104
 
/* G.PAK Algorithm control commands */
105
 
typedef enum
106
 
{
107
 
    EnableEcanA          = 0,    // Enable A side echo canceller
108
 
    BypassEcanA          = 1,    // Bypass A side echo canceller
109
 
    ResetEcanA           = 2,    // Reset A side echo canceller
110
 
    EnableEcanB          = 3,    // Enable B side echo canceller
111
 
    BypassEcanB          = 4,    // Bypass B side echo canceller
112
 
    ResetEcanB           = 5,    // Reset B side echo canceller
113
 
 
114
 
    EnableMuLawSwCompanding  = 6,// Enable Mu-law Software companding
115
 
    EnableALawSwCompanding  = 7, // Enable Mu-law Software companding
116
 
    BypassSwCompanding   = 8,    // Bypass Software companding
117
 
        EnableDTMFMuteA       = 9,   // Mute A side Dtmf digit after tone detected
118
 
        DisableDTMFMuteA      = 10,  // Do not mute A side Dtmf digit once tone detected
119
 
        EnableDTMFMuteB       = 11,  // Mute B side Dtmf digit after tone detected
120
 
        DisableDTMFMuteB      = 12,  // Do not mute B side Dtmf digit once tone detected
121
 
        EnableFaxCngDetectA   = 13,  // Enable A side Fax CNG detector, channel must be configed already
122
 
        DisableFaxCngDetectA  = 14,  // Disable A side Fax CNG detector, channel must be configed already
123
 
        EnableFaxCngDetectB   = 15,  // Enable B side Fax CNG detector, channel must be configed already
124
 
        DisableFaxCngDetectB  = 16  // Disable B side Fax CNG detector, channel must be configed already
125
 
} GpakAlgCtrl_t;
126
 
 
127
 
/* G.PAK Tone types. */
128
 
typedef enum
129
 
{
130
 
    Null_tone = 0,        // no tone detection 
131
 
    DTMF_tone = 1         // DTMF tone 
132
 
} GpakToneTypes;
133
 
 
134
 
/* G.PAK direction. */
135
 
typedef enum
136
 
{
137
 
    TDMAToB = 0,        // A to B 
138
 
    TDMBToA = 1         // B to A
139
 
} GpakTdmDirection;
140
 
 
141
 
 
142
 
typedef enum
143
 
{
144
 
    rate1ms=0,
145
 
    rate2ms=1,
146
 
    rate10ms=2
147
 
} GpakRate_t;
148
 
 
149
 
/* G.PAK Asynchronous Event Codes */
150
 
typedef enum
151
 
{
152
 
    EventToneDetect = 0,            // Tone detection event
153
 
    EventDSPDebug = 7               // DSP debug data event
154
 
} GpakAsyncEventCode_t;
155
 
 
156
 
/* G.PAK MF Tone Code Indices */
157
 
typedef enum
158
 
{
159
 
    DtmfDigit1   = 0,     // DTMF Digit 1 
160
 
    DtmfDigit2   = 1,     // DTMF Digit 2 
161
 
    DtmfDigit3   = 2,     // DTMF Digit 3 
162
 
    DtmfDigitA   = 3,     // DTMF Digit A 
163
 
    DtmfDigit4   = 4,     // DTMF Digit 4 
164
 
    DtmfDigit5   = 5,     // DTMF Digit 5 
165
 
    DtmfDigit6   = 6,     // DTMF Digit 6 
166
 
    DtmfDigitB   = 7,     // DTMF Digit B 
167
 
    DtmfDigit7   = 8,     // DTMF Digit 7 
168
 
    DtmfDigit8   = 9,     // DTMF Digit 8 
169
 
    DtmfDigit9   = 10,    // DTMF Digit 9 
170
 
    DtmfDigitC   = 11,    // DTMF Digit C 
171
 
    DtmfDigitSt  = 12,    // DTMF Digit * 
172
 
    DtmfDigit0   = 13,    // DTMF Digit 0 
173
 
    DtmfDigitPnd = 14,    // DTMF Digit # 
174
 
    DtmfDigitD   = 15,    // DTMF Digit D 
175
 
 
176
 
    FaxCngDigit = 90,       // Fax Calling Tone (1100 Hz) 
177
 
 
178
 
    EndofMFDigit = 100,     // End of MF digit 
179
 
    EndofCngDigit = 101     // End of Cng Digit
180
 
} GpakToneCodes_t;
181
 
 
182
 
/* GPIO control code*/
183
 
typedef enum
184
 
{
185
 
        GPIO_READ = 0,
186
 
        GPIO_WRITE = 1,
187
 
        GPIO_DIR = 2
188
 
} GpakGPIOCotrol_t;
189
 
 
190
 
 
191
 
#endif // end multiple inclusion