From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 10 02:55:51 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from green.homeunix.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id D2AC416A4CE; Sat, 10 Jul 2004 02:55:50 +0000 (GMT) Received: from green.homeunix.org (green@localhost [127.0.0.1]) by green.homeunix.org (8.12.11/8.12.11) with ESMTP id i6A2tnjc014517; Fri, 9 Jul 2004 22:55:49 -0400 (EDT) (envelope-from green@green.homeunix.org) Received: (from green@localhost) by green.homeunix.org (8.12.11/8.12.11/Submit) id i6A2tfs2014516; Fri, 9 Jul 2004 22:55:41 -0400 (EDT) (envelope-from green) Date: Fri, 9 Jul 2004 22:55:41 -0400 From: Brian Fundakowski Feldman To: "Aho K.F. Li" Message-ID: <20040710025541.GE1626@green.homeunix.org> References: <40E87B4D.1050203@branda.to> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40E87B4D.1050203@branda.to> User-Agent: Mutt/1.5.6i cc: freebsd-hackers@freebsd.org cc: idownes@slingshot.co.nz 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: Sat, 10 Jul 2004 02:55:51 -0000 On Sun, Jul 04, 2004 at 09:49:01PM +0000, Aho K.F. Li wrote: > What kind of device do you had build? > A HID? > If your device is not with heaven traffic, you can consider to > develop your driver at user space with ugen(4) or uhid(4) at first. > And then, move it into kernel space when you need. > I had wrote a drive for a touch panel device. > Actually, it is a input device for XFree86. > I worked it with uhid(4), all my work was finished at user space. > It would be a good entry point. I absolutely agree with this -- it's very hard to write good kernel USB drivers in FreeBSD, and if it can be done with ugen(4)/libusb, you'll safe yourself a lot of time and pain. -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\