summaryrefslogtreecommitdiff
path: root/util/superiotool
diff options
context:
space:
mode:
authorUlf Jordan <jordan@chalmers.se>2007-12-13 23:41:45 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2007-12-13 23:41:45 +0000
commit48c7032c28a2d9e247caecf411f9d56666f715b5 (patch)
treea6c4c527e3655275a5d433600acedfc8af3c678d /util/superiotool
parent850c01cacf799b0b738587fb31d631025f364a24 (diff)
Add dump support for NSC PC8741x.
Signed-off-by: Ulf Jordan <jordan@chalmers.se> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3004 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/superiotool')
-rw-r--r--util/superiotool/nsc.c47
-rw-r--r--util/superiotool/superiotool.h2
2 files changed, 48 insertions, 1 deletions
diff --git a/util/superiotool/nsc.c b/util/superiotool/nsc.c
index 6226a5b825..5197cf7b2a 100644
--- a/util/superiotool/nsc.c
+++ b/util/superiotool/nsc.c
@@ -210,6 +210,53 @@ static const struct superio_registers reg_table[] = {
{EOT}}},
{0xee, "PC8741x", {
/* SRID[7..5] is marked as "not applicable for the PC8741x". */
+ {NOLDN, NULL,
+ {0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29,
+ 0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT},
+ {0xee,0x11,0x20,MISC,MISC,MISC,0x00,NANA,0x00,MISC,
+ 0x00,RSVD,RSVD,RSVD,RSVD,RSVD,EOT}},
+ {0x0, "Floppy",
+ {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,EOT},
+ {0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x24,0x00,EOT}},
+ {0x1, "Parallel port",
+ {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT},
+ {0x00,0x02,0x78,0x07,0x02,0x04,0x04,0xf2,EOT}},
+ {0x2, "COM2",
+ {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT},
+ {0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT}},
+ {0x3, "COM1",
+ {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT},
+ {0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT}},
+ {0x4, "System wake-up control (SWC)",
+ {0x30,0x60,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x70,
+ 0x71,0x74,0x75,EOT},
+ {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x03,0x04,0x04,EOT}},
+ {0x5, "Mouse",
+ {0x30,0x70,0x71,0x74,0x75,EOT},
+ {0x00,0x0c,0x02,0x04,0x04,EOT}},
+ {0x6, "Keyboard",
+ {0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,0xf0,
+ EOT},
+ {0x00,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04,0x40,
+ EOT}},
+ {0x7, "GPIO",
+ {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf2,
+ 0xf3,EOT},
+ {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,MISC,0x01,
+ 0x00,EOT}},
+ {0xf, "X-Bus",
+ {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf2,
+ 0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,
+ EOT},
+ {0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ EOT}},
+ {0x10, "Real-time clock (RTC)",
+ {0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,0xf0,
+ 0xf1,0xf2,0xf3,EOT},
+ {0x00,0x00,0x70,0x00,0x72,0x08,0x00,0x04,0x04,0x00,
+ 0x00,0x00,0x00,EOT}},
{EOT}}},
{0xf0, "PC87372", {
{EOT}}},
diff --git a/util/superiotool/superiotool.h b/util/superiotool/superiotool.h
index ec0a55903b..e7c4e2363b 100644
--- a/util/superiotool/superiotool.h
+++ b/util/superiotool/superiotool.h
@@ -47,7 +47,7 @@ and print its vendor, name, ID, revision, and config port.\n"
#define RSVD -4 /* Reserved */
#define MISC -5 /* Needs special comment in output */
#define MAXNAMELEN 30 /* Maximum Name Length */
-#define MAXLDN 0xf /* Biggest LDN */
+#define MAXLDN 0x10 /* Biggest LDN */
#define LDNSIZE (MAXLDN + 3) /* Biggest LDN + 0 + NOLDN + EOT */
#define MAXNUMIDX 70 /* Maximum number of indexes */
#define IDXSIZE (MAXNUMIDX + 1)