Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Oct 2000 10:45:05 +0930 (CST)
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        Torbjorn Kristoffersen <sgt@netcom.no>
Cc:        freebsd-hackers@freebsd.org
Subject:   RE: Programming a USB driver
Message-ID:  <XFMail.001011104505.doconnor@gsoft.com.au>
In-Reply-To: <Pine.BSF.4.21.0010102022200.549-100000@hal.netforce.no>

next in thread | previous in thread | raw e-mail | index | archive | help

On 10-Oct-00 Torbjorn Kristoffersen wrote:
>  It obviously found something there. Would it be hard to make a driver for
>  this camera? I would really appreciate some starting places and tips.

If you can work out what the wire protocol is, you should be able to write a
userland driver using the ugen driver.

The ugen driver is a 'catch all' for USB drivers with no explicit kernel driver.

I guess a good place to start would be to find the Linux driver which hopefully
has source and read that. Then start fiddling :)

As far as I understand it, each USB device has several 'end points' which can
be different types, and the ugen driver allows access to these end points as
different devices (eg ugen0.0 ugen0.1 etc). You can then open these (make sure
you get the read/write'ness correct).

The only experience I have with USB is a camera whose USB protocol is
*identical* to the serial one :)

---
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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