From owner-freebsd-usb@FreeBSD.ORG Fri Apr 29 12:56:37 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E6A4216A4CE for ; Fri, 29 Apr 2005 12:56:37 +0000 (GMT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id E916943D31 for ; Fri, 29 Apr 2005 12:56:36 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [10.1.1.7]) (authenticated bits=0)j3TCuW4J070024 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Fri, 29 Apr 2005 14:56:34 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id j3TCuNhs059680 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 29 Apr 2005 14:56:23 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id j3TCuMx6074357; Fri, 29 Apr 2005 14:56:22 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id j3TCuMgp074356; Fri, 29 Apr 2005 14:56:22 +0200 (CEST) (envelope-from ticso) Date: Fri, 29 Apr 2005 14:56:22 +0200 From: Bernd Walter To: paradox Message-ID: <20050429125621.GB73418@cicely12.cicely.de> References: <20050428062416.93478.qmail@web53609.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050428062416.93478.qmail@web53609.mail.yahoo.com> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=no version=2.64 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on cicely12.cicely.de cc: freebsd-usb@freebsd.org Subject: Re: Is the freebsd usb generic device driver complete? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Apr 2005 12:56:38 -0000 On Wed, Apr 27, 2005 at 11:24:15PM -0700, paradox wrote: > I am using a low speed usb key in freebsd > 5.3Release,It has 2 interrupt pipe besides the control > pipe,the IN pipe is endpoint 1,its interval is 20, OUT > pipe is endpoint 2, interval is 10. I wrote a driver > for it in linux,and everything is ok.when I plug the > key in a system with freebsd 5.3release, it find the > key,make 3 nodes ugen0,ugen0.1 and ugen0.2 for it, I > can get those descriptors from ugen0,but I can't wrote > anything in the OUT pipe ugen0.2. from usb analyser I > found the system send the write packet,just like in > linux,but the return is NAK. Getting NAKs is the normal way for a device to tell, that it has nothing to say or can't take the offered data. Either your device really has nothing to say or isn't configured correctly. There is nothing more to say without knwoing more about your device and it's protocol. > I read the code in ugen.c,usbdi.c,uhci.c,usb.c and > usbdi_util.c,and don't know why it set the ival to > USB_DEFAULT_IVAL(0),I contact with Lennart Augustsson > whose name is in the head of those usb codes, he said > he has never run those code in freebsd and he didn't > write the intr write code! I can't find USB_DEFAULT_IVAL inside FreeBSD's usb source. Most of the files you mention don't even contain the string ival. > the ugen.c, I hope i can made a patch for it.can > anyone tell me how the intr write designs in the > ugen.c, and why it only use the USB_DEFAULT_IVAL? USB_DEFAULT_IVAL doesn't exist. You should be more specific about this. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de