From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46118) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDM6Y-0005RR-Oz for qemu-devel@nongnu.org; Tue, 11 Feb 2014 17:47:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WDM6T-0003ae-8C for qemu-devel@nongnu.org; Tue, 11 Feb 2014 17:47:02 -0500 Received: from smtp4-g21.free.fr ([2a01:e0c:1:1599::13]:55961) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDM6S-0003aE-Lo for qemu-devel@nongnu.org; Tue, 11 Feb 2014 17:46:57 -0500 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Tue, 11 Feb 2014 23:46:03 +0100 Message-Id: <1392158763-6552-3-git-send-email-hpoussin@reactos.org> In-Reply-To: <1392158763-6552-1-git-send-email-hpoussin@reactos.org> References: <1392158763-6552-1-git-send-email-hpoussin@reactos.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 2/2] pckbd: return 'keyboard enabled' on read input port command List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Herv=C3=A9=20Poussineau?= , Anthony Liguori , "Michael S. Tsirkin" 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=C3=A9 Poussineau --- hw/input/pckbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/input/pckbd.c b/hw/input/pckbd.c index 655b8c5..29af3d7 100644 --- a/hw/input/pckbd.c +++ b/hw/input/pckbd.c @@ -281,7 +281,7 @@ static void kbd_write_command(void *opaque, hwaddr ad= dr, 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); --=20 1.7.10.4