123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588 |
- /*
- * FXO port mode settings for various regions
- *
- * Copyright (C) 2008 Digium, Inc.
- *
- * extracted from wctdm.c by
- * Kevin P. Fleming <kpfleming@digium.com>
- *
- * All rights reserved.
- */
- /*
- * See http://www.asterisk.org for more information about
- * the Asterisk project. Please do not directly contact
- * any of the maintainers of this project for assistance;
- * the project provides a web site, mailing lists and IRC
- * channels for your use.
- *
- * This program is free software, distributed under the terms of
- * the GNU General Public License Version 2 as published by the
- * Free Software Foundation. See the LICENSE file included with
- * this program for more details.
- */
- #ifndef _FXO_MODES_H
- #define _FXO_MODES_H
- static const struct fxo_mode {
- const char *name;
- unsigned char ohs:1;
- unsigned char ohs2:1;
- unsigned char rz:1;
- unsigned char rt:1;
- unsigned char ilim:1;
- unsigned char dcv:2;
- unsigned char mini:2;
- unsigned char acim:4;
- unsigned short int ring_osc;
- unsigned short int ring_x;
- unsigned short int battdebounce; /* in milliseconds */
- unsigned short int battalarm; /* in milliseconds */
- unsigned short int battthresh; /* unknown units */
- } fxo_modes[] =
- {
- /* US, Canada */
- { .name = "FCC",
- .rt = 1,
- .dcv = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- /* Austria, Belgium, Denmark, Finland, France, Germany,
- Greece, Iceland, Ireland, Italy, Luxembourg, Netherlands,
- Norway, Portugal, Spain, Sweden, Switzerland, and UK */
- { .name = "TBR21",
- .ilim = 1,
- .dcv = 0x3,
- .acim = 0x2,
- .ring_osc = 0x7e6c,
- .ring_x = 0x023a,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "ARGENTINA",
- .dcv = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "AUSTRALIA",
- .ohs = 1,
- .mini = 0x3,
- .acim = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "AUSTRIA",
- .ohs2 = 1,
- .ilim = 1,
- .dcv = 0x3,
- .acim = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "BAHRAIN",
- .ilim = 1,
- .dcv = 0x3,
- .acim = 0x2,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "BELGIUM",
- .ohs2 = 1,
- .ilim = 1,
- .dcv = 0x3,
- .acim = 0x2,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "BRAZIL",
- .mini = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "BULGARIA",
- .ilim = 1,
- .dcv = 0x3,
- .mini = 0x0,
- .acim = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "CANADA",
- .dcv = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "CHILE",
- .dcv = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "CHINA",
- .mini = 0x3,
- .acim = 0xf,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "COLOMBIA",
- .dcv = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "CROATIA",
- .ilim = 1,
- .dcv = 0x3,
- .mini = 0,
- .acim = 0x2,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "CYPRUS",
- .ilim = 1,
- .dcv = 0x3,
- .acim = 0x2,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "CZECH",
- .ilim = 1,
- .dcv = 0x3,
- .mini = 0,
- .acim = 0x2,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "DENMARK",
- .ohs2 = 1,
- .ilim = 1,
- .dcv = 0x3,
- .acim = 0x2,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "ECUADOR",
- .dcv = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "EGYPT",
- .mini = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "ELSALVADOR",
- .dcv = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "FINLAND",
- .ohs2 = 1,
- .ilim = 1,
- .dcv = 0x3,
- .acim = 0x2,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "FRANCE",
- .ohs2 = 1,
- .ilim = 1,
- .dcv = 0x3,
- .mini = 0,
- .acim = 0x2,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "GERMANY",
- .ohs2 = 1,
- .ilim = 1,
- .dcv = 0x3,
- .acim = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "GREECE",
- .ohs2 = 1,
- .ilim = 1,
- .dcv = 0x3,
- .acim = 0x2,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "GUAM",
- .dcv = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "HONGKONG",
- .dcv = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "HUNGARY",
- .dcv = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "ICELAND",
- .ohs2 = 1,
- .ilim = 1,
- .dcv = 0x3,
- .acim = 0x2,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "INDIA",
- .dcv = 0x3,
- .acim = 0x4,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "INDONESIA",
- .dcv = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "IRELAND",
- .ohs2 = 1,
- .ilim = 1,
- .dcv = 0x3,
- .acim = 0x2,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "ISRAEL",
- .ilim = 1,
- .dcv = 0x3,
- .acim = 0x2,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "ITALY",
- .ohs2 = 1,
- .ilim = 1,
- .dcv = 0x3,
- .acim = 0x2,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "JAPAN",
- .mini = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "JORDAN",
- .mini = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "KAZAKHSTAN",
- .dcv = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "KUWAIT",
- .dcv = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "LATVIA",
- .ilim = 1,
- .dcv = 0x3,
- .acim = 0x2,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "LEBANON",
- .ilim = 1,
- .dcv = 0x3,
- .acim = 0x2,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "LUXEMBOURG",
- .ohs2 = 1,
- .ilim = 1,
- .dcv = 0x3,
- .acim = 0x2,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "MACAO",
- .dcv = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- /* Current loop >= 20ma */
- { .name = "MALAYSIA",
- .mini = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "MALTA",
- .ilim = 1,
- .dcv = 0x3,
- .acim = 0x2,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "MEXICO",
- .dcv = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "MOROCCO",
- .ilim = 1,
- .dcv = 0x3,
- .acim = 0x2,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "NETHERLANDS",
- .ohs2 = 1,
- .ilim = 1,
- .dcv = 0x3,
- .acim = 0x2,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "NEWZEALAND",
- .dcv = 0x3,
- .acim = 0x4,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "NIGERIA",
- .ilim = 0x1,
- .dcv = 0x3,
- .acim = 0x2,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "NORWAY",
- .ohs2 = 1,
- .ilim = 1,
- .dcv = 0x3,
- .acim = 0x2,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "OMAN",
- .mini = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "PAKISTAN",
- .mini = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "PERU",
- .dcv = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "PHILIPPINES",
- .mini = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "POLAND",
- .rz = 1,
- .rt = 1,
- .dcv = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "PORTUGAL",
- .ohs2 = 1,
- .ilim = 1,
- .dcv = 0x3,
- .acim = 0x2,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "ROMANIA",
- .dcv = 3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "RUSSIA",
- .mini = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "SAUDIARABIA",
- .dcv = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "SINGAPORE",
- .dcv = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "SLOVAKIA",
- .dcv = 0x3,
- .acim = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "SLOVENIA",
- .dcv = 0x3,
- .acim = 0x2,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "SOUTHAFRICA",
- .ohs = 1,
- .rz = 1,
- .dcv = 0x3,
- .acim = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "SOUTHKOREA",
- .dcv = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "SPAIN",
- .ohs2 = 1,
- .ilim = 1,
- .dcv = 0x3,
- .acim = 0x2,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "SWEDEN",
- .ohs2 = 1,
- .ilim = 1,
- .dcv = 0x3,
- .acim = 0x2,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "SWITZERLAND",
- .ohs2 = 1,
- .ilim = 1,
- .dcv = 0x3,
- .acim = 0x2,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "SYRIA",
- .mini = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "TAIWAN",
- .mini = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "THAILAND",
- .mini = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "UAE",
- .dcv = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "UK",
- .ohs2 = 1,
- .ilim = 1,
- .dcv = 0x3,
- .acim = 0x5,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "USA",
- .dcv = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- { .name = "YEMEN",
- .dcv = 0x3,
- .battdebounce = 64,
- .battalarm = 1000,
- .battthresh = 3,
- },
- };
- #endif /* _FXO_MODES_H */
|