qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Hervé Poussineau" <hpoussin@reactos.org>
To: qemu-devel@nongnu.org
Cc: "Hervé Poussineau" <hpoussin@reactos.org>,
	"Anthony Liguori" <aliguori@amazon.com>,
	"Michael S. Tsirkin" <mst@redhat.com>
Subject: [Qemu-devel] [PATCH 2/2] pckbd: return 'keyboard enabled' on read input port command
Date: Tue, 11 Feb 2014 23:46:03 +0100	[thread overview]
Message-ID: <1392158763-6552-3-git-send-email-hpoussin@reactos.org> (raw)
In-Reply-To: <1392158763-6552-1-git-send-email-hpoussin@reactos.org>

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>
---
 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 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);
-- 
1.7.10.4

  parent reply	other threads:[~2014-02-11 22:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-11 22:46 [Qemu-devel] [PATCH 0/2] PC: improve emulation correctness Hervé Poussineau
2014-02-11 22:46 ` [Qemu-devel] [PATCH 1/2] pam: partly fix write-only mode Hervé Poussineau
2014-02-11 22:46 ` Hervé Poussineau [this message]
2014-03-03 22:05 ` [Qemu-devel] [PATCH 0/2] PC: improve emulation correctness Hervé Poussineau
2014-03-04 23:49   ` Michael S. Tsirkin
2014-03-05  8:15     ` Paolo Bonzini
2014-03-05 21:48       ` Hervé Poussineau
2014-03-05 18:50     ` Andreas Färber
2014-03-05 21:47       ` Hervé Poussineau
2014-03-05 18:46 ` Michael S. Tsirkin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1392158763-6552-3-git-send-email-hpoussin@reactos.org \
    --to=hpoussin@reactos.org \
    --cc=aliguori@amazon.com \
    --cc=mst@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).