From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 8 13:31:37 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 35EA116A4CE for ; Thu, 8 Jul 2004 13:31:37 +0000 (GMT) Received: from areandor.numenor.net (areandor.numenor.net [69.55.237.153]) by mx1.FreeBSD.org (Postfix) with ESMTP id E305943D68 for ; Thu, 8 Jul 2004 13:31:36 +0000 (GMT) (envelope-from lists-freebsd@silverwraith.com) Received: from [69.55.228.10] (helo=keylime.silverwraith.com) by areandor.numenor.net with esmtp (TLSv1:RC4-SHA:128) (Exim 3.36 #1) id 1BiYzo-000KCg-00 for freebsd-hackers@freebsd.org; Thu, 08 Jul 2004 06:31:28 -0700 Received: from keylime ([69.55.228.10] helo=keylime.silverwraith.com) by keylime.silverwraith.com with esmtp (Exim 4.34; FreeBSD) id 1BhBbb-0000FK-Bj; Sun, 04 Jul 2004 11:20:47 -0700 Received: (from avleen@localhost)i64IKlFf000948; Sun, 4 Jul 2004 11:20:47 -0700 (PDT) (envelope-from lists-freebsd@silverwraith.com) X-Authentication-Warning: keylime.silverwraith.com: avleen set sender to lists-freebsd@silverwraith.com using -f Date: Sun, 4 Jul 2004 11:20:47 -0700 From: Avleen Vig To: idownes@slingshot.co.nz Message-ID: <20040704182047.GD72520@silverwraith.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i X-Spam-Score: -100.0 (---------------------------------------------------) X-Spam-Report: Spam detection software, running on the system "keylime.silverwraith.com", hasmessageblock similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Sun, Jul 04, 2004 at 12:53:39PM +0000, idownes@slingshot.co.nz wrote: > So what I guess what I am asking is 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. [...] Content analysis details: (-100.0 points, 5.0 required) pts rule name description -------------------------------------------------- -100 USER_IN_WHITELIST From: address is in the user's white-list cc: freebsd-hackers@freebsd.org 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 13:31:37 -0000 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)