From owner-freebsd-questions@FreeBSD.ORG Wed Mar 26 02:58:02 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9AD9C37B405 for ; Wed, 26 Mar 2003 02:58:02 -0800 (PST) Received: from serverbsd.kaqelectronics.dyndns.org (CPE-144-137-253-212.wa.bigpond.net.au [144.137.253.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id E5E7343F93 for ; Wed, 26 Mar 2003 02:58:00 -0800 (PST) (envelope-from kat-free@kaqelectronics.dyndns.org) Received: from wskatinka (wskatinka.kaqelectronics.dyndns.org [192.168.0.254]) h2QB62U07690; Wed, 26 Mar 2003 19:06:08 +0800 (WST) (envelope-from kat-free@kaqelectronics.dyndns.org) From: "Katinka Mills" To: "Freebsd-Questions" , "David Rio" Date: Wed, 26 Mar 2003 18:57:19 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <20030326103728.GA29001@big.perpels.com> X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4920.2300 Importance: Normal X-Spam-Status: No, hits=-12.2 required=5.0 tests=IN_REP_TO,MSGID_GOOD_EXCHANGE,QUOTED_EMAIL_TEXT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Subject: RE: usb device driver skeleton? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Mar 2003 10:58:05 -0000 > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of David Rio > Sent: Wednesday, 26 March 2003 6:37 PM > To: taxman > Cc: freebsd-questions@freebsd.org > Subject: Re: usb device driver skeleton? > > > On Tue, Mar 25, 2003 at 08:48:03PM -0500, taxman wrote: > > On Tuesday 25 March 2003 12:15 pm, David Rio wrote: > > > Hi all: > > > > > > I want to port a linux device driver that I did to *BSD. I would > > > > That would be great. > > Yes.. We have to help BSD movement, if not linux will eat us. :) > > > > like to know if there is some source of information to develope > > > usb device drivers in freebsd. Handbook talks about usb in general, > > > an about device drivers but not about usb device drivers. My last > > > option is to read some usb DD already coded but before that I > would like > > > know if there is some other "beginner" source of information. > > > > Yep, the thing you need is the developers handbook. You can > get to it from > > the "other docs" page. Here is the USB section: > > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbo > ok/usb.html > > I have looked this page, but there they explain how the usb > system works and > there is no USB comment code. > > > > > Beyond that, the source of other drivers will be what you need. > I think > > you'll want to look at the ugen(4) manpage and code too, > > That is better. But ugen(4), if I am not wrong, it is a API for > create userland > drivers. > I would like to write a real usb char device driver. May I ask what USB device you are writing for, as I am looking at developing a USB interface for UPS support so NUT can use my UPS (ATM I can only use it under Linux ikkies)So we may be able to share knowledge and reach both our goals faster. BTW is there a USB team in FreeBSD ? Regards, Kat. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 10/01/2003