From owner-freebsd-usb@FreeBSD.ORG Thu Aug 26 18:20:48 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 385151065694 for ; Thu, 26 Aug 2010 18:20:48 +0000 (UTC) (envelope-from kc5vdj.freebsd@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id F0A708FC0C for ; Thu, 26 Aug 2010 18:20:47 +0000 (UTC) Received: by iwn36 with SMTP id 36so1997030iwn.13 for ; Thu, 26 Aug 2010 11:20:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=Fcz+KFaVruHTqUb57xP1CiKR4O8fzlBymO4yEJwb/E8=; b=a529axsykbxoTdFmCXt0QbJuKpOIewuBf7dy9I+HPrVuO6y3C81PAJbORKAzddaTep jS36NT1uj12YWxUgfCNgZCKXwr022ddS8AhOazQzyFcggwq4m+weE9D0aARj04u6kF1h o1y1wo4L1gtvYVFtTes7sxZlgHQD+OVH6ZTN8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=XxxLI/3NVpt6Vl04d6F7/vhoMQbKKPyr60Q2S1+mEGdYybjS4z/QD3WsC0mVPvPgJy 3Fp5qBYpdiF9gqc64tAuIypuJTGI7mPVYAFxwxuG6KL8so2M/EePCF13gmkVpHuP+6zw I0trtJzscxOBRO9j2qVmaWdvQsdvGC8M/28jQ= Received: by 10.231.11.69 with SMTP id s5mr10855448ibs.38.1282846847084; Thu, 26 Aug 2010 11:20:47 -0700 (PDT) Received: from orb.electron-tube.net (71-217-215-181.cdrr.qwest.net [71.217.215.181]) by mx.google.com with ESMTPS id e8sm2775530ibb.2.2010.08.26.11.20.46 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 26 Aug 2010 11:20:46 -0700 (PDT) Message-ID: <4C76B07D.9010402@gmail.com> Date: Thu, 26 Aug 2010 13:20:45 -0500 From: Jim Bryant User-Agent: Thunderbird 2.0.0.24 (X11/20100731) MIME-Version: 1.0 To: freebsd-usb@freebsd.org References: <4C76AB76.4070806@gmail.com> In-Reply-To: <4C76AB76.4070806@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: writing usb drivers under 8.x X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 18:20:48 -0000 also, i'd like to hook up with a committer, as i'd like to have the finished drivers in the official tree. both devices (the temper, and the imon) have uses suited to both home/workstation use, as well as server use, in fact my imon is installed in orb, which is a home multi-server (music, books, tv shows, movies, mysql, samba, etc), and i intend to use the imon vfd as a tool to get server info without having to login to the server (using the knob/button to select from a menu on the vfd), and it has uses in both home and enterprise server realms. i think the source tree would benefit from having both drivers once completed. Jim Bryant wrote: > i have some usb devices, in the hid class, that i am wanting to write > some drivers for. > > seeing that one of these previously had an older non-submitted driver > for 5.x-7.x online, i thought that might be a good starting point (the > imon vfd/lirc driver), but that does not work, due to the changes in > the usb subsystem. > > where can i find documentation on this subsystem? > > are there any decent skeletons to start with, or does this need to be > from scratch? > > i'd like to start with a driver for the pcsensor temper usb > thermometer, for which i already wrote a libusb util for, since these > are widely sold, and very popular (and usually around $5 USD), and > since it only has one transaction (read current temp), I figure it > would be easier to start with while I learn the usb driver framework. > > as for the imon vfd unit, i'd like to tackle that next. i have > written libusb utilities for all of the display functions supported, > and have documented the knob/button interrupt packets (only three > packet types, clockwise, counterclockwise, and button down). all of > the remote control functions are well-documented in lirc. > > i've been looking through the sources in the sys tree, but would like > to find some comprehensive documentation of the new usb subsystem, and > maybe someone who can give me pointers as i go. > > jim > >