Add detection support for quite a number of SMSC Super I/Os. Also, add
[coreboot.git] / util / superiotool / superiotool.h
index 493c841058c1fee059217ff9a914695070b8b331..f7b4409439815f209f207a445d65e2a36034e6fb 100644 (file)
@@ -52,7 +52,7 @@ and print its vendor, name, ID, version, and config port.\n"
 #define LDNSIZE                (MAXLDN + 3)    /* Biggest LDN + 0 + NOLDN + EOT */
 #define MAXNUMIDX      70              /* Maximum number of indexes */
 #define IDXSIZE        (MAXNUMIDX + 1)
-#define MAXNUMPORTS    (2 + 1)         /* Maximum number of Super I/O ports */
+#define MAXNUMPORTS    (4 + 1)         /* Maximum number of Super I/O ports */
 
 /* Command line parameters. */
 extern int dump, dump_readable, verbose;
@@ -101,11 +101,11 @@ const static struct {
        void (*probe_idregs) (uint16_t port);
        int ports[MAXNUMPORTS]; /* Signed, as we need EOT. */
 } superio_ports_table[] = {
-       {probe_idregs_simple,   {0x2e,  0x4e,   EOT}},
-       {probe_idregs_fintek,   {0x2e,  0x4e,   EOT}},
-       {probe_idregs_ite,      {0x2e,  0x4e,   EOT}},
-       {probe_idregs_smsc,     {0x3f0, 0x370,  EOT}},
-       {probe_idregs_winbond,  {0x2e,  0x4e,   EOT}},
+       {probe_idregs_simple,   {0x2e, 0x4e, EOT}},
+       {probe_idregs_fintek,   {0x2e, 0x4e, EOT}},
+       {probe_idregs_ite,      {0x2e, 0x4e, EOT}},
+       {probe_idregs_smsc,     {0x2e, 0x4e, 0x3f0, 0x370, EOT}},
+       {probe_idregs_winbond,  {0x2e, 0x4e, EOT}},
 };
 
 #endif