From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52683) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WMjHB-00052L-7R for qemu-devel@nongnu.org; Sun, 09 Mar 2014 15:20:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WMjH6-00059X-Ar for qemu-devel@nongnu.org; Sun, 09 Mar 2014 15:20:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:23995) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WMjH5-00059S-MA for qemu-devel@nongnu.org; Sun, 09 Mar 2014 15:20:39 -0400 Date: Sun, 9 Mar 2014 21:20:38 +0200 From: "Michael S. Tsirkin" Message-ID: <1394392713-31471-14-git-send-email-mst@redhat.com> References: <1394392713-31471-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <1394392713-31471-1-git-send-email-mst@redhat.com> Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PULL v3 13/14] 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: Peter Maydell , =?us-ascii?B?PT9VVEYtOD9xP0hlcnY9QzM9QTk9MjBQb3Vzc2luZWF1Pz0=?= , Anthony Liguori From: Herv=E9 Poussineau 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=E9 Poussineau Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- 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 MST