Date: Sun, 16 Jan 2005 12:24:07 +0100 From: irchat@free.fr To: Ian Dowse <iedowse@maths.tcd.ie> Cc: freebsd-usb@freebsd.org Subject: Re: Prism54 USB Wireless Adapters Message-ID: <1105874647.41ea4ed7f035f@imp6-q.free.fr>
next in thread | raw e-mail | index | archive | help
On Sunday 16 January 2005 02:46, Ian Dowse wrote: > Try removing the USBD_NO_COPY flag from all the transfer setups. I > happen to have a USB Prism54 device here, and removing that flag > appears to cause the p54u_int_rx_cb function to get called. It worked. But I had to disable EHCI support in my kernel, is that a bug in FreeBSD ? I'm running the 5.3 version, which seems to have support for interrupt pipes on EHCI controllers. Testing my driver with or without USBD_NO_COPY and the EHCI makes the interrupt callback never called. With UHCI and without USBD_NO_COPY, my code fails when the xfers using the buffers that don't support DMA are submitted. > As far as I can tell, the USBD_NO_COPY flag should only ever be > used in conjunction with the usbd_alloc_buffer() function. Normally > the USB code copies data into a DMA buffer for writes and copies > it back after reads, but if you have set up your own buffer then > it is more efficient to access the buffer directly to avoid the > copying. Done. Thanks ! Sebastien
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1105874647.41ea4ed7f035f>
