From owner-freebsd-usb@FreeBSD.ORG Sun Aug 5 20:10:54 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 23163106564A; Sun, 5 Aug 2012 20:10:54 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.c2i.net [212.247.154.2]) by mx1.freebsd.org (Postfix) with ESMTP id 7A8DC8FC12; Sun, 5 Aug 2012 20:10:52 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.212.201] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe01.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 307238171; Sun, 05 Aug 2012 22:10:45 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org, sbruno@freebsd.org Date: Sun, 5 Aug 2012 22:11:12 +0200 User-Agent: KMail/1.13.7 (FreeBSD/9.0-STABLE; KDE/4.7.4; amd64; ; ) References: <1344188687.10817.5.camel@powernoodle> In-Reply-To: <1344188687.10817.5.camel@powernoodle> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201208052211.12399.hselasky@c2i.net> Cc: Subject: Re: qemu hw/usb/host-bsd.c X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Aug 2012 20:10:54 -0000 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