qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Juan Quintela
Subject: [Qemu-devel] Re: [PATCH] Elo touchpad 10 bytes emulator v2
Date: Tue, 30 Mar 2010 14:30:00 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Markus Armbruster <address@hidden> wrote:

>>> 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?

Ah, I found it.  Please look at hw/baum.c to see how to handle bigger
packets.  You can't write 10 + 10 bytes into 16 bytes in one go, you
need to wait for the guest to consume some bits before you sent
something more.

see how baum_accept_input()
handle qemu_chr_can_read() output.  Something like that should fix your 
problems.

Later, Juan.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]