Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Aug 2012 22:11:12 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-usb@freebsd.org, sbruno@freebsd.org
Subject:   Re: qemu hw/usb/host-bsd.c
Message-ID:  <201208052211.12399.hselasky@c2i.net>
In-Reply-To: <1344188687.10817.5.camel@powernoodle>
References:  <1344188687.10817.5.camel@powernoodle>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday 05 August 2012 19:44:47 Sean Bruno wrote:
> Trying to update the qemu port this weekend and I see there are a lot of
> legacy usb things going on inside of host-bsd.c that need to be updated.
> 
> I've started with the qemu git tree at git://git.qemu.org/qemu.git
> 
> Specifically, I'm staring at hw/usb/host-bsd.c
> 
> The main issues seem to be wrapped around its handling and setup of
> "SHORT_XFER" and its abuse of the old udi_devnames[] data in the
> deviceinfo structs.
> 
> I've started with the attached diff. I'm pretty sure this is wrong.
> 
> Let start with the abuse of udi_devnames in this code.  What's the best
> way for in usb-land to setup its emulated usb nonsense?
> 
> http://people.freebsd.org/~sbruno/host-bsd.c.txt
> 
> sean

Hi,

You should try to use libusb for USB access, like the recently added XHCI 
driver in qemu. libusb20 is gives you the full power of the FreeBSD USB API. 
libusb10 is also good and also works under Linux ++.

--HPS



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