u8 byte;
if (smbus_wait_until_ready(smbus_io_base) < 0) {
-#if 0
printk(BIOS_INFO, "SB900 - Smbus.c - do_smbus_read_byte - smbus no ready.\n");
-#endif
return -2; /* not ready */
}
-#if 0
printk(BIOS_INFO, "SB900 - Smbus.c - do_smbus_read_byte - Start.\n");
-#endif
/* set the command/address... */
outb(address & 0xff, smbus_io_base + SMBHSTCMD);
/* read results of transaction */
byte = inb(smbus_io_base + SMBHSTDAT0);
-#if 0
printk(BIOS_INFO, "SB900 - Smbus.c - do_smbus_read_byte - End.\n");
-#endif
return byte;
}