2 * This file is part of the superiotool project.
4 * Copyright (C) 2007 Uwe Hermann <uwe@hermann-uwe.de>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 #include "superiotool.h"
23 #define DEVICE_ID_REG_OLD 0x0d
24 #define DEVICE_REV_REG_OLD 0x0e
26 #define DEVICE_ID_REG 0x20
27 #define DEVICE_REV_REG 0x21
29 static const struct superio_registers reg_table[] = {
30 /* The following Super I/Os use the 0x20/0x21 ID registers. */
31 {0x03, "FDC37C93xFR", {
32 /* FIXME: There's another 0x03 but found on port 0x0d/0x0e! */
36 {0x02,0x07,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,
37 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT},
38 {0x00,0x00,0x0a,0x00,0x00,0x00,0x04,0x04,NANA,NANA,
39 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,EOT}},
41 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf3,0xf4,
43 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,RSVD,0x00,
45 {0x1, "Power Management (PM1)",
47 {0x00,0x00,0x00,EOT}},
48 {0x3, "Parallel port",
49 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
50 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
52 {0x30,0x60,0x61,0x70,0xf0,EOT},
53 {0x00,0x00,0x00,0x00,0x00,EOT}},
55 {0x30,0x60,0x61,0x62,0x63,0x70,0x74,0xf0,0xf1,
57 {0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x02,
59 {0x6, "Real-time clock (RTC)",
60 {0x30,0x60,0x61,0x62,0x63,0x70,0xf0,0xf1,EOT},
61 {0x00,0x00,0x70,0x00,0x74,0x00,0x00,NANA,EOT}},
63 {0x30,0x60,0x61,0x70,0x72,0xf0,EOT},
64 {0x00,0x00,0x00,0x00,0x00,0x00,EOT}},
65 {0x8, "Embedded Controller (EC)",
67 {0x00,0x00,0x62,EOT}},
70 {0x00,0x00,0x00,EOT}},
74 {0x02,0x07,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,
75 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT},
76 {0x00,0x00,0x0b,0x00,0x00,0x00,0x04,0x04,NANA,NANA,
77 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,EOT}},
79 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf3,0xf4,
81 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,RSVD,0x00,
83 {0x1, "Power Management (PM1)",
85 {0x00,0x00,0x00,EOT}},
86 {0x3, "Parallel port",
87 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
88 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
90 {0x30,0x60,0x61,0x70,0xf0,EOT},
91 {0x00,0x00,0x00,0x00,0x00,EOT}},
93 {0x30,0x60,0x61,0x62,0x63,0x70,0x74,0xf0,0xf1,
95 {0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x02,
97 {0x6, "Real-time clock (RTC)",
98 {0x30,0x60,0x61,0x62,0x63,0x70,0xf0,0xf1,EOT},
99 {0x00,0x00,0x70,0x00,0x74,0x00,0x00,NANA,EOT}},
101 {0x30,0x60,0x61,0x70,0x72,0xf0,EOT},
102 {0x00,0x00,0x00,0x00,0x00,0x00,EOT}},
103 {0x8, "Embedded Controller (EC)",
104 {0x30,0x60,0x61,EOT},
105 {0x00,0x00,0x62,EOT}},
107 {0x30,0x60,0x61,EOT},
108 {0x00,0x00,0x00,EOT}},
110 {0x0e, "LPC47N252", { /* From sensors-detect */
112 {0x14, "LPC47M172", {
114 {0x30, "FDC37C93xAPM", {
116 {0x40, "FDC37C67x", { /* E.g. FDC37C672. Chiprev: 0x01 */
118 {0x03,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x2b,0x2c,
120 {0x03,0x40,NANA,0x00,0x00,0x04,MISC,MISC,NANA,NANA,
121 NANA,NANA,NANA,EOT}},
123 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,0xf5,
125 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,0x00,
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,0xf2,
136 {0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x02,0x03,
139 {0x30,0x70,0x72,0xf0,EOT},
140 {0x00,0x00,0x00,0x00,EOT}},
142 {0x30,0xb4,0xb5,0xb6,0xb7,0xc0,0xc1,0xc2,0xc3,0xc4,
143 0xf1,0xf2,0xf3,0xf4,0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,
145 {0x00,NANA,NANA,NANA,NANA,0x06,0x03,NANA,NANA,NANA,
146 0x00,0x00,0x00,MISC,RSVD,RSVD,RSVD,RSVD,RSVD,RSVD,
149 {0x42, "FDC37B80x/FDC37M707", {
151 {0x09, "FDC37N958FR", { /* Found in e.g. Dell Latitude CPi A366XT. */
153 {0x03,0x07,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x28,
154 0x2b,0x2c,0x2d,0x2e,0x2f,EOT},
155 {0x03,NANA,0x44,0x00,0x00,0x00,0x04,MISC,MISC,0x00,
156 NANA,NANA,NANA,NANA,NANA,EOT}},
158 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,0xf5,
160 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,0x00,
162 {0x3, "Parallel port",
163 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
164 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
166 {0x30,0x60,0x61,0x70,0xf0,EOT},
167 {0x00,0x00,0x00,0x00,0x00,EOT}},
169 {0x30,0x60,0x61,0x62,0x63,0x70,0x74,0xf0,0xf1,0xf2,
171 {NANA,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x02,0x03,
173 {0x6, "Real-time clock (RTC)",
174 {0x30,0x62,0x63,0x70,0xf0,EOT},
175 {0x00,0x00,0x70,0x00,0x00,EOT}},
177 {0x30,0x70,0x72,0xf0,EOT},
178 {0x00,0x00,0x00,0x00,EOT}},
180 {0x30,0xb0,0xb1,0xb2,0xb3,0xb8,0xc0,0xc1,0xc2,0xc3,
181 0xc4,0xc5,0xc6,0xc8,0xca,0xcb,0xcc,0xd0,0xd1,0xd2,
182 0xd3,0xd4,0xd5,0xd6,0xd7,0xe0,0xe1,0xe2,0xe3,0xe4,
183 0xe5,0xe6,0xe7,0xef,0xf0,0xf1,0xf2,0xf3,0xf4,0xf6,
185 {0x00,NANA,NANA,NANA,NANA,NANA,NANA,0x01,NANA,NANA,
186 NANA,0x00,NANA,NANA,NANA,NANA,NANA,NANA,NANA,NANA,
187 NANA,NANA,NANA,NANA,NANA,NANA,NANA,NANA,NANA,NANA,
188 NANA,NANA,NANA,NANA,NANA,0x00,0x00,0x00,0x00,NANA,
191 {0x30,0x60,0x61,0x70,0xf0,EOT},
192 {0x00,0x00,0x00,NANA,NANA,EOT}},
194 {0x43, "FDC37B77x", {
196 {0x44, "FDC37B78x", {
198 {0x03,0x07,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x28,
199 0x2b,0x2c,0x2d,0x2e,0x2f,EOT},
200 {0x03,NANA,0x44,0x00,0x00,0x00,0x04,MISC,MISC,0x00,
201 NANA,NANA,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 {NANA,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x02,0x03,
218 {0x6, "Real-time clock (RTC)",
219 {0x30,0x62,0x63,0x70,0xf0,EOT},
220 {0x00,0x00,0x70,0x00,0x00,EOT}},
222 {0x30,0x70,0x72,0xf0,EOT},
223 {0x00,0x00,0x00,0x00,EOT}},
225 {0x30,0xb0,0xb1,0xb2,0xb3,0xb8,0xc0,0xc1,0xc2,0xc3,
226 0xc4,0xc5,0xc6,0xc8,0xca,0xcb,0xcc,0xd0,0xd1,0xd2,
227 0xd3,0xd4,0xd5,0xd6,0xd7,0xe0,0xe1,0xe2,0xe3,0xe4,
228 0xe5,0xe6,0xe7,0xef,0xf0,0xf1,0xf2,0xf3,0xf4,0xf6,
230 {0x00,NANA,NANA,NANA,NANA,NANA,NANA,0x01,NANA,NANA,
231 NANA,0x00,NANA,NANA,NANA,NANA,NANA,NANA,NANA,NANA,
232 NANA,NANA,NANA,NANA,NANA,NANA,NANA,NANA,NANA,NANA,
233 NANA,NANA,NANA,NANA,NANA,0x00,0x00,0x00,0x00,NANA,
236 {0x30,0x60,0x61,0x70,0xf0,EOT},
237 {0x00,0x00,0x00,NANA,NANA,EOT}},
239 {0x47, "FDC37M60x", { /* TODO: Not yet in sensors-detect */
241 {0x4c, "FDC37B72x", {
243 {0x03,0x07,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x28,
244 0x2b,0x2c,0x2d,0x2e,0x2f,EOT},
245 {0x03,NANA,0x4c,0x00,0x00,0x00,0x04,MISC,MISC,0x00,
246 NANA,NANA,NANA,NANA,NANA,EOT}},
248 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,0xf5,
250 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,0x00,
252 {0x3, "Parallel port",
253 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
254 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
256 {0x30,0x60,0x61,0x70,0xf0,EOT},
257 {0x00,0x00,0x00,0x00,0x00,EOT}},
259 {0x30,0x60,0x61,0x70,0xf0,0xf1,0xf2,EOT},
260 {NANA,0x00,0x00,0x00,0x00,0x02,0x03,EOT}},
262 {0x30,0x70,0x72,0xf0,EOT},
263 {0x00,0x00,0x00,0x00,EOT}},
265 {0x30,0xb0,0xb1,0xb2,0xb3,0xb8,0xc0,0xc1,0xc2,0xc3,
266 0xc4,0xc5,0xc6,0xc8,0xca,0xcb,0xcc,0xd0,0xd1,0xd2,
267 0xd3,0xd4,0xd5,0xd6,0xd7,0xe0,0xe1,0xe2,0xe3,0xe4,
268 0xe5,0xe6,0xe7,0xef,0xf0,0xf1,0xf2,0xf3,0xf4,0xf6,
270 {0x00,NANA,NANA,NANA,NANA,NANA,0x00,0x01,NANA,NANA,
271 NANA,0x00,NANA,NANA,NANA,NANA,NANA,NANA,NANA,NANA,
272 NANA,NANA,NANA,NANA,NANA,NANA,NANA,NANA,NANA,NANA,
273 NANA,NANA,NANA,NANA,NANA,0x00,0x00,0x00,MISC,NANA,
276 {0x30,0x60,0x61,0x70,0xf0,EOT},
277 {0x00,0x00,0x00,NANA,NANA,EOT}},
279 {0x4d, "FDC37M81x", {
281 {0x03,0x07,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x2b,
282 0x2c,0x2d,0x2e,0x2f,EOT},
283 {0x03,0x00,0x4d,NANA,0x00,0x00,0x04,MISC,MISC,NANA,
284 NANA,NANA,NANA,NANA,EOT}},
286 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,
288 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,
290 {0x3, "Parallel port",
291 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
292 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
294 {0x30,0x60,0x61,0x70,0xf0,EOT},
295 {0x00,0x00,0x00,0x00,0x00,EOT}},
297 {0x30,0x60,0x61,0x62,0x63,0x70,0xf0,0xf1,0xf2,EOT},
298 {0x00,0x00,0x00,RSVD,RSVD,0x00,0x00,0x02,0x03,EOT}},
300 {0x30,0x70,0x72,0xf0,EOT},
301 {0x00,0x00,0x00,0x00,EOT}},
303 /* Only 0xf6 existing (and reserved) or 0xf6..0xfb? */
304 {0x30,0xb4,0xb5,0xb6,0xb7,0xc0,0xc1,0xc2,0xc3,0xc4,
305 0xc5,0xc6,0xc7,0xc8,0xf1,0xf2,0xf3,0xf4,0xf6,0xf7,
306 0xf8,0xf9,0xfa,0xfb,EOT},
307 {0x00,NANA,NANA,NANA,NANA,0x02,0x01,NANA,NANA,NANA,
308 NANA,NANA,NANA,NANA,0x00,0x00,0x00,0x00,RSVD,RSVD,
309 RSVD,RSVD,RSVD,RSVD,EOT}},
311 {0x51, "LPC47B27x", {
313 {0x03,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x28,
314 0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT},
315 {RSVD,0x51,NANA,0x00,0x00,0x04,MISC,MISC,RSVD,
316 NANA,NANA,NANA,NANA,NANA,NANA,EOT}},
318 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,0xf5,
320 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,0x00,
322 {0x3, "Parallel port",
323 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
324 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
326 {0x30,0x60,0x61,0x70,0xf0,EOT},
327 {0x00,0x00,0x00,0x00,0x00,EOT}},
329 {0x30,0x60,0x61,0x62,0x63,0x70,0x74,0xf0,0xf1,0xf2,
331 {NANA,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x02,0x03,
334 {0x30,0x70,0x72,0xf0,EOT},
335 {0x00,0x00,0x00,0x00,EOT}},
337 {0x30,0x60,0x61,EOT},
338 {0x00,0x00,0x00,EOT}},
339 {0xa, "Power-management events (PME)",
340 {0x30,0x60,0x61,0xf0,0xf1,EOT},
341 {0x00,0x00,0x00,NANA,NANA,EOT}},
342 {0xb, "MIDI port (MPU-401)",
343 {0x30,0x60,0x61,0x70,EOT},
344 {0x00,0x03,0x30,0x05,EOT}},
346 {0x52, "LPC47B37x", {
348 {0x54, "LPC47U33x", {
350 {0x56, "LPC47B34x", {
352 {0x57, "LPC47S42x", {
354 {0x59, "LPC47M10x/112/13x", {
356 {0x03,0x07,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x28,
357 0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT},
358 {RSVD,0x00,0x59,NANA,0x00,0x00,0x44,MISC,MISC,RSVD,
359 NANA,NANA,NANA,NANA,NANA,NANA,EOT}},
361 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,
363 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,
365 {0x3, "Parallel port",
366 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
367 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
369 {0x30,0x60,0x61,0x70,0xf0,EOT},
370 {0x00,0x00,0x00,0x00,0x00,EOT}},
372 {0x30,0x60,0x61,0x62,0x63,0x70,0x74,0xf0,0xf1,
374 {NANA,0x00,0x00,RSVD,RSVD,0x00,RSVD,0x00,0x02,
377 {0x30,0x70,0x72,0xf0,EOT},
378 {0x00,0x00,0x00,0x00,EOT}},
380 {0x30,0x60,0x61,EOT},
381 {0x00,0x00,0x00,EOT}},
382 {0xa, "Power Management Events (PME)",
383 {0x30,0x60,0x61,0xf0,0xf1,EOT},
384 {0x00,0x00,0x00,NANA,RSVD,EOT}},
386 {0x30,0x60,0x61,0x70,EOT},
387 {0x00,0x03,0x30,0x05,EOT}},
389 {0x5d, "LPC47B357", { /* From sensors-detect (no datasheet) */
391 {0x5f, "LPC47M14x", {
393 {0x60, "LPC47M15x/192/997", {
395 {0x03,0x07,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x28,
396 0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT},
397 {RSVD,0x00,0x60,NANA,0x00,0x00,0x44,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,0x70,0xf0,0xf1,0xf2,EOT},
412 {NANA,0x00,0x00,0x00,0x00,0x02,0x03,EOT}},
414 {0x30,0x70,0x72,0xf0,EOT},
415 {0x00,0x00,0x00,0x00,EOT}},
417 {0x30,0x60,0x61,EOT},
418 {0x00,0x00,0x00,EOT}},
419 {0xa, "Power Management Events (PME)",
420 {0x30,0x60,0x61,0xf0,EOT},
421 {0x00,0x00,0x00,NANA,EOT}},
423 {0x30,0x60,0x61,0x70,EOT},
424 {0x00,0x03,0x30,0x05,EOT}},
426 {0x62, "LPC47S45x", {
428 {0x6b, "LPC47M292", { /* From sensors-detect */
430 {0x6e, "LPC47B387", { /* TODO: Not yet in sensors-detect */
431 /* Found in the HP Compaq Business Desktop d530 Series */
432 /* http://article.gmane.org/gmane.linux.bios/27192 */
433 /* We cannot find a public datasheet for this Super I/O. */
435 {0x6f, "LPC47B397", {
437 {0x74, "LPC47M182", {
439 {0x76, "LPC47M584", { /* From sensors-detect (no datasheet) */
441 {0x77, "A8000", { /* ASUS A8000, a rebranded DME1737(?) */
443 {0x03,0x07,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x28,
444 0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT},
445 {RSVD,0x00,0x77,NANA,0x00,RSVD,0x44,MISC,MISC,RSVD,
446 NANA,NANA,NANA,NANA,NANA,NANA,EOT}},
448 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,
450 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,
452 {0x3, "Parallel port",
453 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
454 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
456 {0x30,0x60,0x61,0x70,0xf0,EOT},
457 {0x00,0x00,0x00,0x00,0x00,EOT}},
459 {0x30,0x60,0x61,0x70,0xf0,0xf1,0xf2,EOT},
460 {0x00,0x00,0x00,0x00,0x00,0x02,0x03,EOT}},
462 {0x30,0x70,0x72,0xf0,EOT},
463 {0x00,0x00,0x00,0x00,EOT}},
464 {0xa, "Runtime registers",
465 {0x30,0x60,0x61,0x62,0x63,0xf0,0xf1,0xf2,EOT},
466 {0x00,0x00,0x00,0x00,0x00,NANA,RSVD,0x04,EOT}},
470 {0x03,0x07,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x28,
471 0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT},
472 {RSVD,0x00,0x77,NANA,0x00,RSVD,0x44,MISC,MISC,RSVD,
473 NANA,NANA,NANA,NANA,NANA,NANA,EOT}},
475 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,
477 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,
479 {0x3, "Parallel port",
480 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
481 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
483 {0x30,0x60,0x61,0x70,0xf0,EOT},
484 {0x00,0x00,0x00,0x00,0x00,EOT}},
486 {0x30,0x60,0x61,0x70,0xf0,0xf1,0xf2,EOT},
487 {0x00,0x00,0x00,0x00,0x00,0x02,0x03,EOT}},
489 {0x30,0x70,0x72,0xf0,EOT},
490 {0x00,0x00,0x00,0x00,EOT}},
491 {0xa, "Runtime registers",
492 {0x30,0x60,0x61,0x62,0x63,0xf0,0xf1,0xf2,EOT},
493 {0x00,0x00,0x00,0x00,0x00,NANA,RSVD,0x04,EOT}},
495 {0x79, "SCH5504", { /* From sensors-detect (no datasheet) */
498 {0x7a, "Unknown", { /* Found in Toshiba Satellite A80-117. */
509 {0x85, "SCH5317", { /* From sensors-detect */
511 {0x89, "SCH5027", { /* From sensors-detect (no public datasheet) */
513 {0x90, "SCH4307", { /* From sensors-detect */
516 /* The following Super I/Os use the 0x0d/0x0e ID registers. */
517 {0x03, "FDC37C669", {
518 /* Init: 0x55, 0x55. Exit: 0xaa. Ports: 0x3f0/0x370. */
520 /* FIXME: There's another 0x03 but found on port 0x20/0x21! */
522 {0x04, "FDC37C669FR", { /* TODO: Not yet in sensors-detect. */
523 /* Init: 0x55, 0x55. Exit: 0xaa. Ports: 0x3f0/0x370. */
525 {0x13, "LPC47N237", {
526 /* Init: 0x55. Exit: 0xaa. Ports: 0x2e/0x4e. */
528 {0x28, "FDC37N769", {
529 /* Init: 0x55. Exit: 0xaa. Ports: 0x3f0/0x370. */
531 {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,
532 0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10,0x11,0x12,0x13,
533 0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d,
534 0x1e,0x1f,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,
535 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT},
536 {0x28,0x9c,0x88,0x70,0x00,0x00,0xff,0x00,0x00,0x00,
537 0x00,0x00,0x02,0x28,NANA,0x00,0x00,0x80,RSVD,RSVD,
538 NANA,NANA,NANA,0x03,RSVD,RSVD,RSVD,RSVD,RSVD,RSVD,
539 0x80,0x00,0x3c,RSVD,RSVD,0x00,0x00,0x00,0x00,0x00,
540 0x00,0x00,RSVD,0x00,0x00,0x03,0x00,0x00,EOT}},
542 {0x29, "FDC37N3869/FDC37N869", {
543 /* Init: 0x55. Exit: 0xaa. Ports: 0x3f0/0x370. */
545 {0x5a, "LPC47N227", {
546 /* Init: 0x55. Exit: 0xaa. Ports: 0x2e/0x4e. */
548 {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,
549 0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10,0x11,0x12,0x13,
550 0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d,
551 0x1e,0x1f,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,
552 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,0x30,0x31,
553 0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,EOT},
554 {0x28,0x9c,0x08,0x70,0x00,0x00,0xff,0x00,RSVD,0x00,
555 0x00,0x00,0x02,0x5a,NANA,0x00,0x00,0x80,MISC,0x00,
556 NANA,NANA,NANA,0x03,RSVD,RSVD,RSVD,RSVD,RSVD,RSVD,
557 RSVD,0x00,0x3c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
558 0x00,0x80,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,
559 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,EOT}},
561 {0x65, "FDC37C665GT/IR", {
562 /* Init: 0x55, 0x55. Exit: 0xaa. Port: 0x3f0. */
563 /* Chiprev: 0x02 = FDC37C665GT, 0x82 = FDC37C665IR */
565 {0x66, "FDC37C666GT", {
566 /* Init: 0x55, 0x55. Exit: 0xaa. Port: 0x3f0. Chiprev: 0x02. */
571 static void enter_conf_mode_smsc(uint16_t port)
573 /* Some of the SMSC Super I/Os have an 0x55,0x55 init, some only
574 * require one 0x55. We do 0x55,0x55 for all of them at the moment,
575 * in the assumption that the extra 0x55 won't hurt the other
576 * Super I/Os. This is verified to be true on (at least) the FDC37N769.
582 static void exit_conf_mode_smsc(uint16_t port)
587 static void probe_idregs_smsc_helper(uint16_t port, uint8_t idreg,
591 const char *info = (idreg == 0x20) ? "(idregs=0x20/0x21) "
592 : "(idregs=0x0d/0x0e) ";
594 probing_for("SMSC", info, port);
596 enter_conf_mode_smsc(port);
598 id = regval(port, idreg);
599 rev = regval(port, revreg);
601 if (superio_unknown(reg_table, id)) {
603 printf(NOTFOUND "id=0x%02x, rev=0x%02x\n", id, rev);
604 exit_conf_mode_smsc(port);
608 printf("Found %s %s (id=0x%02x, rev=0x%02x) at 0x%x\n",
609 (id == 0x77 ? "ASUS" : "SMSC"), get_superio_name(reg_table, id),
613 dump_superio((id == 0x77 ? "ASUS" : "SMSC"), reg_table, port, id);
615 exit_conf_mode_smsc(port);
618 void probe_idregs_smsc(uint16_t port)
620 probe_idregs_smsc_helper(port, DEVICE_ID_REG, DEVICE_REV_REG);
621 probe_idregs_smsc_helper(port, DEVICE_ID_REG_OLD, DEVICE_REV_REG_OLD);
624 void print_smsc_chips(void)
626 print_vendor_chips("SMSC", reg_table);