From owner-freebsd-usb@FreeBSD.ORG Thu Aug 26 17:59:24 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 D0E65106566B for ; Thu, 26 Aug 2010 17:59:24 +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 973388FC14 for ; Thu, 26 Aug 2010 17:59:24 +0000 (UTC) Received: by iwn36 with SMTP id 36so1984265iwn.13 for ; Thu, 26 Aug 2010 10:59:24 -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:content-type :content-transfer-encoding; bh=gFKuw8uRag1VZEpKQkJCBPvJm50zl3T96kRwyPk3j8c=; b=wlk4I8fdvRyxOFhoTvlLEczgB8QuRZbZpTNB/4Y8GgEHAdCBlDio6cAlt0ffRfEUTr +3O6twoGD/k/F918SFw92knWleuQEMLI/+RrSihZWWu3mik5Lji6AY0FJoRfati1Pwg8 v5+Fy19nT2fJ6D/Gu08sBcpbLxFcyXHZld8Rw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=itYKJVhu9XYpGpwm8GeWKfIhHnogPm0rJxpItMieqSk6eiOyy9uykYdT2r4rVPRZGs w3+FbN01A3x9Ww97UJvO96Tm2cW2MSE6/k0nz8gns/cmXCPUL3a5bLjwICtRiH4jPeWS U34/rwPK3KYhhgvuutygUK6tRdT7BHH5M8C98= Received: by 10.231.17.1 with SMTP id q1mr11913232iba.17.1282845563945; Thu, 26 Aug 2010 10:59:23 -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 n20sm2754870ibe.17.2010.08.26.10.59.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 26 Aug 2010 10:59:20 -0700 (PDT) Message-ID: <4C76AB76.4070806@gmail.com> Date: Thu, 26 Aug 2010 12:59:18 -0500 From: Jim Bryant User-Agent: Thunderbird 2.0.0.24 (X11/20100731) MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: 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 17:59:24 -0000 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