Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jul 2013 21:03:59 +0200
From:      Hans Petter Selasky <hps@bitfrost.no>
To:        CeDeROM <cederom@tlen.pl>
Cc:        "freebsd-usb@FreeBSD.org" <freebsd-usb@freebsd.org>
Subject:   Re: LibFTDI/LibUSB 1.0 and Asyncrhonous I/O on FreeBSD
Message-ID:  <51EED39F.4040708@bitfrost.no>
In-Reply-To: <CAFYkXjm1gqpq34ogP9yMQa0xj3ZWth7zzXx2Kki6Cp6DbhztuA@mail.gmail.com>
References:  <CAFYkXjm1gqpq34ogP9yMQa0xj3ZWth7zzXx2Kki6Cp6DbhztuA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 07/23/13 20:10, CeDeROM wrote:
> Hello :-)
>
> LibUSB 1.0 introduced Asyncrhonous I/O [1] which in conjuction with
> LibFTDI 1.0 [2] gives significant performance improvement on FT2232*
> based chips used in various UART/JTAG/SWD interfaces. I am working on
> LibSWD [3] and would like to use this Asyncrhonous I/O on my FreeBSD
> box. I know there is an internal BSD implementation of LibUSB, so my
> question is it possible to use this Asynchronous I/O with FreeBSD
> implementation of LibUSB, or more specifically is it possible to use
> LibFTDI 1.0 to improve speed of my driver for FT2232 chip? :-)
>
> Any hints appreciated! :-)
> Tomek
>
> [1] http://www.libusb.org/wiki/libusb-1.0
> [2] http://www.intra2net.com/en/developer/libftdi/
> [3] http://libswd.sf.net
>

Hi,

It is implemented and should work! Please note that you should not mix 
synchronous and asynchronous requests, with exception of control 
transfers. If you are programming a bulk endpoint, use either all 
synchronous or all asynchronous.

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51EED39F.4040708>