Print a short message if no Super I/O chip could be detected (trivial).

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2835 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Uwe Hermann 2007-10-07 20:01:23 +00:00
parent 84bf1e2506
commit e9d4616a95
8 changed files with 14 additions and 0 deletions

View File

@ -89,6 +89,7 @@ void probe_idregs_ali(uint16_t port)
printf("Found ALi %s (id=0x%04x, rev=0x%02x) at 0x%x\n",
get_superio_name(reg_table, id), id, rev, port);
chip_found = 1;
dump_superio("ALi", reg_table, port, id);
dump_superio_readable(port); /* TODO */

View File

@ -155,6 +155,7 @@ void probe_idregs_fintek(uint16_t port)
printf("Found Fintek %s (vid=0x%04x, id=0x%04x) at 0x%x\n",
get_superio_name(reg_table, did), vid, did, port);
chip_found = 1;
dump_superio("Fintek", reg_table, port, did);
dump_readable_fintek(port, did);

View File

@ -361,6 +361,7 @@ static void probe_idregs_ite_helper(const char *init, uint16_t port)
printf("Found ITE %s (id=0x%04x, rev=0x%01x) at 0x%x\n",
get_superio_name(reg_table, id), id, chipver, port);
chip_found = 1;
dump_superio("ITE", reg_table, port, id);
dump_superio_readable(port); /* TODO */

View File

@ -98,6 +98,7 @@ void probe_idregs_nsc(uint16_t port)
printf("Found NSC %s (sid=0x%02x, srid=0x%02x) at 0x%x\n",
get_superio_name(reg_table, id), id, rev, port);
chip_found = 1;
dump_superio("NSC", reg_table, port, id);
if (id == 0xf1)

View File

@ -298,6 +298,7 @@ static void probe_idregs_smsc_helper(uint16_t port, uint8_t idreg,
printf("Found %s %s (id=0x%02x, rev=0x%02x) at 0x%x\n",
(id == 0x77 ? "ASUS" : "SMSC"), get_superio_name(reg_table, id),
id, rev, port);
chip_found = 1;
dump_superio((id == 0x77 ? "ASUS" : "SMSC"), reg_table, port, id);
dump_superio_readable(port); /* TODO */

View File

@ -25,6 +25,9 @@
/* Command line options. */
int dump = 0, dump_readable = 0, verbose = 0;
/* Global flag which indicates whether a chip was detected at all. */
int chip_found = 0;
uint8_t regval(uint16_t port, uint8_t reg)
{
outb(reg, port);
@ -229,5 +232,8 @@ int main(int argc, char *argv[])
superio_ports_table[i].ports[j]);
}
if (!chip_found)
printf("No Super I/O found\n");
return 0;
}

View File

@ -59,6 +59,8 @@ and print its vendor, name, ID, revision, and config port.\n"
/* Command line parameters. */
extern int dump, dump_readable, verbose;
extern int chip_found;
struct superio_registers {
int32_t superio_id; /* Signed, as we need EOT. */
const char name[MAXNAMELEN]; /* Super I/O name */

View File

@ -313,6 +313,7 @@ void probe_idregs_winbond_helper(const char *init, uint16_t port)
else
printf("Found Winbond %s (id=0x%02x, rev=0x%02x) at 0x%x\n",
get_superio_name(reg_table, id), devid, rev, port);
chip_found = 1;
/* TODO: Special notes in dump output for the MISC entries. */
dump_superio("Winbond", reg_table, port, id);