Uwe Hermann | 0120e1a | 2007-09-16 18:11:03 +0000 | [diff] [blame] | 1 | /* |
Uwe Hermann | afe8309 | 2007-09-28 15:45:43 +0000 | [diff] [blame] | 2 | * This file is part of the superiotool project. |
Uwe Hermann | 0120e1a | 2007-09-16 18:11:03 +0000 | [diff] [blame] | 3 | * |
| 4 | * Copyright (C) 2006 Ronald Minnich <rminnich@gmail.com> |
Uwe Hermann | 8b8d039 | 2007-10-04 15:23:38 +0000 | [diff] [blame] | 5 | * Copyright (C) 2007 Uwe Hermann <uwe@hermann-uwe.de> |
Uwe Hermann | 0120e1a | 2007-09-16 18:11:03 +0000 | [diff] [blame] | 6 | * |
| 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. |
| 11 | * |
| 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. |
Uwe Hermann | 0120e1a | 2007-09-16 18:11:03 +0000 | [diff] [blame] | 16 | */ |
| 17 | |
| 18 | #include "superiotool.h" |
| 19 | |
Uwe Hermann | 8b8d039 | 2007-10-04 15:23:38 +0000 | [diff] [blame] | 20 | #define CHIP_ID_REG 0x20 /* Super I/O ID (SID) / family */ |
| 21 | #define CHIP_REV_REG 0x27 /* Super I/O revision ID (SRID) */ |
| 22 | |
Uwe Hermann | 246be7d | 2007-10-31 22:22:11 +0000 | [diff] [blame] | 23 | static const struct superio_registers reg_table[] = { |
Ulf Jordan | aa6dd74 | 2007-12-13 23:56:16 +0000 | [diff] [blame] | 24 | {0xcf, "PC97307", { |
| 25 | {NOLDN, NULL, |
| 26 | {0x20,0x21,0x22,0x23,0x24,0x27,EOT}, |
| 27 | {0xcf,MISC,MISC,0x00,0x00,NANA,EOT}}, |
| 28 | {0x0, "Keyboard", |
| 29 | {0x30,0x31,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75, |
| 30 | 0xf0,EOT}, |
| 31 | {MISC,0x00,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04, |
| 32 | 0x40,EOT}}, |
| 33 | {0x1, "Mouse", |
| 34 | {0x30,0x70,0x71,0x74,0x75,EOT}, |
| 35 | {0x00,0x0c,0x02,0x04,0x04,EOT}}, |
| 36 | {0x2, "Real-time clock (RTC), advanced power control (APC)", |
| 37 | {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,EOT}, |
| 38 | {MISC,0x00,0x00,0x70,0x08,0x00,0x04,0x04,EOT}}, |
| 39 | {0x3, "Floppy", |
| 40 | {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1, |
| 41 | EOT}, |
| 42 | {MISC,0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x20,0x00, |
| 43 | EOT}}, |
| 44 | {0x4, "Parallel port", |
| 45 | {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 46 | {0x00,0x00,0x02,0x78,0x07,0x00,0x04,0x04,0xf2,EOT}}, |
| 47 | {0x5, "COM2 / IR", |
| 48 | {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 49 | {0x00,0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT}}, |
| 50 | {0x6, "COM1", |
| 51 | {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 52 | {0x00,0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT}}, |
| 53 | {0x7, "GPIO", |
| 54 | {0x30,0x31,0x60,0x61,0x74,0x75,EOT}, |
| 55 | {0x00,0x00,0x00,0x00,0x04,0x04,EOT}}, |
| 56 | {0x8, "Power management", |
| 57 | {0x30,0x31,0x60,0x61,0x74,0x75,EOT}, |
| 58 | {0x00,0x00,0x00,0x00,0x04,0x04,EOT}}, |
| 59 | {EOT}}}, |
Ulf Jordan | 25df0c5 | 2007-12-07 21:55:12 +0000 | [diff] [blame] | 60 | {0xd0, "PC87317", { |
Ulf Jordan | e9690bd | 2007-12-17 22:10:00 +0000 | [diff] [blame] | 61 | {NOLDN, NULL, |
| 62 | {0x20,0x21,0x22,0x23,0x24,0x25,EOT}, |
| 63 | {0xd0,MISC,MISC,0x00,0x00,0x00,EOT}}, |
| 64 | {0x0, "Keyboard", |
| 65 | {0x30,0x31,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75, |
| 66 | 0xf0,EOT}, |
| 67 | {MISC,0x00,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04, |
| 68 | 0x40,EOT}}, |
| 69 | {0x1, "Mouse", |
| 70 | {0x30,0x70,0x71,0x74,0x75,EOT}, |
| 71 | {0x00,0x0c,0x02,0x04,0x04,EOT}}, |
| 72 | {0x2, "Real-time clock (RTC), advanced power control (APC)", |
| 73 | {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,EOT}, |
| 74 | {MISC,0x00,0x00,0x70,0x08,0x00,0x04,0x04,EOT}}, |
| 75 | {0x3, "Floppy", |
| 76 | {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1, |
| 77 | EOT}, |
| 78 | {MISC,0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x20,0x00, |
| 79 | EOT}}, |
| 80 | {0x4, "Parallel port", |
| 81 | {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 82 | {0x00,0x00,0x02,0x78,0x07,0x00,0x04,0x04,0xf2,EOT}}, |
| 83 | {0x5, "COM2 / IR", |
| 84 | {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 85 | {0x00,0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT}}, |
| 86 | {0x6, "COM1", |
| 87 | {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 88 | {0x00,0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT}}, |
| 89 | {0x7, "GPIO", |
| 90 | {0x30,0x31,0x60,0x61,0x74,0x75,EOT}, |
| 91 | {0x00,0x00,0x00,0x00,0x04,0x04,EOT}}, |
| 92 | {0x8, "Power management", |
| 93 | {0x30,0x31,0x60,0x61,0x74,0x75,EOT}, |
| 94 | {0x00,0x00,0x00,0x00,0x04,0x04,EOT}}, |
Uwe Hermann | abeb63d | 2007-10-07 21:48:26 +0000 | [diff] [blame] | 95 | {EOT}}}, |
Ulf Jordan | 25df0c5 | 2007-12-07 21:55:12 +0000 | [diff] [blame] | 96 | {0xdf, "PC97317", { |
Ulf Jordan | c7e12e2 | 2007-12-14 00:04:16 +0000 | [diff] [blame] | 97 | {NOLDN, NULL, |
| 98 | {0x20,0x21,0x22,0x23,0x24,0x25,0x27,EOT}, |
| 99 | {0xdf,MISC,MISC,0x00,0x00,0x00,NANA,EOT}}, |
| 100 | {0x0, "Keyboard", |
| 101 | {0x30,0x31,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75, |
| 102 | 0xf0,EOT}, |
| 103 | {MISC,0x00,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04, |
| 104 | 0x40,EOT}}, |
| 105 | {0x1, "Mouse", |
| 106 | {0x30,0x70,0x71,0x74,0x75,EOT}, |
| 107 | {0x00,0x0c,0x02,0x04,0x04,EOT}}, |
| 108 | {0x2, "Real-time clock (RTC), advanced power control (APC)", |
| 109 | {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,EOT}, |
| 110 | {MISC,0x00,0x00,0x70,0x08,0x00,0x04,0x04,EOT}}, |
| 111 | {0x3, "Floppy", |
| 112 | {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1, |
| 113 | EOT}, |
| 114 | {MISC,0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x20,0x00, |
| 115 | EOT}}, |
| 116 | {0x4, "Parallel port", |
| 117 | {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 118 | {0x00,0x00,0x02,0x78,0x07,0x00,0x04,0x04,0xf2,EOT}}, |
| 119 | {0x5, "COM2 / IR", |
| 120 | {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 121 | {0x00,0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT}}, |
| 122 | {0x6, "COM1", |
| 123 | {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 124 | {0x00,0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT}}, |
| 125 | {0x7, "GPIO", |
| 126 | {0x30,0x31,0x60,0x61,0x74,0x75,EOT}, |
| 127 | {0x00,0x00,0x00,0x00,0x04,0x04,EOT}}, |
| 128 | {0x8, "Power management", |
| 129 | {0x30,0x31,0x60,0x61,0x74,0x75,EOT}, |
| 130 | {0x00,0x00,0x00,0x00,0x04,0x04,EOT}}, |
Uwe Hermann | abeb63d | 2007-10-07 21:48:26 +0000 | [diff] [blame] | 131 | {EOT}}}, |
Ulf Jordan | 94a84de | 2007-12-08 00:17:19 +0000 | [diff] [blame] | 132 | {0xe0, "PC87309", { |
| 133 | {NOLDN, NULL, |
| 134 | {0x20,0x21,0x22,0x27,0x2e,EOT}, |
| 135 | {0xe0,MISC,0x00,NANA,RSVD,EOT}}, |
| 136 | {0x0, "Floppy", |
| 137 | {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1, |
| 138 | EOT}, |
| 139 | {MISC,0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x20,0x00, |
| 140 | EOT}}, |
| 141 | {0x1, "Parallel port", |
| 142 | {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 143 | {0x00,0x00,0x02,0x78,0x07,0x00,0x04,0x04,0xf2,EOT}}, |
| 144 | {0x2, "COM2 / IR", |
| 145 | {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 146 | {0x00,0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT}}, |
| 147 | {0x3, "COM1", |
| 148 | {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 149 | {0x00,0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT}}, |
| 150 | {0x4, "Power management", |
| 151 | {0x30,0x31,0x60,0x61,0x74,0x75,EOT}, |
| 152 | {0x00,0x00,0x00,0x00,0x04,0x04,EOT}}, |
| 153 | {0x5, "Mouse", |
| 154 | {0x30,0x70,0x71,0x74,0x75,EOT}, |
| 155 | {0x00,0x0c,0x02,0x04,0x04,EOT}}, |
| 156 | {0x6, "Keyboard", |
| 157 | {0x30,0x31,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75, |
| 158 | 0xf0,EOT}, |
| 159 | {0x01,0x00,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04, |
| 160 | 0x40,EOT}}, |
| 161 | {EOT}}}, |
Uwe Hermann | abeb63d | 2007-10-07 21:48:26 +0000 | [diff] [blame] | 162 | {0xe1, "PC87360", { |
Ulf Jordan | 3c225a7 | 2007-11-13 15:16:06 +0000 | [diff] [blame] | 163 | {NOLDN, NULL, |
| 164 | {0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x2a, |
| 165 | 0x2b,0x2c,0x2d,0x2e,EOT}, |
| 166 | {0xe1,0x11,0x00,0x03,0x00,0x00,0x00,NANA,0x00,MISC, |
| 167 | 0x00,0x00,0x00,RSVD,EOT}}, |
| 168 | {0x0, "Floppy", |
| 169 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,EOT}, |
| 170 | {0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x24,0x00,EOT}}, |
| 171 | {0x1, "Parallel port", |
| 172 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 173 | {0x00,0x02,0x78,0x07,0x02,0x04,0x04,0xf2,EOT}}, |
| 174 | {0x2, "COM2", |
| 175 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 176 | {0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT}}, |
| 177 | {0x3, "COM1", |
| 178 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 179 | {0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT}}, |
| 180 | {0x4, "System wake-up control (SWC)", |
| 181 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,EOT}, |
| 182 | {0x00,0x00,0x00,0x00,0x03,0x04,0x04,EOT}}, |
| 183 | {0x5, "Mouse", |
| 184 | {0x30,0x70,0x71,0x74,0x75,EOT}, |
| 185 | {0x00,0x0c,0x02,0x04,0x04,EOT}}, |
| 186 | {0x6, "Keyboard", |
| 187 | {0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,0xf0, |
| 188 | EOT}, |
| 189 | {0x01,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04,0x40, |
| 190 | EOT}}, |
| 191 | {0x7, "GPIO", |
| 192 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf2, |
| 193 | EOT}, |
| 194 | {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,0x00,0x00, |
| 195 | EOT}}, |
| 196 | {0x8, "ACCESS.bus (ACB)", |
| 197 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 198 | {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,EOT}}, |
| 199 | {0x9, "Fan speed control and monitor (FSCM)", |
| 200 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 201 | {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,EOT}}, |
| 202 | {0xa, "Watchdog timer", |
| 203 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 204 | {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x02,EOT}}, |
Uwe Hermann | abeb63d | 2007-10-07 21:48:26 +0000 | [diff] [blame] | 205 | {EOT}}}, |
| 206 | {0xe2, "PC87351", { |
| 207 | {NOLDN, NULL, |
| 208 | {0x20,0x21,0x22,0x23,0x24,0x27,0x2e,EOT}, |
| 209 | {0xe2,0x11,0xa1,0x00,MISC,NANA,RSVD,EOT}}, |
| 210 | {0x0, "Floppy", |
| 211 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,EOT}, |
| 212 | {0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x24,0x00,EOT}}, |
| 213 | {0x1, "Parallel port", |
| 214 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 215 | {0x00,0x02,0x78,0x07,0x02,0x04,0x04,0xf2,EOT}}, |
| 216 | {0x2, "COM2", |
| 217 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 218 | {0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT}}, |
| 219 | {0x3, "COM1", |
| 220 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 221 | {0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT}}, |
| 222 | {0x4, "System wake-up control (SWC)", |
| 223 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,EOT}, |
| 224 | {0x00,0x00,0x00,0x00,0x03,0x04,0x04,EOT}}, |
| 225 | {0x5, "Mouse", |
| 226 | {0x30,0x70,0x71,0x74,0x75,EOT}, |
| 227 | {0x00,0x0c,0x02,0x04,0x04,EOT}}, |
| 228 | {0x6, "Keyboard", |
| 229 | {0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75, |
| 230 | 0xf0,EOT}, |
| 231 | {0x01,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04, |
| 232 | 0x40,EOT}}, |
| 233 | {0x7, "GPIO", |
| 234 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,EOT}, |
| 235 | {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,0x00,EOT}}, |
| 236 | {0x8, "Fan speed control", |
| 237 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 238 | {0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x00,EOT}}, |
| 239 | {EOT}}}, |
| 240 | {0xe4, "PC87364", { |
Michael Karcher | 5fb8fc0 | 2011-03-06 17:58:31 +0000 | [diff] [blame] | 241 | {NOLDN, NULL, |
| 242 | {0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x2a, |
| 243 | 0x2b,0x2c,0x2d,0x2e,EOT}, |
| 244 | {0xe4,0x11,0x00,0x03,0x00,0x00,0x00,NANA,0x00,MISC, |
| 245 | 0x00,0x00,NANA,RSVD,EOT}}, |
| 246 | {0x0, "Floppy", |
| 247 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,EOT}, |
| 248 | {0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x24,0x00,EOT}}, |
| 249 | {0x1, "Parallel port", |
| 250 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 251 | {0x00,0x02,0x78,0x07,0x02,0x04,0x04,0xf2,EOT}}, |
| 252 | {0x2, "COM2", |
| 253 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 254 | {0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT}}, |
| 255 | {0x3, "COM1", |
| 256 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 257 | {0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT}}, |
| 258 | {0x4, "System wake-up control (SWC)", |
| 259 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,EOT}, |
| 260 | {0x00,0x00,0x00,0x00,0x03,0x04,0x04,EOT}}, |
| 261 | {0x5, "Mouse", |
| 262 | {0x30,0x70,0x71,0x74,0x75,EOT}, |
| 263 | {0x00,0x0c,0x02,0x04,0x04,EOT}}, |
| 264 | {0x6, "Keyboard", |
| 265 | {0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,0xf0, |
| 266 | EOT}, |
| 267 | {0x01,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04,0x40, |
| 268 | EOT}}, |
| 269 | {0x7, "GPIO", |
| 270 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf2, |
| 271 | EOT}, |
| 272 | {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,0x00,0x00, |
| 273 | EOT}}, |
| 274 | {0x8, "ACCESS.bus (ACB)", |
| 275 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 276 | {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,EOT}}, |
| 277 | {0x9, "Fan speed control and monitor (FSCM)", |
| 278 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,EOT}, |
| 279 | {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,0x00,EOT}}, |
| 280 | {0xa, "Watchdog timer", |
| 281 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 282 | {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x02,EOT}}, |
Uwe Hermann | abeb63d | 2007-10-07 21:48:26 +0000 | [diff] [blame] | 283 | {EOT}}}, |
| 284 | {0xe5, "PC87365", { /* SRID[7..0] == chip revision */ |
| 285 | {EOT}}}, |
| 286 | {0xe8, "PC87363", { |
| 287 | {EOT}}}, |
| 288 | {0xe9, "PC87366", { |
Ulf Jordan | 4dea671 | 2007-11-24 21:49:39 +0000 | [diff] [blame] | 289 | {NOLDN, NULL, |
| 290 | {0x20,0x21,0x22,0x23,0x24,0x25,0x27,0x28,0x2a,0x2b, |
| 291 | 0x2c,0x2d,0x2e,EOT}, |
| 292 | {0xe9,0x11,0x00,0x03,0x00,0x00,NANA,0x00,MISC,MISC, |
| 293 | 0x00,MISC,RSVD,EOT}}, |
| 294 | {0x0, "Floppy", |
| 295 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,EOT}, |
| 296 | {0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x24,0x00,EOT}}, |
| 297 | {0x1, "Parallel port", |
| 298 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 299 | {0x00,0x02,0x78,0x07,0x02,0x04,0x04,0xf2,EOT}}, |
| 300 | {0x2, "COM2", |
| 301 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 302 | {0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT}}, |
| 303 | {0x3, "COM1", |
| 304 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 305 | {0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT}}, |
| 306 | {0x4, "System wake-up control (SWC)", |
| 307 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,EOT}, |
| 308 | {0x00,0x00,0x00,0x00,0x03,0x04,0x04,EOT}}, |
| 309 | {0x5, "Mouse", |
| 310 | {0x30,0x70,0x71,0x74,0x75,EOT}, |
| 311 | {0x00,0x0c,0x02,0x04,0x04,EOT}}, |
| 312 | {0x6, "Keyboard", |
| 313 | {0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,0xf0, |
| 314 | EOT}, |
| 315 | {0x01,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04,0x40, |
| 316 | EOT}}, |
| 317 | {0x7, "GPIO", |
| 318 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf2, |
| 319 | EOT}, |
| 320 | {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,0x00,0x00, |
| 321 | EOT}}, |
| 322 | {0x8, "ACCESS.bus (ACB)", |
| 323 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 324 | {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,EOT}}, |
| 325 | {0x9, "Fan speed control and monitor (FSCM)", |
| 326 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf2, |
| 327 | EOT}, |
| 328 | {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,0x00,0x00, |
| 329 | EOT}}, |
| 330 | {0xa, "Watchdog timer (WDT)", |
| 331 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 332 | {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x02,EOT}}, |
| 333 | {0xb, "Game port", |
| 334 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 335 | {0x00,0x02,0x00,0x00,0x03,0x04,0x04,0x00,EOT}}, |
| 336 | {0xc, "MIDI port", |
| 337 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 338 | {0x00,0x03,0x30,0x00,0x03,0x04,0x04,0x00,EOT}}, |
Uwe Hermann | 11887f2 | 2007-12-07 23:55:20 +0000 | [diff] [blame] | 339 | {0xd, "Voltage level monitor (VLM)", |
Ulf Jordan | 4dea671 | 2007-11-24 21:49:39 +0000 | [diff] [blame] | 340 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,EOT}, |
| 341 | {0x00,0x00,0x00,0x00,0x03,0x04,0x04,EOT}}, |
Uwe Hermann | 11887f2 | 2007-12-07 23:55:20 +0000 | [diff] [blame] | 342 | {0xe, "Temperature sensor (TMS)", |
Ulf Jordan | 4dea671 | 2007-11-24 21:49:39 +0000 | [diff] [blame] | 343 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,EOT}, |
| 344 | {0x00,0x00,0x00,0x00,0x03,0x04,0x04,EOT}}, |
Uwe Hermann | abeb63d | 2007-10-07 21:48:26 +0000 | [diff] [blame] | 345 | {EOT}}}, |
Sven Schnelle | ed61c4a | 2011-02-02 23:49:41 +0000 | [diff] [blame] | 346 | {0xf4, "PC87382", { |
| 347 | {NOLDN, NULL, |
| 348 | {0x20,0x21,0x22,0x26,0x27,0x29,EOT}, |
| 349 | {0xf4,0x11,0x63,0x00,0x00,0x00,EOT}}, |
| 350 | {0x02, "IR", |
| 351 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 352 | {0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT}}, |
| 353 | {0x03, "COM1", |
| 354 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 355 | {0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT}}, |
| 356 | {0x07, "GPIO", |
| 357 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1, |
| 358 | 0xf2,EOT}, |
| 359 | {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,MISC, |
| 360 | 0x01,EOT}}, |
| 361 | {0x19, "Docking LPC switch", |
| 362 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,EOT}, |
| 363 | {0x00,0x00,0x00,0x00,0x00,0x04,0x04,EOT}}, |
| 364 | {EOT}}}, |
Uwe Hermann | abeb63d | 2007-10-07 21:48:26 +0000 | [diff] [blame] | 365 | /* SID[7..0]: family, SRID[7..5]: ID, SRID[4..0]: rev. */ |
| 366 | {0xea, "PC8739x", { |
Michał Mirosław | eb390ab | 2008-12-20 19:35:54 +0000 | [diff] [blame] | 367 | {NOLDN, NULL, |
| 368 | {0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29, |
| 369 | 0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT}, |
| 370 | {0xea,0x11,MISC,MISC,MISC,0x80,0x00,NANA,0x00,MISC, |
| 371 | 0x37,RSVD,RSVD,RSVD,RSVD,RSVD,EOT}}, |
| 372 | {0x0, "Floppy", |
| 373 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,EOT}, |
| 374 | {0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x24,0x00,EOT}}, |
| 375 | {0x1, "Parallel port", |
| 376 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 377 | {0x00,0x02,0x78,0x07,0x02,0x04,0x04,0xf2,EOT}}, |
| 378 | {0x2, "COM2 / FIR", |
| 379 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 380 | {0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT}}, |
| 381 | {0x3, "COM1", |
| 382 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 383 | {0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT}}, |
| 384 | {0x7, "GPIO", |
| 385 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf2, |
| 386 | EOT}, |
| 387 | {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,0x44,0x01, |
| 388 | EOT}}, |
| 389 | {0xa, "Watchdog timer (WDT)", |
| 390 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 391 | {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x02,EOT}}, |
| 392 | {0xb, "Game port", |
| 393 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 394 | {0x00,0x02,0x01,0x00,0x03,0x04,0x04,0x00,EOT}}, |
| 395 | {0xc, "MIDI port", |
| 396 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 397 | {0x00,0x03,0x30,0x00,0x03,0x04,0x04,0x00,EOT}}, |
| 398 | {0xf, "X-Bus", |
| 399 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf2, |
| 400 | 0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,0xf9,EOT}, |
| 401 | {0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x00,0x00,0x00, |
| 402 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,EOT}}, |
Uwe Hermann | abeb63d | 2007-10-07 21:48:26 +0000 | [diff] [blame] | 403 | {EOT}}}, |
| 404 | {0xec, "PC87591x", { |
| 405 | /* SRID[7..5]: 000=PC87591E, 001=PC87591S, 100=PC87591L */ |
| 406 | {EOT}}}, |
| 407 | {0xee, "PC8741x", { |
| 408 | /* SRID[7..5] is marked as "not applicable for the PC8741x". */ |
Ulf Jordan | 48c7032 | 2007-12-13 23:41:45 +0000 | [diff] [blame] | 409 | {NOLDN, NULL, |
| 410 | {0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29, |
| 411 | 0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT}, |
| 412 | {0xee,0x11,0x20,MISC,MISC,MISC,0x00,NANA,0x00,MISC, |
| 413 | 0x00,RSVD,RSVD,RSVD,RSVD,RSVD,EOT}}, |
| 414 | {0x0, "Floppy", |
| 415 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,EOT}, |
| 416 | {0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x24,0x00,EOT}}, |
| 417 | {0x1, "Parallel port", |
| 418 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 419 | {0x00,0x02,0x78,0x07,0x02,0x04,0x04,0xf2,EOT}}, |
| 420 | {0x2, "COM2", |
| 421 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 422 | {0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT}}, |
| 423 | {0x3, "COM1", |
| 424 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 425 | {0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT}}, |
| 426 | {0x4, "System wake-up control (SWC)", |
| 427 | {0x30,0x60,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x70, |
| 428 | 0x71,0x74,0x75,EOT}, |
| 429 | {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 430 | 0x03,0x04,0x04,EOT}}, |
| 431 | {0x5, "Mouse", |
| 432 | {0x30,0x70,0x71,0x74,0x75,EOT}, |
| 433 | {0x00,0x0c,0x02,0x04,0x04,EOT}}, |
| 434 | {0x6, "Keyboard", |
| 435 | {0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,0xf0, |
| 436 | EOT}, |
| 437 | {0x00,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04,0x40, |
| 438 | EOT}}, |
| 439 | {0x7, "GPIO", |
| 440 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf2, |
| 441 | 0xf3,EOT}, |
| 442 | {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,MISC,0x01, |
| 443 | 0x00,EOT}}, |
| 444 | {0xf, "X-Bus", |
| 445 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf2, |
| 446 | 0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc, |
| 447 | EOT}, |
| 448 | {0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x00,0x00,0x00, |
| 449 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 450 | EOT}}, |
| 451 | {0x10, "Real-time clock (RTC)", |
| 452 | {0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,0xf0, |
| 453 | 0xf1,0xf2,0xf3,EOT}, |
| 454 | {0x00,0x00,0x70,0x00,0x72,0x08,0x00,0x04,0x04,0x00, |
| 455 | 0x00,0x00,0x00,EOT}}, |
Uwe Hermann | abeb63d | 2007-10-07 21:48:26 +0000 | [diff] [blame] | 456 | {EOT}}}, |
| 457 | {0xf0, "PC87372", { |
| 458 | {EOT}}}, |
Sean Young | a0141f0 | 2009-11-09 22:34:17 +0000 | [diff] [blame] | 459 | {0x0f1, "PC8374L", { |
Uwe Hermann | 4910809 | 2007-10-14 17:02:15 +0000 | [diff] [blame] | 460 | {NOLDN, NULL, |
| 461 | {0x10,0x12,0x13,0x20,0x21,0x22,0x23,0x24,0x25,0x26, |
| 462 | 0x27,0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT}, |
| 463 | {0x00,0x00,0x00,0xf1,0x11,0x00,0x00,0x00,RSVD,0x00, |
| 464 | MISC,RSVD,0x01,0x2e,RSVD,RSVD,RSVD,RSVD,RSVD,EOT}}, |
| 465 | {0x0, "Floppy", |
| 466 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf8, |
| 467 | EOT}, |
| 468 | {0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x24,0x00,0x24, |
| 469 | EOT}}, |
| 470 | {0x1, "Parallel port", |
| 471 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf8,EOT}, |
| 472 | {0x00,0x02,0x78,0x07,0x02,0x04,0x04,0xf2,0x07,EOT}}, |
| 473 | {0x2, "COM2 / IR", |
| 474 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 475 | {0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT}}, |
| 476 | {0x3, "COM1", |
| 477 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 478 | {0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT}}, |
| 479 | {0x4, "System wake-up control (SWC)", |
| 480 | {0x30,0x50,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75, |
| 481 | EOT}, |
| 482 | {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x04, |
| 483 | EOT}}, |
| 484 | {0x5, "Mouse", |
| 485 | {0x30,0x70,0x71,0x74,0x75,EOT}, |
| 486 | {0x00,0x0c,0x02,0x04,0x04,EOT}}, |
| 487 | {0x6, "Keyboard", |
| 488 | {0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,0xf0, |
| 489 | EOT}, |
| 490 | {0x00,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04,0x40, |
| 491 | EOT}}, |
| 492 | {0x7, "GPIO", |
| 493 | {0x30,0x50,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1, |
| 494 | 0xf2,0xf3,0xf8,EOT}, |
| 495 | {0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,MISC, |
| 496 | 0x00,MISC,0x01,EOT}}, |
| 497 | {0x8, "Health management", |
| 498 | {0x30,0x50,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 499 | {0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x05,EOT}}, |
Uwe Hermann | 8b8d039 | 2007-10-04 15:23:38 +0000 | [diff] [blame] | 500 | {EOT}}}, |
Sean Young | a0141f0 | 2009-11-09 22:34:17 +0000 | [diff] [blame] | 501 | {0x8f1, "WPCD376I", { |
| 502 | {NOLDN, NULL, |
| 503 | {0x10,0x12,0x13,0x20,0x21,0x22,0x23,0x24,0x25,0x26, |
| 504 | 0x27,0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT}, |
| 505 | {0x00,0x00,0x00,0xf1,0x11,0x00,0x00,0x00,RSVD,0x00, |
| 506 | MISC,RSVD,0x01,0x2e,RSVD,RSVD,RSVD,RSVD,RSVD,EOT}}, |
| 507 | {0x0, "Floppy", |
| 508 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf8, |
| 509 | EOT}, |
| 510 | {0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x24,0x00,0x24, |
| 511 | EOT}}, |
| 512 | {0x1, "Parallel port", |
| 513 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf8,EOT}, |
| 514 | {0x00,0x02,0x78,0x07,0x02,0x04,0x04,0xf2,0x07,EOT}}, |
| 515 | {0x2, "IR", |
| 516 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 517 | {0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT}}, |
| 518 | {0x3, "COM1", |
| 519 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 520 | {0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT}}, |
| 521 | {0x4, "System wake-up control (SWC)", |
| 522 | {0x30,0x50,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75, |
| 523 | EOT}, |
| 524 | {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x04, |
| 525 | EOT}}, |
| 526 | {0x5, "Mouse", |
| 527 | {0x30,0x70,0x71,0x74,0x75,EOT}, |
| 528 | {0x00,0x0c,0x02,0x04,0x04,EOT}}, |
| 529 | {0x6, "Keyboard", |
| 530 | {0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,0xf0, |
| 531 | EOT}, |
| 532 | {0x00,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04,0x40, |
| 533 | EOT}}, |
| 534 | {0x7, "GPIO", |
| 535 | {0x30,0x50,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1, |
| 536 | 0xf2,0xf3,0xf8,EOT}, |
| 537 | {0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,MISC, |
| 538 | 0x00,MISC,0x01,EOT}}, |
| 539 | {EOT}}}, |
Uwe Hermann | abeb63d | 2007-10-07 21:48:26 +0000 | [diff] [blame] | 540 | {0xf2, "PC87427", { |
| 541 | /* SRID[7..5] is marked as "not applicable for the PC87427". */ |
Tom Sylla | 92af509 | 2008-06-07 11:36:30 +0000 | [diff] [blame] | 542 | {NOLDN, NULL, |
| 543 | {0x10,0x12,0x13,0x1d,0x20,0x21,0x22,0x23,0x24,0x25, |
| 544 | 0x26,0x27,0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, |
| 545 | EOT}, |
| 546 | {0x00,0x00,0x00,0x00,0xf2,0x11,0xa0,MISC,MISC,MISC, |
| 547 | 0x02,NANA,0x00,MISC,0x00,0x00,MISC,MISC,RSVD,RSVD, |
| 548 | EOT}}, |
| 549 | {0x0, "Floppy", |
| 550 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,EOT}, |
| 551 | {0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x24,0x00,EOT}}, |
| 552 | {0x2, "COM2", |
| 553 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 554 | {0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT}}, |
| 555 | {0x3, "COM1", |
| 556 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 557 | {0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT}}, |
| 558 | {0x4, "System wake-up control (SWC)", |
| 559 | {0x30,0x60,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x70, |
| 560 | 0x71,0x74,0x75,EOT}, |
| 561 | {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 562 | 0x03,0x04,0x04,EOT}}, |
| 563 | {0x5, "Mouse", |
| 564 | {0x30,0x70,0x71,0x74,0x75,EOT}, |
| 565 | {0x00,0x0c,0x02,0x04,0x04,EOT}}, |
| 566 | {0x6, "Keyboard", |
| 567 | {0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,0xf0, |
| 568 | EOT}, |
| 569 | {0x00,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04,0x40, |
| 570 | EOT}}, |
| 571 | {0x7, "GPIO", |
| 572 | {0x30,0x50,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1, |
| 573 | 0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,EOT}, |
| 574 | {0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,MISC, |
| 575 | 0x01,0x00,0x00,0x00,0x00,0x00,0x00,EOT}}, |
| 576 | {0x9, "Fan Monitor and Control (FMC)", |
| 577 | {0x30,0x50,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1, |
| 578 | EOT}, |
| 579 | {0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x19,0x06, |
| 580 | EOT}}, |
| 581 | {0xa, "Watchdog timer (WDT)", |
| 582 | {0x30,0x50,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, |
| 583 | {0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,EOT}}, |
| 584 | {0xf, "X-Bus", |
| 585 | {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf2, |
| 586 | 0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc, |
| 587 | 0xfd,0xfe,0xff,EOT}, |
| 588 | {0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x00,0x00,0x00, |
| 589 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 590 | 0x00,0x80,0x10,EOT}}, |
| 591 | {0x10, "Real-time clock (RTC)", |
| 592 | {0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,0xf0, |
| 593 | 0xf1,0xf2,0xf3,0xf6,0xf7,EOT}, |
| 594 | {0x00,0x00,0x70,0x00,0x72,0x08,0x00,0x04,0x04,0x00, |
| 595 | 0x00,0x00,0x00,MISC,0x00,EOT}}, |
Michael Gold | 556e6fb | 2009-06-26 15:25:04 +0000 | [diff] [blame] | 596 | {0x14, "Health monitoring and control (HMC)", |
Tom Sylla | 92af509 | 2008-06-07 11:36:30 +0000 | [diff] [blame] | 597 | {0x30,0x50,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75, |
| 598 | 0xf0,EOT}, |
| 599 | {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x04, |
| 600 | 0x05,EOT}}, |
Uwe Hermann | abeb63d | 2007-10-07 21:48:26 +0000 | [diff] [blame] | 601 | {EOT}}}, |
| 602 | {0xf3, "PC87373", { |
| 603 | {EOT}}}, |
Uwe Hermann | 8b8d039 | 2007-10-04 15:23:38 +0000 | [diff] [blame] | 604 | {EOT} |
Uwe Hermann | 0120e1a | 2007-09-16 18:11:03 +0000 | [diff] [blame] | 605 | }; |
| 606 | |
Uwe Hermann | 8b8d039 | 2007-10-04 15:23:38 +0000 | [diff] [blame] | 607 | void probe_idregs_nsc(uint16_t port) |
Uwe Hermann | 0120e1a | 2007-09-16 18:11:03 +0000 | [diff] [blame] | 608 | { |
Uwe Hermann | 8b8d039 | 2007-10-04 15:23:38 +0000 | [diff] [blame] | 609 | uint8_t id, rev; |
Sean Young | a0141f0 | 2009-11-09 22:34:17 +0000 | [diff] [blame] | 610 | uint16_t magic; |
Uwe Hermann | 0120e1a | 2007-09-16 18:11:03 +0000 | [diff] [blame] | 611 | |
Uwe Hermann | 8b8d039 | 2007-10-04 15:23:38 +0000 | [diff] [blame] | 612 | probing_for("NSC", "", port); |
| 613 | |
Andriy Gapon | b64aa60 | 2008-10-28 22:13:38 +0000 | [diff] [blame] | 614 | OUTB(CHIP_ID_REG, port); |
| 615 | if (INB(port) != CHIP_ID_REG) { |
Uwe Hermann | 8b8d039 | 2007-10-04 15:23:38 +0000 | [diff] [blame] | 616 | if (verbose) |
| 617 | printf(NOTFOUND "port=0x%02x, port+1=0x%02x\n", |
Andriy Gapon | b64aa60 | 2008-10-28 22:13:38 +0000 | [diff] [blame] | 618 | INB(port), INB(port + 1)); |
Uwe Hermann | 0120e1a | 2007-09-16 18:11:03 +0000 | [diff] [blame] | 619 | return; |
| 620 | } |
Andriy Gapon | b64aa60 | 2008-10-28 22:13:38 +0000 | [diff] [blame] | 621 | id = INB(port + 1); |
Uwe Hermann | 0120e1a | 2007-09-16 18:11:03 +0000 | [diff] [blame] | 622 | |
Andriy Gapon | b64aa60 | 2008-10-28 22:13:38 +0000 | [diff] [blame] | 623 | OUTB(CHIP_REV_REG, port); |
| 624 | if (INB(port) != CHIP_REV_REG) { |
Uwe Hermann | 8b8d039 | 2007-10-04 15:23:38 +0000 | [diff] [blame] | 625 | printf("Warning: Can't get chip revision. Setting to 0xff.\n"); |
| 626 | rev = 0xff; |
| 627 | } else { |
Andriy Gapon | b64aa60 | 2008-10-28 22:13:38 +0000 | [diff] [blame] | 628 | rev = INB(port + 1); |
Uwe Hermann | 0120e1a | 2007-09-16 18:11:03 +0000 | [diff] [blame] | 629 | } |
Uwe Hermann | 8b8d039 | 2007-10-04 15:23:38 +0000 | [diff] [blame] | 630 | |
Sean Young | a0141f0 | 2009-11-09 22:34:17 +0000 | [diff] [blame] | 631 | /* |
| 632 | * NSC PC8374L has ID 0xf1, rev 0b000xxxxx according to datasheet. |
| 633 | * Winbond WPCD376I has ID 0xf1, rev 0b100xxxxx according to datasheet. |
| 634 | */ |
| 635 | if (id == 0xf1) |
| 636 | magic = ((rev & 0xe0) << 4) | id; |
| 637 | else |
| 638 | magic = id; |
| 639 | |
| 640 | if (superio_unknown(reg_table, magic)) { |
Uwe Hermann | 8b8d039 | 2007-10-04 15:23:38 +0000 | [diff] [blame] | 641 | if (verbose) |
| 642 | printf(NOTFOUND "sid=0x%02x, srid=0x%02x\n", id, rev); |
| 643 | return; |
| 644 | } |
| 645 | |
Sean Young | a0141f0 | 2009-11-09 22:34:17 +0000 | [diff] [blame] | 646 | printf("Found %s %s (sid=0x%02x, srid=0x%02x) at 0x%x\n", |
| 647 | magic == 0x8f1 ? "Winbond" : "NSC", |
| 648 | get_superio_name(reg_table, magic), id, rev, port); |
Uwe Hermann | e9d4616 | 2007-10-07 20:01:23 +0000 | [diff] [blame] | 649 | chip_found = 1; |
Uwe Hermann | 8b8d039 | 2007-10-04 15:23:38 +0000 | [diff] [blame] | 650 | |
Sean Young | a0141f0 | 2009-11-09 22:34:17 +0000 | [diff] [blame] | 651 | dump_superio(magic == 0x8f1 ? "Winbond" : "NSC", |
| 652 | reg_table, port, magic, LDN_SEL); |
Uwe Hermann | 0120e1a | 2007-09-16 18:11:03 +0000 | [diff] [blame] | 653 | } |
Robinson P. Tryon | 552cfb7 | 2008-01-15 22:30:55 +0000 | [diff] [blame] | 654 | |
| 655 | void print_nsc_chips(void) |
| 656 | { |
| 657 | print_vendor_chips("NSC", reg_table); |
| 658 | } |