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

« back to all changes in this revision

Viewing changes to models/genericups.h

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Quette
  • Date: 2004-05-28 13:10:01 UTC
  • mto: (16.1.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20040528131001-yj2m9qcez4ya2w14
Tags: upstream-1.4.2
ImportĀ upstreamĀ versionĀ 1.4.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* genericups.h - contact closure UPS line status definitions
2
 
 
3
 
   Copyright (C) 1999, 2000  Russell Kroll <rkroll@exploits.org>
4
 
 
5
 
   This program is free software; you can redistribute it and/or modify
6
 
   it under the terms of the GNU General Public License as published by
7
 
   the Free Software Foundation; either version 2 of the License, or
8
 
   (at your option) any later version.
9
 
 
10
 
   This program is distributed in the hope that it will be useful,
11
 
   but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 
   GNU General Public License for more details.
14
 
 
15
 
   You should have received a copy of the GNU General Public License
16
 
   along with this program; if not, write to the Free Software
17
 
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
 
*/
19
 
 
20
 
struct {
21
 
        char    *mfr;                   /* value for INFO_MFR   */
22
 
        char    *model;                 /* value for INFO_MODEL */
23
 
        char    *desc;                  /* used in -l listing   */
24
 
        int     line_norm;
25
 
        int     line_ol, val_ol;
26
 
        int     line_bl, val_bl;
27
 
        int     line_sd;
28
 
}       upstab[] =
29
 
{
30
 
        { "UPSONIC",
31
 
          "LAN Saver 600",
32
 
          "UPSONIC LAN Saver 600",
33
 
          TIOCM_DTR | TIOCM_RTS,        /* cable power: DTR + RTS       */
34
 
          TIOCM_CTS, 0,                 /* online: CTS off              */
35
 
          TIOCM_CD, TIOCM_CD,           /* low battery: CD on           */
36
 
          TIOCM_RTS                     /* shutdown: lower DTR          */
37
 
        },
38
 
 
39
 
        { "APC",
40
 
          "Back-UPS",
41
 
          "APC Back-UPS (940-0095A/C cable)",
42
 
          TIOCM_DTR,                    /* cable power: DTR             */
43
 
          TIOCM_RNG, 0,                 /* online: RNG off              */
44
 
          TIOCM_CD, TIOCM_CD,           /* low battery: CD on           */
45
 
          TIOCM_RTS                     /* shutdown: RTS                */
46
 
        },
47
 
 
48
 
        { "APC",
49
 
          "Back-UPS",
50
 
          "APC Back-UPS (940-0020B cable)",
51
 
          TIOCM_RTS,                    /* cable power: RTS             */
52
 
          TIOCM_CTS, 0,                 /* online: CTS off              */
53
 
          TIOCM_CD, TIOCM_CD,           /* low battery: CD on           */
54
 
          TIOCM_DTR|TIOCM_RTS           /* shutdown: DTR + RTS          */
55
 
        },
56
 
 
57
 
        { "PowerTech",
58
 
          "Comp1000",
59
 
          "PowerTech Comp1000 with DTR as cable power",
60
 
          TIOCM_DTR,                    /* cable power: DTR             */
61
 
          TIOCM_CTS, 0,                 /* online: CTS off              */
62
 
          TIOCM_CD, TIOCM_CD,           /* low battery: CD on           */
63
 
          TIOCM_DTR | TIOCM_RTS         /* shutdown: DTR + RTS          */
64
 
        },
65
 
 
66
 
        { "Generic",
67
 
          "Generic RUPS model",
68
 
          "Generic RUPS model",
69
 
          TIOCM_RTS,                    /* cable power: RTS             */
70
 
          TIOCM_CTS, TIOCM_CTS,         /* online: CTS on               */
71
 
          TIOCM_CD, 0,                  /* low battery: CD off          */
72
 
          0                             /* shutdown: drop RTS           */
73
 
        },
74
 
 
75
 
        { "TrippLite",
76
 
          "Internet Office Series",
77
 
          "Tripp Lite UPS with Lan2.2 interface (black 73-0844 cable)",
78
 
          TIOCM_DTR,                    /* cable power: DTR             */
79
 
          TIOCM_CTS, TIOCM_CTS,         /* online: CTS on               */
80
 
          TIOCM_CD, 0,                  /* low battery: CAR off         */
81
 
          TIOCM_DTR | TIOCM_RTS         /* shutdown: DTR + RTS          */
82
 
        },
83
 
 
84
 
        { "Best",
85
 
          "Patriot",
86
 
          "Best Patriot (INT51 cable)",
87
 
          TIOCM_DTR,                    /* cable power: DTR             */
88
 
          TIOCM_CTS, TIOCM_CTS,         /* online: CTS on               */
89
 
          TIOCM_CD, 0,                  /* low battery: CD off          */
90
 
          TIOCM_RTS                     /* shutdown: set RTS            */
91
 
        },
92
 
 
93
 
        { "CyberPower",
94
 
          "Power99",
95
 
          "CyberPower Power99", 
96
 
          TIOCM_RTS,                    /* cable power: RTS             */
97
 
          TIOCM_CTS, TIOCM_CTS,         /* online: CTS on               */
98
 
          TIOCM_CD, 0,                  /* low battery: CD off          */
99
 
          TIOCM_DTR                     /* shutdown: set DTR            */
100
 
        },
101
 
 
102
 
        { "Nitram",
103
 
          "Elite UPS",
104
 
          "Nitram Elite 500",
105
 
          TIOCM_DTR,                    /* cable power: DTR             */
106
 
          TIOCM_CTS, TIOCM_CTS,         /* online: CTS on               */
107
 
          TIOCM_CD, 0,                  /* low battery: CD off          */
108
 
          -1                            /* shutdown: unknown            */
109
 
        },
110
 
 
111
 
        { "APC",
112
 
          "Back-UPS",
113
 
          "APC Back-UPS (940-0023A cable)",
114
 
          0,                            /* cable power: none            */
115
 
          TIOCM_CD, 0,                  /* online: CD off               */
116
 
          TIOCM_CTS, TIOCM_CTS,         /* low battery: CTS on          */
117
 
          TIOCM_RTS                     /* shutdown: RTS                */
118
 
        },
119
 
   
120
 
        { "Victron",
121
 
          "Lite",
122
 
          "Victron Lite (crack cable)",
123
 
          TIOCM_RTS,                    /* cable power: RTS             */
124
 
          TIOCM_CTS, TIOCM_CTS,         /* online: CTS on               */
125
 
          TIOCM_CD, 0,                  /* low battery: CD off          */
126
 
          TIOCM_DTR                     /* shutdown: DTR                */
127
 
        },
128
 
 
129
 
        
130
 
        { "Powerware",
131
 
          "3115",
132
 
          "Powerware 3115",
133
 
          TIOCM_DTR,                    /* cable power: DTR             */
134
 
          TIOCM_CTS, 0,                 /* online: CTS off              */
135
 
          TIOCM_CD, 0,                  /* low battery: CD off          */
136
 
          TIOCM_ST                      /* shutdown: ST                 */
137
 
        },
138
 
 
139
 
        { "APC",
140
 
          "Back-UPS Office",
141
 
          "APC Back-UPS Office (940-0119A cable)",
142
 
          TIOCM_RTS,                    /* cable power: RTS             */
143
 
          TIOCM_CTS, 0,                 /* online: CTS off              */
144
 
          TIOCM_CD, TIOCM_CD,           /* low battery: CD on           */
145
 
          TIOCM_DTR                     /* shutdown: raise DTR          */
146
 
        },
147
 
        
148
 
        { "RPT",
149
 
          "Repoteck",
150
 
          "Repoteck RPT-800A, RPT-162A",
151
 
          TIOCM_DTR | TIOCM_RTS,        /* cable power: DTR + RTS       */
152
 
          TIOCM_CD, TIOCM_CD,           /* On-line : DCD on             */
153
 
          TIOCM_CTS, 0,                 /* Battery low: CTS off         */
154
 
          TIOCM_ST                      /* shutdown: TX BREA            */
155
 
        },
156
 
 
157
 
        { "Online",
158
 
           "P250, P500, P750, P1250",
159
 
           "Online P-series",
160
 
           TIOCM_DTR,                   /* cable power: DTR             */
161
 
           TIOCM_CD, TIOCM_CD,          /* online: CD high              */
162
 
           TIOCM_CTS, 0,                /* low battery: CTS low         */
163
 
           TIOCM_RTS                    /* shutdown: raise RTS          */
164
 
        },
165
 
 
166
 
        { "Powerware",
167
 
          "5119",
168
 
          "Powerware 5119",
169
 
          TIOCM_DTR,                    /* cable power: DTR             */
170
 
          TIOCM_CTS, TIOCM_CTS,         /* online: CTS high             */
171
 
          TIOCM_CD, 0,                  /* low battery: CD low          */
172
 
          TIOCM_ST                      /* shutdown: ST (break)         */
173
 
        },
174
 
 
175
 
        /* add any new entries directly above this line */
176
 
          
177
 
        { NULL,
178
 
          NULL,
179
 
          NULL,
180
 
          0,
181
 
          0, 0,
182
 
          0, 0,
183
 
          0
184
 
        }
185
 
};