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