Debian Codegraph @

drivers/dahdi/fxo_modes.h

raw
1 /*
2 * FXO port mode settings for various regions
3 *
4 * Copyright (C) 2008 Digium, Inc.
5 *
6 * extracted from wctdm.c by
7 * Kevin P. Fleming <[email protected]>
8 *
9 * All rights reserved.
10 */
11
12 /*
13 * See http://www.asterisk.org for more information about
14 * the Asterisk project. Please do not directly contact
15 * any of the maintainers of this project for assistance;
16 * the project provides a web site, mailing lists and IRC
17 * channels for your use.
18 *
19 * This program is free software, distributed under the terms of
20 * the GNU General Public License Version 2 as published by the
21 * Free Software Foundation. See the LICENSE file included with
22 * this program for more details.
23 */
24
25 #ifndef _FXO_MODES_H
26 #define _FXO_MODES_H
27
28 static const struct fxo_mode {
29 const char *name;
30 unsigned char ohs:1;
31 unsigned char ohs2:1;
32 unsigned char rz:1;
33 unsigned char rt:1;
34 unsigned char ilim:1;
35 unsigned char dcv:2;
36 unsigned char mini:2;
37 unsigned char acim:4;
38 unsigned short int ring_osc;
39 unsigned short int ring_x;
40 unsigned short int battdebounce; /* in milliseconds */
41 unsigned short int battalarm; /* in milliseconds */
42 unsigned short int battthresh; /* unknown units */
43 } fxo_modes[] =
44 {
45 /* US, Canada */
46 { .name = "FCC",
47 .rt = 1,
48 .dcv = 0x3,
49 .battdebounce = 64,
50 .battalarm = 1000,
51 .battthresh = 3,
52 },
53 /* Austria, Belgium, Denmark, Finland, France, Germany,
54 Greece, Iceland, Ireland, Italy, Luxembourg, Netherlands,
55 Norway, Portugal, Spain, Sweden, Switzerland, and UK */
56 { .name = "TBR21",
57 .ilim = 1,
58 .dcv = 0x3,
59 .acim = 0x2,
60 .ring_osc = 0x7e6c,
61 .ring_x = 0x023a,
62 .battdebounce = 64,
63 .battalarm = 1000,
64 .battthresh = 3,
65 },
66 { .name = "ARGENTINA",
67 .dcv = 0x3,
68 .battdebounce = 64,
69 .battalarm = 1000,
70 .battthresh = 3,
71 },
72 { .name = "AUSTRALIA",
73 .ohs = 1,
74 .mini = 0x3,
75 .acim = 0x3,
76 .battdebounce = 64,
77 .battalarm = 1000,
78 .battthresh = 3,
79 },
80 { .name = "AUSTRIA",
81 .ohs2 = 1,
82 .ilim = 1,
83 .dcv = 0x3,
84 .acim = 0x3,
85 .battdebounce = 64,
86 .battalarm = 1000,
87 .battthresh = 3,
88 },
89 { .name = "BAHRAIN",
90 .ilim = 1,
91 .dcv = 0x3,
92 .acim = 0x2,
93 .battdebounce = 64,
94 .battalarm = 1000,
95 .battthresh = 3,
96 },
97 { .name = "BELGIUM",
98 .ohs2 = 1,
99 .ilim = 1,
100 .dcv = 0x3,
101 .acim = 0x2,
102 .battdebounce = 64,
103 .battalarm = 1000,
104 .battthresh = 3,
105 },
106 { .name = "BRAZIL",
107 .mini = 0x3,
108 .battdebounce = 64,
109 .battalarm = 1000,
110 .battthresh = 3,
111 },
112 { .name = "BULGARIA",
113 .ilim = 1,
114 .dcv = 0x3,
115 .mini = 0x0,
116 .acim = 0x3,
117 .battdebounce = 64,
118 .battalarm = 1000,
119 .battthresh = 3,
120 },
121 { .name = "CANADA",
122 .dcv = 0x3,
123 .battdebounce = 64,
124 .battalarm = 1000,
125 .battthresh = 3,
126 },
127 { .name = "CHILE",
128 .dcv = 0x3,
129 .battdebounce = 64,
130 .battalarm = 1000,
131 .battthresh = 3,
132 },
133 { .name = "CHINA",
134 .mini = 0x3,
135 .acim = 0xf,
136 .battdebounce = 64,
137 .battalarm = 1000,
138 .battthresh = 3,
139 },
140 { .name = "COLOMBIA",
141 .dcv = 0x3,
142 .battdebounce = 64,
143 .battalarm = 1000,
144 .battthresh = 3,
145 },
146 { .name = "CROATIA",
147 .ilim = 1,
148 .dcv = 0x3,
149 .mini = 0,
150 .acim = 0x2,
151 .battdebounce = 64,
152 .battalarm = 1000,
153 .battthresh = 3,
154 },
155 { .name = "CYPRUS",
156 .ilim = 1,
157 .dcv = 0x3,
158 .acim = 0x2,
159 .battdebounce = 64,
160 .battalarm = 1000,
161 .battthresh = 3,
162 },
163 { .name = "CZECH",
164 .ilim = 1,
165 .dcv = 0x3,
166 .mini = 0,
167 .acim = 0x2,
168 .battdebounce = 64,
169 .battalarm = 1000,
170 .battthresh = 3,
171 },
172 { .name = "DENMARK",
173 .ohs2 = 1,
174 .ilim = 1,
175 .dcv = 0x3,
176 .acim = 0x2,
177 .battdebounce = 64,
178 .battalarm = 1000,
179 .battthresh = 3,
180 },
181 { .name = "ECUADOR",
182 .dcv = 0x3,
183 .battdebounce = 64,
184 .battalarm = 1000,
185 .battthresh = 3,
186 },
187 { .name = "EGYPT",
188 .mini = 0x3,
189 .battdebounce = 64,
190 .battalarm = 1000,
191 .battthresh = 3,
192 },
193 { .name = "ELSALVADOR",
194 .dcv = 0x3,
195 .battdebounce = 64,
196 .battalarm = 1000,
197 .battthresh = 3,
198 },
199 { .name = "FINLAND",
200 .ohs2 = 1,
201 .ilim = 1,
202 .dcv = 0x3,
203 .acim = 0x2,
204 .battdebounce = 64,
205 .battalarm = 1000,
206 .battthresh = 3,
207 },
208 { .name = "FRANCE",
209 .ohs2 = 1,
210 .ilim = 1,
211 .dcv = 0x3,
212 .mini = 0,
213 .acim = 0x2,
214 .battdebounce = 64,
215 .battalarm = 1000,
216 .battthresh = 3,
217 },
218 { .name = "GERMANY",
219 .ohs2 = 1,
220 .ilim = 1,
221 .dcv = 0x3,
222 .acim = 0x3,
223 .battdebounce = 64,
224 .battalarm = 1000,
225 .battthresh = 3,
226 },
227 { .name = "GREECE",
228 .ohs2 = 1,
229 .ilim = 1,
230 .dcv = 0x3,
231 .acim = 0x2,
232 .battdebounce = 64,
233 .battalarm = 1000,
234 .battthresh = 3,
235 },
236 { .name = "GUAM",
237 .dcv = 0x3,
238 .battdebounce = 64,
239 .battalarm = 1000,
240 .battthresh = 3,
241 },
242 { .name = "HONGKONG",
243 .dcv = 0x3,
244 .battdebounce = 64,
245 .battalarm = 1000,
246 .battthresh = 3,
247 },
248 { .name = "HUNGARY",
249 .dcv = 0x3,
250 .battdebounce = 64,
251 .battalarm = 1000,
252 .battthresh = 3,
253 },
254 { .name = "ICELAND",
255 .ohs2 = 1,
256 .ilim = 1,
257 .dcv = 0x3,
258 .acim = 0x2,
259 .battdebounce = 64,
260 .battalarm = 1000,
261 .battthresh = 3,
262 },
263 { .name = "INDIA",
264 .dcv = 0x3,
265 .acim = 0x4,
266 .battdebounce = 64,
267 .battalarm = 1000,
268 .battthresh = 3,
269 },
270 { .name = "INDONESIA",
271 .dcv = 0x3,
272 .battdebounce = 64,
273 .battalarm = 1000,
274 .battthresh = 3,
275 },
276 { .name = "IRELAND",
277 .ohs2 = 1,
278 .ilim = 1,
279 .dcv = 0x3,
280 .acim = 0x2,
281 .battdebounce = 64,
282 .battalarm = 1000,
283 .battthresh = 3,
284 },
285 { .name = "ISRAEL",
286 .ilim = 1,
287 .dcv = 0x3,
288 .acim = 0x2,
289 .battdebounce = 64,
290 .battalarm = 1000,
291 .battthresh = 3,
292 },
293 { .name = "ITALY",
294 .ohs2 = 1,
295 .ilim = 1,
296 .dcv = 0x3,
297 .acim = 0x2,
298 .battdebounce = 64,
299 .battalarm = 1000,
300 .battthresh = 3,
301 },
302 { .name = "JAPAN",
303 .mini = 0x3,
304 .battdebounce = 64,
305 .battalarm = 1000,
306 .battthresh = 3,
307 },
308 { .name = "JORDAN",
309 .mini = 0x3,
310 .battdebounce = 64,
311 .battalarm = 1000,
312 .battthresh = 3,
313 },
314 { .name = "KAZAKHSTAN",
315 .dcv = 0x3,
316 .battdebounce = 64,
317 .battalarm = 1000,
318 .battthresh = 3,
319 },
320 { .name = "KUWAIT",
321 .dcv = 0x3,
322 .battdebounce = 64,
323 .battalarm = 1000,
324 .battthresh = 3,
325 },
326 { .name = "LATVIA",
327 .ilim = 1,
328 .dcv = 0x3,
329 .acim = 0x2,
330 .battdebounce = 64,
331 .battalarm = 1000,
332 .battthresh = 3,
333 },
334 { .name = "LEBANON",
335 .ilim = 1,
336 .dcv = 0x3,
337 .acim = 0x2,
338 .battdebounce = 64,
339 .battalarm = 1000,
340 .battthresh = 3,
341 },
342 { .name = "LUXEMBOURG",
343 .ohs2 = 1,
344 .ilim = 1,
345 .dcv = 0x3,
346 .acim = 0x2,
347 .battdebounce = 64,
348 .battalarm = 1000,
349 .battthresh = 3,
350 },
351 { .name = "MACAO",
352 .dcv = 0x3,
353 .battdebounce = 64,
354 .battalarm = 1000,
355 .battthresh = 3,
356 },
357 /* Current loop >= 20ma */
358 { .name = "MALAYSIA",
359 .mini = 0x3,
360 .battdebounce = 64,
361 .battalarm = 1000,
362 .battthresh = 3,
363 },
364 { .name = "MALTA",
365 .ilim = 1,
366 .dcv = 0x3,
367 .acim = 0x2,
368 .battdebounce = 64,
369 .battalarm = 1000,
370 .battthresh = 3,
371 },
372 { .name = "MEXICO",
373 .dcv = 0x3,
374 .battdebounce = 64,
375 .battalarm = 1000,
376 .battthresh = 3,
377 },
378 { .name = "MOROCCO",
379 .ilim = 1,
380 .dcv = 0x3,
381 .acim = 0x2,
382 .battdebounce = 64,
383 .battalarm = 1000,
384 .battthresh = 3,
385 },
386 { .name = "NETHERLANDS",
387 .ohs2 = 1,
388 .ilim = 1,
389 .dcv = 0x3,
390 .acim = 0x2,
391 .battdebounce = 64,
392 .battalarm = 1000,
393 .battthresh = 3,
394 },
395 { .name = "NEWZEALAND",
396 .dcv = 0x3,
397 .acim = 0x4,
398 .battdebounce = 64,
399 .battalarm = 1000,
400 .battthresh = 3,
401 },
402 { .name = "NIGERIA",
403 .ilim = 0x1,
404 .dcv = 0x3,
405 .acim = 0x2,
406 .battdebounce = 64,
407 .battalarm = 1000,
408 .battthresh = 3,
409 },
410 { .name = "NORWAY",
411 .ohs2 = 1,
412 .ilim = 1,
413 .dcv = 0x3,
414 .acim = 0x2,
415 .battdebounce = 64,
416 .battalarm = 1000,
417 .battthresh = 3,
418 },
419 { .name = "OMAN",
420 .mini = 0x3,
421 .battdebounce = 64,
422 .battalarm = 1000,
423 .battthresh = 3,
424 },
425 { .name = "PAKISTAN",
426 .mini = 0x3,
427 .battdebounce = 64,
428 .battalarm = 1000,
429 .battthresh = 3,
430 },
431 { .name = "PERU",
432 .dcv = 0x3,
433 .battdebounce = 64,
434 .battalarm = 1000,
435 .battthresh = 3,
436 },
437 { .name = "PHILIPPINES",
438 .mini = 0x3,
439 .battdebounce = 64,
440 .battalarm = 1000,
441 .battthresh = 3,
442 },
443 { .name = "POLAND",
444 .rz = 1,
445 .rt = 1,
446 .dcv = 0x3,
447 .battdebounce = 64,
448 .battalarm = 1000,
449 .battthresh = 3,
450 },
451 { .name = "PORTUGAL",
452 .ohs2 = 1,
453 .ilim = 1,
454 .dcv = 0x3,
455 .acim = 0x2,
456 .battdebounce = 64,
457 .battalarm = 1000,
458 .battthresh = 3,
459 },
460 { .name = "ROMANIA",
461 .dcv = 3,
462 .battdebounce = 64,
463 .battalarm = 1000,
464 .battthresh = 3,
465 },
466 { .name = "RUSSIA",
467 .mini = 0x3,
468 .battdebounce = 64,
469 .battalarm = 1000,
470 .battthresh = 3,
471 },
472 { .name = "SAUDIARABIA",
473 .dcv = 0x3,
474 .battdebounce = 64,
475 .battalarm = 1000,
476 .battthresh = 3,
477 },
478 { .name = "SINGAPORE",
479 .dcv = 0x3,
480 .battdebounce = 64,
481 .battalarm = 1000,
482 .battthresh = 3,
483 },
484 { .name = "SLOVAKIA",
485 .dcv = 0x3,
486 .acim = 0x3,
487 .battdebounce = 64,
488 .battalarm = 1000,
489 .battthresh = 3,
490 },
491 { .name = "SLOVENIA",
492 .dcv = 0x3,
493 .acim = 0x2,
494 .battdebounce = 64,
495 .battalarm = 1000,
496 .battthresh = 3,
497 },
498 { .name = "SOUTHAFRICA",
499 .ohs = 1,
500 .rz = 1,
501 .dcv = 0x3,
502 .acim = 0x3,
503 .battdebounce = 64,
504 .battalarm = 1000,
505 .battthresh = 3,
506 },
507 { .name = "SOUTHKOREA",
508 .dcv = 0x3,
509 .battdebounce = 64,
510 .battalarm = 1000,
511 .battthresh = 3,
512 },
513 { .name = "SPAIN",
514 .ohs2 = 1,
515 .ilim = 1,
516 .dcv = 0x3,
517 .acim = 0x2,
518 .battdebounce = 64,
519 .battalarm = 1000,
520 .battthresh = 3,
521 },
522 { .name = "SWEDEN",
523 .ohs2 = 1,
524 .ilim = 1,
525 .dcv = 0x3,
526 .acim = 0x2,
527 .battdebounce = 64,
528 .battalarm = 1000,
529 .battthresh = 3,
530 },
531 { .name = "SWITZERLAND",
532 .ohs2 = 1,
533 .ilim = 1,
534 .dcv = 0x3,
535 .acim = 0x2,
536 .battdebounce = 64,
537 .battalarm = 1000,
538 .battthresh = 3,
539 },
540 { .name = "SYRIA",
541 .mini = 0x3,
542 .battdebounce = 64,
543 .battalarm = 1000,
544 .battthresh = 3,
545 },
546 { .name = "TAIWAN",
547 .mini = 0x3,
548 .battdebounce = 64,
549 .battalarm = 1000,
550 .battthresh = 3,
551 },
552 { .name = "THAILAND",
553 .mini = 0x3,
554 .battdebounce = 64,
555 .battalarm = 1000,
556 .battthresh = 3,
557 },
558 { .name = "UAE",
559 .dcv = 0x3,
560 .battdebounce = 64,
561 .battalarm = 1000,
562 .battthresh = 3,
563 },
564 { .name = "UK",
565 .ohs2 = 1,
566 .ilim = 1,
567 .dcv = 0x3,
568 .acim = 0x5,
569 .battdebounce = 64,
570 .battalarm = 1000,
571 .battthresh = 3,
572 },
573 { .name = "USA",
574 .dcv = 0x3,
575 .battdebounce = 64,
576 .battalarm = 1000,
577 .battthresh = 3,
578 },
579 { .name = "YEMEN",
580 .dcv = 0x3,
581 .battdebounce = 64,
582 .battalarm = 1000,
583 .battthresh = 3,
584 },
585 };
586
587 #endif /* _FXO_MODES_H */