hpcbatterytable.h revision 1.3.4.2 1 1.3.4.2 nathanw /* $NetBSD: hpcbatterytable.h,v 1.3.4.2 2001/08/24 00:09:07 nathanw Exp $ */
2 1.3.4.2 nathanw
3 1.3.4.2 nathanw /*
4 1.3.4.2 nathanw * Copyright (c) 2000-2001 SATO Kazumi
5 1.3.4.2 nathanw * All rights reserved.
6 1.3.4.2 nathanw *
7 1.3.4.2 nathanw * Redistribution and use in source and binary forms, with or without
8 1.3.4.2 nathanw * modification, are permitted provided that the following conditions
9 1.3.4.2 nathanw * are met:
10 1.3.4.2 nathanw * 1. Redistributions of source code must retain the above copyright
11 1.3.4.2 nathanw * notice, this list of conditions and the following disclaimer.
12 1.3.4.2 nathanw * 2. Redistributions in binary form must reproduce the above copyright
13 1.3.4.2 nathanw * notice, this list of conditions and the following disclaimer in the
14 1.3.4.2 nathanw * documentation and/or other materials provided with the distribution.
15 1.3.4.2 nathanw *
16 1.3.4.2 nathanw * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17 1.3.4.2 nathanw * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 1.3.4.2 nathanw * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 1.3.4.2 nathanw * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20 1.3.4.2 nathanw * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 1.3.4.2 nathanw * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 1.3.4.2 nathanw * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 1.3.4.2 nathanw * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 1.3.4.2 nathanw * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 1.3.4.2 nathanw * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 1.3.4.2 nathanw * SUCH DAMAGE.
27 1.3.4.2 nathanw *
28 1.3.4.2 nathanw */
29 1.3.4.2 nathanw #ifdef hpcmips
30 1.3.4.2 nathanw /*
31 1.3.4.2 nathanw * NEC MCR/430, MCR/530 parameters
32 1.3.4.2 nathanw */
33 1.3.4.2 nathanw struct hpcbattery_spec hpcbattery_mcr530_spec =
34 1.3.4.2 nathanw {
35 1.3.4.2 nathanw 0, /* guess_charge */
36 1.3.4.2 nathanw 0, /* guess_ac_dc */
37 1.3.4.2 nathanw 0, /* main_port */
38 1.3.4.2 nathanw 10, /* drift */
39 1.3.4.2 nathanw 20, /* ac_bias */
40 1.3.4.2 nathanw 840, /* dc_100p (100) */
41 1.3.4.2 nathanw 810, /* dc_80p (80) */
42 1.3.4.2 nathanw 780, /* dc_50p (50) */
43 1.3.4.2 nathanw 720, /* dc_20p (20) */
44 1.3.4.2 nathanw 630, /* dc_critical (0) */
45 1.3.4.2 nathanw 875, /* ac_charge_100p */
46 1.3.4.2 nathanw 860, /* ac_100p */
47 1.3.4.2 nathanw 830, /* ac_80p */
48 1.3.4.2 nathanw 800, /* ac_50p */
49 1.3.4.2 nathanw 740, /* ac_20p */
50 1.3.4.2 nathanw 640, /* ac_critical */
51 1.3.4.2 nathanw 1, /* main_flag */
52 1.3.4.2 nathanw
53 1.3.4.2 nathanw 1, /* backup_port */
54 1.3.4.2 nathanw 900, /* b_full */
55 1.3.4.2 nathanw 720, /* b_low */
56 1.3.4.2 nathanw 640, /* b_critical */
57 1.3.4.2 nathanw 1, /* b_flag */
58 1.3.4.2 nathanw
59 1.3.4.2 nathanw -1, /* nocharge_port */
60 1.3.4.2 nathanw -1, /* n_low */
61 1.3.4.2 nathanw 0, /* n_flag */
62 1.3.4.2 nathanw
63 1.3.4.2 nathanw -1, /* dc_ac_port */
64 1.3.4.2 nathanw -1, /* da_low */
65 1.3.4.2 nathanw 0, /* da_flag */
66 1.3.4.2 nathanw
67 1.3.4.2 nathanw -1, /* c_ac_port */
68 1.3.4.2 nathanw -1, /* c_low */
69 1.3.4.2 nathanw 0 /* c_flag */
70 1.3.4.2 nathanw };
71 1.3.4.2 nathanw
72 1.3.4.2 nathanw /*
73 1.3.4.2 nathanw * DoCoMo sigmarion parameter
74 1.3.4.2 nathanw */
75 1.3.4.2 nathanw struct hpcbattery_spec hpcbattery_sigmarion_spec =
76 1.3.4.2 nathanw {
77 1.3.4.2 nathanw 0, /* guess_charge */
78 1.3.4.2 nathanw 0, /* guess_ac_dc */
79 1.3.4.2 nathanw 0, /* main_port */
80 1.3.4.2 nathanw 10, /* drift */
81 1.3.4.2 nathanw 20, /* ac_bias */
82 1.3.4.2 nathanw 840, /* dc_100p */
83 1.3.4.2 nathanw 810, /* dc_80p */
84 1.3.4.2 nathanw 780, /* dc_50p */
85 1.3.4.2 nathanw 720, /* dc_20p */
86 1.3.4.2 nathanw 630, /* dc_critical */
87 1.3.4.2 nathanw 875, /* ac_charge_100p */
88 1.3.4.2 nathanw 860, /* ac_100p */
89 1.3.4.2 nathanw 830, /* ac_80p */
90 1.3.4.2 nathanw 800, /* ac_50p */
91 1.3.4.2 nathanw 740, /* ac_20p */
92 1.3.4.2 nathanw 640, /* ac_critical */
93 1.3.4.2 nathanw 1, /* main_flag */
94 1.3.4.2 nathanw
95 1.3.4.2 nathanw 1, /* backup_port */
96 1.3.4.2 nathanw 900, /* b_full */
97 1.3.4.2 nathanw 880, /* b_low */
98 1.3.4.2 nathanw 860, /* b_critical */
99 1.3.4.2 nathanw 1, /* b_flag */
100 1.3.4.2 nathanw
101 1.3.4.2 nathanw -1, /* nocharge_port */
102 1.3.4.2 nathanw -1, /* n_low */
103 1.3.4.2 nathanw 0, /* n_flag */
104 1.3.4.2 nathanw
105 1.3.4.2 nathanw -1, /* dc_ac_port */
106 1.3.4.2 nathanw -1, /* da_low */
107 1.3.4.2 nathanw 0, /* da_flag */
108 1.3.4.2 nathanw
109 1.3.4.2 nathanw -1, /* c_ac_port */
110 1.3.4.2 nathanw -1, /* c_low */
111 1.3.4.2 nathanw 0 /* c_flag */
112 1.3.4.2 nathanw };
113 1.3.4.2 nathanw
114 1.3.4.2 nathanw /*
115 1.3.4.2 nathanw * IBM WorkPad z50
116 1.3.4.2 nathanw */
117 1.3.4.2 nathanw struct hpcbattery_spec hpcbattery_z50_spec =
118 1.3.4.2 nathanw {
119 1.3.4.2 nathanw 0, /* guess_charge */
120 1.3.4.2 nathanw 0, /* guess_ac_dc */
121 1.3.4.2 nathanw 0, /* main_port */
122 1.3.4.2 nathanw 10, /* drift */
123 1.3.4.2 nathanw 20, /* ac_bias */
124 1.3.4.2 nathanw 945, /* dc_100p */
125 1.3.4.2 nathanw 915, /* dc_80p */
126 1.3.4.2 nathanw 880, /* dc_50p */
127 1.3.4.2 nathanw 855, /* dc_20p */
128 1.3.4.2 nathanw 820, /* dc_critical */
129 1.3.4.2 nathanw -1, /* ac_charge_100p */
130 1.3.4.2 nathanw -1, /* ac_100p */
131 1.3.4.2 nathanw -1, /* ac_80p */
132 1.3.4.2 nathanw -1, /* ac_50p */
133 1.3.4.2 nathanw 969, /* ac_20p */
134 1.3.4.2 nathanw -1, /* ac_critical */
135 1.3.4.2 nathanw 1, /* main_flag */
136 1.3.4.2 nathanw
137 1.3.4.2 nathanw 1, /* backup_port */
138 1.3.4.2 nathanw 970, /* b_full */
139 1.3.4.2 nathanw 900, /* b_low */
140 1.3.4.2 nathanw 800, /* b_critical */
141 1.3.4.2 nathanw 1, /* b_flag */
142 1.3.4.2 nathanw
143 1.3.4.2 nathanw 2, /* nocharge_port */
144 1.3.4.2 nathanw 800, /* n_low */
145 1.3.4.2 nathanw 1, /* n_flag */
146 1.3.4.2 nathanw
147 1.3.4.2 nathanw -1, /* dc_ac_port */
148 1.3.4.2 nathanw -1, /* da_low */
149 1.3.4.2 nathanw 0, /* da_flag */
150 1.3.4.2 nathanw
151 1.3.4.2 nathanw -1, /* c_ac_port */
152 1.3.4.2 nathanw -1, /* c_low */
153 1.3.4.2 nathanw 0 /* c_flag */
154 1.3.4.2 nathanw };
155 1.3.4.2 nathanw
156 1.3.4.2 nathanw /*
157 1.3.4.2 nathanw * NEC MC-R700/730 parameters
158 1.3.4.2 nathanw */
159 1.3.4.2 nathanw struct hpcbattery_spec hpcbattery_mcr700_spec =
160 1.3.4.2 nathanw {
161 1.3.4.2 nathanw 0, /* guess_charge */
162 1.3.4.2 nathanw 0, /* guess_ac_dc */
163 1.3.4.2 nathanw 0, /* main_port */
164 1.3.4.2 nathanw 10, /* drift */
165 1.3.4.2 nathanw 20, /* ac_bias */
166 1.3.4.2 nathanw 840, /* dc_100p (100) */
167 1.3.4.2 nathanw 820, /* dc_80p (80) */
168 1.3.4.2 nathanw 790, /* dc_50p (50) */
169 1.3.4.2 nathanw 770, /* dc_20p (20) */
170 1.3.4.2 nathanw 760, /* dc_critical (0) */
171 1.3.4.2 nathanw 860, /* ac_charge_100p */
172 1.3.4.2 nathanw 850, /* ac_100p */
173 1.3.4.2 nathanw 840, /* ac_80p */
174 1.3.4.2 nathanw 830, /* ac_50p */
175 1.3.4.2 nathanw 810, /* ac_20p */
176 1.3.4.2 nathanw 800, /* ac_critical */
177 1.3.4.2 nathanw 1, /* main_flag */
178 1.3.4.2 nathanw
179 1.3.4.2 nathanw 1, /* backup_port */
180 1.3.4.2 nathanw 900, /* b_full */
181 1.3.4.2 nathanw 720, /* b_low */
182 1.3.4.2 nathanw 640, /* b_critical */
183 1.3.4.2 nathanw 1, /* b_flag */
184 1.3.4.2 nathanw
185 1.3.4.2 nathanw -1, /* nocharge_port */
186 1.3.4.2 nathanw -1, /* n_low */
187 1.3.4.2 nathanw 0, /* n_flag */
188 1.3.4.2 nathanw
189 1.3.4.2 nathanw -1, /* dc_ac_port */
190 1.3.4.2 nathanw -1, /* da_low */
191 1.3.4.2 nathanw 0, /* da_flag */
192 1.3.4.2 nathanw
193 1.3.4.2 nathanw -1, /* c_ac_port */
194 1.3.4.2 nathanw -1, /* c_low */
195 1.3.4.2 nathanw 0 /* c_flag */
196 1.3.4.2 nathanw };
197 1.3.4.2 nathanw
198 1.3.4.2 nathanw #endif /* hpcmips */
199 1.3.4.2 nathanw
200 1.3.4.2 nathanw /* parameter table */
201 1.3.4.2 nathanw
202 1.3.4.2 nathanw struct platid_data hpcbattery_parameters[] = {
203 1.3.4.2 nathanw #ifdef hpcmips
204 1.3.4.2 nathanw { &platid_mask_MACH_NEC_MCR_510, &hpcbattery_mcr530_spec }, /* XXX */
205 1.3.4.2 nathanw { &platid_mask_MACH_NEC_MCR_520, &hpcbattery_mcr530_spec }, /* XXX */
206 1.3.4.2 nathanw { &platid_mask_MACH_NEC_MCR_520A, &hpcbattery_mcr530_spec }, /* XXX */
207 1.3.4.2 nathanw { &platid_mask_MACH_NEC_MCR_530, &hpcbattery_mcr530_spec },
208 1.3.4.2 nathanw { &platid_mask_MACH_NEC_MCR_530A, &hpcbattery_mcr530_spec },
209 1.3.4.2 nathanw { &platid_mask_MACH_NEC_MCR_SIGMARION, &hpcbattery_sigmarion_spec },
210 1.3.4.2 nathanw { &platid_mask_MACH_IBM_WORKPAD_Z50, &hpcbattery_z50_spec },
211 1.3.4.2 nathanw { &platid_mask_MACH_NEC_MCR_700, &hpcbattery_mcr700_spec },
212 1.3.4.2 nathanw { &platid_mask_MACH_NEC_MCR_700A, &hpcbattery_mcr700_spec }, /* XXX */
213 1.3.4.2 nathanw { &platid_mask_MACH_NEC_MCR_730, &hpcbattery_mcr700_spec }, /* XXX */
214 1.3.4.2 nathanw #endif /* hpcmips */
215 1.3.4.2 nathanw { NULL, NULL } /* terminator, don't delete */
216 1.3.4.2 nathanw };
217 1.3.4.2 nathanw /* end */
218