diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2007-09-18 22:24:34 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2007-09-18 22:24:34 +0000 |
commit | 6ff6af762158147b3c47bd1701a389622bd043a5 (patch) | |
tree | 9d10cba346a875bbfae17d2665c1d46d1cdb3132 /util/superiotool/superiotool.h | |
parent | d8a18a2adbe62aa0928515de1850f8e1722f69b9 (diff) |
Superiotool: Add support for the SMSC FDC37N769.
Here's what a register dump looks like on my test system:
No Super I/O chip found at 0x002e
No Super I/O chip found at 0x004e
No Super I/O chip found at 0x002e
No Super I/O chip found at 0x004e
No Super I/O chip found at 0x002e
No Super I/O chip found at 0x004e
Super I/O found at 0x03f0: id=0x28, rev=0x01
SMSC FDC37N769
idx 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f
val 20 90 80 f4 00 00 ff 00 00 00 40 00 0e 28 01 00 00 00 00 00 02 00 01 03 00 00 00 00 00 00 80 00 00 00 00 00 00 ba 00 00 03 00 00 23 03 03 00 00
def 28 9c 88 70 00 00 ff 00 00 00 00 00 02 28 NA 00 00 80 RR RR NA NA NA 03 RR RR RR RR RR RR 80 00 3c RR RR 00 00 00 00 00 00 00 RR 00 00 03 00 00
Probing 0x0370, failed (0xff), data returns 0xff
I'm self-acking this as it's pretty simple stuff, but please let me
know if anything could be improved here, or if you think this
is not trivial enough to warrant self-acking.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2781 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/superiotool/superiotool.h')
-rw-r--r-- | util/superiotool/superiotool.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/util/superiotool/superiotool.h b/util/superiotool/superiotool.h index 904007cbdf..229c0d5982 100644 --- a/util/superiotool/superiotool.h +++ b/util/superiotool/superiotool.h @@ -24,11 +24,13 @@ #include <stdio.h> #include <stdlib.h> +#include <stdint.h> #include <sys/io.h> #define EOT -1 /* End Of Table */ #define NOLDN -2 /* NO LDN needed */ #define NANA -3 /* Not Available */ +#define RSVD -4 /* Reserved */ #define MAXNAMELEN 20 /* Maximum Name Length */ #define MAXLDN 0xa /* Biggest LDN */ #define LDNSIZE (MAXLDN + 3) /* Biggest LDN + 0 + NOLDN + EOT */ @@ -39,7 +41,7 @@ struct superio_registers { /* Yes, superio_id should be unsigned, but EOT has to be negative. */ signed short superio_id; const char name[MAXNAMELEN]; - struct ite_ldnidx { + struct { signed short ldn; signed short idx[IDXSIZE]; signed short def[IDXSIZE]; @@ -65,4 +67,8 @@ void probe_idregs_ite(unsigned short port); void dump_ns8374(unsigned short port); void probe_idregs_simple(unsigned short port); +/* smsc.c */ +void dump_smsc(uint32_t port, uint32_t id); +void probe_idregs_smsc(uint32_t port); + #endif |