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

@@ -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;
}