From owner-freebsd-arch@FreeBSD.ORG Mon Jul 7 15:16:13 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B72AE37B401; Mon, 7 Jul 2003 15:16:13 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id E47BB43FA3; Mon, 7 Jul 2003 15:16:11 -0700 (PDT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) by srv1.cosmo-project.de (8.12.9/8.12.9) with ESMTP id h67MFlhR059764 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Tue, 8 Jul 2003 00:15:52 +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.9/8.12.9) with ESMTP id h67MFjw6088889 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 8 Jul 2003 00:15:46 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.9/8.12.9) with ESMTP id h67MFjgt033022; Tue, 8 Jul 2003 00:15:45 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.9/8.12.9/Submit) id h67MFj1a033021; Tue, 8 Jul 2003 00:15:45 +0200 (CEST) Date: Tue, 8 Jul 2003 00:15:45 +0200 From: Bernd Walter To: Paul Richards Message-ID: <20030707221544.GL31285@cicely12.cicely.de> References: <20030707071617.GD44762@funkthat.com> <20030707194747.GA21209@survey.codeburst.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030707194747.GA21209@survey.codeburst.net> X-Operating-System: FreeBSD cicely12.cicely.de 5.1-CURRENT alpha User-Agent: Mutt/1.5.4i cc: arch@freebsd.org cc: John-Mark Gurney Subject: Re: usb module orginization X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 22:16:14 -0000 On Mon, Jul 07, 2003 at 08:47:47PM +0100, Paul Richards wrote: > On Mon, Jul 07, 2003 at 12:16:17AM -0700, John-Mark Gurney wrote: > > I would like to move the usb modules into a subdir like the many > > other "groups" of modules already in the tree. (i2c, digi, geom, > > netgraph, to name a few) > > > > i.e. modules/usb/ucom, modules/usb/usb, modules/usb/aue etc. > > That'd be like putting all the pci drivers in the same dir; I think > it's the wrong grouping. The error is that the USB drivers are in > /sys/dev/usb, we spent a while moving drivers out of /sys/dev/pci > and /sys/i386/isa so I don't think grouping by bus in /sys/modules > is any more sensible. Agreed. > It makes more sense to shift them around into /sys/modules/ether or > /sys/modules/disk, which is why /sys/modules/sound is somewhat > acceptable. It's an ambiguous idea. Think of a device drivers creating multiple different devices. Sometimes it's possible to have multiple (interface) drivers as well, but in other cases it's impossible. Such multi purpose devices without using multiple interfaces do exist, because microcontrollers with embedded usb usually have a limited number of supported interfaces. If usb files should be moved then the drivers itself, so we have dev/usb, dev/ohci, dev/ehci, dev/ulpt, dev/umass and so on. dev/usb might be discussable as it's not a device in the strong sense. Also it would be a great idea to split the usb module into usb, ehci, ohci, uhci and maybe uhub. -- B.Walter BWCT http://www.bwct.de ticso@bwct.de info@bwct.de