aboutsummaryrefslogtreecommitdiff
path: root/src/kbd.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2008-08-17 11:26:42 -0400
committerKevin O'Connor <kevin@koconnor.net>2008-08-17 11:26:42 -0400
commitf13b008bddadc750167c7e814bab0cdfd75178eb (patch)
tree4e6692efa53335194f2c370d18937c5545e08d06 /src/kbd.c
parentcbffa8ed98f0e87d7c926594fe73f6e56e86da5f (diff)
downloadseabios-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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/kbd.c b/src/kbd.c
index 11d11d3..5d7d76a 100644
--- a/src/kbd.c
+++ b/src/kbd.c
@@ -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;
}