2 * This file is part of the superiotool project.
4 * Copyright (C) 2011 Jonathan A. Kollasch <jakllsch@kollasch.net>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 #include "superiotool.h"
23 #define DEVICE_ID_REG 0x20
24 #define DEVICE_REV_REG 0x21
26 static const struct superio_registers reg_table[] = {
27 {0x0b, "SLB9635TT12", {
29 {0x20,0x21,0x26,0x27,EOT},
30 {0x0b,0x00,NANA,NANA,EOT}},
32 {0x30,0x38,0x60,0x61,0x70,0x71,0xf1,0xf2,0xf3,0xf4,0xf5,EOT},
33 {0x00,0x00,NANA,NANA,0x00,0x02,0xd1,0x15,0x0b,0x00,NANA,EOT}},
38 /* same as some SMSC */
39 static void enter_conf_mode_infineon(uint16_t port)
44 static void exit_conf_mode_infineon(uint16_t port)
49 void probe_idregs_infineon(uint16_t port)
53 probing_for("Infineon", "", port);
55 enter_conf_mode_infineon(port);
57 devid = regval(port, DEVICE_ID_REG);
58 rev = regval(port, DEVICE_REV_REG);
60 if (superio_unknown(reg_table, devid)) {
62 printf(NOTFOUND "id=0x%02x, rev=0x%02x\n", devid, rev);
63 exit_conf_mode_infineon(port);
67 /* Attempt to prevent false matches on SMSC FDC37N972, see smsc.c */
68 if (((regval(port, 0x27)<<8)|regval(port, 0x26)) != port) {
70 printf(NOTFOUND "id=0x%02x, rev=0x%02x\n", devid, rev);
71 exit_conf_mode_infineon(port);
75 printf("Found Infineon %s (id=0x%02x, rev=0x%02x) at 0x%x\n",
76 get_superio_name(reg_table, devid), devid, rev, port);
79 dump_superio("Infineon", reg_table, port, devid, LDN_SEL);
81 exit_conf_mode_infineon(port);
84 void print_infineon_chips(void)
86 print_vendor_chips("Infineon", reg_table);