summaryrefslogtreecommitdiff
path: root/drivers/dahdi/fxo_modes.h
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2009-02-04 17:38:52 +0000
committerShaun Ruffell <sruffell@digium.com>2009-02-04 17:38:52 +0000
commit2e68d97af5f4ae25bcb0ca6b65e4cfc9361d0470 (patch)
treeb612924a161a2cdd2f80e24763c1fc19e7b5b0cb /drivers/dahdi/fxo_modes.h
parentb5e64a86d6692c3fa545f3077077e0c3fa8da70b (diff)
Undoing commit for revision 5944. This still needs more testing before
going into trunk. It appears that changing the battthresh reveals other potential issues with determining the battery / alarm state of FXO ports. Issue: DAHDI-166 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5970 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/fxo_modes.h')
-rw-r--r--drivers/dahdi/fxo_modes.h146
1 files changed, 73 insertions, 73 deletions
diff --git a/drivers/dahdi/fxo_modes.h b/drivers/dahdi/fxo_modes.h
index ddc356f..2b2a7c9 100644
--- a/drivers/dahdi/fxo_modes.h
+++ b/drivers/dahdi/fxo_modes.h
@@ -48,7 +48,7 @@ static struct fxo_mode {
.dcv = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
/* Austria, Belgium, Denmark, Finland, France, Germany,
Greece, Iceland, Ireland, Italy, Luxembourg, Netherlands,
@@ -61,13 +61,13 @@ static struct fxo_mode {
.ring_x = 0x023a,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "ARGENTINA",
.dcv = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "AUSTRALIA",
.ohs = 1,
@@ -75,7 +75,7 @@ static struct fxo_mode {
.acim = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "AUSTRIA",
.ohs2 = 1,
@@ -84,7 +84,7 @@ static struct fxo_mode {
.acim = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "BAHRAIN",
.ilim = 1,
@@ -92,7 +92,7 @@ static struct fxo_mode {
.acim = 0x2,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "BELGIUM",
.ohs2 = 1,
@@ -101,13 +101,13 @@ static struct fxo_mode {
.acim = 0x2,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "BRAZIL",
.mini = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "BULGARIA",
.ilim = 1,
@@ -116,32 +116,32 @@ static struct fxo_mode {
.acim = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "CANADA",
.dcv = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "CHILE",
.dcv = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "CHINA",
.mini = 0x3,
.acim = 0xf,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "COLOMBIA",
.dcv = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "CROATIA",
.ilim = 1,
@@ -150,7 +150,7 @@ static struct fxo_mode {
.acim = 0x2,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "CYPRUS",
.ilim = 1,
@@ -158,7 +158,7 @@ static struct fxo_mode {
.acim = 0x2,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "CZECH",
.ilim = 1,
@@ -167,7 +167,7 @@ static struct fxo_mode {
.acim = 0x2,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "DENMARK",
.ohs2 = 1,
@@ -176,25 +176,25 @@ static struct fxo_mode {
.acim = 0x2,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "ECUADOR",
.dcv = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "EGYPT",
.mini = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "ELSALVADOR",
.dcv = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "FINLAND",
.ohs2 = 1,
@@ -203,7 +203,7 @@ static struct fxo_mode {
.acim = 0x2,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "FRANCE",
.ohs2 = 1,
@@ -213,7 +213,7 @@ static struct fxo_mode {
.acim = 0x2,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "GERMANY",
.ohs2 = 1,
@@ -222,7 +222,7 @@ static struct fxo_mode {
.acim = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "GREECE",
.ohs2 = 1,
@@ -231,25 +231,25 @@ static struct fxo_mode {
.acim = 0x2,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "GUAM",
.dcv = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "HONGKONG",
.dcv = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "HUNGARY",
.dcv = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "ICELAND",
.ohs2 = 1,
@@ -258,20 +258,20 @@ static struct fxo_mode {
.acim = 0x2,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "INDIA",
.dcv = 0x3,
.acim = 0x4,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "INDONESIA",
.dcv = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "IRELAND",
.ohs2 = 1,
@@ -280,7 +280,7 @@ static struct fxo_mode {
.acim = 0x2,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "ISRAEL",
.ilim = 1,
@@ -288,7 +288,7 @@ static struct fxo_mode {
.acim = 0x2,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "ITALY",
.ohs2 = 1,
@@ -297,31 +297,31 @@ static struct fxo_mode {
.acim = 0x2,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "JAPAN",
.mini = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "JORDAN",
.mini = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "KAZAKHSTAN",
.dcv = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "KUWAIT",
.dcv = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "LATVIA",
.ilim = 1,
@@ -329,7 +329,7 @@ static struct fxo_mode {
.acim = 0x2,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "LEBANON",
.ilim = 1,
@@ -337,7 +337,7 @@ static struct fxo_mode {
.acim = 0x2,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "LUXEMBOURG",
.ohs2 = 1,
@@ -346,20 +346,20 @@ static struct fxo_mode {
.acim = 0x2,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "MACAO",
.dcv = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
/* Current loop >= 20ma */
{ .name = "MALAYSIA",
.mini = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "MALTA",
.ilim = 1,
@@ -367,13 +367,13 @@ static struct fxo_mode {
.acim = 0x2,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "MEXICO",
.dcv = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "MOROCCO",
.ilim = 1,
@@ -381,7 +381,7 @@ static struct fxo_mode {
.acim = 0x2,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "NETHERLANDS",
.ohs2 = 1,
@@ -390,14 +390,14 @@ static struct fxo_mode {
.acim = 0x2,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "NEWZEALAND",
.dcv = 0x3,
.acim = 0x4,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "NIGERIA",
.ilim = 0x1,
@@ -405,7 +405,7 @@ static struct fxo_mode {
.acim = 0x2,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "NORWAY",
.ohs2 = 1,
@@ -414,31 +414,31 @@ static struct fxo_mode {
.acim = 0x2,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "OMAN",
.mini = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "PAKISTAN",
.mini = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "PERU",
.dcv = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "PHILIPPINES",
.mini = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "POLAND",
.rz = 1,
@@ -446,7 +446,7 @@ static struct fxo_mode {
.dcv = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "PORTUGAL",
.ohs2 = 1,
@@ -455,45 +455,45 @@ static struct fxo_mode {
.acim = 0x2,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "ROMANIA",
.dcv = 3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "RUSSIA",
.mini = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "SAUDIARABIA",
.dcv = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "SINGAPORE",
.dcv = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "SLOVAKIA",
.dcv = 0x3,
.acim = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "SLOVENIA",
.dcv = 0x3,
.acim = 0x2,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "SOUTHAFRICA",
.ohs = 1,
@@ -502,13 +502,13 @@ static struct fxo_mode {
.acim = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "SOUTHKOREA",
.dcv = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "SPAIN",
.ohs2 = 1,
@@ -517,7 +517,7 @@ static struct fxo_mode {
.acim = 0x2,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "SWEDEN",
.ohs2 = 1,
@@ -526,7 +526,7 @@ static struct fxo_mode {
.acim = 0x2,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "SWITZERLAND",
.ohs2 = 1,
@@ -535,31 +535,31 @@ static struct fxo_mode {
.acim = 0x2,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "SYRIA",
.mini = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "TAIWAN",
.mini = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "THAILAND",
.mini = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "UAE",
.dcv = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "UK",
.ohs2 = 1,
@@ -568,19 +568,19 @@ static struct fxo_mode {
.acim = 0x5,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "USA",
.dcv = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
{ .name = "YEMEN",
.dcv = 0x3,
.battdebounce = 64,
.battalarm = 1000,
- .battthresh = 40,
+ .battthresh = 3,
},
};