Re: writing usb drivers under 8.x

2010-08-30 Thread perryh
Jim Bryant wrote: > well, i can't speak for K&R 1978, as i can't currently find my copy, > but, for a quick brush up, you might want to read pages 80 and 81 > from K&R 2nd Ed. 1988. > > your idea that the preprocessor will evaluate > > #define thirtytwok (1<<15) > > into 0x8000 > > at compile ti

USB synchronous control transfers (for usb-to-serial)

2010-08-30 Thread Piet Skiet
Hi, Can anyone clarify how to go about doing a synchronous usb control transfer, similar to Linux's usb_control_msg? I want to implement the TIOCMGET ioctl on a usb-to-serial converter. The Linux driver uses synchronous control messages to read DCE and CTS serial pin status, and I want to do somet

Current problem reports assigned to freebsd-usb@FreeBSD.org

2010-08-30 Thread FreeBSD bugmaster
Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker

Re: USB synchronous control transfers (for usb-to-serial)

2010-08-30 Thread Piet Skiet
On Mon, Aug 30, 2010 at 10:51 AM, Piet Skiet wrote: > Hi, > > Can anyone clarify how to go about doing a synchronous usb control > transfer, similar to Linux's usb_control_msg? I want to implement the > TIOCMGET ioctl on a usb-to-serial converter. The Linux driver uses > synchronous control messag

Porting an USB software from linux (libusb)

2010-08-30 Thread Alexander Leidinger
Hi, I try to port a linux userland USB program and I get the following error message when trying to link to libusb (current as of r210105): ---snip--- cc -lusb -lm -o fowsr fowsr.o fowsr.o(.text+0x1546): In function `CUSB_Open': : undefined reference to `usb_get_driver_np' fowsr.o(.text+0x171

Re: Porting an USB software from linux (libusb)

2010-08-30 Thread Hans Petter Selasky
On Monday 30 August 2010 17:42:32 Alexander Leidinger wrote: > Hi, > > I try to port a linux userland USB program and I get the following > error message when trying to link to libusb (current as of r210105): > ---snip--- > cc -lusb -lm -o fowsr fowsr.o > > fowsr.o(.text+0x1546): In function `CU

Re: USB synchronous control transfers (for usb-to-serial)

2010-08-30 Thread Hans Petter Selasky
On Monday 30 August 2010 14:41:56 Piet Skiet wrote: > On Mon, Aug 30, 2010 at 10:51 AM, Piet Skiet wrote: > > Hi, > > > > Can anyone clarify how to go about doing a synchronous usb control > > transfer, similar to Linux's usb_control_msg? I want to implement the > > TIOCMGET ioctl on a usb-to-ser

Re: webcamd and Pixart Imaging

2010-08-30 Thread Hans Petter Selasky
On Monday 30 August 2010 08:56:36 David Naylor wrote: > On Monday 30 August 2010 08:33:30 Hans Petter Selasky wrote: > > Hi, > > > > Could you dump device descriptor and current configuration descriptor > > using usbconfig. I need the vendor ID and product ID at least to be able > > to debug this

Re: webcamd and Pixart Imaging

2010-08-30 Thread David Naylor
On Monday 30 August 2010 21:18:28 Hans Petter Selasky wrote: > On Monday 30 August 2010 08:56:36 David Naylor wrote: > > On Monday 30 August 2010 08:33:30 Hans Petter Selasky wrote: > > > Hi, > > > > > > Could you dump device descriptor and current configuration descriptor > > > using usbconfig. I

Re: webcamd and Pixart Imaging

2010-08-30 Thread Hans Petter Selasky
On Monday 30 August 2010 22:10:51 David Naylor wrote: > On Monday 30 August 2010 21:18:28 Hans Petter Selasky wrote: > > On Monday 30 August 2010 08:56:36 David Naylor wrote: > > > On Monday 30 August 2010 08:33:30 Hans Petter Selasky wrote: > > > > Hi, > > > > > > > > Could you dump device descri

Re: Porting an USB software from linux (libusb)

2010-08-30 Thread Jim Bryant
easy fix. just drop the _np the functions are there under legacy naming. Alexander Leidinger wrote: Hi, I try to port a linux userland USB program and I get the following error message when trying to link to libusb (current as of r210105): ---snip--- cc -lusb -lm -o fowsr fowsr.o fowsr.o(.

Re: webcamd and Pixart Imaging

2010-08-30 Thread David Naylor
On Monday 30 August 2010 23:34:41 Hans Petter Selasky wrote: > On Monday 30 August 2010 22:10:51 David Naylor wrote: > > On Monday 30 August 2010 21:18:28 Hans Petter Selasky wrote: > > > On Monday 30 August 2010 08:56:36 David Naylor wrote: > > > > On Monday 30 August 2010 08:33:30 Hans Petter Sel