Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NwX8L-0000IV-6Z for qemu-devel@nongnu.org; Tue, 30 Mar 2010 04:49:13 -0400 Received: from [140.186.70.92] (port=54192 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwX8J-0000IN-H2 for qemu-devel@nongnu.org; Tue, 30 Mar 2010 04:49:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NwX8H-0006rE-IT for qemu-devel@nongnu.org; Tue, 30 Mar 2010 04:49:11 -0400 Received: from mail-ew0-f227.google.com ([209.85.219.227]:34902) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NwX8H-0006rA-9M for qemu-devel@nongnu.org; Tue, 30 Mar 2010 04:49:09 -0400 Received: by ewy27 with SMTP id 27so413415ewy.10 for ; Tue, 30 Mar 2010 01:49:08 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <1269888491-845-1-git-send-email-ricardo.ribalda@gmail.com> From: Ricardo Ribalda Delgado Date: Tue, 30 Mar 2010 10:48:48 +0200 Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] Re: [PATCH] Elo touchpad 10 bytes emulator v2 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Juan Quintela Cc: qemu-devel@nongnu.org, zhur@ispras.ru, paul@codesourcery.com Hello Juan Thanks for your comments. About the indentation error... Do you have some kind of auto indent script(like the kernel code has). It is making me crazy trying to collaborate with a lot of projects an all of them with different styles. > >> +#include >> +#include "../qemu-common.h" >> +#include "../qemu-char.h" >> +#include "../console.h" > > You can remove the "../" from those, Makefile sets correct include paths > for this to work. Ok. I used the mssmouse.c as reference. I can change that. (I guess that I should also replace "" with <>) > >> + =A0 =A0/*Move event*/ >> + =A0 =A0if (is_down&&buttons_state){ >> + =A0 =A0 =A0 =A0 bytes[2]=3D0x2; > > Can we use some constant from that bytes[2] values? 0x1, 0x2 and 0x4 > don't look specially descriptive. ok > Why does the lenght of the FIFO changes here? =A0I think this change in > independent of the rest of the patch (no knowledge about the 16550A to > know if it should be 16 or 32). I have to send a 2x10 bytes package, and it does not fit the the 16 bytes buffer.... Any other suggestion about how to do it? > > Later, Juan. > Thanks again for your comments --=20 Ricardo Ribalda http://www.eps.uam.es/~rribalda/