From owner-freebsd-usb@FreeBSD.ORG Sat Nov 17 09:46:59 2007 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7616D16A41A for ; Sat, 17 Nov 2007 09:46:59 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.swip.net [212.247.154.1]) by mx1.freebsd.org (Postfix) with ESMTP id 01FF313C45D for ; Sat, 17 Nov 2007 09:46:57 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [85.19.218.45] (account mc467741@c2i.net [85.19.218.45] verified) by mailfe01.swip.net (CommuniGate Pro SMTP 5.1.13) with ESMTPA id 671843971; Sat, 17 Nov 2007 10:46:48 +0100 From: Hans Petter Selasky To: Julian Elischer Date: Sat, 17 Nov 2007 10:47:18 +0100 User-Agent: KMail/1.9.7 References: <200711170938.28339.hselasky@c2i.net> <473EACF0.2070005@elischer.org> In-Reply-To: <473EACF0.2070005@elischer.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200711171047.18851.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: OpenUSB for FreeBSD? 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: Sat, 17 Nov 2007 09:46:59 -0000 On Saturday 17 November 2007, Julian Elischer wrote: > Hans Petter Selasky wrote: > > Hi, > > > > On Thursday 15 November 2007, Xiaofan Chen wrote: > >> On 11/12/07, Henrik Brix Andersen wrote: > >>>> Is it possible for some people here to implement a backend > >>>> (based on ugen?) for FreeBSD? > >>> > >>> Interesting - definitely something I will take a look at. Thank you > >>> for the pointer. > >>> > >>>> Or maybe at least improve the current libusb-0.1.x implemenation > >>>> for FreeBSD. > >>> > >>> Yeah, I was looking at backporting some of the features from libusb > >>> CVS HEAD to libusb-0.1 on FreeBSD a while back and improving FreeBSD > >>> compatability as well for an application, I work on - but we ended up > >>> making FreeBSD specific work-arounds in the application instead. > >> > >> Could you be a bit more specific? I know there are some missing calls > >> in FreeBSD. And I have problems with libusb interrupt write with the > >> default kernel (hangs). It is documented here. > >> http://lists.freebsd.org/pipermail/freebsd-usb/2007-November/004128.html > >> But I am not so sure if it is a libusb problem or the kernel USB driver > >> problem. > > > > The problem about clear stall on the interrupt endpoint is a pure device > > problem. Your USB device must re-queue any lost interrupt packets after > > clear stall! > > > >> The HPS stack seems to be better in this aspect and I got > >> some libusb application ported from Linux/Windows to > >> FreeBSD thanks to the help from Hans. > >> > >>> The current stable version of libusb certainly makes a lot to wish for > >>> on FreeBSD. > > > > I haven't got time yet to look at the latest version of libusb. I have > > some plans to make a replacement for /dev/ugen, that can interact on USB > > interfaces that already have drivers on them. Currently I'm very busy > > with other USB stuff. > > like, err documentation maybe? Including that :-) --HPS