]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
pckbd: return 'keyboard enabled' on read input port command
authorHervé Poussineau <hpoussin@reactos.org>
Tue, 11 Feb 2014 22:46:03 +0000 (23:46 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 9 Mar 2014 19:09:38 +0000 (21:09 +0200)
Bit 7 of Input Port is the keyboard inhibit switch.
0 means keyboard inhibited, while 1 means keyboard enabled.

Incidentaly, this also fixes an error encountered while booting
an Award BIOS: "Keyboard is locked out - Unlock the key".

Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/input/pckbd.c

index 655b8c50114795a7dd100af8932a841b7c9d6ab1..29af3d741f93affd4441b7ca59b3c500eb2593ff 100644 (file)
@@ -281,7 +281,7 @@ static void kbd_write_command(void *opaque, hwaddr addr,
         kbd_update_irq(s);
         break;
     case KBD_CCMD_READ_INPORT:
-        kbd_queue(s, 0x00, 0);
+        kbd_queue(s, 0x80, 0);
         break;
     case KBD_CCMD_READ_OUTPORT:
         kbd_queue(s, s->outport, 0);