Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NwZCX-0008TN-GT for qemu-devel@nongnu.org; Tue, 30 Mar 2010 07:01:41 -0400 Received: from [140.186.70.92] (port=60959 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwZCT-0008T0-8x for qemu-devel@nongnu.org; Tue, 30 Mar 2010 07:01:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NwZCF-0005Xq-1e for qemu-devel@nongnu.org; Tue, 30 Mar 2010 07:01:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49021) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NwZCE-0005Xd-NU for qemu-devel@nongnu.org; Tue, 30 Mar 2010 07:01:23 -0400 From: Markus Armbruster Subject: Re: [Qemu-devel] Re: [PATCH] Elo touchpad 10 bytes emulator v2 References: <1269888491-845-1-git-send-email-ricardo.ribalda@gmail.com> Date: Tue, 30 Mar 2010 13:00:57 +0200 In-Reply-To: (Juan Quintela's message of "Tue, 30 Mar 2010 12:24:19 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Juan Quintela Cc: Ricardo Ribalda Delgado , qemu-devel@nongnu.org, zhur@ispras.ru, paul@codesourcery.com Juan Quintela writes: > Ricardo Ribalda Delgado wrote: >> 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. > > Don't even start this discussion yet again :) > Short answer: we don't have. > Long answer: any indenter that would pass qemu code style will be turing > complete (at least) and possibly will also pass the Turing t= est. Among the things I'm paid for is tolerating ugly code. >>>> +#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 <>) Use #include "name.h" for includes that come with the source or are generated by the build. > Everything uses "". I just looked when reviewing this patch at msmouse, > and that one could also take some cleanup. This happens a lot in qemu, > you search for another driver for inspiration, and Murphy gets just the > one with the wrong examples. > >>> Why does the lenght of the FIFO changes here? =C2=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? > > Nope, I am not a 16550A guru at all. No sure if your change will break > anything else or no, that is why I asked. The 16550 FIFOs are 16 bytes. The chips with larger FIFOs have different model numbers, e.g. 16650 with 32 byte FIFOs. I can't see how the FIFO length limits your packet size. Could you explain?