1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #include "superiotool.h"
5 #define CHIP_ID_REG 0x20 /* Super I/O ID (SID) / family */
6 #define CHIP_REV_REG 0x27 /* Super I/O revision ID (SRID) */
8 static const struct superio_registers reg_table
[] = {
11 {0x20,0x21,0x22,0x23,0x24,0x27,EOT
},
12 {0xcf,MISC
,MISC
,0x00,0x00,NANA
,EOT
}},
14 {0x30,0x31,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,
16 {MISC
,0x00,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04,
19 {0x30,0x70,0x71,0x74,0x75,EOT
},
20 {0x00,0x0c,0x02,0x04,0x04,EOT
}},
21 {0x2, "Real-time clock (RTC), advanced power control (APC)",
22 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,EOT
},
23 {MISC
,0x00,0x00,0x70,0x08,0x00,0x04,0x04,EOT
}},
25 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,
27 {MISC
,0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x20,0x00,
29 {0x4, "Parallel port",
30 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
31 {0x00,0x00,0x02,0x78,0x07,0x00,0x04,0x04,0xf2,EOT
}},
33 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
34 {0x00,0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT
}},
36 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
37 {0x00,0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT
}},
39 {0x30,0x31,0x60,0x61,0x74,0x75,EOT
},
40 {0x00,0x00,0x00,0x00,0x04,0x04,EOT
}},
41 {0x8, "Power management",
42 {0x30,0x31,0x60,0x61,0x74,0x75,EOT
},
43 {0x00,0x00,0x00,0x00,0x04,0x04,EOT
}},
47 {0x20,0x21,0x22,0x23,0x24,0x25,EOT
},
48 {0xd0,MISC
,MISC
,0x00,0x00,0x00,EOT
}},
50 {0x30,0x31,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,
52 {MISC
,0x00,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04,
55 {0x30,0x70,0x71,0x74,0x75,EOT
},
56 {0x00,0x0c,0x02,0x04,0x04,EOT
}},
57 {0x2, "Real-time clock (RTC), advanced power control (APC)",
58 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,EOT
},
59 {MISC
,0x00,0x00,0x70,0x08,0x00,0x04,0x04,EOT
}},
61 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,
63 {MISC
,0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x20,0x00,
65 {0x4, "Parallel port",
66 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
67 {0x00,0x00,0x02,0x78,0x07,0x00,0x04,0x04,0xf2,EOT
}},
69 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
70 {0x00,0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT
}},
72 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
73 {0x00,0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT
}},
75 {0x30,0x31,0x60,0x61,0x74,0x75,EOT
},
76 {0x00,0x00,0x00,0x00,0x04,0x04,EOT
}},
77 {0x8, "Power management",
78 {0x30,0x31,0x60,0x61,0x74,0x75,EOT
},
79 {0x00,0x00,0x00,0x00,0x04,0x04,EOT
}},
83 {0x20,0x21,0x22,0x23,0x24,0x25,0x27,EOT
},
84 {0xdf,MISC
,MISC
,0x00,0x00,0x00,NANA
,EOT
}},
86 {0x30,0x31,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,
88 {MISC
,0x00,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04,
91 {0x30,0x70,0x71,0x74,0x75,EOT
},
92 {0x00,0x0c,0x02,0x04,0x04,EOT
}},
93 {0x2, "Real-time clock (RTC), advanced power control (APC)",
94 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,EOT
},
95 {MISC
,0x00,0x00,0x70,0x08,0x00,0x04,0x04,EOT
}},
97 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,
99 {MISC
,0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x20,0x00,
101 {0x4, "Parallel port",
102 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
103 {0x00,0x00,0x02,0x78,0x07,0x00,0x04,0x04,0xf2,EOT
}},
105 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
106 {0x00,0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT
}},
108 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
109 {0x00,0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT
}},
111 {0x30,0x31,0x60,0x61,0x74,0x75,EOT
},
112 {0x00,0x00,0x00,0x00,0x04,0x04,EOT
}},
113 {0x8, "Power management",
114 {0x30,0x31,0x60,0x61,0x74,0x75,EOT
},
115 {0x00,0x00,0x00,0x00,0x04,0x04,EOT
}},
119 {0x20,0x21,0x22,0x27,0x2e,EOT
},
120 {0xe0,MISC
,0x00,NANA
,RSVD
,EOT
}},
122 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,
124 {MISC
,0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x20,0x00,
126 {0x1, "Parallel port",
127 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
128 {0x00,0x00,0x02,0x78,0x07,0x00,0x04,0x04,0xf2,EOT
}},
130 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
131 {0x00,0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT
}},
133 {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
134 {0x00,0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT
}},
135 {0x4, "Power management",
136 {0x30,0x31,0x60,0x61,0x74,0x75,EOT
},
137 {0x00,0x00,0x00,0x00,0x04,0x04,EOT
}},
139 {0x30,0x70,0x71,0x74,0x75,EOT
},
140 {0x00,0x0c,0x02,0x04,0x04,EOT
}},
142 {0x30,0x31,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,
144 {0x01,0x00,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04,
149 {0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x2a,
150 0x2b,0x2c,0x2d,0x2e,EOT
},
151 {0xe1,0x11,0x00,0x03,0x00,0x00,0x00,NANA
,0x00,MISC
,
152 0x00,0x00,0x00,RSVD
,EOT
}},
154 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,EOT
},
155 {0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x24,0x00,EOT
}},
156 {0x1, "Parallel port",
157 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
158 {0x00,0x02,0x78,0x07,0x02,0x04,0x04,0xf2,EOT
}},
160 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
161 {0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT
}},
163 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
164 {0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT
}},
165 {0x4, "System wake-up control (SWC)",
166 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,EOT
},
167 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,EOT
}},
169 {0x30,0x70,0x71,0x74,0x75,EOT
},
170 {0x00,0x0c,0x02,0x04,0x04,EOT
}},
172 {0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,0xf0,
174 {0x01,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04,0x40,
177 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf2,
179 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,0x00,0x00,
181 {0x8, "ACCESS.bus (ACB)",
182 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
183 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,EOT
}},
184 {0x9, "Fan speed control and monitor (FSCM)",
185 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
186 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,EOT
}},
187 {0xa, "Watchdog timer",
188 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
189 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x02,EOT
}},
193 {0x20,0x21,0x22,0x23,0x24,0x27,0x2e,EOT
},
194 {0xe2,0x11,0xa1,0x00,MISC
,NANA
,RSVD
,EOT
}},
196 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,EOT
},
197 {0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x24,0x00,EOT
}},
198 {0x1, "Parallel port",
199 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
200 {0x00,0x02,0x78,0x07,0x02,0x04,0x04,0xf2,EOT
}},
202 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
203 {0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT
}},
205 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
206 {0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT
}},
207 {0x4, "System wake-up control (SWC)",
208 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,EOT
},
209 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,EOT
}},
211 {0x30,0x70,0x71,0x74,0x75,EOT
},
212 {0x00,0x0c,0x02,0x04,0x04,EOT
}},
214 {0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,
216 {0x01,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04,
219 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,EOT
},
220 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,0x00,EOT
}},
221 {0x8, "Fan speed control",
222 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
223 {0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x00,EOT
}},
227 {0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x2a,
228 0x2b,0x2c,0x2d,0x2e,EOT
},
229 {0xe4,0x11,0x00,0x03,0x00,0x00,0x00,NANA
,0x00,MISC
,
230 0x00,0x00,NANA
,RSVD
,EOT
}},
232 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,EOT
},
233 {0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x24,0x00,EOT
}},
234 {0x1, "Parallel port",
235 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
236 {0x00,0x02,0x78,0x07,0x02,0x04,0x04,0xf2,EOT
}},
238 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
239 {0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT
}},
241 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
242 {0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT
}},
243 {0x4, "System wake-up control (SWC)",
244 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,EOT
},
245 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,EOT
}},
247 {0x30,0x70,0x71,0x74,0x75,EOT
},
248 {0x00,0x0c,0x02,0x04,0x04,EOT
}},
250 {0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,0xf0,
252 {0x01,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04,0x40,
255 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf2,
257 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,0x00,0x00,
259 {0x8, "ACCESS.bus (ACB)",
260 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
261 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,EOT
}},
262 {0x9, "Fan speed control and monitor (FSCM)",
263 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,EOT
},
264 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,0x00,EOT
}},
265 {0xa, "Watchdog timer",
266 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
267 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x02,EOT
}},
269 {0xe5, "PC87365", { /* SRID[7..0] == chip revision */
275 {0x20,0x21,0x22,0x23,0x24,0x25,0x27,0x28,0x2a,0x2b,
277 {0xe9,0x11,0x00,0x03,0x00,0x00,NANA
,0x00,MISC
,MISC
,
278 0x00,MISC
,RSVD
,EOT
}},
280 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,EOT
},
281 {0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x24,0x00,EOT
}},
282 {0x1, "Parallel port",
283 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
284 {0x00,0x02,0x78,0x07,0x02,0x04,0x04,0xf2,EOT
}},
286 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
287 {0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT
}},
289 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
290 {0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT
}},
291 {0x4, "System wake-up control (SWC)",
292 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,EOT
},
293 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,EOT
}},
295 {0x30,0x70,0x71,0x74,0x75,EOT
},
296 {0x00,0x0c,0x02,0x04,0x04,EOT
}},
298 {0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,0xf0,
300 {0x01,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04,0x40,
303 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf2,
305 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,0x00,0x00,
307 {0x8, "ACCESS.bus (ACB)",
308 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
309 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,EOT
}},
310 {0x9, "Fan speed control and monitor (FSCM)",
311 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf2,
313 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,0x00,0x00,
315 {0xa, "Watchdog timer (WDT)",
316 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
317 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x02,EOT
}},
319 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
320 {0x00,0x02,0x00,0x00,0x03,0x04,0x04,0x00,EOT
}},
322 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
323 {0x00,0x03,0x30,0x00,0x03,0x04,0x04,0x00,EOT
}},
324 {0xd, "Voltage level monitor (VLM)",
325 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,EOT
},
326 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,EOT
}},
327 {0xe, "Temperature sensor (TMS)",
328 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,EOT
},
329 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,EOT
}},
333 {0x20,0x21,0x22,0x26,0x27,0x29,EOT
},
334 {0xf4,0x11,0x63,0x00,0x00,0x00,EOT
}},
336 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
337 {0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT
}},
339 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
340 {0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT
}},
342 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,
344 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,MISC
,
346 {0x19, "Docking LPC switch",
347 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,EOT
},
348 {0x00,0x00,0x00,0x00,0x00,0x04,0x04,EOT
}},
350 /* SID[7..0]: family, SRID[7..5]: ID, SRID[4..0]: rev. */
353 {0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29,
354 0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT
},
355 {0xea,0x11,MISC
,MISC
,MISC
,0x80,0x00,NANA
,0x00,MISC
,
356 0x37,RSVD
,RSVD
,RSVD
,RSVD
,RSVD
,EOT
}},
358 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,EOT
},
359 {0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x24,0x00,EOT
}},
360 {0x1, "Parallel port",
361 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
362 {0x00,0x02,0x78,0x07,0x02,0x04,0x04,0xf2,EOT
}},
364 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
365 {0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT
}},
367 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
368 {0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT
}},
370 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf2,
372 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,0x44,0x01,
374 {0xa, "Watchdog timer (WDT)",
375 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
376 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x02,EOT
}},
378 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
379 {0x00,0x02,0x01,0x00,0x03,0x04,0x04,0x00,EOT
}},
381 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
382 {0x00,0x03,0x30,0x00,0x03,0x04,0x04,0x00,EOT
}},
384 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf2,
385 0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,0xf9,EOT
},
386 {0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x00,0x00,0x00,
387 0x00,0x00,0x00,0x00,0x00,0x00,0x00,EOT
}},
390 /* SRID[7..5]: 000=PC87591E, 001=PC87591S, 100=PC87591L */
393 /* SRID[7..5] is marked as "not applicable for the PC8741x". */
395 {0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29,
396 0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT
},
397 {0xee,0x11,0x20,MISC
,MISC
,MISC
,0x00,NANA
,0x00,MISC
,
398 0x00,RSVD
,RSVD
,RSVD
,RSVD
,RSVD
,EOT
}},
400 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,EOT
},
401 {0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x24,0x00,EOT
}},
402 {0x1, "Parallel port",
403 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
404 {0x00,0x02,0x78,0x07,0x02,0x04,0x04,0xf2,EOT
}},
406 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
407 {0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT
}},
409 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
410 {0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT
}},
411 {0x4, "System wake-up control (SWC)",
412 {0x30,0x60,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x70,
414 {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
415 0x03,0x04,0x04,EOT
}},
417 {0x30,0x70,0x71,0x74,0x75,EOT
},
418 {0x00,0x0c,0x02,0x04,0x04,EOT
}},
420 {0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,0xf0,
422 {0x00,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04,0x40,
425 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf2,
427 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,MISC
,0x01,
430 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf2,
431 0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,
433 {0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x00,0x00,0x00,
434 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
436 {0x10, "Real-time clock (RTC)",
437 {0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,0xf0,
439 {0x00,0x00,0x70,0x00,0x72,0x08,0x00,0x04,0x04,0x00,
440 0x00,0x00,0x00,EOT
}},
446 {0x10,0x12,0x13,0x20,0x21,0x22,0x23,0x24,0x25,0x26,
447 0x27,0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT
},
448 {0x00,0x00,0x00,0xf1,0x11,0x00,0x00,0x00,RSVD
,0x00,
449 MISC
,RSVD
,0x01,0x2e,RSVD
,RSVD
,RSVD
,RSVD
,RSVD
,EOT
}},
451 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf8,
453 {0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x24,0x00,0x24,
455 {0x1, "Parallel port",
456 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf8,EOT
},
457 {0x00,0x02,0x78,0x07,0x02,0x04,0x04,0xf2,0x07,EOT
}},
459 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
460 {0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT
}},
462 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
463 {0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT
}},
464 {0x4, "System wake-up control (SWC)",
465 {0x30,0x50,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,
467 {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x04,
470 {0x30,0x70,0x71,0x74,0x75,EOT
},
471 {0x00,0x0c,0x02,0x04,0x04,EOT
}},
473 {0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,0xf0,
475 {0x00,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04,0x40,
478 {0x30,0x50,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,
480 {0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,MISC
,
481 0x00,MISC
,0x01,EOT
}},
482 {0x8, "Health management",
483 {0x30,0x50,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
484 {0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x05,EOT
}},
486 {0x8f1, "WPCD376I", {
487 /* This is basically a clone/revision of NSC PC8374L. */
489 {0x10,0x12,0x13,0x20,0x21,0x22,0x23,0x24,0x25,0x26,
490 0x27,0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT
},
491 {0x00,0x00,0x00,0xf1,0x11,0x00,0x00,0x00,0x06,0x00,
492 MISC
,RSVD
,0x01,0x2e,RSVD
,RSVD
,RSVD
,RSVD
,RSVD
,EOT
}},
494 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf8,
496 {0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x24,0x00,0x24,
498 {0x1, "Parallel port",
499 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf8,EOT
},
500 {0x00,0x02,0x78,0x07,0x02,0x04,0x04,0xf2,0x07,EOT
}},
502 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
503 {0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT
}},
504 {0x4, "System wake-up control (SWC)",
505 {0x30,0x50,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,
507 {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x04,
510 {0x30,0x70,0x71,0x74,0x75,EOT
},
511 {0x00,0x0c,0x02,0x04,0x04,EOT
}},
513 {0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,0xf0,
515 {0x00,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04,0x40,
518 {0x30,0x50,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,
520 {0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,MISC
,
521 0x00,MISC
,0x01,EOT
}},
523 {0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,EOT
},
524 {0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x04,EOT
}},
526 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
527 {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x02,EOT
}},
530 /* SRID[7..5] is marked as "not applicable for the PC87427". */
532 {0x10,0x12,0x13,0x1d,0x20,0x21,0x22,0x23,0x24,0x25,
533 0x26,0x27,0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,
535 {0x00,0x00,0x00,0x00,0xf2,0x11,0xa0,MISC
,MISC
,MISC
,
536 0x02,NANA
,0x00,MISC
,0x00,0x00,MISC
,MISC
,RSVD
,RSVD
,
539 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,EOT
},
540 {0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x24,0x00,EOT
}},
542 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
543 {0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT
}},
545 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
546 {0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT
}},
547 {0x4, "System wake-up control (SWC)",
548 {0x30,0x60,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x70,
550 {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
551 0x03,0x04,0x04,EOT
}},
553 {0x30,0x70,0x71,0x74,0x75,EOT
},
554 {0x00,0x0c,0x02,0x04,0x04,EOT
}},
556 {0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,0xf0,
558 {0x00,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04,0x40,
561 {0x30,0x50,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,
562 0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,EOT
},
563 {0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,MISC
,
564 0x01,0x00,0x00,0x00,0x00,0x00,0x00,EOT
}},
565 {0x9, "Fan Monitor and Control (FMC)",
566 {0x30,0x50,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,
568 {0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x19,0x06,
570 {0xa, "Watchdog timer (WDT)",
571 {0x30,0x50,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT
},
572 {0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,EOT
}},
574 {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf2,
575 0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,
577 {0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x00,0x00,0x00,
578 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
579 0x00,0x80,0x10,EOT
}},
580 {0x10, "Real-time clock (RTC)",
581 {0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,0xf0,
582 0xf1,0xf2,0xf3,0xf6,0xf7,EOT
},
583 {0x00,0x00,0x70,0x00,0x72,0x08,0x00,0x04,0x04,0x00,
584 0x00,0x00,0x00,MISC
,0x00,EOT
}},
585 {0x14, "Health monitoring and control (HMC)",
586 {0x30,0x50,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,
588 {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x04,
596 void probe_idregs_nsc(uint16_t port
)
601 probing_for("NSC", "", port
);
603 OUTB(CHIP_ID_REG
, port
);
604 if (INB(port
) != CHIP_ID_REG
) {
606 printf(NOTFOUND
"port=0x%02x, port+1=0x%02x\n",
607 INB(port
), INB(port
+ 1));
612 OUTB(CHIP_REV_REG
, port
);
613 if (INB(port
) != CHIP_REV_REG
) {
614 printf("Warning: Can't get chip revision. Setting to 0xff.\n");
621 * NSC PC8374L has ID 0xf1, rev 0b000xxxxx according to datasheet.
622 * Winbond WPCD376I has ID 0xf1, rev 0b100xxxxx according to datasheet.
625 magic
= ((rev
& 0xe0) << 4) | id
;
629 if (superio_unknown(reg_table
, magic
)) {
631 printf(NOTFOUND
"sid=0x%02x, srid=0x%02x\n", id
, rev
);
635 printf("Found %s %s (sid=0x%02x, srid=0x%02x) at 0x%x\n",
636 magic
== 0x8f1 ? "Winbond" : "NSC",
637 get_superio_name(reg_table
, magic
), id
, rev
, port
);
640 dump_superio(magic
== 0x8f1 ? "Winbond" : "NSC",
641 reg_table
, port
, magic
, LDN_SEL
);
644 void print_nsc_chips(void)
646 print_vendor_chips("NSC", reg_table
);