Superiotool: Add support for the SMSC FDC37N769.
[coreboot.git] / util / superiotool / superiotool.h
index 904007cbdf240f4c216d8a5308d8d92b51e7df79..229c0d5982878098aa6bc8a0b80cbdaf5ad7898e 100644 (file)
 
 #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