2 * This file is part of the superiotool project.
4 * Copyright (C) 2006 Ronald Minnich <rminnich@gmail.com>
5 * Copyright (C) 2007 Uwe Hermann <uwe@hermann-uwe.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
22 #include "superiotool.h"
24 #define CHIP_ID_REG 0x20 /* Super I/O ID (SID) / family */
25 #define CHIP_REV_REG 0x27 /* Super I/O revision ID (SRID) */
27 static const struct superio_registers reg_table
[] = {
30 {0x20,0x21,0x22,0x23,0x24,0x27,EOT
},
31 {0xcf,MISC
,MISC
,0x00,0x00,NANA
,EOT
}},
33 {0x30,0x31,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,
35 {MISC
,0x00,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04,
38 {0x30,0x70,0x71,0x74,0x75,EOT
},
39 {0x00,0x0c,0x02,0x04,0x04,EOT
}},
40 {0x2, "Real-time clock (RTC), advanced power control (APC)",
41 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,EOT
},
42 {MISC
,0x00,0x00,0x70,0x08,0x00,0x04,0x04,EOT
}},
44 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,
46 {MISC
,0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x20,0x00,
48 {0x4, "Parallel port",
49 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
50 {0x00,0x00,0x02,0x78,0x07,0x00,0x04,0x04,0xf2,EOT
}},
52 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
53 {0x00,0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT
}},
55 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
56 {0x00,0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT
}},
58 {0x30,0x31,0x60,0x61,0x74,0x75,EOT
},
59 {0x00,0x00,0x00,0x00,0x04,0x04,EOT
}},
60 {0x8, "Power management",
61 {0x30,0x31,0x60,0x61,0x74,0x75,EOT
},
62 {0x00,0x00,0x00,0x00,0x04,0x04,EOT
}},
66 {0x20,0x21,0x22,0x23,0x24,0x25,EOT
},
67 {0xd0,MISC
,MISC
,0x00,0x00,0x00,EOT
}},
69 {0x30,0x31,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,
71 {MISC
,0x00,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04,
74 {0x30,0x70,0x71,0x74,0x75,EOT
},
75 {0x00,0x0c,0x02,0x04,0x04,EOT
}},
76 {0x2, "Real-time clock (RTC), advanced power control (APC)",
77 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,EOT
},
78 {MISC
,0x00,0x00,0x70,0x08,0x00,0x04,0x04,EOT
}},
80 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,
82 {MISC
,0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x20,0x00,
84 {0x4, "Parallel port",
85 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
86 {0x00,0x00,0x02,0x78,0x07,0x00,0x04,0x04,0xf2,EOT
}},
88 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
89 {0x00,0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT
}},
91 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
92 {0x00,0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT
}},
94 {0x30,0x31,0x60,0x61,0x74,0x75,EOT
},
95 {0x00,0x00,0x00,0x00,0x04,0x04,EOT
}},
96 {0x8, "Power management",
97 {0x30,0x31,0x60,0x61,0x74,0x75,EOT
},
98 {0x00,0x00,0x00,0x00,0x04,0x04,EOT
}},
102 {0x20,0x21,0x22,0x23,0x24,0x25,0x27,EOT
},
103 {0xdf,MISC
,MISC
,0x00,0x00,0x00,NANA
,EOT
}},
105 {0x30,0x31,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,
107 {MISC
,0x00,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04,
110 {0x30,0x70,0x71,0x74,0x75,EOT
},
111 {0x00,0x0c,0x02,0x04,0x04,EOT
}},
112 {0x2, "Real-time clock (RTC), advanced power control (APC)",
113 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,EOT
},
114 {MISC
,0x00,0x00,0x70,0x08,0x00,0x04,0x04,EOT
}},
116 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,
118 {MISC
,0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x20,0x00,
120 {0x4, "Parallel port",
121 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
122 {0x00,0x00,0x02,0x78,0x07,0x00,0x04,0x04,0xf2,EOT
}},
124 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
125 {0x00,0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT
}},
127 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
128 {0x00,0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT
}},
130 {0x30,0x31,0x60,0x61,0x74,0x75,EOT
},
131 {0x00,0x00,0x00,0x00,0x04,0x04,EOT
}},
132 {0x8, "Power management",
133 {0x30,0x31,0x60,0x61,0x74,0x75,EOT
},
134 {0x00,0x00,0x00,0x00,0x04,0x04,EOT
}},
138 {0x20,0x21,0x22,0x27,0x2e,EOT
},
139 {0xe0,MISC
,0x00,NANA
,RSVD
,EOT
}},
141 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,
143 {MISC
,0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x20,0x00,
145 {0x1, "Parallel port",
146 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
147 {0x00,0x00,0x02,0x78,0x07,0x00,0x04,0x04,0xf2,EOT
}},
149 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
150 {0x00,0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT
}},
152 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
153 {0x00,0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT
}},
154 {0x4, "Power management",
155 {0x30,0x31,0x60,0x61,0x74,0x75,EOT
},
156 {0x00,0x00,0x00,0x00,0x04,0x04,EOT
}},
158 {0x30,0x70,0x71,0x74,0x75,EOT
},
159 {0x00,0x0c,0x02,0x04,0x04,EOT
}},
161 {0x30,0x31,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,
163 {0x01,0x00,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04,
168 {0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x2a,
169 0x2b,0x2c,0x2d,0x2e,EOT
},
170 {0xe1,0x11,0x00,0x03,0x00,0x00,0x00,NANA
,0x00,MISC
,
171 0x00,0x00,0x00,RSVD
,EOT
}},
173 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,EOT
},
174 {0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x24,0x00,EOT
}},
175 {0x1, "Parallel port",
176 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
177 {0x00,0x02,0x78,0x07,0x02,0x04,0x04,0xf2,EOT
}},
179 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
180 {0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT
}},
182 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
183 {0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT
}},
184 {0x4, "System wake-up control (SWC)",
185 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,EOT
},
186 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,EOT
}},
188 {0x30,0x70,0x71,0x74,0x75,EOT
},
189 {0x00,0x0c,0x02,0x04,0x04,EOT
}},
191 {0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,0xf0,
193 {0x01,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04,0x40,
196 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf2,
198 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,0x00,0x00,
200 {0x8, "ACCESS.bus (ACB)",
201 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
202 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,EOT
}},
203 {0x9, "Fan speed control and monitor (FSCM)",
204 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
205 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,EOT
}},
206 {0xa, "Watchdog timer",
207 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
208 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x02,EOT
}},
212 {0x20,0x21,0x22,0x23,0x24,0x27,0x2e,EOT
},
213 {0xe2,0x11,0xa1,0x00,MISC
,NANA
,RSVD
,EOT
}},
215 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,EOT
},
216 {0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x24,0x00,EOT
}},
217 {0x1, "Parallel port",
218 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
219 {0x00,0x02,0x78,0x07,0x02,0x04,0x04,0xf2,EOT
}},
221 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
222 {0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT
}},
224 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
225 {0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT
}},
226 {0x4, "System wake-up control (SWC)",
227 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,EOT
},
228 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,EOT
}},
230 {0x30,0x70,0x71,0x74,0x75,EOT
},
231 {0x00,0x0c,0x02,0x04,0x04,EOT
}},
233 {0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,
235 {0x01,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04,
238 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,EOT
},
239 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,0x00,EOT
}},
240 {0x8, "Fan speed control",
241 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
242 {0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x00,EOT
}},
246 {0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x2a,
247 0x2b,0x2c,0x2d,0x2e,EOT
},
248 {0xe4,0x11,0x00,0x03,0x00,0x00,0x00,NANA
,0x00,MISC
,
249 0x00,0x00,NANA
,RSVD
,EOT
}},
251 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,EOT
},
252 {0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x24,0x00,EOT
}},
253 {0x1, "Parallel port",
254 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
255 {0x00,0x02,0x78,0x07,0x02,0x04,0x04,0xf2,EOT
}},
257 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
258 {0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT
}},
260 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
261 {0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT
}},
262 {0x4, "System wake-up control (SWC)",
263 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,EOT
},
264 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,EOT
}},
266 {0x30,0x70,0x71,0x74,0x75,EOT
},
267 {0x00,0x0c,0x02,0x04,0x04,EOT
}},
269 {0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,0xf0,
271 {0x01,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04,0x40,
274 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf2,
276 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,0x00,0x00,
278 {0x8, "ACCESS.bus (ACB)",
279 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
280 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,EOT
}},
281 {0x9, "Fan speed control and monitor (FSCM)",
282 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,EOT
},
283 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,0x00,EOT
}},
284 {0xa, "Watchdog timer",
285 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
286 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x02,EOT
}},
288 {0xe5, "PC87365", { /* SRID[7..0] == chip revision */
294 {0x20,0x21,0x22,0x23,0x24,0x25,0x27,0x28,0x2a,0x2b,
296 {0xe9,0x11,0x00,0x03,0x00,0x00,NANA
,0x00,MISC
,MISC
,
297 0x00,MISC
,RSVD
,EOT
}},
299 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,EOT
},
300 {0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x24,0x00,EOT
}},
301 {0x1, "Parallel port",
302 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
303 {0x00,0x02,0x78,0x07,0x02,0x04,0x04,0xf2,EOT
}},
305 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
306 {0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT
}},
308 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
309 {0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT
}},
310 {0x4, "System wake-up control (SWC)",
311 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,EOT
},
312 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,EOT
}},
314 {0x30,0x70,0x71,0x74,0x75,EOT
},
315 {0x00,0x0c,0x02,0x04,0x04,EOT
}},
317 {0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,0xf0,
319 {0x01,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04,0x40,
322 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf2,
324 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,0x00,0x00,
326 {0x8, "ACCESS.bus (ACB)",
327 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
328 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,EOT
}},
329 {0x9, "Fan speed control and monitor (FSCM)",
330 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf2,
332 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,0x00,0x00,
334 {0xa, "Watchdog timer (WDT)",
335 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
336 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x02,EOT
}},
338 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
339 {0x00,0x02,0x00,0x00,0x03,0x04,0x04,0x00,EOT
}},
341 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
342 {0x00,0x03,0x30,0x00,0x03,0x04,0x04,0x00,EOT
}},
343 {0xd, "Voltage level monitor (VLM)",
344 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,EOT
},
345 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,EOT
}},
346 {0xe, "Temperature sensor (TMS)",
347 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,EOT
},
348 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,EOT
}},
352 {0x20,0x21,0x22,0x26,0x27,0x29,EOT
},
353 {0xf4,0x11,0x63,0x00,0x00,0x00,EOT
}},
355 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
356 {0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT
}},
358 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
359 {0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT
}},
361 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,
363 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,MISC
,
365 {0x19, "Docking LPC switch",
366 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,EOT
},
367 {0x00,0x00,0x00,0x00,0x00,0x04,0x04,EOT
}},
369 /* SID[7..0]: family, SRID[7..5]: ID, SRID[4..0]: rev. */
372 {0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29,
373 0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT
},
374 {0xea,0x11,MISC
,MISC
,MISC
,0x80,0x00,NANA
,0x00,MISC
,
375 0x37,RSVD
,RSVD
,RSVD
,RSVD
,RSVD
,EOT
}},
377 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,EOT
},
378 {0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x24,0x00,EOT
}},
379 {0x1, "Parallel port",
380 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
381 {0x00,0x02,0x78,0x07,0x02,0x04,0x04,0xf2,EOT
}},
383 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
384 {0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT
}},
386 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
387 {0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT
}},
389 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf2,
391 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,0x44,0x01,
393 {0xa, "Watchdog timer (WDT)",
394 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
395 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x02,EOT
}},
397 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
398 {0x00,0x02,0x01,0x00,0x03,0x04,0x04,0x00,EOT
}},
400 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
401 {0x00,0x03,0x30,0x00,0x03,0x04,0x04,0x00,EOT
}},
403 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf2,
404 0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,0xf9,EOT
},
405 {0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x00,0x00,0x00,
406 0x00,0x00,0x00,0x00,0x00,0x00,0x00,EOT
}},
409 /* SRID[7..5]: 000=PC87591E, 001=PC87591S, 100=PC87591L */
412 /* SRID[7..5] is marked as "not applicable for the PC8741x". */
414 {0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29,
415 0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT
},
416 {0xee,0x11,0x20,MISC
,MISC
,MISC
,0x00,NANA
,0x00,MISC
,
417 0x00,RSVD
,RSVD
,RSVD
,RSVD
,RSVD
,EOT
}},
419 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,EOT
},
420 {0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x24,0x00,EOT
}},
421 {0x1, "Parallel port",
422 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
423 {0x00,0x02,0x78,0x07,0x02,0x04,0x04,0xf2,EOT
}},
425 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
426 {0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT
}},
428 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
429 {0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT
}},
430 {0x4, "System wake-up control (SWC)",
431 {0x30,0x60,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x70,
433 {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
434 0x03,0x04,0x04,EOT
}},
436 {0x30,0x70,0x71,0x74,0x75,EOT
},
437 {0x00,0x0c,0x02,0x04,0x04,EOT
}},
439 {0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,0xf0,
441 {0x00,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04,0x40,
444 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf2,
446 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,MISC
,0x01,
449 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf2,
450 0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,
452 {0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x00,0x00,0x00,
453 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
455 {0x10, "Real-time clock (RTC)",
456 {0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,0xf0,
458 {0x00,0x00,0x70,0x00,0x72,0x08,0x00,0x04,0x04,0x00,
459 0x00,0x00,0x00,EOT
}},
465 {0x10,0x12,0x13,0x20,0x21,0x22,0x23,0x24,0x25,0x26,
466 0x27,0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT
},
467 {0x00,0x00,0x00,0xf1,0x11,0x00,0x00,0x00,RSVD
,0x00,
468 MISC
,RSVD
,0x01,0x2e,RSVD
,RSVD
,RSVD
,RSVD
,RSVD
,EOT
}},
470 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf8,
472 {0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x24,0x00,0x24,
474 {0x1, "Parallel port",
475 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf8,EOT
},
476 {0x00,0x02,0x78,0x07,0x02,0x04,0x04,0xf2,0x07,EOT
}},
478 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
479 {0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT
}},
481 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
482 {0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT
}},
483 {0x4, "System wake-up control (SWC)",
484 {0x30,0x50,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,
486 {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x04,
489 {0x30,0x70,0x71,0x74,0x75,EOT
},
490 {0x00,0x0c,0x02,0x04,0x04,EOT
}},
492 {0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,0xf0,
494 {0x00,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04,0x40,
497 {0x30,0x50,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,
499 {0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,MISC
,
500 0x00,MISC
,0x01,EOT
}},
501 {0x8, "Health management",
502 {0x30,0x50,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
503 {0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x05,EOT
}},
505 {0x8f1, "WPCD376I", {
507 {0x10,0x12,0x13,0x20,0x21,0x22,0x23,0x24,0x25,0x26,
508 0x27,0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT
},
509 {0x00,0x00,0x00,0xf1,0x11,0x00,0x00,0x00,RSVD
,0x00,
510 MISC
,RSVD
,0x01,0x2e,RSVD
,RSVD
,RSVD
,RSVD
,RSVD
,EOT
}},
512 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf8,
514 {0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x24,0x00,0x24,
516 {0x1, "Parallel port",
517 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf8,EOT
},
518 {0x00,0x02,0x78,0x07,0x02,0x04,0x04,0xf2,0x07,EOT
}},
520 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
521 {0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT
}},
523 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
524 {0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT
}},
525 {0x4, "System wake-up control (SWC)",
526 {0x30,0x50,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,
528 {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x04,
531 {0x30,0x70,0x71,0x74,0x75,EOT
},
532 {0x00,0x0c,0x02,0x04,0x04,EOT
}},
534 {0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,0xf0,
536 {0x00,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04,0x40,
539 {0x30,0x50,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,
541 {0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,MISC
,
542 0x00,MISC
,0x01,EOT
}},
545 /* SRID[7..5] is marked as "not applicable for the PC87427". */
547 {0x10,0x12,0x13,0x1d,0x20,0x21,0x22,0x23,0x24,0x25,
548 0x26,0x27,0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,
550 {0x00,0x00,0x00,0x00,0xf2,0x11,0xa0,MISC
,MISC
,MISC
,
551 0x02,NANA
,0x00,MISC
,0x00,0x00,MISC
,MISC
,RSVD
,RSVD
,
554 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,EOT
},
555 {0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x24,0x00,EOT
}},
557 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
558 {0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT
}},
560 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
561 {0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT
}},
562 {0x4, "System wake-up control (SWC)",
563 {0x30,0x60,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x70,
565 {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
566 0x03,0x04,0x04,EOT
}},
568 {0x30,0x70,0x71,0x74,0x75,EOT
},
569 {0x00,0x0c,0x02,0x04,0x04,EOT
}},
571 {0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,0xf0,
573 {0x00,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04,0x40,
576 {0x30,0x50,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,
577 0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,EOT
},
578 {0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,MISC
,
579 0x01,0x00,0x00,0x00,0x00,0x00,0x00,EOT
}},
580 {0x9, "Fan Monitor and Control (FMC)",
581 {0x30,0x50,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,
583 {0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x19,0x06,
585 {0xa, "Watchdog timer (WDT)",
586 {0x30,0x50,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
587 {0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,EOT
}},
589 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf2,
590 0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,
592 {0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x00,0x00,0x00,
593 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
594 0x00,0x80,0x10,EOT
}},
595 {0x10, "Real-time clock (RTC)",
596 {0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,0xf0,
597 0xf1,0xf2,0xf3,0xf6,0xf7,EOT
},
598 {0x00,0x00,0x70,0x00,0x72,0x08,0x00,0x04,0x04,0x00,
599 0x00,0x00,0x00,MISC
,0x00,EOT
}},
600 {0x14, "Health monitoring and control (HMC)",
601 {0x30,0x50,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,
603 {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x04,
611 void probe_idregs_nsc(uint16_t port
)
616 probing_for("NSC", "", port
);
618 OUTB(CHIP_ID_REG
, port
);
619 if (INB(port
) != CHIP_ID_REG
) {
621 printf(NOTFOUND
"port=0x%02x, port+1=0x%02x\n",
622 INB(port
), INB(port
+ 1));
627 OUTB(CHIP_REV_REG
, port
);
628 if (INB(port
) != CHIP_REV_REG
) {
629 printf("Warning: Can't get chip revision. Setting to 0xff.\n");
636 * NSC PC8374L has ID 0xf1, rev 0b000xxxxx according to datasheet.
637 * Winbond WPCD376I has ID 0xf1, rev 0b100xxxxx according to datasheet.
640 magic
= ((rev
& 0xe0) << 4) | id
;
644 if (superio_unknown(reg_table
, magic
)) {
646 printf(NOTFOUND
"sid=0x%02x, srid=0x%02x\n", id
, rev
);
650 printf("Found %s %s (sid=0x%02x, srid=0x%02x) at 0x%x\n",
651 magic
== 0x8f1 ? "Winbond" : "NSC",
652 get_superio_name(reg_table
, magic
), id
, rev
, port
);
655 dump_superio(magic
== 0x8f1 ? "Winbond" : "NSC",
656 reg_table
, port
, magic
, LDN_SEL
);
659 void print_nsc_chips(void)
661 print_vendor_chips("NSC", reg_table
);