[Qemu-devel] [PATCH] Elo touchpad 10 bytes emulator v3

2010-03-30 Thread Ricardo Ribalda Delgado
From: Ricardo Ribalda Delgado New char device emulating an Elo serial touchpad. v2: -Emulate id packages (linux recognizes the hw) -Limit output to 96-4000 (thanks to Dmitry Zhurikhin) v3: -Output buffer (thanks to Juan Quintela) -Code Style --- Makefile.objs |2 +- hw/elo.c

Re: [Qemu-devel] [PATCH] Elo touchpad 10 bytes emulator

2010-03-29 Thread Ricardo Ribalda Delgado
Hello Paul Hmmm, you are right, it should be part of the calibration (userland). As Dmtry says, the output from the chip should be from 96-4000. I have fixed the max values to that. The previous code was done to emulate an old privative app that uses an elo touchscreen. I managed to reverse engin

[Qemu-devel] [PATCH] Elo touchpad 10 bytes emulator v2

2010-03-29 Thread Ricardo Ribalda Delgado
New char device emulating an Elo serial touchpad. -Emulate id and touch packets -Absolute Output limited to 96-4000 --- Makefile.objs |2 +- hw/elo.c| 153 +++ hw/elo.h|2 + hw/serial.c |2 +- qemu-char.c |

Re: [Qemu-devel] [PATCH] Elo touchpad 10 bytes emulator

2010-03-29 Thread Dmitry Zhurikhin
Ricardo Ribalda Delgado wrote: TODO: The output of the touchpad should be in the range of the resolution. But I don't know a clean way to get the screen resolution. Any help will be very wellcomed Hello. Looking at the Linux kernel driver it seems to consider reported coordinates to be in the r

Re: [Qemu-devel] [PATCH] Elo touchpad 10 bytes emulator

2010-03-29 Thread Paul Brook
> New char device emulating an Elo serial touchpad. > > TODO: The output of the touchpad should be in the range of the > resolution. But I don't know a clean way to get the screen resolution. > Any help will be very wellcomed Are you sure? I don't see how real hardware would be able to do that.

[Qemu-devel] [PATCH] Elo touchpad 10 bytes emulator

2010-03-29 Thread Ricardo Ribalda Delgado
New char device emulating an Elo serial touchpad. TODO: The output of the touchpad should be in the range of the resolution. But I don't know a clean way to get the screen resolution. Any help will be very wellcomed --- Please. Ignore the old 01/10 Makefile.objs |2 +- hw/elo.c|