From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 8 19:39:27 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E84AE16A4CE for ; Thu, 8 Jul 2004 19:39:27 +0000 (GMT) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.202.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6CABA43D3F for ; Thu, 8 Jul 2004 19:39:27 +0000 (GMT) (envelope-from ritalin@comcast.net) Received: from emachine (pcp04417136pcs.nrockv01.md.comcast.net[69.140.104.84]) by comcast.net (sccrmhc13) with SMTP id <2004070819392601600o7jlje>; Thu, 8 Jul 2004 19:39:26 +0000 Message-ID: <000b01c46522$0198c8a0$9402a8c0@emachine> From: "Rita Lin" To: "Zera Holladay" , References: <20040708125852.D15330-100000@m-net.arbornet.org> Date: Thu, 8 Jul 2004 15:30:19 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Subject: Re: where to get info to write basic usb driver for own device? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jul 2004 19:39:28 -0000 I would read up some code in /dev/usb and see how others did theirs. I would also read the Dynamic Kernel Linker by Andrew Reiter http://www.daemonnews.org/200010/blueprints.html, and the white paper by zep software http://www.zepsoftware.com/whitepapers/bsd_devtree.php. That's how I wrote my first USB driver. Rita ----- Original Message ----- From: Zera Holladay To: Sent: Thursday, July 08, 2004 1:11 PM Subject: Re: where to get info to write basic usb driver for own device? > This may go without saying, but have you read Chapter 22 of the FreeBSD > Developers' Handbook? I have not read intro(4) extensively but that is > probably a good starting place, if you are completely in the dark. > > -Zera Holladay > > > > > On Sun, 4 Jul 2004, Avleen Vig wrote: > > > On Sun, Jul 04, 2004 at 12:53:39PM +0000, idownes@slingshot.co.nz wrote: > > > So what I guess what I am asking is how hard would this be? (I have a > > > reasonable knowledge of C and Java and have been using FreeBSD for a > > > couple of years but have never written a device driver (for any OS)) Do I > > > actually need to write a driver or can I use something already existing? > > > Where would I get information on how to do this? So far I've been looking > > > at the existing drivers; ugen, ufm etc., the programmers handbook and am > > > starting to look at libusb...? > > > Sorry for the long message. Any pointers etc. would be greatly > > > appreciated. > > > > I am actually in a similar situation. > > I know some C, and want to write a device driver for a USB device (web > > cam), but I have no idea where to start. > > I've searched for a "beginners guide to writing device drivers" but > > failed miserably :-( > > > > -- > > Avleen Vig > > Systems Administrator > > Personal: www.silverwraith.com > > EFnet: irc.mindspring.com (Earthlink user access only) > > _______________________________________________ > > freebsd-hackers@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > > > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"