Linux 4.18.10
[linux/fpc-iii.git] / drivers / isdn / hardware / eicon / pc_init.h
blobd1d00866e8d422fd61eafe4c0288c7a3f8b1fe5e
2 /*
4 Copyright (c) Eicon Networks, 2002.
6 This source file is supplied for the use with
7 Eicon Networks range of DIVA Server Adapters.
9 Eicon File Revision : 2.1
11 This program is free software; you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation; either version 2, or (at your option)
14 any later version.
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY OF ANY KIND WHATSOEVER INCLUDING ANY
18 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19 See the GNU General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with this program; if not, write to the Free Software
23 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 #ifndef PC_INIT_H_
27 #define PC_INIT_H_
28 /*------------------------------------------------------------------*/
30 Initialisation parameters for the card
31 0x0008 <byte> TEI
32 0x0009 <byte> NT2 flag
33 0x000a <byte> Default DID length
34 0x000b <byte> Disable watchdog flag
35 0x000c <byte> Permanent connection flag
36 0x000d <byte> Bit 3-8: L1 Hunt Group/Tristate
37 0x000d <byte> Bit 1: QSig small CR length if set to 1
38 0x000d <byte> Bit 2: QSig small CHI length if set to 1
39 0x000e <byte> Bit 1-3: Stable L2, 0=OnDemand,1=NoDisc,2=permanent
40 0x000e <byte> Bit 4: NT mode
41 0x000e <byte> Bit 5: QSig Channel ID format
42 0x000e <byte> Bit 6: QSig Call Forwarding Allowed Flag
43 0x000e <byte> Bit 7: Disable AutoSPID Flag
44 0x000f <byte> No order check flag
45 0x0010 <byte> Force companding type:0=default,1=a-law,2=u-law
46 0x0012 <byte> Low channel flag
47 0x0013 <byte> Protocol version
48 0x0014 <byte> CRC4 option:0=default,1=double_frm,2=multi_frm,3=auto
49 0x0015 <byte> Bit 0: NoHscx30, Bit 1: Loopback flag, Bit 2: ForceHscx30
50 0x0016 <byte> DSP info
51 0x0017-0x0019 Serial number
52 0x001a <byte> Card type
53 0x0020 <string> OAD 0
54 0x0040 <string> OSA 0
55 0x0060 <string> SPID 0 (if not T.1)
56 0x0060 <struct> if T.1: Robbed Bit Configuration
57 0x0060 length (8)
58 0x0061 RBS Answer Delay
59 0x0062 RBS Config Bit 3, 4:
60 0 0 -> Wink Start
61 1 0 -> Loop Start
62 0 1 -> Ground Start
63 1 1 -> reserved
64 Bit 5, 6:
65 0 0 -> Pulse Dial -> Rotary
66 1 0 -> DTMF
67 0 1 -> MF
68 1 1 -> reserved
69 0x0063 RBS RX Digit Timeout
70 0x0064 RBS Bearer Capability
71 0x0065-0x0069 RBS Debug Mask
72 0x0080 <string> OAD 1
73 0x00a0 <string> OSA 1
74 0x00c0 <string> SPID 1
75 0x00e0 <w-element list> Additional configuration
77 #define PCINIT_END_OF_LIST 0x00
78 #define PCINIT_MODEM_GUARD_TONE 0x01
79 #define PCINIT_MODEM_MIN_SPEED 0x02
80 #define PCINIT_MODEM_MAX_SPEED 0x03
81 #define PCINIT_MODEM_PROTOCOL_OPTIONS 0x04
82 #define PCINIT_FAX_OPTIONS 0x05
83 #define PCINIT_FAX_MAX_SPEED 0x06
84 #define PCINIT_MODEM_OPTIONS 0x07
85 #define PCINIT_MODEM_NEGOTIATION_MODE 0x08
86 #define PCINIT_MODEM_MODULATIONS_MASK 0x09
87 #define PCINIT_MODEM_TRANSMIT_LEVEL 0x0a
88 #define PCINIT_FAX_DISABLED_RESOLUTIONS 0x0b
89 #define PCINIT_FAX_MAX_RECORDING_WIDTH 0x0c
90 #define PCINIT_FAX_MAX_RECORDING_LENGTH 0x0d
91 #define PCINIT_FAX_MIN_SCANLINE_TIME 0x0e
92 #define PCINIT_US_EKTS_CACH_HANDLES 0x0f
93 #define PCINIT_US_EKTS_BEGIN_CONF 0x10
94 #define PCINIT_US_EKTS_DROP_CONF 0x11
95 #define PCINIT_US_EKTS_CALL_TRANSFER 0x12
96 #define PCINIT_RINGERTONE_OPTION 0x13
97 #define PCINIT_CARD_ADDRESS 0x14
98 #define PCINIT_FPGA_FEATURES 0x15
99 #define PCINIT_US_EKTS_MWI 0x16
100 #define PCINIT_MODEM_SPEAKER_CONTROL 0x17
101 #define PCINIT_MODEM_SPEAKER_VOLUME 0x18
102 #define PCINIT_MODEM_CARRIER_WAIT_TIME 0x19
103 #define PCINIT_MODEM_CARRIER_LOSS_TIME 0x1a
104 #define PCINIT_UNCHAN_B_MASK 0x1b
105 #define PCINIT_PART68_LIMITER 0x1c
106 #define PCINIT_XDI_FEATURES 0x1d
107 #define PCINIT_QSIG_DIALECT 0x1e
108 #define PCINIT_DISABLE_AUTOSPID_FLAG 0x1f
109 #define PCINIT_FORCE_VOICE_MAIL_ALERT 0x20
110 #define PCINIT_PIAFS_TURNAROUND_FRAMES 0x21
111 #define PCINIT_L2_COUNT 0x22
112 #define PCINIT_QSIG_FEATURES 0x23
113 #define PCINIT_NO_SIGNALLING 0x24
114 #define PCINIT_CARD_SN 0x25
115 #define PCINIT_CARD_PORT 0x26
116 #define PCINIT_ALERTTO 0x27
117 #define PCINIT_MODEM_EYE_SETUP 0x28
118 #define PCINIT_FAX_V34_OPTIONS 0x29
119 /*------------------------------------------------------------------*/
120 #define PCINIT_MODEM_GUARD_TONE_NONE 0x00
121 #define PCINIT_MODEM_GUARD_TONE_550HZ 0x01
122 #define PCINIT_MODEM_GUARD_TONE_1800HZ 0x02
123 #define PCINIT_MODEM_GUARD_TONE_CHOICES 0x03
124 #define PCINIT_MODEMPROT_DISABLE_V42_V42BIS 0x0001
125 #define PCINIT_MODEMPROT_DISABLE_MNP_MNP5 0x0002
126 #define PCINIT_MODEMPROT_REQUIRE_PROTOCOL 0x0004
127 #define PCINIT_MODEMPROT_DISABLE_V42_DETECT 0x0008
128 #define PCINIT_MODEMPROT_DISABLE_COMPRESSION 0x0010
129 #define PCINIT_MODEMPROT_REQUIRE_PROTOCOL_V34UP 0x0020
130 #define PCINIT_MODEMPROT_NO_PROTOCOL_IF_1200 0x0100
131 #define PCINIT_MODEMPROT_BUFFER_IN_V42_DETECT 0x0200
132 #define PCINIT_MODEMPROT_DISABLE_V42_SREJ 0x0400
133 #define PCINIT_MODEMPROT_DISABLE_MNP3 0x0800
134 #define PCINIT_MODEMPROT_DISABLE_MNP4 0x1000
135 #define PCINIT_MODEMPROT_DISABLE_MNP10 0x2000
136 #define PCINIT_MODEMPROT_NO_PROTOCOL_IF_V22BIS 0x4000
137 #define PCINIT_MODEMPROT_NO_PROTOCOL_IF_V32BIS 0x8000
138 #define PCINIT_MODEMCONFIG_LEASED_LINE_MODE 0x00000001L
139 #define PCINIT_MODEMCONFIG_4_WIRE_OPERATION 0x00000002L
140 #define PCINIT_MODEMCONFIG_DISABLE_BUSY_DETECT 0x00000004L
141 #define PCINIT_MODEMCONFIG_DISABLE_CALLING_TONE 0x00000008L
142 #define PCINIT_MODEMCONFIG_DISABLE_ANSWER_TONE 0x00000010L
143 #define PCINIT_MODEMCONFIG_ENABLE_DIAL_TONE_DET 0x00000020L
144 #define PCINIT_MODEMCONFIG_USE_POTS_INTERFACE 0x00000040L
145 #define PCINIT_MODEMCONFIG_FORCE_RAY_TAYLOR_FAX 0x00000080L
146 #define PCINIT_MODEMCONFIG_DISABLE_RETRAIN 0x00000100L
147 #define PCINIT_MODEMCONFIG_DISABLE_STEPDOWN 0x00000200L
148 #define PCINIT_MODEMCONFIG_DISABLE_SPLIT_SPEED 0x00000400L
149 #define PCINIT_MODEMCONFIG_DISABLE_TRELLIS 0x00000800L
150 #define PCINIT_MODEMCONFIG_ALLOW_RDL_TEST_LOOP 0x00001000L
151 #define PCINIT_MODEMCONFIG_DISABLE_STEPUP 0x00002000L
152 #define PCINIT_MODEMCONFIG_DISABLE_FLUSH_TIMER 0x00004000L
153 #define PCINIT_MODEMCONFIG_REVERSE_DIRECTION 0x00008000L
154 #define PCINIT_MODEMCONFIG_DISABLE_TX_REDUCTION 0x00010000L
155 #define PCINIT_MODEMCONFIG_DISABLE_PRECODING 0x00020000L
156 #define PCINIT_MODEMCONFIG_DISABLE_PREEMPHASIS 0x00040000L
157 #define PCINIT_MODEMCONFIG_DISABLE_SHAPING 0x00080000L
158 #define PCINIT_MODEMCONFIG_DISABLE_NONLINEAR_EN 0x00100000L
159 #define PCINIT_MODEMCONFIG_DISABLE_MANUALREDUCT 0x00200000L
160 #define PCINIT_MODEMCONFIG_DISABLE_16_POINT_TRN 0x00400000L
161 #define PCINIT_MODEMCONFIG_DISABLE_2400_SYMBOLS 0x01000000L
162 #define PCINIT_MODEMCONFIG_DISABLE_2743_SYMBOLS 0x02000000L
163 #define PCINIT_MODEMCONFIG_DISABLE_2800_SYMBOLS 0x04000000L
164 #define PCINIT_MODEMCONFIG_DISABLE_3000_SYMBOLS 0x08000000L
165 #define PCINIT_MODEMCONFIG_DISABLE_3200_SYMBOLS 0x10000000L
166 #define PCINIT_MODEMCONFIG_DISABLE_3429_SYMBOLS 0x20000000L
167 #define PCINIT_MODEM_NEGOTIATE_HIGHEST 0x00
168 #define PCINIT_MODEM_NEGOTIATE_DISABLED 0x01
169 #define PCINIT_MODEM_NEGOTIATE_IN_CLASS 0x02
170 #define PCINIT_MODEM_NEGOTIATE_V100 0x03
171 #define PCINIT_MODEM_NEGOTIATE_V8 0x04
172 #define PCINIT_MODEM_NEGOTIATE_V8BIS 0x05
173 #define PCINIT_MODEM_NEGOTIATE_CHOICES 0x06
174 #define PCINIT_MODEMMODULATION_DISABLE_V21 0x00000001L
175 #define PCINIT_MODEMMODULATION_DISABLE_V23 0x00000002L
176 #define PCINIT_MODEMMODULATION_DISABLE_V22 0x00000004L
177 #define PCINIT_MODEMMODULATION_DISABLE_V22BIS 0x00000008L
178 #define PCINIT_MODEMMODULATION_DISABLE_V32 0x00000010L
179 #define PCINIT_MODEMMODULATION_DISABLE_V32BIS 0x00000020L
180 #define PCINIT_MODEMMODULATION_DISABLE_V34 0x00000040L
181 #define PCINIT_MODEMMODULATION_DISABLE_V90 0x00000080L
182 #define PCINIT_MODEMMODULATION_DISABLE_BELL103 0x00000100L
183 #define PCINIT_MODEMMODULATION_DISABLE_BELL212A 0x00000200L
184 #define PCINIT_MODEMMODULATION_DISABLE_VFC 0x00000400L
185 #define PCINIT_MODEMMODULATION_DISABLE_K56FLEX 0x00000800L
186 #define PCINIT_MODEMMODULATION_DISABLE_X2 0x00001000L
187 #define PCINIT_MODEMMODULATION_ENABLE_V29FDX 0x00010000L
188 #define PCINIT_MODEMMODULATION_ENABLE_V33 0x00020000L
189 #define PCINIT_MODEMMODULATION_ENABLE_V90A 0x00040000L
190 #define PCINIT_MODEM_TRANSMIT_LEVEL_CHOICES 0x10
191 #define PCINIT_MODEM_SPEAKER_OFF 0x00
192 #define PCINIT_MODEM_SPEAKER_DURING_TRAIN 0x01
193 #define PCINIT_MODEM_SPEAKER_TIL_CONNECT 0x02
194 #define PCINIT_MODEM_SPEAKER_ALWAYS_ON 0x03
195 #define PCINIT_MODEM_SPEAKER_CHOICES 0x04
196 #define PCINIT_MODEM_SPEAKER_VOLUME_MIN 0x00
197 #define PCINIT_MODEM_SPEAKER_VOLUME_LOW 0x01
198 #define PCINIT_MODEM_SPEAKER_VOLUME_HIGH 0x02
199 #define PCINIT_MODEM_SPEAKER_VOLUME_MAX 0x03
200 #define PCINIT_MODEM_SPEAKER_VOLUME_CHOICES 0x04
201 /*------------------------------------------------------------------*/
202 #define PCINIT_FAXCONFIG_DISABLE_FINE 0x0001
203 #define PCINIT_FAXCONFIG_DISABLE_ECM 0x0002
204 #define PCINIT_FAXCONFIG_ECM_64_BYTES 0x0004
205 #define PCINIT_FAXCONFIG_DISABLE_2D_CODING 0x0008
206 #define PCINIT_FAXCONFIG_DISABLE_T6_CODING 0x0010
207 #define PCINIT_FAXCONFIG_DISABLE_UNCOMPR 0x0020
208 #define PCINIT_FAXCONFIG_REFUSE_POLLING 0x0040
209 #define PCINIT_FAXCONFIG_HIDE_TOTAL_PAGES 0x0080
210 #define PCINIT_FAXCONFIG_HIDE_ALL_HEADLINE 0x0100
211 #define PCINIT_FAXCONFIG_HIDE_PAGE_INFO 0x0180
212 #define PCINIT_FAXCONFIG_HEADLINE_OPTIONS_MASK 0x0180
213 #define PCINIT_FAXCONFIG_DISABLE_FEATURE_FALLBACK 0x0200
214 #define PCINIT_FAXCONFIG_V34FAX_CONTROL_RATE_1200 0x0800
215 #define PCINIT_FAXCONFIG_DISABLE_V34FAX 0x1000
216 #define PCINIT_FAXCONFIG_DISABLE_R8_0770_OR_200 0x01
217 #define PCINIT_FAXCONFIG_DISABLE_R8_1540 0x02
218 #define PCINIT_FAXCONFIG_DISABLE_R16_1540_OR_400 0x04
219 #define PCINIT_FAXCONFIG_DISABLE_R4_0385_OR_100 0x08
220 #define PCINIT_FAXCONFIG_DISABLE_300_300 0x10
221 #define PCINIT_FAXCONFIG_DISABLE_INCH_BASED 0x40
222 #define PCINIT_FAXCONFIG_DISABLE_METRIC_BASED 0x80
223 #define PCINIT_FAXCONFIG_REC_WIDTH_ISO_A3 0
224 #define PCINIT_FAXCONFIG_REC_WIDTH_ISO_B4 1
225 #define PCINIT_FAXCONFIG_REC_WIDTH_ISO_A4 2
226 #define PCINIT_FAXCONFIG_REC_WIDTH_COUNT 3
227 #define PCINIT_FAXCONFIG_REC_LENGTH_UNLIMITED 0
228 #define PCINIT_FAXCONFIG_REC_LENGTH_ISO_B4 1
229 #define PCINIT_FAXCONFIG_REC_LENGTH_ISO_A4 2
230 #define PCINIT_FAXCONFIG_REC_LENGTH_COUNT 3
231 #define PCINIT_FAXCONFIG_SCANLINE_TIME_00_00_00 0
232 #define PCINIT_FAXCONFIG_SCANLINE_TIME_05_05_05 1
233 #define PCINIT_FAXCONFIG_SCANLINE_TIME_10_05_05 2
234 #define PCINIT_FAXCONFIG_SCANLINE_TIME_10_10_10 3
235 #define PCINIT_FAXCONFIG_SCANLINE_TIME_20_10_10 4
236 #define PCINIT_FAXCONFIG_SCANLINE_TIME_20_20_20 5
237 #define PCINIT_FAXCONFIG_SCANLINE_TIME_40_20_20 6
238 #define PCINIT_FAXCONFIG_SCANLINE_TIME_40_40_40 7
239 #define PCINIT_FAXCONFIG_SCANLINE_TIME_RES_8 8
240 #define PCINIT_FAXCONFIG_SCANLINE_TIME_RES_9 9
241 #define PCINIT_FAXCONFIG_SCANLINE_TIME_RES_10 10
242 #define PCINIT_FAXCONFIG_SCANLINE_TIME_10_10_05 11
243 #define PCINIT_FAXCONFIG_SCANLINE_TIME_20_10_05 12
244 #define PCINIT_FAXCONFIG_SCANLINE_TIME_20_20_10 13
245 #define PCINIT_FAXCONFIG_SCANLINE_TIME_40_20_10 14
246 #define PCINIT_FAXCONFIG_SCANLINE_TIME_40_40_20 15
247 #define PCINIT_FAXCONFIG_SCANLINE_TIME_COUNT 16
248 #define PCINIT_FAXCONFIG_DISABLE_TX_REDUCTION 0x00010000L
249 #define PCINIT_FAXCONFIG_DISABLE_PRECODING 0x00020000L
250 #define PCINIT_FAXCONFIG_DISABLE_PREEMPHASIS 0x00040000L
251 #define PCINIT_FAXCONFIG_DISABLE_SHAPING 0x00080000L
252 #define PCINIT_FAXCONFIG_DISABLE_NONLINEAR_EN 0x00100000L
253 #define PCINIT_FAXCONFIG_DISABLE_MANUALREDUCT 0x00200000L
254 #define PCINIT_FAXCONFIG_DISABLE_16_POINT_TRN 0x00400000L
255 #define PCINIT_FAXCONFIG_DISABLE_2400_SYMBOLS 0x01000000L
256 #define PCINIT_FAXCONFIG_DISABLE_2743_SYMBOLS 0x02000000L
257 #define PCINIT_FAXCONFIG_DISABLE_2800_SYMBOLS 0x04000000L
258 #define PCINIT_FAXCONFIG_DISABLE_3000_SYMBOLS 0x08000000L
259 #define PCINIT_FAXCONFIG_DISABLE_3200_SYMBOLS 0x10000000L
260 #define PCINIT_FAXCONFIG_DISABLE_3429_SYMBOLS 0x20000000L
261 /*--------------------------------------------------------------------------*/
262 #define PCINIT_XDI_CMA_FOR_ALL_NL_PRIMITIVES 0x01
263 /*--------------------------------------------------------------------------*/
264 #define PCINIT_FPGA_PLX_ACCESS_SUPPORTED 0x01
265 /*--------------------------------------------------------------------------*/
266 #endif
267 /*--------------------------------------------------------------------------*/