~ubuntu-branches/ubuntu/saucy/nut/saucy

« back to all changes in this revision

Viewing changes to drivers/fentonups.h

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2005-07-20 19:48:50 UTC
  • mto: (16.1.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20050720194850-oo61wjr33rrx2mre
Tags: upstream-2.0.2
ImportĀ upstreamĀ versionĀ 2.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* fentonups.h - model capability table
2
2
 
3
3
   Copyright (C) 1999  Russell Kroll <rkroll@exploits.org>
 
4
                 2005  Michel Bouissou <michel@bouissou.net>
4
5
 
5
6
   This program is free software; you can redistribute it and/or modify
6
7
   it under the terms of the GNU General Public License as published by
18
19
*/
19
20
 
20
21
struct {
21
 
        char    *mtext;
22
 
        char    *desc;
 
22
        const   char    *mtext;
 
23
        const   char    *desc;
23
24
        float   lowvolt;
24
25
        float   voltrange;
 
26
        float   chrglow;
 
27
        float   chrgrange;
25
28
        int     lowxfer;
26
29
        int     lownorm;
27
30
        int     highnorm;
30
33
}       modeltab[] =
31
34
{
32
35
        /* USA models */
33
 
        { "L280A",  "PowerPal 280",  9.6,  2.4, 84, 98, 126, 142, 0 },
34
 
        { "L425A",  "PowerPal 425",  9.6,  2.4, 84, 98, 126, 142, 0 },  
35
 
        { "L660A",  "PowerPal 660",  19.6, 4.4, 84, 98, 126, 142, 0 },
36
 
        { "L1000A", "PowerPal 1000", 19.6, 4.4, 84, 98, 126, 142, 0 },
37
 
        { "L1400A", "PowerPal 1400", 29.4, 6.6, 84, 98, 126, 142, 0 },
 
36
        { "L280A",  "PowerPal 280",  9.6,  2.4, 12.1, 1.7, 84, 98, 126, 142, 0 },
 
37
        { "L425A",  "PowerPal 425",  9.6,  2.4, 12.1, 1.7, 84, 98, 126, 142, 0 },       
 
38
        { "L660A",  "PowerPal 660",  19.6, 4.4, 24.2, 3.3, 84, 98, 126, 142, 0 },
 
39
        { "L1000A", "PowerPal 1000", 19.6, 4.4, 24.2, 3.3, 84, 98, 126, 142, 0 },
 
40
        { "L1400A", "PowerPal 1400", 29.4, 6.6, 36.3, 4.7, 84, 98, 126, 142, 0 },
38
41
 
39
42
        /* European models */
40
 
        { "L280E",  "PowerPal 280",   9.6, 2.4, 168, 196, 252, 284, 0 },
41
 
        { "L425E",  "PowerPal 425",   9.6, 2.4, 168, 196, 252, 284, 0 },        
42
 
        { "L660E",  "PowerPal 660",  19.6, 4.4, 168, 196, 252, 284, 0 },
43
 
        { "L1000E", "PowerPal 1000", 19.6, 4.4, 168, 196, 252, 284, 0 },
44
 
        { "L1400E", "PowerPal 1400", 29.4, 6.6, 168, 196, 252, 284, 0 },
45
 
 
46
 
        { "M1000", "PowerPure 1000", 25.0,  3.4, 80, 80, 138, 138, 1 },
47
 
        { "M2000", "PowerPure 2000",    0,    0, 80, 80, 138, 138, 1 },
48
 
        { "M3000", "PowerPure 3000",    0,    0, 80, 80, 138, 138, 1 }, 
49
 
 
50
 
        { "H4000", "PowerOn 4000",  154.0, 14.0, 88, 88, 132, 132, 1 },
51
 
        { "H6000", "PowerOn 6000",  154.0, 14.0, 88, 88, 132, 132, 1 },
52
 
        { "H8000", "PowerOn 8000",  154.0, 14.0, 88, 88, 132, 132, 1 },
53
 
        { "H010K", "PowerOn 10000", 154.0, 14.0, 88, 88, 132, 132, 1 },
 
43
        { "L280E",  "PowerPal 280",   9.6, 2.4, 12.1, 1.7, 168, 196, 252, 284, 0 },
 
44
        { "L425E",  "PowerPal 425",   9.6, 2.4, 12.1, 1.7, 168, 196, 252, 284, 0 },     
 
45
        { "L660E",  "PowerPal 660",  19.6, 4.4, 24.2, 3.3, 168, 196, 252, 284, 0 },
 
46
        { "L1000E", "PowerPal 1000", 19.6, 4.4, 24.2, 3.3, 168, 196, 252, 284, 0 },
 
47
        { "L1400E", "PowerPal 1400", 29.4, 6.6, 36.3, 4.7, 168, 196, 252, 284, 0 },
 
48
 
 
49
        { "M1000", "PowerPure 1000", 25.0,  3.4, 25.2,  3.2, 80, 80, 138, 138, 1 },
 
50
        { "M2000", "PowerPure 2000",    0,    0,    0,    0, 80, 80, 138, 138, 1 },
 
51
        { "M3000", "PowerPure 3000",    0,    0,    0,    0, 80, 80, 138, 138, 1 }, 
 
52
 
 
53
        { "H4000", "PowerOn 4000",  154.0, 14.0, 154.0, 14.0, 88, 88, 132, 132, 1 },
 
54
        { "H6000", "PowerOn 6000",  154.0, 14.0, 154.0, 14.0, 88, 88, 132, 132, 1 },
 
55
        { "H8000", "PowerOn 8000",  154.0, 14.0, 154.0, 14.0, 88, 88, 132, 132, 1 },
 
56
        { "H010K", "PowerOn 10000", 154.0, 14.0, 154.0, 14.0, 88, 88, 132, 132, 1 },
54
57
 
55
58
        /* non-Fenton, yet compatible (Megatec protocol) models */
56
59
 
57
 
        { "UPS-PRO", "PowerGuard PG-600", 0, 0, 170, 200, 250, 270, 1 },
58
 
 
59
 
        { "SMK800A", "PowerCom SMK-800A", 1.9, 0.5, 165, 200, 240, 275, 1 },
60
 
 
61
 
        { "ULT-1000", "PowerCom ULT-1000", 1.91, 0.42, 165, 200, 240, 275, 1 },
62
 
 
63
 
        { NULL,    NULL,                  0, 0,   0,   0,   0,   0, 0 }
 
60
        { "UPS-PRO", "PowerGuard PG-600", 0, 0, 0, 0, 170, 200, 250, 270, 1 },
 
61
 
 
62
        { "SMK800A", "PowerCom SMK-800A", 1.9, 0.5, 1.9, 0.5, 165, 200, 240, 275, 1 },
 
63
 
 
64
        { "ULT-1000", "PowerCom ULT-1000", 1.91, 0.42, 1.91, 0.42, 165, 200, 240, 275, 1 },
 
65
 
 
66
        { "Alpha500iC", "Alpha 500 iC", 10.7, 1.4, 13.0, 0.8, 172, 196, 252, 288, 0 },
 
67
 
 
68
        { NULL,    NULL,                  0, 0, 0, 0,   0,   0,   0,   0, 0 }
64
69
};
65
70
 
66
71
/* devices which don't implement the I string the same way */
67
72
 
68
73
struct {
69
 
        char    *id;
70
 
        char    *mfr;
71
 
        char    *model;
 
74
        const   char    *id;
 
75
        const   char    *mfr;
 
76
        const   char    *model;
72
77
        float   lowvolt;
73
78
        float   voltrange;
 
79
        float   chrglow;
 
80
        float   chrgrange;
74
81
        int     lowxfer;
75
82
        int     lownorm;
76
83
        int     highnorm;
78
85
        int     has_temp;
79
86
}       mtab2[] =
80
87
{
81
 
        { "WELI 500 1.0", "Giant Power", "MT650", 10.6, 3.7, 170, 180, 270, 280, 0 },
 
88
        { "WELI 500 1.0", "Giant Power", "MT650", 10.6, 3.7, 12.1, 2.2, 170, 180, 270, 280, 0 },
82
89
        { "SMART-UPS       1800VA     T18Q16AG", "Effekta", "MT 2000 RM",
83
 
                50.0, 19.5, 171, 200, 260, 278, 1 },
 
90
                50.0, 19.5, 50.0, 19.5, 171, 200, 260, 278, 1 },
 
91
        
 
92
        /* Sysgration model data from Simon J. Rowe */
 
93
        
 
94
        { "Pro 650 4.01", "Sysgration", "UPGUARDS Pro650", 
 
95
                9.6, 2.4, 9.6, 2.4, 168, 196, 252, 284, 1 },
 
96
 
 
97
        /* SuperPower model data from Denis Zaika */
 
98
 
 
99
        { "----            ----       VS00024Q", "SuperPower", "HP360", 9.6, 
 
100
                3.9, 9.6, 3.9, 140, 190, 240, 280, 1 },
 
101
        { " -------------   ------     VS000391", "SuperPower", "Hope-550", 
 
102
                9.6, 3.9, 9.6, 3.9, 170, 190, 240, 280, 0 },
 
103
 
 
104
        /* Unitek data from Antoine Cuvellard */
 
105
                
 
106
        { "UNITEK          Alph1000iS A0", "Unitek", "Alpha 1000is",
 
107
                9.6, 2.4, 9.6, 2.4, 158, 172, 288, 290, 0 },
 
108
 
84
109
        { NULL,    NULL,                NULL,  0, 0,   0,   0,   0,   0, 0 }
85
110
};