2 * This file is part of the superiotool project.
4 * Copyright (C) 2007 Uwe Hermann <uwe@hermann-uwe.de>
5 * Copyright (C) 2008 coresystems GmbH <info@coresystems.de>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 #include "superiotool.h"
24 #define DEVICE_ID_REG_OLD 0x0d
25 #define DEVICE_REV_REG_OLD 0x0e
27 #define DEVICE_ID_REG 0x20
28 #define DEVICE_REV_REG 0x21
30 static const struct superio_registers reg_table[] = {
31 /* The following Super I/Os use the 0x20/0x21 ID registers. */
34 {0x02,0x03,0x20,0x21,0x22,0x23,0x24,0x2d,0x2e,
36 {0x00,0x03,0x02,0x01,0x00,0x00,0x04,NANA,NANA,
39 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,
41 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,
44 {0x30,0x60,0x61,0x62,0x63,0x70,EOT},
45 {0x00,0x01,0xf0,0x03,0xf6,0x0e,EOT}},
47 {0x30,0x60,0x61,0x62,0x63,0x70,0xf0,EOT},
48 {0x00,0x00,0x00,0x00,0x00,0x00,0x00,EOT}},
49 {0x3, "Parallel port",
50 {0x30,0x60,0x61,0x70,0x74,0xf0,EOT},
51 {0x00,0x00,0x00,0x00,0x04,0x3c,EOT}},
53 {0x30,0x60,0x61,0x70,0xf0,EOT},
54 {0x00,0x00,0x00,0x00,0x00,EOT}},
56 {0x30,0x60,0x61,0x70,0xf0,0xf1,EOT},
57 {0x00,0x00,0x00,0x00,0x00,0x00,EOT}},
58 {0x6, "Real-time clock (RTC)",
59 {0x30,0x70,0xf0,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,EOT},
60 {0x00,0x00,0x00,0x00,0x00,NANA,MISC,NANA,NANA,EOT}},
63 {0x00,0x00,0x00,EOT}},
65 {0x30,0x60,0x61,0x62,0x63,0xe0,0xe1,0xe2,0xe3,0xe4,
66 0xe5,0xe6,0xe7,0xe8,0xe9,0xea,0xeb,0xec,0xed,0xf0,
67 0xf1,0xf2,0xf3,0xf4,EOT},
68 {0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x01,0x01,0x01,
69 0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x00,
70 0x00,0x00,0x00,MISC,EOT}},
72 {0x03, "FDC37C93xFR", {
73 /* FIXME: There's another 0x03 but found on port 0x0d/0x0e! */
77 {0x02,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,
78 0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT},
79 {0x00,0x0a,0x00,0x00,0x00,0x04,0x04,NANA,NANA,0x00,
80 0x00,0x00,0x00,0x00,0x00,0x00,0x00,EOT}},
82 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf3,0xf4,
84 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,RSVD,0x00,
86 {0x1, "Power management (PM1)",
88 {0x00,0x00,0x00,EOT}},
89 {0x3, "Parallel port",
90 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
91 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
93 {0x30,0x60,0x61,0x70,0xf0,EOT},
94 {0x00,0x00,0x00,0x00,0x00,EOT}},
96 {0x30,0x60,0x61,0x62,0x63,0x70,0x74,0xf0,0xf1,
98 {0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x02,
100 {0x6, "Real-time clock (RTC)",
101 {0x30,0x60,0x61,0x62,0x63,0x70,0xf0,0xf1,EOT},
102 {0x00,0x00,0x70,0x00,0x74,0x00,0x00,NANA,EOT}},
104 {0x30,0x60,0x61,0x70,0x72,0xf0,EOT},
105 {0x00,0x00,0x00,0x00,0x00,0x00,EOT}},
106 {0x8, "Embedded controller (EC)",
107 {0x30,0x60,0x61,EOT},
108 {0x00,0x00,0x62,EOT}},
110 {0x30,0x60,0x61,EOT},
111 {0x00,0x00,0x00,EOT}},
113 {0x0b, "FDC37N972", {
115 {0x02,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,
116 0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT},
117 {0x00,0x0b,0x00,0x00,0x00,0x04,0x04,NANA,NANA,0x00,
118 0x00,0x00,0x00,0x00,0x00,0x00,0x00,EOT}},
120 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf3,0xf4,
122 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,RSVD,0x00,
124 {0x1, "Power management (PM1)",
125 {0x30,0x60,0x61,EOT},
126 {0x00,0x00,0x00,EOT}},
127 {0x3, "Parallel port",
128 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
129 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
131 {0x30,0x60,0x61,0x70,0xf0,EOT},
132 {0x00,0x00,0x00,0x00,0x00,EOT}},
134 {0x30,0x60,0x61,0x62,0x63,0x70,0x74,0xf0,0xf1,
136 {0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x02,
137 0x03,0x00,0x00,EOT}},
138 {0x6, "Real-time clock (RTC)",
139 {0x30,0x60,0x61,0x62,0x63,0x70,0xf0,0xf1,EOT},
140 {0x00,0x00,0x70,0x00,0x74,0x00,0x00,NANA,EOT}},
142 {0x30,0x60,0x61,0x70,0x72,0xf0,EOT},
143 {0x00,0x00,0x00,0x00,0x00,0x00,EOT}},
144 {0x8, "Embedded controller (EC)",
145 {0x30,0x60,0x61,EOT},
146 {0x00,0x00,0x62,EOT}},
148 {0x30,0x60,0x61,EOT},
149 {0x00,0x00,0x00,EOT}},
151 {0x0e, "LPC47N252", { /* From sensors-detect */
153 {0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,
154 0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT},
155 {0x0e,NANA,0x00,0x00,0x04,0x04,NANA,NANA,0x00,
156 0x00,0x00,0x00,0x00,0x00,0x00,0x00,EOT}},
158 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf3,0xf4,
160 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,RSVD,0x00,
162 {0x1, "Power management (PM1)",
163 {0x30,0x60,0x61,EOT},
164 {0x00,0x00,0x00,EOT}},
165 {0x3, "Parallel port",
166 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
167 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
169 {0x30,0x60,0x61,0x70,0xf0,EOT},
170 {0x00,0x00,0x00,0x00,0x00,EOT}},
172 {0x30,0x60,0x61,0x62,0x63,0x70,0x74,0xf0,0xf1,
174 {0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x02,
175 0x03,0x00,0x00,EOT}},
176 {0x6, "Real-time clock (RTC)",
177 {0x30,0x60,0x61,0x62,0x63,0x70,0xf0,0xf1,EOT},
178 {0x00,0x00,0x70,0x00,0x74,0x00,0x00,NANA,EOT}},
180 {0x30,0x60,0x61,0x70,0x72,0xf0,EOT},
181 {0x00,0x00,0x00,0x00,0x00,0x00,EOT}},
182 {0x8, "Embedded controller (EC)",
183 {0x30,0x60,0x61,EOT},
184 {0x00,0x00,0x62,EOT}},
185 {0x9, "Mailbox Interface",
186 {0x30,0x60,0x61,EOT},
187 {0x00,0x00,0x00,EOT}},
188 {0xa, "LPC/8051 addressable GPIO (LGPIO)",
189 {0x30,0x60,0x61,EOT},
190 {0x00,0x00,0x00,EOT}},
192 {0x14, "LPC47M172", {
194 {0x30, "FDC37C93xAPM", {
196 {0x40, "FDC37C67x", { /* E.g. FDC37C672. Chiprev: 0x01 */
198 {0x03,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x2b,0x2c,
200 {0x03,0x40,NANA,0x00,0x00,0x04,MISC,MISC,NANA,NANA,
201 NANA,NANA,NANA,EOT}},
203 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,0xf5,
205 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,0x00,
207 {0x3, "Parallel port",
208 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
209 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
211 {0x30,0x60,0x61,0x70,0xf0,EOT},
212 {0x00,0x00,0x00,0x00,0x00,EOT}},
214 {0x30,0x60,0x61,0x62,0x63,0x70,0x74,0xf0,0xf1,0xf2,
216 {0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x02,0x03,
219 {0x30,0x70,0x72,0xf0,EOT},
220 {0x00,0x00,0x00,0x00,EOT}},
222 {0x30,0xb4,0xb5,0xb6,0xb7,0xc0,0xc1,0xc2,0xc3,0xc4,
223 0xf1,0xf2,0xf3,0xf4,0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,
225 {0x00,NANA,NANA,NANA,NANA,0x06,0x03,NANA,NANA,NANA,
226 0x00,0x00,0x00,MISC,RSVD,RSVD,RSVD,RSVD,RSVD,RSVD,
229 {0x42, "FDC37B80x/FDC37M707", {
231 {0x09, "FDC37N958FR", { /* Found in e.g. Dell Latitude CPi A366XT. */
233 {0x03,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x28,0x2b,
234 0x2c,0x2d,0x2e,0x2f,EOT},
235 {0x03,0x44,0x00,0x00,0x00,0x04,MISC,MISC,0x00,NANA,
236 NANA,NANA,NANA,NANA,EOT}},
238 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,0xf5,
240 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,0x00,
242 {0x3, "Parallel port",
243 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
244 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
246 {0x30,0x60,0x61,0x70,0xf0,EOT},
247 {0x00,0x00,0x00,0x00,0x00,EOT}},
249 {0x30,0x60,0x61,0x62,0x63,0x70,0x74,0xf0,0xf1,0xf2,
251 {NANA,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x02,0x03,
253 {0x6, "Real-time clock (RTC)",
254 {0x30,0x62,0x63,0x70,0xf0,EOT},
255 {0x00,0x00,0x70,0x00,0x00,EOT}},
257 {0x30,0x70,0x72,0xf0,EOT},
258 {0x00,0x00,0x00,0x00,EOT}},
260 {0x30,0xb0,0xb1,0xb2,0xb3,0xb8,0xc0,0xc1,0xc2,0xc3,
261 0xc4,0xc5,0xc6,0xc8,0xca,0xcb,0xcc,0xd0,0xd1,0xd2,
262 0xd3,0xd4,0xd5,0xd6,0xd7,0xe0,0xe1,0xe2,0xe3,0xe4,
263 0xe5,0xe6,0xe7,0xef,0xf0,0xf1,0xf2,0xf3,0xf4,0xf6,
265 {0x00,NANA,NANA,NANA,NANA,NANA,NANA,0x01,NANA,NANA,
266 NANA,0x00,NANA,NANA,NANA,NANA,NANA,NANA,NANA,NANA,
267 NANA,NANA,NANA,NANA,NANA,NANA,NANA,NANA,NANA,NANA,
268 NANA,NANA,NANA,NANA,NANA,0x00,0x00,0x00,0x00,NANA,
271 {0x30,0x60,0x61,0x70,0xf0,EOT},
272 {0x00,0x00,0x00,NANA,NANA,EOT}},
274 {0x43, "FDC37B77x", {
276 {0x44, "FDC37B78x", {
278 {0x03,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x28,0x2b,
279 0x2c,0x2d,0x2e,0x2f,EOT},
280 {0x03,0x44,0x00,0x00,0x00,0x04,MISC,MISC,0x00,NANA,
281 NANA,NANA,NANA,NANA,EOT}},
283 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,0xf5,
285 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,0x00,
287 {0x3, "Parallel port",
288 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
289 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
291 {0x30,0x60,0x61,0x70,0xf0,EOT},
292 {0x00,0x00,0x00,0x00,0x00,EOT}},
294 {0x30,0x60,0x61,0x62,0x63,0x70,0x74,0xf0,0xf1,0xf2,
296 {NANA,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x02,0x03,
298 {0x6, "Real-time clock (RTC)",
299 {0x30,0x62,0x63,0x70,0xf0,EOT},
300 {0x00,0x00,0x70,0x00,0x00,EOT}},
302 {0x30,0x70,0x72,0xf0,EOT},
303 {0x00,0x00,0x00,0x00,EOT}},
305 {0x30,0xb0,0xb1,0xb2,0xb3,0xb8,0xc0,0xc1,0xc2,0xc3,
306 0xc4,0xc5,0xc6,0xc8,0xca,0xcb,0xcc,0xd0,0xd1,0xd2,
307 0xd3,0xd4,0xd5,0xd6,0xd7,0xe0,0xe1,0xe2,0xe3,0xe4,
308 0xe5,0xe6,0xe7,0xef,0xf0,0xf1,0xf2,0xf3,0xf4,0xf6,
310 {0x00,NANA,NANA,NANA,NANA,NANA,NANA,0x01,NANA,NANA,
311 NANA,0x00,NANA,NANA,NANA,NANA,NANA,NANA,NANA,NANA,
312 NANA,NANA,NANA,NANA,NANA,NANA,NANA,NANA,NANA,NANA,
313 NANA,NANA,NANA,NANA,NANA,0x00,0x00,0x00,0x00,NANA,
316 {0x30,0x60,0x61,0x70,0xf0,EOT},
317 {0x00,0x00,0x00,NANA,NANA,EOT}},
319 {0x46, "FDC37M602", { /* Found in Biostar M6TLD. */
321 {0x47, "FDC37M60x", { /* TODO: Not yet in sensors-detect */
323 {0x4c, "FDC37B72x", {
325 {0x03,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x28,0x2b,
326 0x2c,0x2d,0x2e,0x2f,EOT},
327 {0x03,0x4c,0x00,0x00,0x00,0x04,MISC,MISC,0x00,NANA,
328 NANA,NANA,NANA,NANA,EOT}},
330 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,0xf5,
332 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,0x00,
334 {0x3, "Parallel port",
335 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
336 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
338 {0x30,0x60,0x61,0x70,0xf0,EOT},
339 {0x00,0x00,0x00,0x00,0x00,EOT}},
341 {0x30,0x60,0x61,0x70,0xf0,0xf1,0xf2,EOT},
342 {NANA,0x00,0x00,0x00,0x00,0x02,0x03,EOT}},
344 {0x30,0x70,0x72,0xf0,EOT},
345 {0x00,0x00,0x00,0x00,EOT}},
347 {0x30,0xb0,0xb1,0xb2,0xb3,0xb8,0xc0,0xc1,0xc2,0xc3,
348 0xc4,0xc5,0xc6,0xc8,0xca,0xcb,0xcc,0xd0,0xd1,0xd2,
349 0xd3,0xd4,0xd5,0xd6,0xd7,0xe0,0xe1,0xe2,0xe3,0xe4,
350 0xe5,0xe6,0xe7,0xef,0xf0,0xf1,0xf2,0xf3,0xf4,0xf6,
352 {0x00,NANA,NANA,NANA,NANA,NANA,0x00,0x01,NANA,NANA,
353 NANA,0x00,NANA,NANA,NANA,NANA,NANA,NANA,NANA,NANA,
354 NANA,NANA,NANA,NANA,NANA,NANA,NANA,NANA,NANA,NANA,
355 NANA,NANA,NANA,NANA,NANA,0x00,0x00,0x00,MISC,NANA,
358 {0x30,0x60,0x61,0x70,0xf0,EOT},
359 {0x00,0x00,0x00,NANA,NANA,EOT}},
361 {0x4d, "FDC37M81x", {
363 {0x03,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x2b,0x2c,
365 {0x03,0x4d,NANA,0x00,0x00,0x04,MISC,MISC,NANA,NANA,
366 NANA,NANA,NANA,EOT}},
368 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,
370 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,
372 {0x3, "Parallel port",
373 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
374 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
376 {0x30,0x60,0x61,0x70,0xf0,EOT},
377 {0x00,0x00,0x00,0x00,0x00,EOT}},
379 {0x30,0x60,0x61,0x62,0x63,0x70,0xf0,0xf1,0xf2,EOT},
380 {0x00,0x00,0x00,RSVD,RSVD,0x00,0x00,0x02,0x03,EOT}},
382 {0x30,0x70,0x72,0xf0,EOT},
383 {0x00,0x00,0x00,0x00,EOT}},
385 /* Only 0xf6 existing (and reserved) or 0xf6..0xfb? */
386 {0x30,0xb4,0xb5,0xb6,0xb7,0xc0,0xc1,0xc2,0xc3,0xc4,
387 0xc5,0xc6,0xc7,0xc8,0xf1,0xf2,0xf3,0xf4,0xf6,0xf7,
388 0xf8,0xf9,0xfa,0xfb,EOT},
389 {0x00,NANA,NANA,NANA,NANA,0x02,0x01,NANA,NANA,NANA,
390 NANA,NANA,NANA,NANA,0x00,0x00,0x00,0x00,RSVD,RSVD,
391 RSVD,RSVD,RSVD,RSVD,EOT}},
393 {0x51, "LPC47B27x", {
395 {0x03,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x28,
396 0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT},
397 {RSVD,0x51,NANA,0x00,0x00,0x04,MISC,MISC,RSVD,
398 NANA,NANA,NANA,NANA,NANA,NANA,EOT}},
400 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,0xf5,
402 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,0x00,
404 {0x3, "Parallel port",
405 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
406 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
408 {0x30,0x60,0x61,0x70,0xf0,EOT},
409 {0x00,0x00,0x00,0x00,0x00,EOT}},
411 {0x30,0x60,0x61,0x62,0x63,0x70,0x74,0xf0,0xf1,0xf2,
413 {NANA,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x02,0x03,
416 {0x30,0x70,0x72,0xf0,EOT},
417 {0x00,0x00,0x00,0x00,EOT}},
419 {0x30,0x60,0x61,EOT},
420 {0x00,0x00,0x00,EOT}},
421 {0xa, "Power-management events (PME)",
422 {0x30,0x60,0x61,0xf0,0xf1,EOT},
423 {0x00,0x00,0x00,NANA,NANA,EOT}},
424 {0xb, "MIDI port (MPU-401)",
425 {0x30,0x60,0x61,0x70,EOT},
426 {0x00,0x03,0x30,0x05,EOT}},
428 {0x52, "LPC47B37x", {
430 {0x54, "LPC47U33x", {
432 {0x03,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x2a,0x2b,
433 0x2c,0x2d,0x2e,0x2f,EOT},
434 {RSVD,0x54,NANA,0x00,0x00,0x04,MISC,MISC,NANA,NANA,
435 NANA,NANA,NANA,NANA,EOT}},
437 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,0xf5,
439 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,0x00,
441 {0x3, "Parallel port",
442 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
443 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
445 {0x30,0x60,0x61,0x70,0xf0,EOT},
446 {0x00,0x00,0x00,0x00,0x00,EOT}},
447 {0x5, "MIDI port (MPU-401)",
448 {0x30,0x60,0x61,0x70,EOT},
449 {0x00,0x03,0x30,0x05,EOT}},
451 {0x30,0x70,0x72,0xf0,EOT},
452 {0x00,0x00,0x00,0x00,EOT}},
454 {0x30,0x60,0x61,EOT},
455 {0x00,0x00,0x00,EOT}},
456 {0xa, "Runtime registers",
457 {0x30,0x60,0x61,0xf0,0xf1,EOT},
458 {0x00,0x00,0x00,NANA,NANA,EOT}},
460 {0x30,0x60,0x61,0x70,EOT},
461 {0x00,0x00,0x00,0x00,EOT}},
463 {0x56, "LPC47B34x", {
465 {0x57, "LPC47S42x", {
467 {0x59, "LPC47M10x/112/13x", {
469 {0x03,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x28,0x2a,
470 0x2b,0x2c,0x2d,0x2e,0x2f,EOT},
471 {RSVD,0x59,NANA,0x00,0x00,0x44,MISC,MISC,RSVD,NANA,
472 NANA,NANA,NANA,NANA,NANA,EOT}},
474 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,
476 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,
478 {0x3, "Parallel port",
479 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
480 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
482 {0x30,0x60,0x61,0x70,0xf0,EOT},
483 {0x00,0x00,0x00,0x00,0x00,EOT}},
485 {0x30,0x60,0x61,0x62,0x63,0x70,0x74,0xf0,0xf1,
487 {NANA,0x00,0x00,RSVD,RSVD,0x00,RSVD,0x00,0x02,
490 {0x30,0x70,0x72,0xf0,EOT},
491 {0x00,0x00,0x00,0x00,EOT}},
493 {0x30,0x60,0x61,EOT},
494 {0x00,0x00,0x00,EOT}},
495 {0xa, "Power management events (PME)",
496 {0x30,0x60,0x61,0xf0,0xf1,EOT},
497 {0x00,0x00,0x00,NANA,RSVD,EOT}},
499 {0x30,0x60,0x61,0x70,EOT},
500 {0x00,0x03,0x30,0x05,EOT}},
502 {0x5d, "LPC47B357", { /* From sensors-detect (no datasheet) */
504 {0x5f, "LPC47M14x", {
506 {0x60, "LPC47M15x/192/997", {
508 {0x03,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x28,0x2a,
509 0x2b,0x2c,0x2d,0x2e,0x2f,EOT},
510 {RSVD,0x60,NANA,0x00,0x00,0x44,MISC,MISC,RSVD,NANA,
511 NANA,NANA,NANA,NANA,NANA,EOT}},
513 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,0xf5,
515 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,0x00,
517 {0x3, "Parallel port",
518 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
519 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
521 {0x30,0x60,0x61,0x70,0xf0,EOT},
522 {0x00,0x00,0x00,0x00,0x00,EOT}},
524 {0x30,0x60,0x61,0x70,0xf0,0xf1,0xf2,EOT},
525 {NANA,0x00,0x00,0x00,0x00,0x02,0x03,EOT}},
527 {0x30,0x70,0x72,0xf0,EOT},
528 {0x00,0x00,0x00,0x00,EOT}},
530 {0x30,0x60,0x61,EOT},
531 {0x00,0x00,0x00,EOT}},
532 {0xa, "Power management events (PME)",
533 {0x30,0x60,0x61,0xf0,EOT},
534 {0x00,0x00,0x00,NANA,EOT}},
536 {0x30,0x60,0x61,0x70,EOT},
537 {0x00,0x03,0x30,0x05,EOT}},
539 {0x62, "LPC47S45x", {
541 {0x67, "EMC2700LPC", { /* From sensors-detect */
543 {0x6b, "LPC47M292", { /* From sensors-detect */
545 {0x6e, "LPC47B387", { /* TODO: Not yet in sensors-detect */
546 /* Found in the HP Compaq Business Desktop d530 Series */
547 /* http://article.gmane.org/gmane.linux.bios/27192 */
548 /* We cannot find a public datasheet for this Super I/O. */
550 {0x6f, "LPC47B397", {
552 {0x74, "LPC47M182", { /* Only for LD_NUM = 0 */
554 {0x02,0x03,0x20,0x21,0x22,0x23,0x24,0x26,0x27,
555 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT},
556 {0x00,RSVD,0x74,RSVD,0x00,RSVD,0x44,MISC,0x00,
557 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,EOT}},
559 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,
561 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,
563 {0x1, "Parallel port",
564 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf8,EOT},
565 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,0x08,EOT}},
567 {0x30,0x60,0x61,0x70,0xf0,0xf1,0xf2,EOT},
568 {0x00,0x00,0x00,0x00,0x00,0x02,0x03,EOT}},
570 {0x30,0x60,0x61,0x70,0xf0,EOT},
571 {0x00,0x00,0x00,0x00,0x00,EOT}},
572 {0x4, "Power control",
573 {0x30,0x60,0x61,0x70,0xf0,0xf1,EOT},
574 {0x00,0x00,0x00,0x00,NANA,0x00,EOT}},
579 {0x30,0x70,0xf0,EOT},
580 {0x00,0x00,0x00,EOT}},
582 {0x30,0x60,0x61,0x70,0x72,0xf0,EOT},
583 {0x00,0x00,0x00,0x00,0x00,0x00,EOT}},
584 {0xa, "Runtime registers",
585 {0x30,0x60,0x61,0x62,0x63,0xf0,0xf1,0xf2,EOT},
586 {0x00,0x00,0x00,0x00,0x00,NANA,RSVD,0x04,EOT}},
588 {0x76, "LPC47M584", { /* From sensors-detect (no datasheet) */
590 {0x77, "A8000", { /* ASUS A8000, a rebranded DME1737(?) */
592 {0x03,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x28,0x2a,
593 0x2b,0x2c,0x2d,0x2e,0x2f,EOT},
594 {RSVD,0x77,NANA,0x00,RSVD,0x44,MISC,MISC,RSVD,NANA,
595 NANA,NANA,NANA,NANA,NANA,EOT}},
597 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,
599 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,
601 {0x3, "Parallel port",
602 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
603 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
605 {0x30,0x60,0x61,0x70,0xf0,EOT},
606 {0x00,0x00,0x00,0x00,0x00,EOT}},
608 {0x30,0x60,0x61,0x70,0xf0,0xf1,0xf2,EOT},
609 {0x00,0x00,0x00,0x00,0x00,0x02,0x03,EOT}},
611 {0x30,0x70,0x72,0xf0,EOT},
612 {0x00,0x00,0x00,0x00,EOT}},
613 {0xa, "Runtime registers",
614 {0x30,0x60,0x61,0x62,0x63,0xf0,0xf1,0xf2,EOT},
615 {0x00,0x00,0x00,0x00,0x00,NANA,RSVD,0x04,EOT}},
619 {0x03,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x28,0x2a,
620 0x2b,0x2c,0x2d,0x2e,0x2f,EOT},
621 {RSVD,0x77,NANA,0x00,RSVD,0x44,MISC,MISC,RSVD,NANA,
622 NANA,NANA,NANA,NANA,NANA,EOT}},
624 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,
626 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,
628 {0x3, "Parallel port",
629 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
630 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
632 {0x30,0x60,0x61,0x70,0xf0,EOT},
633 {0x00,0x00,0x00,0x00,0x00,EOT}},
635 {0x30,0x60,0x61,0x70,0xf0,0xf1,0xf2,EOT},
636 {0x00,0x00,0x00,0x00,0x00,0x02,0x03,EOT}},
638 {0x30,0x70,0x72,0xf0,EOT},
639 {0x00,0x00,0x00,0x00,EOT}},
640 {0xa, "Runtime registers",
641 {0x30,0x60,0x61,0x62,0x63,0xf0,0xf1,0xf2,EOT},
642 {0x00,0x00,0x00,0x00,0x00,NANA,RSVD,0x04,EOT}},
644 {0x79, "SCH5504", { /* From sensors-detect (no datasheet) */
646 {0x7a, "LPC47N217", { /* Found in Toshiba Satellite A80-117. */
656 {0x83, "SCH5514D", { /* From sensors-detect */
658 {0x85, "SCH5317", { /* From sensors-detect */
659 /* The SCH5317 can have either 0x85 or 0x8c as device ID. */
661 {0x86, "SCH5127", { /* From sensors-detect */
663 {0x89, "SCH5027", { /* From sensors-detect (no public datasheet) */
665 {0x8c, "SCH5317", { /* From sensors-detect */
666 /* The SCH5317 can have either 0x85 or 0x8c as device ID. */
668 {0x90, "SCH4307", { /* From sensors-detect */
671 /* The following Super I/Os use the 0x0d/0x0e ID registers. */
672 {0x03, "FDC37C669", {
673 /* Init: 0x55, 0x55. Exit: 0xaa. Ports: 0x3f0/0x370. */
675 /* FIXME: There's another 0x03 but found on port 0x20/0x21! */
677 {0x04, "FDC37C669FR", { /* TODO: Not yet in sensors-detect. */
678 /* Init: 0x55, 0x55. Exit: 0xaa. Ports: 0x3f0/0x370. */
680 {0x13, "LPC47N237", {
681 /* Init: 0x55. Exit: 0xaa. Ports: 0x2e/0x4e. */
683 {0x28, "FDC37N769", {
684 /* Init: 0x55. Exit: 0xaa. Ports: 0x3f0/0x370. */
686 {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,
687 0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10,0x11,0x12,0x13,
688 0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d,
689 0x1e,0x1f,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,
690 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT},
691 {0x28,0x9c,0x88,0x70,0x00,0x00,0xff,0x00,0x00,0x00,
692 0x00,0x00,0x02,0x28,NANA,0x00,0x00,0x80,RSVD,RSVD,
693 NANA,NANA,NANA,0x03,RSVD,RSVD,RSVD,RSVD,RSVD,RSVD,
694 0x80,0x00,0x3c,RSVD,RSVD,0x00,0x00,0x00,0x00,0x00,
695 0x00,0x00,RSVD,0x00,0x00,0x03,0x00,0x00,EOT}},
697 {0x29, "FDC37N3869/FDC37N869", {
698 /* Init: 0x55. Exit: 0xaa. Ports: 0x3f0/0x370. */
700 {0x5a, "LPC47N227", {
701 /* Init: 0x55. Exit: 0xaa. Ports: 0x2e/0x4e. */
703 {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,
704 0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10,0x11,0x12,0x13,
705 0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d,
706 0x1e,0x1f,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,
707 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,0x30,0x31,
708 0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,EOT},
709 {0x28,0x9c,0x08,0x70,0x00,0x00,0xff,0x00,RSVD,0x00,
710 0x00,0x00,0x02,0x5a,NANA,0x00,0x00,0x80,MISC,0x00,
711 NANA,NANA,NANA,0x03,RSVD,RSVD,RSVD,RSVD,RSVD,RSVD,
712 RSVD,0x00,0x3c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
713 0x00,0x80,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,
714 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,EOT}},
716 {0x5b, "SIO10N268", {
717 /* Init: 0x55. Exit: 0xaa. Ports: 0x2e/0x4e. */
719 {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,
720 0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10,0x11,0x12,0x13,
721 0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d,
722 0x1e,0x1f,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,
723 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,0x30,0x31,
724 0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x3a,0x3b,
725 0x3c,0x3d,0x3e,0x3f,0x40,0x41,0x42,0x43,0x44,0x45,
726 0x46,0x47,0x48,0x49,0x4a,0x4b,0x4c,0x4d,0x4e,0x4f,
727 0x50,0x51,0x52,0x53,0x54,EOT},
728 {0x20,0x98,0x00,0x70,0x00,0x00,0xff,0x00,0x00,0x00,
729 0x00,0x00,0x02,0x5b,NANA,0x00,0x00,0x00,MISC,0x00,
730 NANA,NANA,NANA,0x03,0x00,NANA,NANA,0x00,0x00,0x00,
731 NANA,0x00,0x3c,0x00,0x00,0x00,0x00,0x00,0xff,0x00,
732 0x00,0x80,0x00,0x00,0x0f,0x03,0x00,0x00,0x00,NANA,
733 NANA,NANA,NANA,NANA,NANA,NANA,NANA,NANA,0x00,0x00,
734 0x00,0x00,0x00,0x00,NANA,NANA,NANA,NANA,NANA,0x50,
735 NANA,0x00,NANA,NANA,NANA,NANA,NANA,NANA,0x00,0x01,
736 0x00,0x01,0x00,0x8c,MISC,EOT}},
738 {0x65, "FDC37C665GT/IR", {
739 /* Init: 0x55, 0x55. Exit: 0xaa. Port: 0x3f0. */
740 /* Chiprev: 0x02 = FDC37C665GT, 0x82 = FDC37C665IR */
742 {0x66, "FDC37C666GT", {
743 /* Init: 0x55, 0x55. Exit: 0xaa. Port: 0x3f0. Chiprev: 0x02. */
748 static void enter_conf_mode_smsc(uint16_t port)
750 /* Some of the SMSC Super I/Os have an 0x55,0x55 init, some only
751 * require one 0x55. We do 0x55,0x55 for all of them at the moment,
752 * in the assumption that the extra 0x55 won't hurt the other
753 * Super I/Os. This is verified to be true on (at least) the FDC37N769.
759 static void exit_conf_mode_smsc(uint16_t port)
764 static void probe_idregs_smsc_helper(uint16_t port, uint8_t idreg,
768 uint16_t runtime_base;
769 const char *info = (idreg == 0x20) ? "(idregs=0x20/0x21) "
770 : "(idregs=0x0d/0x0e) ";
772 probing_for("SMSC", info, port);
774 enter_conf_mode_smsc(port);
776 id = regval(port, idreg);
777 rev = regval(port, revreg);
779 if (superio_unknown(reg_table, id)) {
781 printf(NOTFOUND "id=0x%02x, rev=0x%02x\n", id, rev);
782 exit_conf_mode_smsc(port);
786 printf("Found %s %s (id=0x%02x, rev=0x%02x) at 0x%x\n",
787 (id == 0x77 ? "ASUS" : "SMSC"), get_superio_name(reg_table, id),
791 dump_superio((id == 0x77 ? "ASUS" : "SMSC"), reg_table, port, id,
796 case 0x5a: /* LPC47N227 */
797 runtime_base = regval(port, 0x30) << 4;
799 dump_io(runtime_base, 16);
801 printf("Runtime Register Block not mapped on this Super I/O.\n");
804 printf("No extra registers known for this chip.\n");
808 exit_conf_mode_smsc(port);
811 void probe_idregs_smsc(uint16_t port)
813 probe_idregs_smsc_helper(port, DEVICE_ID_REG, DEVICE_REV_REG);
814 probe_idregs_smsc_helper(port, DEVICE_ID_REG_OLD, DEVICE_REV_REG_OLD);
817 void print_smsc_chips(void)
819 print_vendor_chips("SMSC", reg_table);
820 printf("SMSC LPC47N227 runtime register block\n\n");