[6559] QEMU Microsoft serial mouse emulation
Revision: 6559
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6559 Author: aurel32 Date: 2009-02-08 15:53:20 +0000 (Sun, 08 Feb 2009)
Log Message:
-----------
QEMU Microsoft serial mouse emulation
Adds "msmouse" character device, which emulates a serial mouse. Use it with -serial msmouse.
Modified Paths:
--------------
trunk/Makefile.target
trunk/qemu-char.c
trunk/qemu-doc.texi
Added Paths:
-----------
trunk/hw/msmouse.c
trunk/hw/msmouse.h
Modified: trunk/Makefile.target
===================================================================
Makefile.target +3 -0
@@ -574,6 +574,9 @@ OBJS += rtl8139.o OBJS += e1000.o +# Serial mouse +OBJS += msmouse.o + ifeq ($(TARGET_BASE_ARCH), i386) # Hardware support OBJS+= ide.o pckbd.o ps2.o vga.o $(SOUND_HW) dma.o
Added: trunk/hw/msmouse.c
===================================================================
hw/msmouse.c +78 -0
78 lines not on this page · raw message
Added: trunk/hw/msmouse.h
===================================================================
hw/msmouse.h +2 -0
@@ -0,0 +1,2 @@ +/* msmouse.c */ +CharDriverState *qemu_chr_open_msmouse (void );
Modified: trunk/qemu-char.c
===================================================================
qemu-char.c +3 -0
@@ -30,6 +30,7 @@#include "block.h" #include "hw/usb.h" #include "hw/baum.h" +#include "hw/msmouse.h" #include <unistd.h> #include <fcntl.h>
@@ -2105,6 +2106,8 @@ }else {printf ("Unable to open driver: %s\n" , p); } + }else if (!strcmp (filename,"msmouse" )) { + chr =qemu_chr_open_msmouse (); } else#ifndef _WIN32if (strstart (filename,"unix:" , &p)) {
Modified: trunk/qemu-doc.texi
===================================================================
qemu-doc.texi +2 -0
@@ -961,6 +961,8 @@ When @var{remote_host} or @var{src_ip} are not specified they default to @code{0.0.0.0}. When not using a specified @var{src_port} a random port is automatically chosen. +@item msmouse +Three button serial mouse. Configure the guest to use Microsoft protocol. If you just want a simple readonly console you can use @code{netcat} or @code{nc}, by starting qemu with: @code{-serial udp::4555} and nc as: