diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2008-08-17 11:26:42 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2008-08-17 11:26:42 -0400 |
commit | f13b008bddadc750167c7e814bab0cdfd75178eb (patch) | |
tree | 4e6692efa53335194f2c370d18937c5545e08d06 /src/kbd.c | |
parent | cbffa8ed98f0e87d7c926594fe73f6e56e86da5f (diff) | |
download | seabios-hppa-f13b008bddadc750167c7e814bab0cdfd75178eb.zip seabios-hppa-f13b008bddadc750167c7e814bab0cdfd75178eb.tar.gz seabios-hppa-f13b008bddadc750167c7e814bab0cdfd75178eb.tar.bz2 |
Misc minor improvements.
Update TODO list.
Improve comments in boot.c.
Use debug port 0x0402 instead of 0x0403 (bochs prefers the latter).
Fix formatting of debug messages in kbd.c.
Use proper return check for kbd and mouse init.
Diffstat (limited to 'src/kbd.c')
-rw-r--r-- | src/kbd.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -30,7 +30,7 @@ keyboard_init() if (ret) return; if (param[0] != 0x55) { - dprintf(1, "i8042 self test failed (got %x not 0x55\n", param[0]); + dprintf(1, "i8042 self test failed (got %x not 0x55)\n", param[0]); return; } @@ -39,7 +39,7 @@ keyboard_init() if (ret) return; if (param[0] != 0x00) { - dprintf(1, "i8042 keyboard test failed (got %x not 0x00\n", param[0]); + dprintf(1, "i8042 keyboard test failed (got %x not 0x00)\n", param[0]); return; } @@ -55,10 +55,10 @@ keyboard_init() /* ------------------- keyboard side ------------------------*/ /* reset keyboard and self test (keyboard side) */ ret = kbd_command(ATKBD_CMD_RESET_BAT, param); - if (ret < 0) + if (ret != 0 && ret != 2) return; if (param[0] != 0xaa) { - dprintf(1, "keyboard self test failed (got %x not 0xaa\n", param[0]); + dprintf(1, "keyboard self test failed (got %x not 0xaa)\n", param[0]); return; } |