From owner-freebsd-questions@FreeBSD.ORG Wed Mar 26 02:37:32 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 769B037B404 for ; Wed, 26 Mar 2003 02:37:32 -0800 (PST) Received: from big.perpels.com (217-126-9-95.uc.nombres.ttd.es [217.126.9.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id 212DB43F85 for ; Wed, 26 Mar 2003 02:37:30 -0800 (PST) (envelope-from drio@perpels.com) Received: by big.perpels.com (Postfix, from userid 1000) id BC9D853CF; Wed, 26 Mar 2003 11:37:28 +0100 (CET) Date: Wed, 26 Mar 2003 11:37:28 +0100 From: David Rio To: taxman Message-ID: <20030326103728.GA29001@big.perpels.com> References: <20030325171514.GA53868@big.perpels.com> <200303252048.03200.taxman@acd.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200303252048.03200.taxman@acd.net> User-Agent: Mutt/1.4.1i X-Spam-Status: No, hits=-33.1 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, QUOTE_TWICE_1,REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_MUTT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) cc: freebsd-questions@freebsd.org 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:37:35 -0000 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-handbook/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.