Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Apr 2005 14:56:22 +0200
From:      Bernd Walter <ticso@cicely12.cicely.de>
To:        paradox <algorist2000@yahoo.com>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: Is the freebsd usb generic device driver complete?
Message-ID:  <20050429125621.GB73418@cicely12.cicely.de>
In-Reply-To: <20050428062416.93478.qmail@web53609.mail.yahoo.com>
References:  <20050428062416.93478.qmail@web53609.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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