From: "Hervé Poussineau" <hpoussin@reactos.org>
To: qemu-devel@nongnu.org
Cc: "Michael S. Tsirkin" <mst@redhat.com>,
"Gerd Hoffmann" <kraxel@redhat.com>,
"Hervé Poussineau" <hpoussin@reactos.org>
Subject: [Qemu-devel] [PATCH v2 0/5] ps2: fix keyboard set 3 and misc improvements
Date: Thu, 15 Sep 2016 22:06:22 +0200 [thread overview]
Message-ID: <1473969987-5890-1-git-send-email-hpoussin@reactos.org> (raw)
Hi,
This patchset is a welcome cleanup of scancodes used in PS/2 keyboard emulation.
- Patches 1 and 2 are fixes to let Linux use set 3 if instructed so.
- Patch 3 makes scancodes untranslated by default and translates them if
required, instead of receiving translated scancodes by default and
untranslating them if required.
- Patch 4 switches to use qcodes instead of scancodes.
- Patch 5 is a small cleanup, to prevent sending invalid keycodes to the OS.
See each patch commit for details about what changed.
Missing part are handling of following commands in set 3:
- 0xf7: set all keys to typematic/autorepeat only
- 0xf8: set all keys to make/release
- 0xf9: set all keys to make only
- 0xfa: set all keys to typematic/autorepeat make/release
- 0xfb: set specific key to typematic/autorepeat only
- 0xfc: set specific key to make/release
- 0xfd: set specific key to make only
Translated set 2 and untranslated sets 2 and 3 have been tested with Linux,
using kernel parameters "i8042.direct=1" and "atkbd.set=3".
Set 1 has been tested with MIPS Magnum emulation.
Patch 4 doesn't pass checkpatch.pl, due to some key mappings not implemented
because of missing an equivalent qcode.
Changes since v1:
- fix checkpatch.pl warning (patch 3)
- fix compilation with mingw (patch 5)
Hervé
Hervé Poussineau (5):
ps2: reject unknown commands, instead of blindly accepting them
ps2: correctly handle 'get/set scancode' command
ps2: allow keycode translation for all scancode sets
ps2: use QEMU qcodes instead of scancodes
ps2: do not generate invalid key codes for unknown keys
hw/input/ps2.c | 612 ++++++++++++++++++++++++++++++++++++++++++++++++++++-----
1 file changed, 558 insertions(+), 54 deletions(-)
--
2.1.4
next reply other threads:[~2016-09-15 20:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-15 20:06 Hervé Poussineau [this message]
2016-09-15 20:06 ` [Qemu-devel] [PATCH v2 1/5] ps2: reject unknown commands, instead of blindly accepting them Hervé Poussineau
2016-09-15 20:06 ` [Qemu-devel] [PATCH v2 2/5] ps2: correctly handle 'get/set scancode' command Hervé Poussineau
2016-09-15 20:06 ` [Qemu-devel] [PATCH v2 3/5] ps2: allow keycode translation for all scancode sets Hervé Poussineau
2016-09-15 20:06 ` [Qemu-devel] [PATCH v2 4/5] ps2: use QEMU qcodes instead of scancodes Hervé Poussineau
2016-09-15 20:06 ` [Qemu-devel] [PATCH v2 5/5] ps2: do not generate invalid key codes for unknown keys Hervé Poussineau
2016-09-15 22:35 ` [Qemu-devel] [PATCH v2 0/5] ps2: fix keyboard set 3 and misc improvements no-reply
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=1473969987-5890-1-git-send-email-hpoussin@reactos.org \
--to=hpoussin@reactos.org \
--cc=kraxel@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.