Add dump support for Winbond (NSC) PC87427. Dumps available from real hardware.
Signed-off-by: Tom Sylla tsylla@gmail.com
Index: nsc.c =================================================================== --- nsc.c (revision 3358) +++ nsc.c (working copy) @@ -408,6 +408,65 @@ {EOT}}}, {0xf2, "PC87427", { /* SRID[7..5] is marked as "not applicable for the PC87427". */ + {NOLDN, NULL, + {0x10,0x12,0x13,0x1d,0x20,0x21,0x22,0x23,0x24,0x25, + 0x26,0x27,0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, + EOT}, + {0x00,0x00,0x00,0x00,0xf2,0x11,0xa0,MISC,MISC,MISC, + 0x02,NANA,0x00,MISC,0x00,0x00,MISC,MISC,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}}, + {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,0x50,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1, + 0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,EOT}, + {0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,MISC, + 0x01,0x00,0x00,0x00,0x00,0x00,0x00,EOT}}, + {0x9, "Fan Monitor and Control (FMC)", + {0x30,0x50,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1, + EOT}, + {0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x19,0x06, + EOT}}, + {0xa, "Watchdog timer (WDT)", + {0x30,0x50,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, + {0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x04,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, + 0xfd,0xfe,0xff,EOT}, + {0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x80,0x10,EOT}}, + {0x10, "Real-time clock (RTC)", + {0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,0xf0, + 0xf1,0xf2,0xf3,0xf6,0xf7,EOT}, + {0x00,0x00,0x70,0x00,0x72,0x08,0x00,0x04,0x04,0x00, + 0x00,0x00,0x00,MISC,0x00,EOT}}, + {0x14, "Health Monitoring and Control (HMC)", + {0x30,0x50,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75, + 0xf0,EOT}, + {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x04, + 0x05,EOT}}, {EOT}}}, {0xf3, "PC87373", { {EOT}}}, Index: superiotool.h =================================================================== --- superiotool.h (revision 3358) +++ superiotool.h (working copy) @@ -51,7 +51,7 @@ #define NANA -3 /* Not Available */ #define RSVD -4 /* Reserved */ #define MISC -5 /* Needs special comment in output */ -#define MAXLDN 0x10 /* Biggest LDN */ +#define MAXLDN 0x14 /* Biggest LDN */ #define LDNSIZE (MAXLDN + 3) /* Biggest LDN + 0 + NOLDN + EOT */ #define MAXNUMIDX 170 /* Maximum number of indexes */ #define IDXSIZE (MAXNUMIDX + 1)
On Thu, May 29, 2008 at 10:46:33AM -0400, Tom Sylla wrote:
Add dump support for Winbond (NSC) PC87427. Dumps available from real hardware.
Signed-off-by: Tom Sylla tsylla@gmail.com
Acked-by: Peter Stuge peter@stuge.se
Index: nsc.c
--- nsc.c (revision 3358) +++ nsc.c (working copy) @@ -408,6 +408,65 @@ {EOT}}}, {0xf2, "PC87427", { /* SRID[7..5] is marked as "not applicable for the PC87427". */
{NOLDN, NULL,
{0x10,0x12,0x13,0x1d,0x20,0x21,0x22,0x23,0x24,0x25,
0x26,0x27,0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,
EOT},
{0x00,0x00,0x00,0x00,0xf2,0x11,0xa0,MISC,MISC,MISC,
0x02,NANA,0x00,MISC,0x00,0x00,MISC,MISC,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}},
{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,0x50,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,
0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,EOT},
{0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,MISC,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,EOT}},
{0x9, "Fan Monitor and Control (FMC)",
{0x30,0x50,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,
EOT},
{0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x19,0x06,
EOT}},
{0xa, "Watchdog timer (WDT)",
{0x30,0x50,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT},
{0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x04,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,
0xfd,0xfe,0xff,EOT},
{0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x80,0x10,EOT}},
{0x10, "Real-time clock (RTC)",
{0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,0xf0,
0xf1,0xf2,0xf3,0xf6,0xf7,EOT},
{0x00,0x00,0x70,0x00,0x72,0x08,0x00,0x04,0x04,0x00,
0x00,0x00,0x00,MISC,0x00,EOT}},
{0x14, "Health Monitoring and Control (HMC)",
{0x30,0x50,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,
0xf0,EOT},
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x04,
{EOT}}}, {0xf3, "PC87373", { {EOT}}},0x05,EOT}},
Index: superiotool.h
--- superiotool.h (revision 3358) +++ superiotool.h (working copy) @@ -51,7 +51,7 @@ #define NANA -3 /* Not Available */ #define RSVD -4 /* Reserved */ #define MISC -5 /* Needs special comment in output */ -#define MAXLDN 0x10 /* Biggest LDN */ +#define MAXLDN 0x14 /* Biggest LDN */ #define LDNSIZE (MAXLDN + 3) /* Biggest LDN + 0 + NOLDN + EOT */ #define MAXNUMIDX 170 /* Maximum number of indexes */ #define IDXSIZE (MAXNUMIDX + 1)
On Fri, Jun 06, 2008 at 09:10:49PM +0200, Peter Stuge wrote:
On Thu, May 29, 2008 at 10:46:33AM -0400, Tom Sylla wrote:
Add dump support for Winbond (NSC) PC87427. Dumps available from real hardware.
Signed-off-by: Tom Sylla tsylla@gmail.com
Acked-by: Peter Stuge peter@stuge.se
r3361
Here is a dump for the wiki:
superiotool r3361 Found NSC PC87427 (sid=0xf2, srid=0x04) at 0x2e Register dump: idx 10 12 13 1d 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f val 00 00 00 00 f2 19 a0 40 20 00 02 04 00 14 00 04 12 00 00 00 def 00 00 00 00 f2 11 a0 MM MM MM 02 NA 00 MM 00 00 MM MM RR RR LDN 0x00 (Floppy) idx 30 60 61 70 71 74 75 f0 f1 val 00 03 f0 06 03 02 04 24 00 def 00 03 f2 06 03 02 04 24 00 LDN 0x02 (COM2) idx 30 60 61 70 71 74 75 f0 val 00 00 00 00 03 04 04 02 def 00 02 f8 03 03 04 04 02 LDN 0x03 (COM1) idx 30 60 61 70 71 74 75 f0 val 01 03 f8 04 03 04 04 02 def 00 03 f8 04 03 04 04 02 LDN 0x04 (System wake-up control (SWC)) idx 30 60 61 62 63 64 65 66 67 70 71 74 75 val 01 0a 20 0a 00 0a 04 0a 10 00 03 04 04 def 00 00 00 00 00 00 00 00 00 00 03 04 04 LDN 0x05 (Mouse) idx 30 70 71 74 75 val 01 0c 02 04 04 def 00 0c 02 04 04 LDN 0x06 (Keyboard) idx 30 60 61 62 63 70 71 74 75 f0 val 01 00 60 00 64 01 02 04 04 40 def 00 00 60 00 64 01 02 04 04 40 LDN 0x07 (GPIO) idx 30 50 60 61 70 71 74 75 f0 f1 f2 f3 f4 f5 f6 f7 f8 val 01 00 0a 40 00 03 04 04 35 00 00 00 00 00 00 00 00 def 00 00 00 00 00 03 04 04 00 MM 01 00 00 00 00 00 00 LDN 0x09 (Fan Monitor and Control (FMC)) idx 30 50 60 61 70 71 74 75 f0 f1 val 01 00 0a a0 00 03 04 04 19 06 def 00 00 00 00 00 03 04 04 19 06 LDN 0x0a (Watchdog timer (WDT)) idx 30 50 60 61 70 71 74 75 f0 val 01 00 0a 80 00 03 04 04 00 def 00 00 00 00 00 03 04 04 00 LDN 0x0f (X-Bus) idx 30 60 61 70 71 74 75 f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 fa fb fc fd fe ff val 00 0a 60 00 00 04 04 10 00 00 00 00 00 00 00 02 00 00 00 00 00 80 10 def 00 00 00 00 00 04 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 10 LDN 0x10 (Real-time clock (RTC)) idx 30 60 61 62 63 70 71 74 75 f0 f1 f2 f3 f6 f7 val 01 00 70 00 72 08 00 04 04 00 7d 7e 32 80 03 def 00 00 70 00 72 08 00 04 04 00 00 00 00 MM 00 LDN 0x14 (Health Monitoring and Control (HMC)) idx 30 50 60 61 62 63 70 71 74 75 f0 val 01 00 0a c0 0a e0 00 03 04 04 04 def 00 00 00 00 00 00 00 03 04 04 05