Skip to contentSkip to conversation

input patch queue

GIT PULL Applied Gerd Hoffmann 2 participants 4 messages Feb 20, 2017 Kbuild

lore
Share & tools
lore
#0 lore raw

Hi,

Here is the input patch queue, fixing a ps/2 bug and finally merging the wctablet (2016 gsoc project).

please pull,
Gerd

The following changes since commit ad584d37f2a86b392c25f3f00cc1f1532676c2d1:

Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2017-02-16 17:46:52 +0000)

are available in the git repository at:

git://git.kraxel.org/qemu tags/pull-input-20170220-1

for you to fetch changes up to 378af96155d62d90c876ee5e7648803247f1d864:

Add wctablet device (2017-02-20 11:26:28 +0100)

----------------------------------------------------------------
input: add wctablet, ps2 fix

----------------------------------------------------------------
Anatoli Huseu1 (1):
Add wctablet device

Fabian Lesniak (1):
ps2: fix mouse mappings for right/middle button

 Makefile.objs            |   1 +
 backends/Makefile.objs   |   2 +-
 backends/trace-events    |  10 ++
 backends/wctablet.c      | 369 +++++++++++++++++++++++++++++++++++++++++++++++
 chardev/char.c           |   1 +
 docs/qdev-device-use.txt |   2 +-
 include/hw/input/ps2.h   |   4 +-
 qapi-schema.json         |   3 +-
 8 files changed, 387 insertions(+), 5 deletions(-)
 create mode 100644 backends/trace-events
 create mode 100644 backends/wctablet.c
#1 lore raw

[Qemu-devel] [PULL 1/2] ps2: fix mouse mappings for right/middle button

From: Fabian Lesniak <[email protected]>

Commit 8b0caab0 ("ps2: add support for mice with extra/side buttons") accidentally swapped right and middle mouse buttons. This commit corrects the mapping as expected by the ps2 controller.

Message-id: [email protected]

---
 include/hw/input/ps2.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/hw/input/ps2.h +2 -2
index 0fec91c..7f0a80a 100644
@@ -26,8 +26,8 @@
 #define HW_PS2_H
 
 #define PS2_MOUSE_BUTTON_LEFT   0x01
-#define PS2_MOUSE_BUTTON_MIDDLE 0x02
-#define PS2_MOUSE_BUTTON_RIGHT  0x04
+#define PS2_MOUSE_BUTTON_RIGHT  0x02
+#define PS2_MOUSE_BUTTON_MIDDLE 0x04
 #define PS2_MOUSE_BUTTON_SIDE   0x08
 #define PS2_MOUSE_BUTTON_EXTRA  0x10
 
Signature · 1 line
1.8.3.1
#2 lore raw

[Qemu-devel] [PULL 2/2] Add wctablet device

In reply to Gerd Hoffmann

From: Anatoli Huseu1 <[email protected]>

Add QEMU Wacom Penpartner serial tablet emulation. GSoC 2016 project.

Various cleanups.
Add line speed tracking.
Implement ST and SP commands.
Adapted to chardev QOMification.

Message-id: [email protected]

---
 Makefile.objs            |   1 +
 backends/Makefile.objs   |   2 +-
 backends/trace-events    |  10 ++
 backends/wctablet.c      | 369 +++++++++++++++++++++++++++++++++++++++++++++++
 chardev/char.c           |   1 +
 docs/qdev-device-use.txt |   2 +-
 qapi-schema.json         |   3 +-
 7 files changed, 385 insertions(+), 3 deletions(-)
 create mode 100644 backends/trace-events
 create mode 100644 backends/wctablet.c
Makefile.objs +1 -0
index 431fc59..e4bfc16 100644
@@ -125,6 +125,7 @@ trace-events-subdirs += crypto
 trace-events-subdirs += io
 trace-events-subdirs += migration
 trace-events-subdirs += block
+trace-events-subdirs += backends
 trace-events-subdirs += hw/block
 trace-events-subdirs += hw/block/dataplane
 trace-events-subdirs += hw/char
backends/Makefile.objs +1 -1
index 1846998..0e0f156 100644
@@ -1,7 +1,7 @@
 common-obj-y += rng.o rng-egd.o
 common-obj-$(CONFIG_POSIX) += rng-random.o
 
-common-obj-y += msmouse.o testdev.o
+common-obj-y += msmouse.o wctablet.o testdev.o
 common-obj-$(CONFIG_BRLAPI) += baum.o
 baum.o-cflags := $(SDL_CFLAGS)
 
backends/trace-events new file +10 -0
new file mode 100644
index 0000000..8c3289a
@@ -0,0 +1,10 @@
+# See docs/tracing.txt for syntax documentation.
+
+# backends/wctablet.c
+wct_init(void) ""
+wct_cmd_re(void) ""
+wct_cmd_st(void) ""
+wct_cmd_sp(void) ""
+wct_cmd_ts(int input) "0x%02x"
+wct_cmd_other(const char *cmd) "%s"
+wct_speed(int speed) "%d"
backends/wctablet.c new file +369 -0

369 lines not on this page · raw message

chardev/char.c +1 -0
index abd525f..54cd5f4 100644
@@ -652,6 +652,7 @@ QemuOpts *qemu_chr_parse_compat(const char *label, const char *filename)
     if (strcmp(filename, "null")    == 0 ||
         strcmp(filename, "pty")     == 0 ||
         strcmp(filename, "msmouse") == 0 ||
+        strcmp(filename, "wctablet") == 0 ||
         strcmp(filename, "braille") == 0 ||
         strcmp(filename, "testdev") == 0 ||
         strcmp(filename, "stdio")   == 0) {
docs/qdev-device-use.txt +1 -1
index 136d271..b059405 100644
@@ -200,7 +200,7 @@ LEGACY-CHARDEV translates to -chardev HOST-OPTS... as follows:
 
 * null becomes -chardev null
 
-* pty, msmouse, braille, stdio likewise
+* pty, msmouse, wctablet, braille, stdio likewise
 
 * vc:WIDTHxHEIGHT becomes -chardev vc,width=WIDTH,height=HEIGHT
 
qapi-schema.json +2 -1
index baa0d26..e9a6364 100644
@@ -4890,7 +4890,7 @@
 #
 # Configuration info for the new chardev backend.
 #
-# Since: 1.4 (testdev since 2.2)
+# Since: 1.4 (testdev since 2.2, wctablet since 2.9)
 ##
 { 'union': 'ChardevBackend', 'data': { 'file'   : 'ChardevFile',
                                        'serial' : 'ChardevHostdev',
@@ -4902,6 +4902,7 @@
                                        'null'   : 'ChardevCommon',
                                        'mux'    : 'ChardevMux',
                                        'msmouse': 'ChardevCommon',
+                                       'wctablet' : 'ChardevCommon',
                                        'braille': 'ChardevCommon',
                                        'testdev': 'ChardevCommon',
                                        'stdio'  : 'ChardevStdio',
Signature · 1 line
1.8.3.1
#3 lore raw
In reply to Gerd Hoffmann
Quoted 24 lines · Gerd Hoffmann

Hi,

Here is the input patch queue, fixing a ps/2 bug and finally merging the wctablet (2016 gsoc project).

please pull,
Gerd

The following changes since commit ad584d37f2a86b392c25f3f00cc1f1532676c2d1:

Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2017-02-16 17:46:52 +0000)

are available in the git repository at:

git://git.kraxel.org/qemu tags/pull-input-20170220-1

for you to fetch changes up to 378af96155d62d90c876ee5e7648803247f1d864:

Add wctablet device (2017-02-20 11:26:28 +0100)

----------------------------------------------------------------
input: add wctablet, ps2 fix

Quoted 6 lines

----------------------------------------------------------------
Anatoli Huseu1 (1):
Add wctablet device

Fabian Lesniak (1):
ps2: fix mouse mappings for right/middle button

Applied, thanks.

-- PMM