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.
18 #include "superiotool.h"
20 #define DEVICE_ID_REG_OLD 0x0d
21 #define DEVICE_REV_REG_OLD 0x0e
23 #define DEVICE_ID_REG 0x20
24 #define DEVICE_REV_REG 0x21
26 static const struct superio_registers reg_table
[] = {
27 /* The following Super I/Os use the 0x20/0x21 ID registers. */
30 {0x02,0x03,0x20,0x21,0x22,0x23,0x24,0x2d,0x2e,
32 {0x00,0x03,0x02,0x01,0x00,0x00,0x04,NANA
,NANA
,
35 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,
37 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,
40 {0x30,0x60,0x61,0x62,0x63,0x70,EOT
},
41 {0x00,0x01,0xf0,0x03,0xf6,0x0e,EOT
}},
43 {0x30,0x60,0x61,0x62,0x63,0x70,0xf0,EOT
},
44 {0x00,0x00,0x00,0x00,0x00,0x00,0x00,EOT
}},
45 {0x3, "Parallel port",
46 {0x30,0x60,0x61,0x70,0x74,0xf0,EOT
},
47 {0x00,0x00,0x00,0x00,0x04,0x3c,EOT
}},
49 {0x30,0x60,0x61,0x70,0xf0,EOT
},
50 {0x00,0x00,0x00,0x00,0x00,EOT
}},
52 {0x30,0x60,0x61,0x70,0xf0,0xf1,EOT
},
53 {0x00,0x00,0x00,0x00,0x00,0x00,EOT
}},
54 {0x6, "Real-time clock (RTC)",
55 {0x30,0x70,0xf0,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,EOT
},
56 {0x00,0x00,0x00,0x00,0x00,NANA
,MISC
,NANA
,NANA
,EOT
}},
59 {0x00,0x00,0x00,EOT
}},
61 {0x30,0x60,0x61,0x62,0x63,0xe0,0xe1,0xe2,0xe3,0xe4,
62 0xe5,0xe6,0xe7,0xe8,0xe9,0xea,0xeb,0xec,0xed,0xf0,
63 0xf1,0xf2,0xf3,0xf4,EOT
},
64 {0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x01,0x01,0x01,
65 0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x00,
66 0x00,0x00,0x00,MISC
,EOT
}},
68 {0x03, "FDC37C93xFR", {
69 /* FIXME: There's another 0x03 but found on port 0x0d/0x0e! */
73 {0x02,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,
74 0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT
},
75 {0x00,0x0a,0x00,0x00,0x00,0x04,0x04,NANA
,NANA
,0x00,
76 0x00,0x00,0x00,0x00,0x00,0x00,0x00,EOT
}},
78 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf3,0xf4,
80 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,RSVD
,0x00,
82 {0x1, "Power management (PM1)",
84 {0x00,0x00,0x00,EOT
}},
85 {0x3, "Parallel port",
86 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT
},
87 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT
}},
89 {0x30,0x60,0x61,0x70,0xf0,EOT
},
90 {0x00,0x00,0x00,0x00,0x00,EOT
}},
92 {0x30,0x60,0x61,0x62,0x63,0x70,0x74,0xf0,0xf1,
94 {0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x02,
96 {0x6, "Real-time clock (RTC)",
97 {0x30,0x60,0x61,0x62,0x63,0x70,0xf0,0xf1,EOT
},
98 {0x00,0x00,0x70,0x00,0x74,0x00,0x00,NANA
,EOT
}},
100 {0x30,0x60,0x61,0x70,0x72,0xf0,EOT
},
101 {0x00,0x00,0x00,0x00,0x00,0x00,EOT
}},
102 {0x8, "Embedded controller (EC)",
103 {0x30,0x60,0x61,EOT
},
104 {0x00,0x00,0x62,EOT
}},
106 {0x30,0x60,0x61,EOT
},
107 {0x00,0x00,0x00,EOT
}},
109 {0x0b, "FDC37N972", {
111 {0x02,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,
112 0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT
},
113 {0x00,0x0b,0x00,0x00,0x00,0x04,0x04,NANA
,NANA
,0x00,
114 0x00,0x00,0x00,0x00,0x00,0x00,0x00,EOT
}},
116 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf3,0xf4,
118 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,RSVD
,0x00,
120 {0x1, "Power management (PM1)",
121 {0x30,0x60,0x61,EOT
},
122 {0x00,0x00,0x00,EOT
}},
123 {0x3, "Parallel port",
124 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT
},
125 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT
}},
127 {0x30,0x60,0x61,0x70,0xf0,EOT
},
128 {0x00,0x00,0x00,0x00,0x00,EOT
}},
130 {0x30,0x60,0x61,0x62,0x63,0x70,0x74,0xf0,0xf1,
132 {0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x02,
133 0x03,0x00,0x00,EOT
}},
134 {0x6, "Real-time clock (RTC)",
135 {0x30,0x60,0x61,0x62,0x63,0x70,0xf0,0xf1,EOT
},
136 {0x00,0x00,0x70,0x00,0x74,0x00,0x00,NANA
,EOT
}},
138 {0x30,0x60,0x61,0x70,0x72,0xf0,EOT
},
139 {0x00,0x00,0x00,0x00,0x00,0x00,EOT
}},
140 {0x8, "Embedded controller (EC)",
141 {0x30,0x60,0x61,EOT
},
142 {0x00,0x00,0x62,EOT
}},
144 {0x30,0x60,0x61,EOT
},
145 {0x00,0x00,0x00,EOT
}},
147 {0x0e, "LPC47N252", { /* From sensors-detect */
149 {0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,
150 0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT
},
151 {0x0e,NANA
,0x00,0x00,0x04,0x04,NANA
,NANA
,0x00,
152 0x00,0x00,0x00,0x00,0x00,0x00,0x00,EOT
}},
154 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf3,0xf4,
156 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,RSVD
,0x00,
158 {0x1, "Power management (PM1)",
159 {0x30,0x60,0x61,EOT
},
160 {0x00,0x00,0x00,EOT
}},
161 {0x3, "Parallel port",
162 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT
},
163 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT
}},
165 {0x30,0x60,0x61,0x70,0xf0,EOT
},
166 {0x00,0x00,0x00,0x00,0x00,EOT
}},
168 {0x30,0x60,0x61,0x62,0x63,0x70,0x74,0xf0,0xf1,
170 {0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x02,
171 0x03,0x00,0x00,EOT
}},
172 {0x6, "Real-time clock (RTC)",
173 {0x30,0x60,0x61,0x62,0x63,0x70,0xf0,0xf1,EOT
},
174 {0x00,0x00,0x70,0x00,0x74,0x00,0x00,NANA
,EOT
}},
176 {0x30,0x60,0x61,0x70,0x72,0xf0,EOT
},
177 {0x00,0x00,0x00,0x00,0x00,0x00,EOT
}},
178 {0x8, "Embedded controller (EC)",
179 {0x30,0x60,0x61,EOT
},
180 {0x00,0x00,0x62,EOT
}},
181 {0x9, "Mailbox Interface",
182 {0x30,0x60,0x61,EOT
},
183 {0x00,0x00,0x00,EOT
}},
184 {0xa, "LPC/8051 addressable GPIO (LGPIO)",
185 {0x30,0x60,0x61,EOT
},
186 {0x00,0x00,0x00,EOT
}},
188 {0x14, "LPC47M172", {
190 {0x30, "FDC37C93xAPM", {
192 {0x40, "FDC37C67x", { /* E.g. FDC37C672. Chiprev: 0x01 */
194 {0x03,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x2b,0x2c,
196 {0x03,0x40,NANA
,0x00,0x00,0x04,MISC
,MISC
,NANA
,NANA
,
197 NANA
,NANA
,NANA
,EOT
}},
199 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,0xf5,
201 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,0x00,
203 {0x3, "Parallel port",
204 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT
},
205 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT
}},
207 {0x30,0x60,0x61,0x70,0xf0,EOT
},
208 {0x00,0x00,0x00,0x00,0x00,EOT
}},
210 {0x30,0x60,0x61,0x62,0x63,0x70,0x74,0xf0,0xf1,0xf2,
212 {0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x02,0x03,
215 {0x30,0x70,0x72,0xf0,EOT
},
216 {0x00,0x00,0x00,0x00,EOT
}},
218 {0x30,0xb4,0xb5,0xb6,0xb7,0xc0,0xc1,0xc2,0xc3,0xc4,
219 0xf1,0xf2,0xf3,0xf4,0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,
221 {0x00,NANA
,NANA
,NANA
,NANA
,0x06,0x03,NANA
,NANA
,NANA
,
222 0x00,0x00,0x00,MISC
,RSVD
,RSVD
,RSVD
,RSVD
,RSVD
,RSVD
,
225 {0x42, "FDC37B80x/FDC37M707", {
227 {0x09, "FDC37N958FR", { /* Found in e.g. Dell Latitude CPi A366XT. */
229 {0x03,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x28,0x2b,
230 0x2c,0x2d,0x2e,0x2f,EOT
},
231 {0x03,0x44,0x00,0x00,0x00,0x04,MISC
,MISC
,0x00,NANA
,
232 NANA
,NANA
,NANA
,NANA
,EOT
}},
234 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,0xf5,
236 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,0x00,
238 {0x3, "Parallel port",
239 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT
},
240 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT
}},
242 {0x30,0x60,0x61,0x70,0xf0,EOT
},
243 {0x00,0x00,0x00,0x00,0x00,EOT
}},
245 {0x30,0x60,0x61,0x62,0x63,0x70,0x74,0xf0,0xf1,0xf2,
247 {NANA
,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x02,0x03,
249 {0x6, "Real-time clock (RTC)",
250 {0x30,0x62,0x63,0x70,0xf0,EOT
},
251 {0x00,0x00,0x70,0x00,0x00,EOT
}},
253 {0x30,0x70,0x72,0xf0,EOT
},
254 {0x00,0x00,0x00,0x00,EOT
}},
256 {0x30,0xb0,0xb1,0xb2,0xb3,0xb8,0xc0,0xc1,0xc2,0xc3,
257 0xc4,0xc5,0xc6,0xc8,0xca,0xcb,0xcc,0xd0,0xd1,0xd2,
258 0xd3,0xd4,0xd5,0xd6,0xd7,0xe0,0xe1,0xe2,0xe3,0xe4,
259 0xe5,0xe6,0xe7,0xef,0xf0,0xf1,0xf2,0xf3,0xf4,0xf6,
261 {0x00,NANA
,NANA
,NANA
,NANA
,NANA
,NANA
,0x01,NANA
,NANA
,
262 NANA
,0x00,NANA
,NANA
,NANA
,NANA
,NANA
,NANA
,NANA
,NANA
,
263 NANA
,NANA
,NANA
,NANA
,NANA
,NANA
,NANA
,NANA
,NANA
,NANA
,
264 NANA
,NANA
,NANA
,NANA
,NANA
,0x00,0x00,0x00,0x00,NANA
,
267 {0x30,0x60,0x61,0x70,0xf0,EOT
},
268 {0x00,0x00,0x00,NANA
,NANA
,EOT
}},
270 {0x43, "FDC37B77x", {
272 {0x44, "FDC37B78x", {
274 {0x03,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x28,0x2b,
275 0x2c,0x2d,0x2e,0x2f,EOT
},
276 {0x03,0x44,0x00,0x00,0x00,0x04,MISC
,MISC
,0x00,NANA
,
277 NANA
,NANA
,NANA
,NANA
,EOT
}},
279 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,0xf5,
281 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,0x00,
283 {0x3, "Parallel port",
284 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT
},
285 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT
}},
287 {0x30,0x60,0x61,0x70,0xf0,EOT
},
288 {0x00,0x00,0x00,0x00,0x00,EOT
}},
290 {0x30,0x60,0x61,0x62,0x63,0x70,0x74,0xf0,0xf1,0xf2,
292 {NANA
,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x02,0x03,
294 {0x6, "Real-time clock (RTC)",
295 {0x30,0x62,0x63,0x70,0xf0,EOT
},
296 {0x00,0x00,0x70,0x00,0x00,EOT
}},
298 {0x30,0x70,0x72,0xf0,EOT
},
299 {0x00,0x00,0x00,0x00,EOT
}},
301 {0x30,0xb0,0xb1,0xb2,0xb3,0xb8,0xc0,0xc1,0xc2,0xc3,
302 0xc4,0xc5,0xc6,0xc8,0xca,0xcb,0xcc,0xd0,0xd1,0xd2,
303 0xd3,0xd4,0xd5,0xd6,0xd7,0xe0,0xe1,0xe2,0xe3,0xe4,
304 0xe5,0xe6,0xe7,0xef,0xf0,0xf1,0xf2,0xf3,0xf4,0xf6,
306 {0x00,NANA
,NANA
,NANA
,NANA
,NANA
,NANA
,0x01,NANA
,NANA
,
307 NANA
,0x00,NANA
,NANA
,NANA
,NANA
,NANA
,NANA
,NANA
,NANA
,
308 NANA
,NANA
,NANA
,NANA
,NANA
,NANA
,NANA
,NANA
,NANA
,NANA
,
309 NANA
,NANA
,NANA
,NANA
,NANA
,0x00,0x00,0x00,0x00,NANA
,
312 {0x30,0x60,0x61,0x70,0xf0,EOT
},
313 {0x00,0x00,0x00,NANA
,NANA
,EOT
}},
315 {0x46, "FDC37M602", { /* Found in Biostar M6TLD. */
317 {0x47, "FDC37M60x", { /* TODO: Not yet in sensors-detect */
319 {0x4c, "FDC37B72x", {
321 {0x03,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x28,0x2b,
322 0x2c,0x2d,0x2e,0x2f,EOT
},
323 {0x03,0x4c,0x00,0x00,0x00,0x04,MISC
,MISC
,0x00,NANA
,
324 NANA
,NANA
,NANA
,NANA
,EOT
}},
326 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,0xf5,
328 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,0x00,
330 {0x3, "Parallel port",
331 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT
},
332 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT
}},
334 {0x30,0x60,0x61,0x70,0xf0,EOT
},
335 {0x00,0x00,0x00,0x00,0x00,EOT
}},
337 {0x30,0x60,0x61,0x70,0xf0,0xf1,0xf2,EOT
},
338 {NANA
,0x00,0x00,0x00,0x00,0x02,0x03,EOT
}},
340 {0x30,0x70,0x72,0xf0,EOT
},
341 {0x00,0x00,0x00,0x00,EOT
}},
343 {0x30,0xb0,0xb1,0xb2,0xb3,0xb8,0xc0,0xc1,0xc2,0xc3,
344 0xc4,0xc5,0xc6,0xc8,0xca,0xcb,0xcc,0xd0,0xd1,0xd2,
345 0xd3,0xd4,0xd5,0xd6,0xd7,0xe0,0xe1,0xe2,0xe3,0xe4,
346 0xe5,0xe6,0xe7,0xef,0xf0,0xf1,0xf2,0xf3,0xf4,0xf6,
348 {0x00,NANA
,NANA
,NANA
,NANA
,NANA
,0x00,0x01,NANA
,NANA
,
349 NANA
,0x00,NANA
,NANA
,NANA
,NANA
,NANA
,NANA
,NANA
,NANA
,
350 NANA
,NANA
,NANA
,NANA
,NANA
,NANA
,NANA
,NANA
,NANA
,NANA
,
351 NANA
,NANA
,NANA
,NANA
,NANA
,0x00,0x00,0x00,MISC
,NANA
,
354 {0x30,0x60,0x61,0x70,0xf0,EOT
},
355 {0x00,0x00,0x00,NANA
,NANA
,EOT
}},
358 /* FIXME: FDC37M81x and MEC1308 have conflicting device IDs */
359 {0x4d, "FDC37M81x", {
361 {0x03,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x2b,0x2c,
363 {0x03,0x4d,NANA
,0x00,0x00,0x04,MISC
,MISC
,NANA
,NANA
,
364 NANA
,NANA
,NANA
,EOT
}},
366 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,
368 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,
370 {0x3, "Parallel port",
371 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT
},
372 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT
}},
374 {0x30,0x60,0x61,0x70,0xf0,EOT
},
375 {0x00,0x00,0x00,0x00,0x00,EOT
}},
377 {0x30,0x60,0x61,0x62,0x63,0x70,0xf0,0xf1,0xf2,EOT
},
378 {0x00,0x00,0x00,RSVD
,RSVD
,0x00,0x00,0x02,0x03,EOT
}},
380 {0x30,0x70,0x72,0xf0,EOT
},
381 {0x00,0x00,0x00,0x00,EOT
}},
383 /* Only 0xf6 existing (and reserved) or 0xf6..0xfb? */
384 {0x30,0xb4,0xb5,0xb6,0xb7,0xc0,0xc1,0xc2,0xc3,0xc4,
385 0xc5,0xc6,0xc7,0xc8,0xf1,0xf2,0xf3,0xf4,0xf6,0xf7,
386 0xf8,0xf9,0xfa,0xfb,EOT
},
387 {0x00,NANA
,NANA
,NANA
,NANA
,0x02,0x01,NANA
,NANA
,NANA
,
388 NANA
,NANA
,NANA
,NANA
,0x00,0x00,0x00,0x00,RSVD
,RSVD
,
389 RSVD
,RSVD
,RSVD
,RSVD
,EOT
}},
394 {0x02,0x03,0x07,0x17,0x20,0x21,0x22,0x23,0x24,0x25,
395 0x26,0x27,0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,
397 {0x00,RSVD
,0x00,RSVD
,0x4d,0x00,0x00,0x00,0x04,0x04,
398 MISC
,MISC
,MISC
,MISC
,MISC
,MISC
,MISC
,MISC
,MISC
,MISC
,
401 {0x30,0x60,0x61,EOT
},
402 {0x00,0x00,0x00,EOT
}},
404 {0x30,0x60,0x61,0x70,EOT
},
405 {0x00,0x00,0x00,0x00,EOT
}},
407 {0x30,0x70,0x72,0xf0,EOT
},
408 {0x00,0x00,0x00,0x00,EOT
}},
410 {0x30,0x60,0x61,EOT
},
411 {0x00,0x00,0x62,EOT
}},
413 {0x30,0x60,0x61,EOT
},
414 {0x00,0x00,0x00,EOT
}},
416 {0x30,0x60,0x61,0x70,0xf0,0xf1,0xf3,0xf4,EOT
},
417 {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,EOT
}},
419 {0x51, "LPC47B27x", {
421 {0x03,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x28,
422 0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT
},
423 {RSVD
,0x51,NANA
,0x00,0x00,0x04,MISC
,MISC
,RSVD
,
424 NANA
,NANA
,NANA
,NANA
,NANA
,NANA
,EOT
}},
426 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,0xf5,
428 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,0x00,
430 {0x3, "Parallel port",
431 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT
},
432 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT
}},
434 {0x30,0x60,0x61,0x70,0xf0,EOT
},
435 {0x00,0x00,0x00,0x00,0x00,EOT
}},
437 {0x30,0x60,0x61,0x62,0x63,0x70,0x74,0xf0,0xf1,0xf2,
439 {NANA
,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x02,0x03,
442 {0x30,0x70,0x72,0xf0,EOT
},
443 {0x00,0x00,0x00,0x00,EOT
}},
445 {0x30,0x60,0x61,EOT
},
446 {0x00,0x00,0x00,EOT
}},
447 {0xa, "Power-management events (PME)",
448 {0x30,0x60,0x61,0xf0,0xf1,EOT
},
449 {0x00,0x00,0x00,NANA
,NANA
,EOT
}},
450 {0xb, "MIDI port (MPU-401)",
451 {0x30,0x60,0x61,0x70,EOT
},
452 {0x00,0x03,0x30,0x05,EOT
}},
454 {0x52, "LPC47B37x", {
456 {0x54, "LPC47U33x", {
458 {0x03,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x2a,0x2b,
459 0x2c,0x2d,0x2e,0x2f,EOT
},
460 {RSVD
,0x54,NANA
,0x00,0x00,0x04,MISC
,MISC
,NANA
,NANA
,
461 NANA
,NANA
,NANA
,NANA
,EOT
}},
463 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,0xf5,
465 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,0x00,
467 {0x3, "Parallel port",
468 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT
},
469 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT
}},
471 {0x30,0x60,0x61,0x70,0xf0,EOT
},
472 {0x00,0x00,0x00,0x00,0x00,EOT
}},
473 {0x5, "MIDI port (MPU-401)",
474 {0x30,0x60,0x61,0x70,EOT
},
475 {0x00,0x03,0x30,0x05,EOT
}},
477 {0x30,0x70,0x72,0xf0,EOT
},
478 {0x00,0x00,0x00,0x00,EOT
}},
480 {0x30,0x60,0x61,EOT
},
481 {0x00,0x00,0x00,EOT
}},
482 {0xa, "Runtime registers",
483 {0x30,0x60,0x61,0xf0,0xf1,EOT
},
484 {0x00,0x00,0x00,NANA
,NANA
,EOT
}},
486 {0x30,0x60,0x61,0x70,EOT
},
487 {0x00,0x00,0x00,0x00,EOT
}},
489 {0x56, "LPC47B34x", {
491 {0x57, "LPC47S42x", {
493 {0x59, "LPC47M10x/112/13x", {
495 {0x03,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x28,0x2a,
496 0x2b,0x2c,0x2d,0x2e,0x2f,EOT
},
497 {RSVD
,0x59,NANA
,0x00,0x00,0x44,MISC
,MISC
,RSVD
,NANA
,
498 NANA
,NANA
,NANA
,NANA
,NANA
,EOT
}},
500 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,
502 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,
504 {0x3, "Parallel port",
505 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT
},
506 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT
}},
508 {0x30,0x60,0x61,0x70,0xf0,EOT
},
509 {0x00,0x00,0x00,0x00,0x00,EOT
}},
511 {0x30,0x60,0x61,0x62,0x63,0x70,0x74,0xf0,0xf1,
513 {NANA
,0x00,0x00,RSVD
,RSVD
,0x00,RSVD
,0x00,0x02,
516 {0x30,0x70,0x72,0xf0,EOT
},
517 {0x00,0x00,0x00,0x00,EOT
}},
519 {0x30,0x60,0x61,EOT
},
520 {0x00,0x00,0x00,EOT
}},
521 {0xa, "Power management events (PME)",
522 {0x30,0x60,0x61,0xf0,0xf1,EOT
},
523 {0x00,0x00,0x00,NANA
,RSVD
,EOT
}},
525 {0x30,0x60,0x61,0x70,EOT
},
526 {0x00,0x03,0x30,0x05,EOT
}},
528 {0x5d, "LPC47B357", { /* From sensors-detect (no datasheet) */
530 {0x5f, "LPC47M14x", {
532 {0x60, "LPC47M15x/192/997", {
534 {0x03,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x28,0x2a,
535 0x2b,0x2c,0x2d,0x2e,0x2f,EOT
},
536 {RSVD
,0x60,NANA
,0x00,0x00,0x44,MISC
,MISC
,RSVD
,NANA
,
537 NANA
,NANA
,NANA
,NANA
,NANA
,EOT
}},
539 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,0xf5,
541 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,0x00,
543 {0x3, "Parallel port",
544 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT
},
545 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT
}},
547 {0x30,0x60,0x61,0x70,0xf0,EOT
},
548 {0x00,0x00,0x00,0x00,0x00,EOT
}},
550 {0x30,0x60,0x61,0x70,0xf0,0xf1,0xf2,EOT
},
551 {NANA
,0x00,0x00,0x00,0x00,0x02,0x03,EOT
}},
553 {0x30,0x70,0x72,0xf0,EOT
},
554 {0x00,0x00,0x00,0x00,EOT
}},
556 {0x30,0x60,0x61,EOT
},
557 {0x00,0x00,0x00,EOT
}},
558 {0xa, "Power management events (PME)",
559 {0x30,0x60,0x61,0xf0,EOT
},
560 {0x00,0x00,0x00,NANA
,EOT
}},
562 {0x30,0x60,0x61,0x70,EOT
},
563 {0x00,0x03,0x30,0x05,EOT
}},
565 {0x62, "LPC47S45x", {
567 {0x67, "EMC2700LPC", { /* From sensors-detect */
569 {0x6b, "LPC47M292", { /* From sensors-detect */
571 {0x6e, "LPC47B387", { /* TODO: Not yet in sensors-detect */
572 /* Found in the HP Compaq Business Desktop d530 Series */
573 /* http://article.gmane.org/gmane.linux.bios/27192 */
574 /* We cannot find a public datasheet for this Super I/O. */
576 {0x6f, "LPC47B397", {
578 {0x74, "LPC47M182", { /* Only for LD_NUM = 0 */
580 {0x02,0x03,0x20,0x21,0x22,0x23,0x24,0x26,0x27,
581 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT
},
582 {0x00,RSVD
,0x74,RSVD
,0x00,RSVD
,0x44,MISC
,0x00,
583 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,EOT
}},
585 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,
587 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,
589 {0x1, "Parallel port",
590 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf8,EOT
},
591 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,0x08,EOT
}},
593 {0x30,0x60,0x61,0x70,0xf0,0xf1,0xf2,EOT
},
594 {0x00,0x00,0x00,0x00,0x00,0x02,0x03,EOT
}},
596 {0x30,0x60,0x61,0x70,0xf0,EOT
},
597 {0x00,0x00,0x00,0x00,0x00,EOT
}},
598 {0x4, "Power control",
599 {0x30,0x60,0x61,0x70,0xf0,0xf1,EOT
},
600 {0x00,0x00,0x00,0x00,NANA
,0x00,EOT
}},
605 {0x30,0x70,0xf0,EOT
},
606 {0x00,0x00,0x00,EOT
}},
608 {0x30,0x60,0x61,0x70,0x72,0xf0,EOT
},
609 {0x00,0x00,0x00,0x00,0x00,0x00,EOT
}},
610 {0xa, "Runtime registers",
611 {0x30,0x60,0x61,0x62,0x63,0xf0,0xf1,0xf2,EOT
},
612 {0x00,0x00,0x00,0x00,0x00,NANA
,RSVD
,0x04,EOT
}},
614 {0x76, "LPC47M584", { /* From sensors-detect (no datasheet) */
616 {0x77, "A8000", { /* ASUS A8000, a rebranded DME1737(?) */
618 {0x03,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x28,0x2a,
619 0x2b,0x2c,0x2d,0x2e,0x2f,EOT
},
620 {RSVD
,0x77,NANA
,0x00,RSVD
,0x44,MISC
,MISC
,RSVD
,NANA
,
621 NANA
,NANA
,NANA
,NANA
,NANA
,EOT
}},
623 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,
625 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,
627 {0x3, "Parallel port",
628 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT
},
629 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT
}},
631 {0x30,0x60,0x61,0x70,0xf0,EOT
},
632 {0x00,0x00,0x00,0x00,0x00,EOT
}},
634 {0x30,0x60,0x61,0x70,0xf0,0xf1,0xf2,EOT
},
635 {0x00,0x00,0x00,0x00,0x00,0x02,0x03,EOT
}},
637 {0x30,0x70,0x72,0xf0,EOT
},
638 {0x00,0x00,0x00,0x00,EOT
}},
639 {0xa, "Runtime registers",
640 {0x30,0x60,0x61,0x62,0x63,0xf0,0xf1,0xf2,EOT
},
641 {0x00,0x00,0x00,0x00,0x00,NANA
,RSVD
,0x04,EOT
}},
645 {0x03,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x28,0x2a,
646 0x2b,0x2c,0x2d,0x2e,0x2f,EOT
},
647 {RSVD
,0x77,NANA
,0x00,RSVD
,0x44,MISC
,MISC
,RSVD
,NANA
,
648 NANA
,NANA
,NANA
,NANA
,NANA
,EOT
}},
650 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,
652 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,
654 {0x3, "Parallel port",
655 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT
},
656 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT
}},
658 {0x30,0x60,0x61,0x70,0xf0,EOT
},
659 {0x00,0x00,0x00,0x00,0x00,EOT
}},
661 {0x30,0x60,0x61,0x70,0xf0,0xf1,0xf2,EOT
},
662 {0x00,0x00,0x00,0x00,0x00,0x02,0x03,EOT
}},
664 {0x30,0x70,0x72,0xf0,EOT
},
665 {0x00,0x00,0x00,0x00,EOT
}},
666 {0xa, "Runtime registers",
667 {0x30,0x60,0x61,0x62,0x63,0xf0,0xf1,0xf2,EOT
},
668 {0x00,0x00,0x00,0x00,0x00,NANA
,RSVD
,0x04,EOT
}},
670 {0x79, "SCH5504", { /* From sensors-detect (no datasheet) */
672 {0x7a, "LPC47N217", { /* Found in Toshiba Satellite A80-117. */
678 {0x02,0x03,0x20,0x21,0x22,0x23,0x24,0x26,0x27,
679 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT
},
680 {0x00,RSVD
,0x7D,RSVD
,0x00,RSVD
,0x44,MISC
,0x00,
681 RSVD
,0x00,0x00,0x00,0x00,0x00,0x00,0x00,EOT
}},
683 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,
685 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,
687 {0x3, "Parallel port",
688 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT
},
689 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT
}},
691 {0x30,0x60,0x61,0x70,0xf0,EOT
},
692 {0x00,0x00,0x00,0x00,0x00,EOT
}},
694 {0x30,0x60,0x61,0x70,0xf0,0xf1,0xf2,EOT
},
695 {0x00,0x00,0x00,0x00,0x00,0x02,0x03,EOT
}},
697 {0x30,0x70,0x72,0xf0,EOT
},
698 {0x00,0x00,0x00,0x00,EOT
}},
699 {0xa, "Runtime registers",
700 {0x30,0x60,0x61,0x62,0x63,0xf0,0xf1,0xf2,EOT
},
701 {0x00,0x00,0x00,0x00,0x00,NANA
,0x00,0x04,EOT
}},
703 {0x30,0x60,0x61,0x70,0xf0,EOT
},
704 {0x00,0x00,0x00,0x00,0x00,EOT
}},
706 {0x30,0x60,0x61,0x70,0xf0,EOT
},
707 {0x00,0x00,0x00,0x00,0x00,EOT
}},
713 {0x83, "SCH5514D", { /* From sensors-detect */
715 {0x85, "SCH5317", { /* From sensors-detect */
716 /* The SCH5317 can have either 0x85 or 0x8c as device ID. */
718 {0x86, "SCH5127", { /* From sensors-detect */
720 {0x89, "SCH5027", { /* From sensors-detect (no public datasheet) */
722 {0x8c, "SCH5317", { /* From sensors-detect */
723 /* The SCH5317 can have either 0x85 or 0x8c as device ID. */
725 {0x90, "SCH4307", { /* From sensors-detect */
728 /* The following Super I/Os use the 0x0d/0x0e ID registers. */
729 {0x03, "FDC37C669", {
730 /* Init: 0x55, 0x55. Exit: 0xaa. Ports: 0x3f0/0x370. */
732 /* FIXME: There's another 0x03 but found on port 0x20/0x21! */
734 {0x04, "FDC37C669FR", { /* TODO: Not yet in sensors-detect. */
735 /* Init: 0x55, 0x55. Exit: 0xaa. Ports: 0x3f0/0x370. */
737 {0x13, "LPC47N237", {
738 /* Init: 0x55. Exit: 0xaa. Ports: 0x2e/0x4e. */
740 {0x28, "FDC37N769", {
741 /* Init: 0x55. Exit: 0xaa. Ports: 0x3f0/0x370. */
743 {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,
744 0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10,0x11,0x12,0x13,
745 0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d,
746 0x1e,0x1f,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,
747 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT
},
748 {0x28,0x9c,0x88,0x70,0x00,0x00,0xff,0x00,0x00,0x00,
749 0x00,0x00,0x02,0x28,NANA
,0x00,0x00,0x80,RSVD
,RSVD
,
750 NANA
,NANA
,NANA
,0x03,RSVD
,RSVD
,RSVD
,RSVD
,RSVD
,RSVD
,
751 0x80,0x00,0x3c,RSVD
,RSVD
,0x00,0x00,0x00,0x00,0x00,
752 0x00,0x00,RSVD
,0x00,0x00,0x03,0x00,0x00,EOT
}},
754 {0x29, "FDC37N3869/FDC37N869", {
755 /* Init: 0x55. Exit: 0xaa. Ports: 0x3f0/0x370. */
757 {0x5a, "LPC47N227", {
758 /* Init: 0x55. Exit: 0xaa. Ports: 0x2e/0x4e. */
760 {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,
761 0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10,0x11,0x12,0x13,
762 0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d,
763 0x1e,0x1f,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,
764 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,0x30,0x31,
765 0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,EOT
},
766 {0x28,0x9c,0x08,0x70,0x00,0x00,0xff,0x00,RSVD
,0x00,
767 0x00,0x00,0x02,0x5a,NANA
,0x00,0x00,0x80,MISC
,0x00,
768 NANA
,NANA
,NANA
,0x03,RSVD
,RSVD
,RSVD
,RSVD
,RSVD
,RSVD
,
769 RSVD
,0x00,0x3c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
770 0x00,0x80,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,
771 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,EOT
}},
773 {0x5b, "SIO10N268", {
774 /* Init: 0x55. Exit: 0xaa. Ports: 0x2e/0x4e. */
776 {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,
777 0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10,0x11,0x12,0x13,
778 0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d,
779 0x1e,0x1f,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,
780 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,0x30,0x31,
781 0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x3a,0x3b,
782 0x3c,0x3d,0x3e,0x3f,0x40,0x41,0x42,0x43,0x44,0x45,
783 0x46,0x47,0x48,0x49,0x4a,0x4b,0x4c,0x4d,0x4e,0x4f,
784 0x50,0x51,0x52,0x53,0x54,EOT
},
785 {0x20,0x98,0x00,0x70,0x00,0x00,0xff,0x00,0x00,0x00,
786 0x00,0x00,0x02,0x5b,NANA
,0x00,0x00,0x00,MISC
,0x00,
787 NANA
,NANA
,NANA
,0x03,0x00,NANA
,NANA
,0x00,0x00,0x00,
788 NANA
,0x00,0x3c,0x00,0x00,0x00,0x00,0x00,0xff,0x00,
789 0x00,0x80,0x00,0x00,0x0f,0x03,0x00,0x00,0x00,NANA
,
790 NANA
,NANA
,NANA
,NANA
,NANA
,NANA
,NANA
,NANA
,0x00,0x00,
791 0x00,0x00,0x00,0x00,NANA
,NANA
,NANA
,NANA
,NANA
,0x50,
792 NANA
,0x00,NANA
,NANA
,NANA
,NANA
,NANA
,NANA
,0x00,0x01,
793 0x00,0x01,0x00,0x8c,MISC
,EOT
}},
795 {0x65, "FDC37C665GT/IR", {
796 /* Init: 0x55, 0x55. Exit: 0xaa. Port: 0x3f0. */
797 /* Chiprev: 0x02 = FDC37C665GT, 0x82 = FDC37C665IR */
799 {0x66, "FDC37C666GT", {
800 /* Init: 0x55, 0x55. Exit: 0xaa. Port: 0x3f0. Chiprev: 0x02. */
805 static void enter_conf_mode_smsc(uint16_t port
)
807 /* Some of the SMSC Super I/Os have an 0x55,0x55 init, some only
808 * require one 0x55. We do 0x55,0x55 for all of them at the moment,
809 * in the assumption that the extra 0x55 won't hurt the other
810 * Super I/Os. This is verified to be true on (at least) the FDC37N769.
816 static void exit_conf_mode_smsc(uint16_t port
)
821 static void probe_idregs_smsc_helper(uint16_t port
, uint8_t idreg
,
825 uint16_t runtime_base
;
826 const char *info
= (idreg
== 0x20) ? "(idregs=0x20/0x21) "
827 : "(idregs=0x0d/0x0e) ";
829 probing_for("SMSC", info
, port
);
831 enter_conf_mode_smsc(port
);
833 id
= regval(port
, idreg
);
834 rev
= regval(port
, revreg
);
836 if (superio_unknown(reg_table
, id
)) {
838 printf(NOTFOUND
"id=0x%02x, rev=0x%02x\n", id
, rev
);
839 exit_conf_mode_smsc(port
);
843 /* Infineon TPM causes false match of FDC37N972 */
844 if (idreg
== DEVICE_ID_REG
&& revreg
== DEVICE_REV_REG
&&
845 id
== 0x0b && rev
== 0x00) {
846 /* Infineon sets config port in 0x27:0x26, but SMSC does not */
847 if (((regval(port
, 0x27)<<8)|regval(port
, 0x26)) == port
) {
849 printf(NOTFOUND
"id=0x%02x, rev=0x%02x\n",
851 exit_conf_mode_smsc(port
);
856 printf("Found %s %s (id=0x%02x, rev=0x%02x) at 0x%x\n",
857 (id
== 0x77 ? "ASUS" : "SMSC"), get_superio_name(reg_table
, id
),
861 dump_superio((id
== 0x77 ? "ASUS" : "SMSC"), reg_table
, port
, id
,
866 case 0x5a: /* LPC47N227 */
867 runtime_base
= regval(port
, 0x30) << 4;
869 dump_io(runtime_base
, 16);
871 printf("Runtime Register Block not mapped on this Super I/O.\n");
874 printf("No extra registers known for this chip.\n");
878 exit_conf_mode_smsc(port
);
881 void probe_idregs_smsc(uint16_t port
)
883 probe_idregs_smsc_helper(port
, DEVICE_ID_REG
, DEVICE_REV_REG
);
884 probe_idregs_smsc_helper(port
, DEVICE_ID_REG_OLD
, DEVICE_REV_REG_OLD
);
887 void print_smsc_chips(void)
889 print_vendor_chips("SMSC", reg_table
);
890 printf("SMSC LPC47N227 runtime register block\n\n");