diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2015-07-22 14:32:28 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2015-07-22 14:32:28 -0400 |
commit | 4ce5d20799ed25f1cf7666e11334d72e3ddb5749 (patch) | |
tree | e47dc0a791f560f9885ca586250590d1a0b87277 /src/hw/ps2port.h | |
parent | 8b9942fa3368139b089dc3fea0549cc3282b5c12 (diff) | |
download | seabios-4ce5d20799ed25f1cf7666e11334d72e3ddb5749.tar.gz |
ps2: Don't wait 100ms to discard possible extra reset receive byte
The existing PS2 port code waits 100ms to see if the device attached
to the keyboard port responds to a reset command with two bytes
(instead of the normal one byte). If an extra byte is received, it is
discarded.
Receiving two bytes would be unusual and waiting to check for that
event is unnecessary because the next command in the keyboard init
sequence already seamlessly discards any extra bytes in the command
queue.
This patch eliminates the 100ms wait, which notably reduces the
SeaBIOS boot time on QEMU. This patch also forces PS2 mice to always
respond with two bytes during a reset sequence (instead of just one
byte), which is a good sanity check.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/hw/ps2port.h')
-rw-r--r-- | src/hw/ps2port.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hw/ps2port.h b/src/hw/ps2port.h index dc0e4303..1338406a 100644 --- a/src/hw/ps2port.h +++ b/src/hw/ps2port.h @@ -26,7 +26,7 @@ #define ATKBD_CMD_GETID 0x02f2 #define ATKBD_CMD_ENABLE 0x00f4 #define ATKBD_CMD_RESET_DIS 0x00f5 -#define ATKBD_CMD_RESET_BAT 0x02ff +#define ATKBD_CMD_RESET_BAT 0x01ff // Mouse commands #define PSMOUSE_CMD_SETSCALE11 0x00e6 |