qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 00/17] add serial wacom tablet emulation (gsoc 2016)
@ 2017-01-06  8:55 Gerd Hoffmann
  2017-01-06  8:55 ` [Qemu-devel] [PATCH 01/17] Add wctablet device Gerd Hoffmann
                   ` (17 more replies)
  0 siblings, 18 replies; 25+ messages in thread
From: Gerd Hoffmann @ 2017-01-06  8:55 UTC (permalink / raw)
  To: qemu-devel; +Cc: avg.tolik, Gerd Hoffmann

  Hi,

Finally found the time to put the wctablet code into shape.  Here comes
the patch series.

Patch #1 is the submission by Anatoli, almost unmodified.  I've only
adapted it to the recent chardev changes in the qemu code base so it
actually builds and works on current qemu.

The following patches improve the code base:
 * various cleanups (codestyle, delete unused stuff).
 * use accept_input insted of a timer.
 * use new input interface to register the driver.
 * rewrite command detection.
 * added some helper functions.
 * added trace events.

Functional changes:
 * handle line speed changes.
 * implement ST and SP commands.

See individual commit messages for more details.

Current state:
 * wacom test application works.
 * windows 3.11 driver works.
 * linux guest fails (inputattach --wacom_iv).  Probably due to '~C'
   not being implemented, that is the last command sent by linux
   before it throws an error.
 * left button acts somewhat strange.  One host side mouse click seems
   to toggle the button state inside the guest (windows 3.11).  Not sure
   whenever that is a bug in the emulation or something the guest driver
   is doing ...

cheers,
  Gerd

Anatoli Huseu1 (1):
  Add wctablet device

Gerd Hoffmann (16):
  wctablet: add wctablet_queue_output helper
  wctablet: save all chars in the query buffer
  wctablet: drop wctablet_commands_names
  wctablet: strip leading \r + \n from buffer
  wctablet: track line speed, reset on speed changes
  wctablet: operate on line speed 9600
  wctablet: drop debug code from wctablet_handler
  wctablet: add wctablet_shift_input
  wctablet: move init/detect sequence
  wctablet: revamp command parser.
  wctablet: drop timer, hook into chr->accept_input instead
  wctablet: drop DPRINTF, add trace events instead
  wctablet: misc cleanups
  wctablet: switch to new input interface
  wctablet: update file comment
  wctablet: implement ST and SP commands

 Makefile.objs            |   1 +
 backends/Makefile.objs   |   2 +-
 backends/trace-events    |  10 ++
 backends/wctablet.c      | 364 +++++++++++++++++++++++++++++++++++++++++++++++
 docs/qdev-device-use.txt |   2 +-
 qapi-schema.json         |   1 +
 qemu-char.c              |   1 +
 7 files changed, 379 insertions(+), 2 deletions(-)
 create mode 100644 backends/trace-events
 create mode 100644 backends/wctablet.c

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2017-01-09  7:50 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-06  8:55 [Qemu-devel] [PATCH 00/17] add serial wacom tablet emulation (gsoc 2016) Gerd Hoffmann
2017-01-06  8:55 ` [Qemu-devel] [PATCH 01/17] Add wctablet device Gerd Hoffmann
2017-01-06 13:15   ` Eric Blake
2017-01-06  8:55 ` [Qemu-devel] [PATCH 02/17] wctablet: add wctablet_queue_output helper Gerd Hoffmann
2017-01-06  8:55 ` [Qemu-devel] [PATCH 03/17] wctablet: save all chars in the query buffer Gerd Hoffmann
2017-01-06  8:55 ` [Qemu-devel] [PATCH 04/17] wctablet: drop wctablet_commands_names Gerd Hoffmann
2017-01-06  8:55 ` [Qemu-devel] [PATCH 05/17] wctablet: strip leading \r + \n from buffer Gerd Hoffmann
2017-01-06  8:55 ` [Qemu-devel] [PATCH 06/17] wctablet: track line speed, reset on speed changes Gerd Hoffmann
2017-01-06  8:55 ` [Qemu-devel] [PATCH 07/17] wctablet: operate on line speed 9600 Gerd Hoffmann
2017-01-06  8:55 ` [Qemu-devel] [PATCH 08/17] wctablet: drop debug code from wctablet_handler Gerd Hoffmann
2017-01-06 13:17   ` Eric Blake
2017-01-09  7:50     ` Gerd Hoffmann
2017-01-06  8:55 ` [Qemu-devel] [PATCH 09/17] wctablet: add wctablet_shift_input Gerd Hoffmann
2017-01-06  8:55 ` [Qemu-devel] [PATCH 10/17] wctablet: move init/detect sequence Gerd Hoffmann
2017-01-06  8:55 ` [Qemu-devel] [PATCH 11/17] wctablet: revamp command parser Gerd Hoffmann
2017-01-06  8:55 ` [Qemu-devel] [PATCH 12/17] wctablet: drop timer, hook into chr->accept_input instead Gerd Hoffmann
2017-01-06  8:55 ` [Qemu-devel] [PATCH 13/17] wctablet: drop DPRINTF, add trace events instead Gerd Hoffmann
2017-01-06 13:19   ` Eric Blake
2017-01-06  8:55 ` [Qemu-devel] [PATCH 14/17] wctablet: misc cleanups Gerd Hoffmann
2017-01-06 13:19   ` Eric Blake
2017-01-06  8:55 ` [Qemu-devel] [PATCH 15/17] wctablet: switch to new input interface Gerd Hoffmann
2017-01-06  8:55 ` [Qemu-devel] [PATCH 16/17] wctablet: update file comment Gerd Hoffmann
2017-01-06 13:20   ` Eric Blake
2017-01-06  8:55 ` [Qemu-devel] [PATCH 17/17] wctablet: implement ST and SP commands Gerd Hoffmann
2017-01-06  9:22 ` [Qemu-devel] [PATCH 00/17] add serial wacom tablet emulation (gsoc 2016) no-reply

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).