Uwe Hermann | 6ff6af7 | 2007-09-18 22:24:34 +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 | 6ff6af7 | 2007-09-18 22:24:34 +0000 | [diff] [blame] | 3 | * |
| 4 | * Copyright (C) 2007 Uwe Hermann <uwe@hermann-uwe.de> |
Stefan Reinauer | a3f0579 | 2008-07-19 14:42:21 +0000 | [diff] [blame] | 5 | * Copyright (C) 2008 coresystems GmbH <info@coresystems.de> |
Uwe Hermann | 6ff6af7 | 2007-09-18 22:24:34 +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 | 6ff6af7 | 2007-09-18 22:24:34 +0000 | [diff] [blame] | 16 | */ |
| 17 | |
| 18 | #include "superiotool.h" |
| 19 | |
Uwe Hermann | 0f86732 | 2007-09-24 01:40:09 +0000 | [diff] [blame] | 20 | #define DEVICE_ID_REG_OLD 0x0d |
| 21 | #define DEVICE_REV_REG_OLD 0x0e |
| 22 | |
| 23 | #define DEVICE_ID_REG 0x20 |
| 24 | #define DEVICE_REV_REG 0x21 |
Uwe Hermann | 6ff6af7 | 2007-09-18 22:24:34 +0000 | [diff] [blame] | 25 | |
Uwe Hermann | 246be7d | 2007-10-31 22:22:11 +0000 | [diff] [blame] | 26 | static const struct superio_registers reg_table[] = { |
Uwe Hermann | 14f304a | 2007-10-08 01:11:11 +0000 | [diff] [blame] | 27 | /* The following Super I/Os use the 0x20/0x21 ID registers. */ |
Marc Bertens | 4d68df7 | 2010-04-13 01:22:20 +0000 | [diff] [blame] | 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}}, |
Stefan Reinauer | 14e2277 | 2010-04-27 06:56:47 +0000 | [diff] [blame] | 67 | {EOT}}}, |
Uwe Hermann | 74b29b9 | 2007-11-17 17:13:52 +0000 | [diff] [blame] | 68 | {0x03, "FDC37C93xFR", { |
| 69 | /* FIXME: There's another 0x03 but found on port 0x0d/0x0e! */ |
| 70 | {EOT}}}, |
| 71 | {0x0a, "FDC37N971", { |
Stefan Reinauer | a12eb6a | 2008-07-19 14:07:35 +0000 | [diff] [blame] | 72 | {NOLDN, NULL, |
Uwe Hermann | b0ae976 | 2008-10-14 16:34:38 +0000 | [diff] [blame] | 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}}, |
Stefan Reinauer | a12eb6a | 2008-07-19 14:07:35 +0000 | [diff] [blame] | 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}}, |
Michael Gold | 556e6fb | 2009-06-26 15:25:04 +0000 | [diff] [blame] | 82 | {0x1, "Power management (PM1)", |
Stefan Reinauer | a12eb6a | 2008-07-19 14:07:35 +0000 | [diff] [blame] | 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}}, |
Michael Gold | 556e6fb | 2009-06-26 15:25:04 +0000 | [diff] [blame] | 102 | {0x8, "Embedded controller (EC)", |
Stefan Reinauer | a12eb6a | 2008-07-19 14:07:35 +0000 | [diff] [blame] | 103 | {0x30,0x60,0x61,EOT}, |
| 104 | {0x00,0x00,0x62,EOT}}, |
| 105 | {0x9, "Mailbox", |
| 106 | {0x30,0x60,0x61,EOT}, |
| 107 | {0x00,0x00,0x00,EOT}}, |
Uwe Hermann | 74b29b9 | 2007-11-17 17:13:52 +0000 | [diff] [blame] | 108 | {EOT}}}, |
| 109 | {0x0b, "FDC37N972", { |
Stefan Reinauer | a12eb6a | 2008-07-19 14:07:35 +0000 | [diff] [blame] | 110 | {NOLDN, NULL, |
Uwe Hermann | b0ae976 | 2008-10-14 16:34:38 +0000 | [diff] [blame] | 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}}, |
Stefan Reinauer | a12eb6a | 2008-07-19 14:07:35 +0000 | [diff] [blame] | 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}}, |
Michael Gold | 556e6fb | 2009-06-26 15:25:04 +0000 | [diff] [blame] | 120 | {0x1, "Power management (PM1)", |
Stefan Reinauer | a12eb6a | 2008-07-19 14:07:35 +0000 | [diff] [blame] | 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}}, |
Michael Gold | 556e6fb | 2009-06-26 15:25:04 +0000 | [diff] [blame] | 140 | {0x8, "Embedded controller (EC)", |
Stefan Reinauer | a12eb6a | 2008-07-19 14:07:35 +0000 | [diff] [blame] | 141 | {0x30,0x60,0x61,EOT}, |
| 142 | {0x00,0x00,0x62,EOT}}, |
| 143 | {0x9, "Mailbox", |
| 144 | {0x30,0x60,0x61,EOT}, |
| 145 | {0x00,0x00,0x00,EOT}}, |
Uwe Hermann | 74b29b9 | 2007-11-17 17:13:52 +0000 | [diff] [blame] | 146 | {EOT}}}, |
Uwe Hermann | 14f304a | 2007-10-08 01:11:11 +0000 | [diff] [blame] | 147 | {0x0e, "LPC47N252", { /* From sensors-detect */ |
François-Regis Vuillemin | 22b44ba | 2009-06-27 02:23:26 +0000 | [diff] [blame] | 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}}, |
Uwe Hermann | 6ff6af7 | 2007-09-18 22:24:34 +0000 | [diff] [blame] | 187 | {EOT}}}, |
Uwe Hermann | 14f304a | 2007-10-08 01:11:11 +0000 | [diff] [blame] | 188 | {0x14, "LPC47M172", { |
| 189 | {EOT}}}, |
Uwe Hermann | 74b29b9 | 2007-11-17 17:13:52 +0000 | [diff] [blame] | 190 | {0x30, "FDC37C93xAPM", { |
| 191 | {EOT}}}, |
Uwe Hermann | 0446dbb | 2007-10-08 01:59:46 +0000 | [diff] [blame] | 192 | {0x40, "FDC37C67x", { /* E.g. FDC37C672. Chiprev: 0x01 */ |
Robinson P. Tryon | 29cbb36 | 2007-11-25 21:43:29 +0000 | [diff] [blame] | 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}}, |
Uwe Hermann | 14f304a | 2007-10-08 01:11:11 +0000 | [diff] [blame] | 224 | {EOT}}}, |
| 225 | {0x42, "FDC37B80x/FDC37M707", { |
Uwe Hermann | 0f86732 | 2007-09-24 01:40:09 +0000 | [diff] [blame] | 226 | {EOT}}}, |
Uwe Hermann | 4c28034 | 2007-11-14 00:30:36 +0000 | [diff] [blame] | 227 | {0x09, "FDC37N958FR", { /* Found in e.g. Dell Latitude CPi A366XT. */ |
| 228 | {NOLDN, NULL, |
Uwe Hermann | b0ae976 | 2008-10-14 16:34:38 +0000 | [diff] [blame] | 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}}, |
Uwe Hermann | 4c28034 | 2007-11-14 00:30:36 +0000 | [diff] [blame] | 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}}}, |
Uwe Hermann | 74b29b9 | 2007-11-17 17:13:52 +0000 | [diff] [blame] | 270 | {0x43, "FDC37B77x", { |
| 271 | {EOT}}}, |
Uwe Hermann | 0f86732 | 2007-09-24 01:40:09 +0000 | [diff] [blame] | 272 | {0x44, "FDC37B78x", { |
Robinson P. Tryon | e1073f1 | 2007-10-07 15:04:17 +0000 | [diff] [blame] | 273 | {NOLDN, NULL, |
Uwe Hermann | b0ae976 | 2008-10-14 16:34:38 +0000 | [diff] [blame] | 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}}, |
Robinson P. Tryon | e1073f1 | 2007-10-07 15:04:17 +0000 | [diff] [blame] | 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}}, |
Uwe Hermann | 0f86732 | 2007-09-24 01:40:09 +0000 | [diff] [blame] | 314 | {EOT}}}, |
Uwe Hermann | a57a0ac | 2009-09-24 12:17:07 +0000 | [diff] [blame] | 315 | {0x46, "FDC37M602", { /* Found in Biostar M6TLD. */ |
| 316 | {EOT}}}, |
Uwe Hermann | 14f304a | 2007-10-08 01:11:11 +0000 | [diff] [blame] | 317 | {0x47, "FDC37M60x", { /* TODO: Not yet in sensors-detect */ |
| 318 | {EOT}}}, |
Uwe Hermann | 0f86732 | 2007-09-24 01:40:09 +0000 | [diff] [blame] | 319 | {0x4c, "FDC37B72x", { |
Robinson P. Tryon | 8a9c03f | 2007-10-07 15:12:12 +0000 | [diff] [blame] | 320 | {NOLDN, NULL, |
Uwe Hermann | b0ae976 | 2008-10-14 16:34:38 +0000 | [diff] [blame] | 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}}, |
Robinson P. Tryon | 8a9c03f | 2007-10-07 15:12:12 +0000 | [diff] [blame] | 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}}, |
Uwe Hermann | 0f86732 | 2007-09-24 01:40:09 +0000 | [diff] [blame] | 356 | {EOT}}}, |
David Hendricks | b159f7a | 2011-02-17 00:52:02 +0000 | [diff] [blame] | 357 | #if 0 |
| 358 | /* FIXME: FDC37M81x and MEC1308 have conflicting device IDs */ |
Uwe Hermann | 0f86732 | 2007-09-24 01:40:09 +0000 | [diff] [blame] | 359 | {0x4d, "FDC37M81x", { |
Robinson P. Tryon | 87c4999 | 2007-10-07 14:33:13 +0000 | [diff] [blame] | 360 | {NOLDN, NULL, |
Uwe Hermann | b0ae976 | 2008-10-14 16:34:38 +0000 | [diff] [blame] | 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}}, |
Robinson P. Tryon | 87c4999 | 2007-10-07 14:33:13 +0000 | [diff] [blame] | 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}}, |
Uwe Hermann | 0f86732 | 2007-09-24 01:40:09 +0000 | [diff] [blame] | 390 | {EOT}}}, |
David Hendricks | b159f7a | 2011-02-17 00:52:02 +0000 | [diff] [blame] | 391 | #endif |
| 392 | {0x4d, "MEC1308", { |
| 393 | {NOLDN, NULL, |
| 394 | {0x02,0x03,0x07,0x17,0x20,0x21,0x22,0x23,0x24,0x25, |
Uwe Hermann | c55bcde | 2011-06-09 20:56:29 +0200 | [diff] [blame] | 395 | 0x26,0x27,0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, |
David Hendricks | b159f7a | 2011-02-17 00:52:02 +0000 | [diff] [blame] | 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", |
Uwe Hermann | c55bcde | 2011-06-09 20:56:29 +0200 | [diff] [blame] | 407 | {0x30,0x70,0x72,0xf0,EOT}, |
David Hendricks | b159f7a | 2011-02-17 00:52:02 +0000 | [diff] [blame] | 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}}}, |
Uwe Hermann | 0f86732 | 2007-09-24 01:40:09 +0000 | [diff] [blame] | 419 | {0x51, "LPC47B27x", { |
Uwe Hermann | f811ede | 2007-11-22 03:36:18 +0000 | [diff] [blame] | 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}}, |
Uwe Hermann | 0f86732 | 2007-09-24 01:40:09 +0000 | [diff] [blame] | 453 | {EOT}}}, |
Uwe Hermann | 14f304a | 2007-10-08 01:11:11 +0000 | [diff] [blame] | 454 | {0x52, "LPC47B37x", { |
Uwe Hermann | 0446dbb | 2007-10-08 01:59:46 +0000 | [diff] [blame] | 455 | {EOT}}}, |
| 456 | {0x54, "LPC47U33x", { |
Michael Gold | 556e6fb | 2009-06-26 15:25:04 +0000 | [diff] [blame] | 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}}, |
Uwe Hermann | 0446dbb | 2007-10-08 01:59:46 +0000 | [diff] [blame] | 488 | {EOT}}}, |
| 489 | {0x56, "LPC47B34x", { |
| 490 | {EOT}}}, |
| 491 | {0x57, "LPC47S42x", { |
| 492 | {EOT}}}, |
| 493 | {0x59, "LPC47M10x/112/13x", { |
Uwe Hermann | 23740c8 | 2007-10-05 15:11:38 +0000 | [diff] [blame] | 494 | {NOLDN, NULL, |
Uwe Hermann | b0ae976 | 2008-10-14 16:34:38 +0000 | [diff] [blame] | 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}}, |
Uwe Hermann | 23740c8 | 2007-10-05 15:11:38 +0000 | [diff] [blame] | 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}}, |
Michael Gold | 556e6fb | 2009-06-26 15:25:04 +0000 | [diff] [blame] | 521 | {0xa, "Power management events (PME)", |
Uwe Hermann | 23740c8 | 2007-10-05 15:11:38 +0000 | [diff] [blame] | 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}}, |
Uwe Hermann | 0f86732 | 2007-09-24 01:40:09 +0000 | [diff] [blame] | 527 | {EOT}}}, |
Uwe Hermann | 14f304a | 2007-10-08 01:11:11 +0000 | [diff] [blame] | 528 | {0x5d, "LPC47B357", { /* From sensors-detect (no datasheet) */ |
| 529 | {EOT}}}, |
| 530 | {0x5f, "LPC47M14x", { |
| 531 | {EOT}}}, |
| 532 | {0x60, "LPC47M15x/192/997", { |
Ulf Jordan | c9a677b | 2007-12-14 20:00:58 +0000 | [diff] [blame] | 533 | {NOLDN, NULL, |
Uwe Hermann | b0ae976 | 2008-10-14 16:34:38 +0000 | [diff] [blame] | 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}}, |
Ulf Jordan | c9a677b | 2007-12-14 20:00:58 +0000 | [diff] [blame] | 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}}, |
Michael Gold | 556e6fb | 2009-06-26 15:25:04 +0000 | [diff] [blame] | 558 | {0xa, "Power management events (PME)", |
Ulf Jordan | c9a677b | 2007-12-14 20:00:58 +0000 | [diff] [blame] | 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}}, |
Uwe Hermann | 0f86732 | 2007-09-24 01:40:09 +0000 | [diff] [blame] | 564 | {EOT}}}, |
| 565 | {0x62, "LPC47S45x", { |
| 566 | {EOT}}}, |
Uwe Hermann | cfb6ac7 | 2008-10-01 20:16:58 +0000 | [diff] [blame] | 567 | {0x67, "EMC2700LPC", { /* From sensors-detect */ |
| 568 | {EOT}}}, |
Uwe Hermann | 14f304a | 2007-10-08 01:11:11 +0000 | [diff] [blame] | 569 | {0x6b, "LPC47M292", { /* From sensors-detect */ |
| 570 | {EOT}}}, |
| 571 | {0x6e, "LPC47B387", { /* TODO: Not yet in sensors-detect */ |
Uwe Hermann | db5f953 | 2007-10-04 16:28:56 +0000 | [diff] [blame] | 572 | /* Found in the HP Compaq Business Desktop d530 Series */ |
Uwe Hermann | 59b99d9 | 2007-11-29 02:43:50 +0000 | [diff] [blame] | 573 | /* http://article.gmane.org/gmane.linux.bios/27192 */ |
Uwe Hermann | db5f953 | 2007-10-04 16:28:56 +0000 | [diff] [blame] | 574 | /* We cannot find a public datasheet for this Super I/O. */ |
| 575 | {EOT}}}, |
Uwe Hermann | 0f86732 | 2007-09-24 01:40:09 +0000 | [diff] [blame] | 576 | {0x6f, "LPC47B397", { |
| 577 | {EOT}}}, |
Stefan Reinauer | 6df0c62 | 2009-03-11 14:48:20 +0000 | [diff] [blame] | 578 | {0x74, "LPC47M182", { /* Only for LD_NUM = 0 */ |
Uwe Hermann | 83da8dc | 2009-03-25 17:38:40 +0000 | [diff] [blame] | 579 | {NOLDN, NULL, |
Uwe Hermann | db52fb8 | 2009-06-26 15:53:07 +0000 | [diff] [blame] | 580 | {0x02,0x03,0x20,0x21,0x22,0x23,0x24,0x26,0x27, |
Stefan Reinauer | 6df0c62 | 2009-03-11 14:48:20 +0000 | [diff] [blame] | 581 | 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT}, |
Uwe Hermann | db52fb8 | 2009-06-26 15:53:07 +0000 | [diff] [blame] | 582 | {0x00,RSVD,0x74,RSVD,0x00,RSVD,0x44,MISC,0x00, |
Stefan Reinauer | 6df0c62 | 2009-03-11 14:48:20 +0000 | [diff] [blame] | 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}}, |
Michael Gold | 556e6fb | 2009-06-26 15:25:04 +0000 | [diff] [blame] | 598 | {0x4, "Power control", |
Stefan Reinauer | 6df0c62 | 2009-03-11 14:48:20 +0000 | [diff] [blame] | 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}}, |
Uwe Hermann | 14f304a | 2007-10-08 01:11:11 +0000 | [diff] [blame] | 613 | {EOT}}}, |
| 614 | {0x76, "LPC47M584", { /* From sensors-detect (no datasheet) */ |
| 615 | {EOT}}}, |
Uwe Hermann | 0f86732 | 2007-09-24 01:40:09 +0000 | [diff] [blame] | 616 | {0x77, "A8000", { /* ASUS A8000, a rebranded DME1737(?) */ |
| 617 | {NOLDN, NULL, |
Uwe Hermann | b0ae976 | 2008-10-14 16:34:38 +0000 | [diff] [blame] | 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}}, |
Uwe Hermann | 0f86732 | 2007-09-24 01:40:09 +0000 | [diff] [blame] | 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, |
Uwe Hermann | b0ae976 | 2008-10-14 16:34:38 +0000 | [diff] [blame] | 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}}, |
Uwe Hermann | 0f86732 | 2007-09-24 01:40:09 +0000 | [diff] [blame] | 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}}}, |
Uwe Hermann | 14f304a | 2007-10-08 01:11:11 +0000 | [diff] [blame] | 670 | {0x79, "SCH5504", { /* From sensors-detect (no datasheet) */ |
| 671 | {EOT}}}, |
Uwe Hermann | 2ac37ca | 2009-05-07 00:21:02 +0000 | [diff] [blame] | 672 | {0x7a, "LPC47N217", { /* Found in Toshiba Satellite A80-117. */ |
Uwe Hermann | 14f304a | 2007-10-08 01:11:11 +0000 | [diff] [blame] | 673 | {EOT}}}, |
Uwe Hermann | 14f304a | 2007-10-08 01:11:11 +0000 | [diff] [blame] | 674 | {0x7c, "SCH3112", { |
| 675 | {EOT}}}, |
| 676 | {0x7d, "SCH3114", { |
Mark Norman | 1866e9c | 2011-06-18 10:24:36 +0930 | [diff] [blame] | 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}}, |
Uwe Hermann | 14f304a | 2007-10-08 01:11:11 +0000 | [diff] [blame] | 708 | {EOT}}}, |
| 709 | {0x7f, "SCH3116", { |
| 710 | {EOT}}}, |
Uwe Hermann | 0f86732 | 2007-09-24 01:40:09 +0000 | [diff] [blame] | 711 | {0x81, "SCH5307", { |
| 712 | {EOT}}}, |
Uwe Hermann | cfb6ac7 | 2008-10-01 20:16:58 +0000 | [diff] [blame] | 713 | {0x83, "SCH5514D", { /* From sensors-detect */ |
| 714 | {EOT}}}, |
Uwe Hermann | 14f304a | 2007-10-08 01:11:11 +0000 | [diff] [blame] | 715 | {0x85, "SCH5317", { /* From sensors-detect */ |
Uwe Hermann | cfb6ac7 | 2008-10-01 20:16:58 +0000 | [diff] [blame] | 716 | /* The SCH5317 can have either 0x85 or 0x8c as device ID. */ |
| 717 | {EOT}}}, |
| 718 | {0x86, "SCH5127", { /* From sensors-detect */ |
Uwe Hermann | 14f304a | 2007-10-08 01:11:11 +0000 | [diff] [blame] | 719 | {EOT}}}, |
Uwe Hermann | bb33e4a | 2008-04-23 09:27:18 +0000 | [diff] [blame] | 720 | {0x89, "SCH5027", { /* From sensors-detect (no public datasheet) */ |
| 721 | {EOT}}}, |
Uwe Hermann | cfb6ac7 | 2008-10-01 20:16:58 +0000 | [diff] [blame] | 722 | {0x8c, "SCH5317", { /* From sensors-detect */ |
| 723 | /* The SCH5317 can have either 0x85 or 0x8c as device ID. */ |
| 724 | {EOT}}}, |
Uwe Hermann | 14f304a | 2007-10-08 01:11:11 +0000 | [diff] [blame] | 725 | {0x90, "SCH4307", { /* From sensors-detect */ |
| 726 | {EOT}}}, |
| 727 | |
| 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. */ |
Uwe Hermann | 74b29b9 | 2007-11-17 17:13:52 +0000 | [diff] [blame] | 732 | /* FIXME: There's another 0x03 but found on port 0x20/0x21! */ |
Uwe Hermann | 14f304a | 2007-10-08 01:11:11 +0000 | [diff] [blame] | 733 | {EOT}}}, |
| 734 | {0x04, "FDC37C669FR", { /* TODO: Not yet in sensors-detect. */ |
| 735 | /* Init: 0x55, 0x55. Exit: 0xaa. Ports: 0x3f0/0x370. */ |
| 736 | {EOT}}}, |
Uwe Hermann | 74b29b9 | 2007-11-17 17:13:52 +0000 | [diff] [blame] | 737 | {0x13, "LPC47N237", { |
| 738 | /* Init: 0x55. Exit: 0xaa. Ports: 0x2e/0x4e. */ |
| 739 | {EOT}}}, |
Uwe Hermann | 14f304a | 2007-10-08 01:11:11 +0000 | [diff] [blame] | 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}}}, |
Uwe Hermann | 74b29b9 | 2007-11-17 17:13:52 +0000 | [diff] [blame] | 754 | {0x29, "FDC37N3869/FDC37N869", { |
| 755 | /* Init: 0x55. Exit: 0xaa. Ports: 0x3f0/0x370. */ |
| 756 | {EOT}}}, |
Uwe Hermann | 14f304a | 2007-10-08 01:11:11 +0000 | [diff] [blame] | 757 | {0x5a, "LPC47N227", { |
| 758 | /* Init: 0x55. Exit: 0xaa. Ports: 0x2e/0x4e. */ |
Stefan Reinauer | 45c1556 | 2007-10-13 17:06:21 +0000 | [diff] [blame] | 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}}, |
Uwe Hermann | 14f304a | 2007-10-08 01:11:11 +0000 | [diff] [blame] | 772 | {EOT}}}, |
Stefan Reinauer | a3f0579 | 2008-07-19 14:42:21 +0000 | [diff] [blame] | 773 | {0x5b, "SIO10N268", { |
| 774 | /* Init: 0x55. Exit: 0xaa. Ports: 0x2e/0x4e. */ |
| 775 | {NOLDN, NULL, |
Stefan Reinauer | 67b35cb1 | 2008-08-15 09:46:55 +0000 | [diff] [blame] | 776 | {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09, |
Stefan Reinauer | a3f0579 | 2008-07-19 14:42:21 +0000 | [diff] [blame] | 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}}}, |
Uwe Hermann | 14f304a | 2007-10-08 01:11:11 +0000 | [diff] [blame] | 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}}}, |
Uwe Hermann | 6ff6af7 | 2007-09-18 22:24:34 +0000 | [diff] [blame] | 802 | {EOT} |
| 803 | }; |
| 804 | |
Uwe Hermann | 3acf31e | 2007-09-19 01:55:35 +0000 | [diff] [blame] | 805 | static void enter_conf_mode_smsc(uint16_t port) |
Uwe Hermann | 25a6c0f | 2007-09-19 00:48:42 +0000 | [diff] [blame] | 806 | { |
Uwe Hermann | 14f304a | 2007-10-08 01:11:11 +0000 | [diff] [blame] | 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. |
| 811 | */ |
Andriy Gapon | b64aa60 | 2008-10-28 22:13:38 +0000 | [diff] [blame] | 812 | OUTB(0x55, port); |
| 813 | OUTB(0x55, port); |
Uwe Hermann | 25a6c0f | 2007-09-19 00:48:42 +0000 | [diff] [blame] | 814 | } |
| 815 | |
Uwe Hermann | 3acf31e | 2007-09-19 01:55:35 +0000 | [diff] [blame] | 816 | static void exit_conf_mode_smsc(uint16_t port) |
Uwe Hermann | 25a6c0f | 2007-09-19 00:48:42 +0000 | [diff] [blame] | 817 | { |
Andriy Gapon | b64aa60 | 2008-10-28 22:13:38 +0000 | [diff] [blame] | 818 | OUTB(0xaa, port); |
Uwe Hermann | 25a6c0f | 2007-09-19 00:48:42 +0000 | [diff] [blame] | 819 | } |
| 820 | |
Uwe Hermann | 5f45fc2 | 2007-09-28 15:02:17 +0000 | [diff] [blame] | 821 | static void probe_idregs_smsc_helper(uint16_t port, uint8_t idreg, |
| 822 | uint8_t revreg) |
Uwe Hermann | 6ff6af7 | 2007-09-18 22:24:34 +0000 | [diff] [blame] | 823 | { |
Uwe Hermann | 7e7e9ac | 2007-09-19 15:52:23 +0000 | [diff] [blame] | 824 | uint8_t id, rev; |
Uwe Hermann | 83da8dc | 2009-03-25 17:38:40 +0000 | [diff] [blame] | 825 | uint16_t runtime_base; |
Uwe Hermann | 8b8d039 | 2007-10-04 15:23:38 +0000 | [diff] [blame] | 826 | const char *info = (idreg == 0x20) ? "(idregs=0x20/0x21) " |
| 827 | : "(idregs=0x0d/0x0e) "; |
| 828 | |
| 829 | probing_for("SMSC", info, port); |
Uwe Hermann | 6ff6af7 | 2007-09-18 22:24:34 +0000 | [diff] [blame] | 830 | |
Uwe Hermann | 25a6c0f | 2007-09-19 00:48:42 +0000 | [diff] [blame] | 831 | enter_conf_mode_smsc(port); |
Uwe Hermann | 6ff6af7 | 2007-09-18 22:24:34 +0000 | [diff] [blame] | 832 | |
Uwe Hermann | 5f45fc2 | 2007-09-28 15:02:17 +0000 | [diff] [blame] | 833 | id = regval(port, idreg); |
| 834 | rev = regval(port, revreg); |
Uwe Hermann | 7e7e9ac | 2007-09-19 15:52:23 +0000 | [diff] [blame] | 835 | |
| 836 | if (superio_unknown(reg_table, id)) { |
Uwe Hermann | 8b8d039 | 2007-10-04 15:23:38 +0000 | [diff] [blame] | 837 | if (verbose) |
| 838 | printf(NOTFOUND "id=0x%02x, rev=0x%02x\n", id, rev); |
Uwe Hermann | 0702469 | 2007-09-20 22:13:48 +0000 | [diff] [blame] | 839 | exit_conf_mode_smsc(port); |
Uwe Hermann | 6ff6af7 | 2007-09-18 22:24:34 +0000 | [diff] [blame] | 840 | return; |
| 841 | } |
| 842 | |
Jonathan A. Kollasch | 522e9e9 | 2011-11-07 10:43:05 -0600 | [diff] [blame] | 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; |
| 853 | } |
| 854 | } |
| 855 | |
Uwe Hermann | 8b8d039 | 2007-10-04 15:23:38 +0000 | [diff] [blame] | 856 | printf("Found %s %s (id=0x%02x, rev=0x%02x) at 0x%x\n", |
Uwe Hermann | 0f86732 | 2007-09-24 01:40:09 +0000 | [diff] [blame] | 857 | (id == 0x77 ? "ASUS" : "SMSC"), get_superio_name(reg_table, id), |
| 858 | id, rev, port); |
Uwe Hermann | e9d4616 | 2007-10-07 20:01:23 +0000 | [diff] [blame] | 859 | chip_found = 1; |
Uwe Hermann | 6ff6af7 | 2007-09-18 22:24:34 +0000 | [diff] [blame] | 860 | |
Stefan Reinauer | 7a51e50 | 2008-12-01 14:18:57 +0000 | [diff] [blame] | 861 | dump_superio((id == 0x77 ? "ASUS" : "SMSC"), reg_table, port, id, |
| 862 | LDN_SEL); |
Uwe Hermann | 6ff6af7 | 2007-09-18 22:24:34 +0000 | [diff] [blame] | 863 | |
Stefan Reinauer | 6df0c62 | 2009-03-11 14:48:20 +0000 | [diff] [blame] | 864 | if (extra_dump) { |
Stefan Reinauer | 6df0c62 | 2009-03-11 14:48:20 +0000 | [diff] [blame] | 865 | switch (id) { |
Uwe Hermann | 83da8dc | 2009-03-25 17:38:40 +0000 | [diff] [blame] | 866 | case 0x5a: /* LPC47N227 */ |
Stefan Reinauer | 6df0c62 | 2009-03-11 14:48:20 +0000 | [diff] [blame] | 867 | runtime_base = regval(port, 0x30) << 4; |
| 868 | if (runtime_base) |
| 869 | dump_io(runtime_base, 16); |
| 870 | else |
Uwe Hermann | 83da8dc | 2009-03-25 17:38:40 +0000 | [diff] [blame] | 871 | printf("Runtime Register Block not mapped on this Super I/O.\n"); |
Stefan Reinauer | 6df0c62 | 2009-03-11 14:48:20 +0000 | [diff] [blame] | 872 | break; |
| 873 | default: |
Uwe Hermann | 83da8dc | 2009-03-25 17:38:40 +0000 | [diff] [blame] | 874 | printf("No extra registers known for this chip.\n"); |
Stefan Reinauer | 6df0c62 | 2009-03-11 14:48:20 +0000 | [diff] [blame] | 875 | } |
| 876 | } |
| 877 | |
Uwe Hermann | 25a6c0f | 2007-09-19 00:48:42 +0000 | [diff] [blame] | 878 | exit_conf_mode_smsc(port); |
Uwe Hermann | 6ff6af7 | 2007-09-18 22:24:34 +0000 | [diff] [blame] | 879 | } |
| 880 | |
Uwe Hermann | 5f45fc2 | 2007-09-28 15:02:17 +0000 | [diff] [blame] | 881 | void probe_idregs_smsc(uint16_t port) |
| 882 | { |
| 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); |
| 885 | } |
Robinson P. Tryon | 552cfb7 | 2008-01-15 22:30:55 +0000 | [diff] [blame] | 886 | |
| 887 | void print_smsc_chips(void) |
| 888 | { |
| 889 | print_vendor_chips("SMSC", reg_table); |
Uwe Hermann | 83da8dc | 2009-03-25 17:38:40 +0000 | [diff] [blame] | 890 | printf("SMSC LPC47N227 runtime register block\n\n"); |
Robinson P. Tryon | 552cfb7 | 2008-01-15 22:30:55 +0000 | [diff] [blame] | 891 | } |