tree: drop last paragraph of GPL copyright header
[coreboot.git] / util / superiotool / smsc.c
blob15ba131041989c016b59deca5b83cf966c9496c6
1 /*
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. */
28 {0x02, "FDC37C932", {
29 {NOLDN, NULL,
30 {0x02,0x03,0x20,0x21,0x22,0x23,0x24,0x2d,0x2e,
31 0x2f,EOT},
32 {0x00,0x03,0x02,0x01,0x00,0x00,0x04,NANA,NANA,
33 0x00,EOT}},
34 {0x0, "Floppy",
35 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,
36 0xf5,EOT},
37 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,
38 0x00,EOT}},
39 {0x1, "IDE 1",
40 {0x30,0x60,0x61,0x62,0x63,0x70,EOT},
41 {0x00,0x01,0xf0,0x03,0xf6,0x0e,EOT}},
42 {0x2, "IDE 2",
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}},
48 {0x4, "COM1",
49 {0x30,0x60,0x61,0x70,0xf0,EOT},
50 {0x00,0x00,0x00,0x00,0x00,EOT}},
51 {0x5, "COM2",
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}},
57 {0x7, "Keyboard",
58 {0x30,0x70,0x72,EOT},
59 {0x00,0x00,0x00,EOT}},
60 {0x8, "Aux I/O",
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}},
67 {EOT}}},
68 {0x03, "FDC37C93xFR", {
69 /* FIXME: There's another 0x03 but found on port 0x0d/0x0e! */
70 {EOT}}},
71 {0x0a, "FDC37N971", {
72 {NOLDN, NULL,
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}},
77 {0x0, "Floppy",
78 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf3,0xf4,
79 0xf5,EOT},
80 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,RSVD,0x00,
81 0x00,EOT}},
82 {0x1, "Power management (PM1)",
83 {0x30,0x60,0x61,EOT},
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}},
88 {0x4, "COM1",
89 {0x30,0x60,0x61,0x70,0xf0,EOT},
90 {0x00,0x00,0x00,0x00,0x00,EOT}},
91 {0x5, "COM2",
92 {0x30,0x60,0x61,0x62,0x63,0x70,0x74,0xf0,0xf1,
93 0xf2,0xf7,0xf8,EOT},
94 {0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x02,
95 0x03,0x00,0x00,EOT}},
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}},
99 {0x7, "Keyboard",
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}},
105 {0x9, "Mailbox",
106 {0x30,0x60,0x61,EOT},
107 {0x00,0x00,0x00,EOT}},
108 {EOT}}},
109 {0x0b, "FDC37N972", {
110 {NOLDN, NULL,
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}},
115 {0x0, "Floppy",
116 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf3,0xf4,
117 0xf5,EOT},
118 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,RSVD,0x00,
119 0x00,EOT}},
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}},
126 {0x4, "COM1",
127 {0x30,0x60,0x61,0x70,0xf0,EOT},
128 {0x00,0x00,0x00,0x00,0x00,EOT}},
129 {0x5, "COM2",
130 {0x30,0x60,0x61,0x62,0x63,0x70,0x74,0xf0,0xf1,
131 0xf2,0xf7,0xf8,EOT},
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}},
137 {0x7, "Keyboard",
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}},
143 {0x9, "Mailbox",
144 {0x30,0x60,0x61,EOT},
145 {0x00,0x00,0x00,EOT}},
146 {EOT}}},
147 {0x0e, "LPC47N252", { /* From sensors-detect */
148 {NOLDN, NULL,
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}},
153 {0x0, "Floppy",
154 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf3,0xf4,
155 0xf5,EOT},
156 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,RSVD,0x00,
157 0x00,EOT}},
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}},
164 {0x4, "COM1",
165 {0x30,0x60,0x61,0x70,0xf0,EOT},
166 {0x00,0x00,0x00,0x00,0x00,EOT}},
167 {0x5, "COM2 / IRCC",
168 {0x30,0x60,0x61,0x62,0x63,0x70,0x74,0xf0,0xf1,
169 0xf2,0xf7,0xf8,EOT},
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}},
175 {0x7, "Keyboard",
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}},
187 {EOT}}},
188 {0x14, "LPC47M172", {
189 {EOT}}},
190 {0x30, "FDC37C93xAPM", {
191 {EOT}}},
192 {0x40, "FDC37C67x", { /* E.g. FDC37C672. Chiprev: 0x01 */
193 {NOLDN, NULL,
194 {0x03,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x2b,0x2c,
195 0x2d,0x2e,0x2f,EOT},
196 {0x03,0x40,NANA,0x00,0x00,0x04,MISC,MISC,NANA,NANA,
197 NANA,NANA,NANA,EOT}},
198 {0x0, "Floppy",
199 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,0xf5,
200 EOT},
201 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,0x00,
202 EOT}},
203 {0x3, "Parallel port",
204 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
205 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
206 {0x4, "COM1",
207 {0x30,0x60,0x61,0x70,0xf0,EOT},
208 {0x00,0x00,0x00,0x00,0x00,EOT}},
209 {0x5, "COM2",
210 {0x30,0x60,0x61,0x62,0x63,0x70,0x74,0xf0,0xf1,0xf2,
211 EOT},
212 {0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x02,0x03,
213 EOT}},
214 {0x7, "Keyboard",
215 {0x30,0x70,0x72,0xf0,EOT},
216 {0x00,0x00,0x00,0x00,EOT}},
217 {0x8, "Aux I/O",
218 {0x30,0xb4,0xb5,0xb6,0xb7,0xc0,0xc1,0xc2,0xc3,0xc4,
219 0xf1,0xf2,0xf3,0xf4,0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,
220 EOT},
221 {0x00,NANA,NANA,NANA,NANA,0x06,0x03,NANA,NANA,NANA,
222 0x00,0x00,0x00,MISC,RSVD,RSVD,RSVD,RSVD,RSVD,RSVD,
223 EOT}},
224 {EOT}}},
225 {0x42, "FDC37B80x/FDC37M707", {
226 {EOT}}},
227 {0x09, "FDC37N958FR", { /* Found in e.g. Dell Latitude CPi A366XT. */
228 {NOLDN, NULL,
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}},
233 {0x0, "Floppy",
234 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,0xf5,
235 EOT},
236 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,0x00,
237 EOT}},
238 {0x3, "Parallel port",
239 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
240 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
241 {0x4, "COM1",
242 {0x30,0x60,0x61,0x70,0xf0,EOT},
243 {0x00,0x00,0x00,0x00,0x00,EOT}},
244 {0x5, "COM2",
245 {0x30,0x60,0x61,0x62,0x63,0x70,0x74,0xf0,0xf1,0xf2,
246 EOT},
247 {NANA,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x02,0x03,
248 EOT}},
249 {0x6, "Real-time clock (RTC)",
250 {0x30,0x62,0x63,0x70,0xf0,EOT},
251 {0x00,0x00,0x70,0x00,0x00,EOT}},
252 {0x7, "Keyboard",
253 {0x30,0x70,0x72,0xf0,EOT},
254 {0x00,0x00,0x00,0x00,EOT}},
255 {0x8, "Aux I/O",
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,
260 0xf9,0xfa,EOT},
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,
265 NANA,NANA,EOT}},
266 {0xa, "ACPI",
267 {0x30,0x60,0x61,0x70,0xf0,EOT},
268 {0x00,0x00,0x00,NANA,NANA,EOT}},
269 {EOT}}},
270 {0x43, "FDC37B77x", {
271 {EOT}}},
272 {0x44, "FDC37B78x", {
273 {NOLDN, NULL,
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}},
278 {0x0, "Floppy",
279 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,0xf5,
280 EOT},
281 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,0x00,
282 EOT}},
283 {0x3, "Parallel port",
284 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
285 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
286 {0x4, "COM1",
287 {0x30,0x60,0x61,0x70,0xf0,EOT},
288 {0x00,0x00,0x00,0x00,0x00,EOT}},
289 {0x5, "COM2",
290 {0x30,0x60,0x61,0x62,0x63,0x70,0x74,0xf0,0xf1,0xf2,
291 EOT},
292 {NANA,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x02,0x03,
293 EOT}},
294 {0x6, "Real-time clock (RTC)",
295 {0x30,0x62,0x63,0x70,0xf0,EOT},
296 {0x00,0x00,0x70,0x00,0x00,EOT}},
297 {0x7, "Keyboard",
298 {0x30,0x70,0x72,0xf0,EOT},
299 {0x00,0x00,0x00,0x00,EOT}},
300 {0x8, "Aux I/O",
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,
305 0xf9,0xfa,EOT},
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,
310 NANA,NANA,EOT}},
311 {0xa, "ACPI",
312 {0x30,0x60,0x61,0x70,0xf0,EOT},
313 {0x00,0x00,0x00,NANA,NANA,EOT}},
314 {EOT}}},
315 {0x46, "FDC37M602", { /* Found in Biostar M6TLD. */
316 {EOT}}},
317 {0x47, "FDC37M60x", { /* TODO: Not yet in sensors-detect */
318 {EOT}}},
319 {0x4c, "FDC37B72x", {
320 {NOLDN, NULL,
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}},
325 {0x0, "Floppy",
326 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,0xf5,
327 EOT},
328 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,0x00,
329 EOT}},
330 {0x3, "Parallel port",
331 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
332 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
333 {0x4, "COM1",
334 {0x30,0x60,0x61,0x70,0xf0,EOT},
335 {0x00,0x00,0x00,0x00,0x00,EOT}},
336 {0x5, "COM2",
337 {0x30,0x60,0x61,0x70,0xf0,0xf1,0xf2,EOT},
338 {NANA,0x00,0x00,0x00,0x00,0x02,0x03,EOT}},
339 {0x7, "Keyboard",
340 {0x30,0x70,0x72,0xf0,EOT},
341 {0x00,0x00,0x00,0x00,EOT}},
342 {0x8, "Aux I/O",
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,
347 0xf9,0xfa,EOT},
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,
352 NANA,NANA,EOT}},
353 {0xa, "ACPI",
354 {0x30,0x60,0x61,0x70,0xf0,EOT},
355 {0x00,0x00,0x00,NANA,NANA,EOT}},
356 {EOT}}},
357 #if 0
358 /* FIXME: FDC37M81x and MEC1308 have conflicting device IDs */
359 {0x4d, "FDC37M81x", {
360 {NOLDN, NULL,
361 {0x03,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x2b,0x2c,
362 0x2d,0x2e,0x2f,EOT},
363 {0x03,0x4d,NANA,0x00,0x00,0x04,MISC,MISC,NANA,NANA,
364 NANA,NANA,NANA,EOT}},
365 {0x0, "Floppy",
366 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,
367 0xf5,EOT},
368 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,
369 0x00,EOT}},
370 {0x3, "Parallel port",
371 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
372 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
373 {0x4, "COM1",
374 {0x30,0x60,0x61,0x70,0xf0,EOT},
375 {0x00,0x00,0x00,0x00,0x00,EOT}},
376 {0x5, "COM2",
377 {0x30,0x60,0x61,0x62,0x63,0x70,0xf0,0xf1,0xf2,EOT},
378 {0x00,0x00,0x00,RSVD,RSVD,0x00,0x00,0x02,0x03,EOT}},
379 {0x7, "Keyboard",
380 {0x30,0x70,0x72,0xf0,EOT},
381 {0x00,0x00,0x00,0x00,EOT}},
382 {0x8, "Aux I/O",
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}},
390 {EOT}}},
391 #endif
392 {0x4d, "MEC1308", {
393 {NOLDN, NULL,
394 {0x02,0x03,0x07,0x17,0x20,0x21,0x22,0x23,0x24,0x25,
395 0x26,0x27,0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,
396 EOT},
397 {0x00,RSVD,0x00,RSVD,0x4d,0x00,0x00,0x00,0x04,0x04,
398 MISC,MISC,MISC,MISC,MISC,MISC,MISC,MISC,MISC,MISC,
399 EOT}},
400 {0x1, "PM1",
401 {0x30,0x60,0x61,EOT},
402 {0x00,0x00,0x00,EOT}},
403 {0x4, "COM1",
404 {0x30,0x60,0x61,0x70,EOT},
405 {0x00,0x00,0x00,0x00,EOT}},
406 {0x7, "KBD",
407 {0x30,0x70,0x72,0xf0,EOT},
408 {0x00,0x00,0x00,0x00,EOT}},
409 {0x8, "EC/ACPI",
410 {0x30,0x60,0x61,EOT},
411 {0x00,0x00,0x62,EOT}},
412 {0x9, "Mailbox",
413 {0x30,0x60,0x61,EOT},
414 {0x00,0x00,0x00,EOT}},
415 {0x10, "CIRV",
416 {0x30,0x60,0x61,0x70,0xf0,0xf1,0xf3,0xf4,EOT},
417 {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,EOT}},
418 {EOT}}},
419 {0x51, "LPC47B27x", {
420 {NOLDN, NULL,
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}},
425 {0x0, "Floppy",
426 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,0xf5,
427 EOT},
428 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,0x00,
429 EOT}},
430 {0x3, "Parallel port",
431 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
432 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
433 {0x4, "COM1",
434 {0x30,0x60,0x61,0x70,0xf0,EOT},
435 {0x00,0x00,0x00,0x00,0x00,EOT}},
436 {0x5, "COM2",
437 {0x30,0x60,0x61,0x62,0x63,0x70,0x74,0xf0,0xf1,0xf2,
438 EOT},
439 {NANA,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x02,0x03,
440 EOT}},
441 {0x7, "Keyboard",
442 {0x30,0x70,0x72,0xf0,EOT},
443 {0x00,0x00,0x00,0x00,EOT}},
444 {0x9, "Game port",
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}},
453 {EOT}}},
454 {0x52, "LPC47B37x", {
455 {EOT}}},
456 {0x54, "LPC47U33x", {
457 {NOLDN, NULL,
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}},
462 {0x0, "Floppy",
463 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,0xf5,
464 EOT},
465 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,0x00,
466 EOT}},
467 {0x3, "Parallel port",
468 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
469 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
470 {0x4, "COM1",
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}},
476 {0x7, "Keyboard",
477 {0x30,0x70,0x72,0xf0,EOT},
478 {0x00,0x00,0x00,0x00,EOT}},
479 {0x9, "Game port",
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}},
485 {0xb, "SMBus",
486 {0x30,0x60,0x61,0x70,EOT},
487 {0x00,0x00,0x00,0x00,EOT}},
488 {EOT}}},
489 {0x56, "LPC47B34x", {
490 {EOT}}},
491 {0x57, "LPC47S42x", {
492 {EOT}}},
493 {0x59, "LPC47M10x/112/13x", {
494 {NOLDN, NULL,
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}},
499 {0x0, "Floppy",
500 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,
501 0xf5,EOT},
502 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,
503 0x00,EOT}},
504 {0x3, "Parallel port",
505 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
506 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
507 {0x4, "COM1",
508 {0x30,0x60,0x61,0x70,0xf0,EOT},
509 {0x00,0x00,0x00,0x00,0x00,EOT}},
510 {0x5, "COM2",
511 {0x30,0x60,0x61,0x62,0x63,0x70,0x74,0xf0,0xf1,
512 0xf2,EOT},
513 {NANA,0x00,0x00,RSVD,RSVD,0x00,RSVD,0x00,0x02,
514 0x03,EOT}},
515 {0x7, "Keyboard",
516 {0x30,0x70,0x72,0xf0,EOT},
517 {0x00,0x00,0x00,0x00,EOT}},
518 {0x9, "Game port",
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}},
524 {0xb, "MPU-401",
525 {0x30,0x60,0x61,0x70,EOT},
526 {0x00,0x03,0x30,0x05,EOT}},
527 {EOT}}},
528 {0x5d, "LPC47B357", { /* From sensors-detect (no datasheet) */
529 {EOT}}},
530 {0x5f, "LPC47M14x", {
531 {EOT}}},
532 {0x60, "LPC47M15x/192/997", {
533 {NOLDN, NULL,
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}},
538 {0x0, "Floppy",
539 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,0xf5,
540 EOT},
541 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,0x00,
542 EOT}},
543 {0x3, "Parallel port",
544 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
545 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
546 {0x4, "COM1",
547 {0x30,0x60,0x61,0x70,0xf0,EOT},
548 {0x00,0x00,0x00,0x00,0x00,EOT}},
549 {0x5, "COM2 / IR",
550 {0x30,0x60,0x61,0x70,0xf0,0xf1,0xf2,EOT},
551 {NANA,0x00,0x00,0x00,0x00,0x02,0x03,EOT}},
552 {0x7, "Keyboard",
553 {0x30,0x70,0x72,0xf0,EOT},
554 {0x00,0x00,0x00,0x00,EOT}},
555 {0x9, "Game port",
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}},
561 {0xb, "MPU-401",
562 {0x30,0x60,0x61,0x70,EOT},
563 {0x00,0x03,0x30,0x05,EOT}},
564 {EOT}}},
565 {0x62, "LPC47S45x", {
566 {EOT}}},
567 {0x67, "EMC2700LPC", { /* From sensors-detect */
568 {EOT}}},
569 {0x6b, "LPC47M292", { /* From sensors-detect */
570 {EOT}}},
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. */
575 {EOT}}},
576 {0x6f, "LPC47B397", {
577 {EOT}}},
578 {0x74, "LPC47M182", { /* Only for LD_NUM = 0 */
579 {NOLDN, NULL,
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}},
584 {0x0, "Floppy",
585 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,
586 0xf8,EOT},
587 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,
588 0x24,EOT}},
589 {0x1, "Parallel port",
590 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf8,EOT},
591 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,0x08,EOT}},
592 {0x2, "COM2",
593 {0x30,0x60,0x61,0x70,0xf0,0xf1,0xf2,EOT},
594 {0x00,0x00,0x00,0x00,0x00,0x02,0x03,EOT}},
595 {0x3, "COM1",
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}},
601 {0x5, "Mouse",
602 {0x30,0x70,EOT},
603 {0x00,0x00,EOT}},
604 {0x6, "Keyboard",
605 {0x30,0x70,0xf0,EOT},
606 {0x00,0x00,0x00,EOT}},
607 {0x7, "GPIO",
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}},
613 {EOT}}},
614 {0x76, "LPC47M584", { /* From sensors-detect (no datasheet) */
615 {EOT}}},
616 {0x77, "A8000", { /* ASUS A8000, a rebranded DME1737(?) */
617 {NOLDN, NULL,
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}},
622 {0x0, "Floppy",
623 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,
624 0xf5,EOT},
625 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,
626 0x00,EOT}},
627 {0x3, "Parallel port",
628 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
629 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
630 {0x4, "COM1",
631 {0x30,0x60,0x61,0x70,0xf0,EOT},
632 {0x00,0x00,0x00,0x00,0x00,EOT}},
633 {0x5, "COM2",
634 {0x30,0x60,0x61,0x70,0xf0,0xf1,0xf2,EOT},
635 {0x00,0x00,0x00,0x00,0x00,0x02,0x03,EOT}},
636 {0x7, "Keyboard",
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}},
642 {EOT}}},
643 {0x78, "DME1737", {
644 {NOLDN, NULL,
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}},
649 {0x0, "Floppy",
650 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,
651 0xf5,EOT},
652 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,
653 0x00,EOT}},
654 {0x3, "Parallel port",
655 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
656 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
657 {0x4, "COM1",
658 {0x30,0x60,0x61,0x70,0xf0,EOT},
659 {0x00,0x00,0x00,0x00,0x00,EOT}},
660 {0x5, "COM2",
661 {0x30,0x60,0x61,0x70,0xf0,0xf1,0xf2,EOT},
662 {0x00,0x00,0x00,0x00,0x00,0x02,0x03,EOT}},
663 {0x7, "Keyboard",
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}},
669 {EOT}}},
670 {0x79, "SCH5504", { /* From sensors-detect (no datasheet) */
671 {EOT}}},
672 {0x7a, "LPC47N217", { /* Found in Toshiba Satellite A80-117. */
673 {EOT}}},
674 {0x7c, "SCH3112", {
675 {EOT}}},
676 {0x7d, "SCH3114", {
677 {NOLDN, NULL,
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}},
682 {0x0, "Floppy",
683 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,
684 0xf5,EOT},
685 {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,
686 0x00,EOT}},
687 {0x3, "Parallel port",
688 {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
689 {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
690 {0x4, "COM1",
691 {0x30,0x60,0x61,0x70,0xf0,EOT},
692 {0x00,0x00,0x00,0x00,0x00,EOT}},
693 {0x5, "COM2",
694 {0x30,0x60,0x61,0x70,0xf0,0xf1,0xf2,EOT},
695 {0x00,0x00,0x00,0x00,0x00,0x02,0x03,EOT}},
696 {0x7, "Keyboard",
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}},
702 {0xb, "COM3",
703 {0x30,0x60,0x61,0x70,0xf0,EOT},
704 {0x00,0x00,0x00,0x00,0x00,EOT}},
705 {0xc, "COM4",
706 {0x30,0x60,0x61,0x70,0xf0,EOT},
707 {0x00,0x00,0x00,0x00,0x00,EOT}},
708 {EOT}}},
709 {0x7f, "SCH3116", {
710 {EOT}}},
711 {0x81, "SCH5307", {
712 {EOT}}},
713 {0x83, "SCH5514D", { /* From sensors-detect */
714 {EOT}}},
715 {0x85, "SCH5317", { /* From sensors-detect */
716 /* The SCH5317 can have either 0x85 or 0x8c as device ID. */
717 {EOT}}},
718 {0x86, "SCH5127", { /* From sensors-detect */
719 {EOT}}},
720 {0x89, "SCH5027", { /* From sensors-detect (no public datasheet) */
721 {EOT}}},
722 {0x8c, "SCH5317", { /* From sensors-detect */
723 /* The SCH5317 can have either 0x85 or 0x8c as device ID. */
724 {EOT}}},
725 {0x90, "SCH4307", { /* From sensors-detect */
726 {EOT}}},
728 /* The following Super I/Os use the 0x0d/0x0e ID registers. */
729 {0x03, "FDC37C669", {
730 /* Init: 0x55, 0x55. Exit: 0xaa. Ports: 0x3f0/0x370. */
731 /* Chiprev: 0x02. */
732 /* FIXME: There's another 0x03 but found on port 0x20/0x21! */
733 {EOT}}},
734 {0x04, "FDC37C669FR", { /* TODO: Not yet in sensors-detect. */
735 /* Init: 0x55, 0x55. Exit: 0xaa. Ports: 0x3f0/0x370. */
736 {EOT}}},
737 {0x13, "LPC47N237", {
738 /* Init: 0x55. Exit: 0xaa. Ports: 0x2e/0x4e. */
739 {EOT}}},
740 {0x28, "FDC37N769", {
741 /* Init: 0x55. Exit: 0xaa. Ports: 0x3f0/0x370. */
742 {NOLDN, NULL,
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}},
753 {EOT}}},
754 {0x29, "FDC37N3869/FDC37N869", {
755 /* Init: 0x55. Exit: 0xaa. Ports: 0x3f0/0x370. */
756 {EOT}}},
757 {0x5a, "LPC47N227", {
758 /* Init: 0x55. Exit: 0xaa. Ports: 0x2e/0x4e. */
759 {NOLDN, NULL,
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}},
772 {EOT}}},
773 {0x5b, "SIO10N268", {
774 /* Init: 0x55. Exit: 0xaa. Ports: 0x2e/0x4e. */
775 {NOLDN, NULL,
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}},
794 {EOT}}},
795 {0x65, "FDC37C665GT/IR", {
796 /* Init: 0x55, 0x55. Exit: 0xaa. Port: 0x3f0. */
797 /* Chiprev: 0x02 = FDC37C665GT, 0x82 = FDC37C665IR */
798 {EOT}}},
799 {0x66, "FDC37C666GT", {
800 /* Init: 0x55, 0x55. Exit: 0xaa. Port: 0x3f0. Chiprev: 0x02. */
801 {EOT}}},
802 {EOT}
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.
812 OUTB(0x55, port);
813 OUTB(0x55, port);
816 static void exit_conf_mode_smsc(uint16_t port)
818 OUTB(0xaa, port);
821 static void probe_idregs_smsc_helper(uint16_t port, uint8_t idreg,
822 uint8_t revreg)
824 uint8_t id, rev;
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)) {
837 if (verbose)
838 printf(NOTFOUND "id=0x%02x, rev=0x%02x\n", id, rev);
839 exit_conf_mode_smsc(port);
840 return;
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) {
848 if (verbose)
849 printf(NOTFOUND "id=0x%02x, rev=0x%02x\n",
850 id, rev);
851 exit_conf_mode_smsc(port);
852 return;
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),
858 id, rev, port);
859 chip_found = 1;
861 dump_superio((id == 0x77 ? "ASUS" : "SMSC"), reg_table, port, id,
862 LDN_SEL);
864 if (extra_dump) {
865 switch (id) {
866 case 0x5a: /* LPC47N227 */
867 runtime_base = regval(port, 0x30) << 4;
868 if (runtime_base)
869 dump_io(runtime_base, 16);
870 else
871 printf("Runtime Register Block not mapped on this Super I/O.\n");
872 break;
873 default:
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");