From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 1 13:50:42 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 82CA816A4CE for ; Thu, 1 Jul 2004 13:50:42 +0000 (GMT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id A3D4D43D31 for ; Thu, 1 Jul 2004 13:50:41 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) i61Do0aI003505 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Thu, 1 Jul 2004 15:50:02 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id i61DnYUi038722 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 1 Jul 2004 15:49:34 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id i61DnYVu008221; Thu, 1 Jul 2004 15:49:34 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id i61CaHwe066731; Thu, 1 Jul 2004 14:36:17 +0200 (CEST) (envelope-from ticso) Date: Thu, 1 Jul 2004 14:36:17 +0200 From: Bernd Walter To: Alex K Message-ID: <20040701123615.GA57889@cicely12.cicely.de> References: <200406301904.44292.lesha@intercaf.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200406301904.44292.lesha@intercaf.ru> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=ham version=2.61 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on cicely5.cicely.de cc: freebsd-hackers@freebsd.org Subject: Re: USB driver selection algorithm? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2004 13:50:42 -0000 On Wed, Jun 30, 2004 at 07:04:44PM +0400, Alex K wrote: > > Hello, everyone! > > As far as I understand drivers for USB devices are selected and attached > based on USB VendorID and ProductID match. Here I have situation where > I have 2 diffrent USB devices (cables) which got same Vendor and Device > IDs, only revision differes. USB drivers are selected based on the drivers need. That is usually deviceclass, interfaceclass or vendor/product. First all drivers are asked if they want the whole device. If none takes it than all drivers are asked for each interface of the device - an interface is a functional part of an USB device. If that also fails the driver is given to ugen as a whole. > It is mobile phone cables based on PL2303 and PL2303X chipsets. uplcom takes devices (or maybe interfaces) based on vendor/product ID. > What approach will you recommend? What is your problem? -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de