qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/1] Genius serial mouse emulation.
@ 2014-01-13 22:33 Romain Naour
  2014-01-13 22:33 ` [Qemu-devel] [PATCH 1/1] genius: add genius " Romain Naour
  0 siblings, 1 reply; 6+ messages in thread
From: Romain Naour @ 2014-01-13 22:33 UTC (permalink / raw)
  To: qemu-devel; +Cc: Romain Naour

This patch adds the emulation for a serial Genius mouse using
Mouse Systems protocol (5bytes) [1].
This protocol is compatible with most 3-buttons serial mouse.

This work was developed for qemu-1.1.0 and rebased on master.

To test this patch you need to start qemu with "-serial gnmouse".
Then you need to start gpm (general purpose mouse) on Linux:

# gpm -m /dev/ttyS0 -T -t msc

I validated the emulation by comparing frames with a real mouse Genius (GM-6) 
with a USB-serial adapter (ttyUSB0).

I also tested with a CDOS operating system.

Best regards,
Romain Naour

[1] MSC protocol:
http://www.zimmers.net/anonftp/pub/cbm/documents/projects/interfaces/mouse/Mouse.html#serial

Romain Naour (1):
  genius: add genius serial mouse emulation

 backends/Makefile.objs |   2 +-
 backends/gnmouse.c     | 339 +++++++++++++++++++++++++++++++++++++++++++++++++
 include/sysemu/char.h  |   3 +
 qapi-schema.json       |   1 +
 qemu-char.c            |   4 +
 qemu-options.hx        |  10 ++
 6 files changed, 358 insertions(+), 1 deletion(-)
 create mode 100644 backends/gnmouse.c

-- 
1.8.4.2

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

end of thread, other threads:[~2014-01-14 22:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-13 22:33 [Qemu-devel] [PATCH 0/1] Genius serial mouse emulation Romain Naour
2014-01-13 22:33 ` [Qemu-devel] [PATCH 1/1] genius: add genius " Romain Naour
2014-01-13 22:45   ` Eric Blake
2014-01-13 23:47     ` Romain Naour
2014-01-14 16:37       ` Paolo Bonzini
2014-01-14 22:06         ` Romain Naour

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