From b5e64a86d6692c3fa545f3077077e0c3fa8da70b Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Mon, 2 Feb 2009 22:48:53 +0000 Subject: Raise the voltage threshhold for detecting when there is battery loss from 3V to 40V. Patch provided by angler Issue: DAHDI-166 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5944 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/fxo_modes.h | 146 +++++++++++++++++++++++----------------------- 1 file changed, 73 insertions(+), 73 deletions(-) diff --git a/drivers/dahdi/fxo_modes.h b/drivers/dahdi/fxo_modes.h index 2b2a7c9..ddc356f 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 = 3, + .battthresh = 40, }, /* 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 = 3, + .battthresh = 40, }, { .name = "ARGENTINA", .dcv = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "AUSTRALIA", .ohs = 1, @@ -75,7 +75,7 @@ static struct fxo_mode { .acim = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "AUSTRIA", .ohs2 = 1, @@ -84,7 +84,7 @@ static struct fxo_mode { .acim = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "BAHRAIN", .ilim = 1, @@ -92,7 +92,7 @@ static struct fxo_mode { .acim = 0x2, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "BELGIUM", .ohs2 = 1, @@ -101,13 +101,13 @@ static struct fxo_mode { .acim = 0x2, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "BRAZIL", .mini = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "BULGARIA", .ilim = 1, @@ -116,32 +116,32 @@ static struct fxo_mode { .acim = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "CANADA", .dcv = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "CHILE", .dcv = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "CHINA", .mini = 0x3, .acim = 0xf, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "COLOMBIA", .dcv = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "CROATIA", .ilim = 1, @@ -150,7 +150,7 @@ static struct fxo_mode { .acim = 0x2, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "CYPRUS", .ilim = 1, @@ -158,7 +158,7 @@ static struct fxo_mode { .acim = 0x2, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "CZECH", .ilim = 1, @@ -167,7 +167,7 @@ static struct fxo_mode { .acim = 0x2, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "DENMARK", .ohs2 = 1, @@ -176,25 +176,25 @@ static struct fxo_mode { .acim = 0x2, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "ECUADOR", .dcv = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "EGYPT", .mini = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "ELSALVADOR", .dcv = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "FINLAND", .ohs2 = 1, @@ -203,7 +203,7 @@ static struct fxo_mode { .acim = 0x2, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "FRANCE", .ohs2 = 1, @@ -213,7 +213,7 @@ static struct fxo_mode { .acim = 0x2, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "GERMANY", .ohs2 = 1, @@ -222,7 +222,7 @@ static struct fxo_mode { .acim = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "GREECE", .ohs2 = 1, @@ -231,25 +231,25 @@ static struct fxo_mode { .acim = 0x2, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "GUAM", .dcv = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "HONGKONG", .dcv = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "HUNGARY", .dcv = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "ICELAND", .ohs2 = 1, @@ -258,20 +258,20 @@ static struct fxo_mode { .acim = 0x2, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "INDIA", .dcv = 0x3, .acim = 0x4, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "INDONESIA", .dcv = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "IRELAND", .ohs2 = 1, @@ -280,7 +280,7 @@ static struct fxo_mode { .acim = 0x2, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "ISRAEL", .ilim = 1, @@ -288,7 +288,7 @@ static struct fxo_mode { .acim = 0x2, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "ITALY", .ohs2 = 1, @@ -297,31 +297,31 @@ static struct fxo_mode { .acim = 0x2, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "JAPAN", .mini = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "JORDAN", .mini = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "KAZAKHSTAN", .dcv = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "KUWAIT", .dcv = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "LATVIA", .ilim = 1, @@ -329,7 +329,7 @@ static struct fxo_mode { .acim = 0x2, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "LEBANON", .ilim = 1, @@ -337,7 +337,7 @@ static struct fxo_mode { .acim = 0x2, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "LUXEMBOURG", .ohs2 = 1, @@ -346,20 +346,20 @@ static struct fxo_mode { .acim = 0x2, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "MACAO", .dcv = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, /* Current loop >= 20ma */ { .name = "MALAYSIA", .mini = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "MALTA", .ilim = 1, @@ -367,13 +367,13 @@ static struct fxo_mode { .acim = 0x2, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "MEXICO", .dcv = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "MOROCCO", .ilim = 1, @@ -381,7 +381,7 @@ static struct fxo_mode { .acim = 0x2, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "NETHERLANDS", .ohs2 = 1, @@ -390,14 +390,14 @@ static struct fxo_mode { .acim = 0x2, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "NEWZEALAND", .dcv = 0x3, .acim = 0x4, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "NIGERIA", .ilim = 0x1, @@ -405,7 +405,7 @@ static struct fxo_mode { .acim = 0x2, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "NORWAY", .ohs2 = 1, @@ -414,31 +414,31 @@ static struct fxo_mode { .acim = 0x2, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "OMAN", .mini = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "PAKISTAN", .mini = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "PERU", .dcv = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "PHILIPPINES", .mini = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "POLAND", .rz = 1, @@ -446,7 +446,7 @@ static struct fxo_mode { .dcv = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "PORTUGAL", .ohs2 = 1, @@ -455,45 +455,45 @@ static struct fxo_mode { .acim = 0x2, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "ROMANIA", .dcv = 3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "RUSSIA", .mini = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "SAUDIARABIA", .dcv = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "SINGAPORE", .dcv = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "SLOVAKIA", .dcv = 0x3, .acim = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "SLOVENIA", .dcv = 0x3, .acim = 0x2, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "SOUTHAFRICA", .ohs = 1, @@ -502,13 +502,13 @@ static struct fxo_mode { .acim = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "SOUTHKOREA", .dcv = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "SPAIN", .ohs2 = 1, @@ -517,7 +517,7 @@ static struct fxo_mode { .acim = 0x2, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "SWEDEN", .ohs2 = 1, @@ -526,7 +526,7 @@ static struct fxo_mode { .acim = 0x2, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "SWITZERLAND", .ohs2 = 1, @@ -535,31 +535,31 @@ static struct fxo_mode { .acim = 0x2, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "SYRIA", .mini = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "TAIWAN", .mini = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "THAILAND", .mini = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "UAE", .dcv = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "UK", .ohs2 = 1, @@ -568,19 +568,19 @@ static struct fxo_mode { .acim = 0x5, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "USA", .dcv = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, { .name = "YEMEN", .dcv = 0x3, .battdebounce = 64, .battalarm = 1000, - .battthresh = 3, + .battthresh = 40, }, }; -- cgit v1.2.3