From owner-freebsd-arch@FreeBSD.ORG Mon Jul 7 14:39:08 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 E7F1A37B401; Mon, 7 Jul 2003 14:39:08 -0700 (PDT) Received: from mail.cyberonic.com (mail.cyberonic.com [4.17.179.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3DE5A43FBF; Mon, 7 Jul 2003 14:39:05 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (node-40244c0a.sfo.onnet.us.uu.net [64.36.76.10]) by mail.cyberonic.com (8.12.8/8.12.5) with ESMTP id h67M3pMa016851; Mon, 7 Jul 2003 18:03:51 -0400 Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.9/8.11.6) id h67LdCIO075179; Mon, 7 Jul 2003 14:39:12 -0700 (PDT) (envelope-from jmg) Date: Mon, 7 Jul 2003 14:39:12 -0700 From: John-Mark Gurney To: Paul Richards Message-ID: <20030707213912.GH44762@funkthat.com> Mail-Followup-To: Paul Richards , joe@FreeBSD.org, arch@FreeBSD.org 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> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: joe@FreeBSD.org cc: arch@FreeBSD.org Subject: Re: usb module orginization X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney 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 21:39:09 -0000 Paul Richards wrote this message on Mon, Jul 07, 2003 at 20:47 +0100: > 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. But the pci is truely newbus'ifed. The usb code doesn't make proper use of newbus, and is really just a port from NetBSD. So, it's a bit different. Also, usb is different than PCI in that it has well documented "device" interfaces. So unlike PCI there is a more limited number of device drivers. With your statements I do agree that any device drivers that aren't part of the spec should be located else where, otherwise we should break down PCI even more than they are now. > 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. If you do the work for the others, I'll make usb follow that, but right now I'm most interested in cleaning up the usb support. Also, the ether, disk, etc. has no precedence compared to the others. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."