Changeset 3004

Show
Ignore:
Timestamp:
12/14/07 00:41:45 (12 months ago)
Author:
uwe
Message:

Add dump support for NSC PC8741x.

Signed-off-by: Ulf Jordan <jordan@…>
Acked-by: Uwe Hermann <uwe@…>

Location:
trunk/util/superiotool
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/util/superiotool/nsc.c

    r3001 r3004  
    211211        {0xee, "PC8741x", { 
    212212                /* SRID[7..5] is marked as "not applicable for the PC8741x". */ 
     213                {NOLDN, NULL, 
     214                        {0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29, 
     215                         0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT}, 
     216                        {0xee,0x11,0x20,MISC,MISC,MISC,0x00,NANA,0x00,MISC, 
     217                         0x00,RSVD,RSVD,RSVD,RSVD,RSVD,EOT}}, 
     218                {0x0, "Floppy", 
     219                        {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,EOT}, 
     220                        {0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x24,0x00,EOT}}, 
     221                {0x1, "Parallel port", 
     222                        {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, 
     223                        {0x00,0x02,0x78,0x07,0x02,0x04,0x04,0xf2,EOT}}, 
     224                {0x2, "COM2", 
     225                        {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, 
     226                        {0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT}}, 
     227                {0x3, "COM1", 
     228                        {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT}, 
     229                        {0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT}}, 
     230                {0x4, "System wake-up control (SWC)", 
     231                        {0x30,0x60,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x70, 
     232                         0x71,0x74,0x75,EOT}, 
     233                        {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
     234                         0x03,0x04,0x04,EOT}}, 
     235                {0x5, "Mouse", 
     236                        {0x30,0x70,0x71,0x74,0x75,EOT}, 
     237                        {0x00,0x0c,0x02,0x04,0x04,EOT}}, 
     238                {0x6, "Keyboard", 
     239                        {0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,0xf0, 
     240                         EOT}, 
     241                        {0x00,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04,0x40, 
     242                         EOT}}, 
     243                {0x7, "GPIO", 
     244                        {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf2, 
     245                         0xf3,EOT}, 
     246                        {0x00,0x00,0x00,0x00,0x03,0x04,0x04,0x00,MISC,0x01, 
     247                         0x00,EOT}}, 
     248                {0xf, "X-Bus", 
     249                        {0x30,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,0xf2, 
     250                         0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc, 
     251                         EOT}, 
     252                        {0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x00,0x00,0x00, 
     253                         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
     254                         EOT}}, 
     255                {0x10, "Real-time clock (RTC)", 
     256                        {0x30,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,0xf0, 
     257                         0xf1,0xf2,0xf3,EOT}, 
     258                        {0x00,0x00,0x70,0x00,0x72,0x08,0x00,0x04,0x04,0x00, 
     259                         0x00,0x00,0x00,EOT}}, 
    213260                {EOT}}}, 
    214261        {0xf0, "PC87372", { 
  • trunk/util/superiotool/superiotool.h

    r2975 r3004  
    4848#define MISC            -5              /* Needs special comment in output */ 
    4949#define MAXNAMELEN      30              /* Maximum Name Length */ 
    50 #define MAXLDN          0xf             /* Biggest LDN */ 
     50#define MAXLDN          0x10            /* Biggest LDN */ 
    5151#define LDNSIZE         (MAXLDN + 3)    /* Biggest LDN + 0 + NOLDN + EOT */ 
    5252#define MAXNUMIDX       70              /* Maximum number of indexes */