From owner-freebsd-hackers Fri Aug 28 07:33:21 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA23947 for freebsd-hackers-outgoing; Fri, 28 Aug 1998 07:33:21 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from mrelay.jrc.it (mrelay.jrc.it [139.191.1.65]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA23933 for ; Fri, 28 Aug 1998 07:33:13 -0700 (PDT) (envelope-from nick.hibma@jrc.it) Received: from elect8 (elect8.jrc.it [139.191.71.152]) by mrelay.jrc.it (LMC5692) with SMTP id QAA11605 for ; Fri, 28 Aug 1998 16:32:15 +0200 (MET DST) Date: Fri, 28 Aug 1998 16:32:13 +0200 (MET DST) From: Nick Hibma X-Sender: n_hibma@elect8 Reply-To: Nick Hibma To: FreeBSD hackers mailing list Subject: subr_autoconf.c Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG What is the reason that subr_autoconf.c is UNUSED? NetBSD uses these config_found functions to determine the devices that can be found after a certain element has been attached to like, a pcibus implies the probing pci devices that are compiled in. My problem is that the NetBSD USB code uses this mechanism. Allthough I am not convinced that that way of specifying the device driver to attach to is according to the USB specs but it is certainly the most straightforward way of doing it in their case. Is there in FreeBSD a general mechanism to attach devices? Do the ISA, EISA and PCI bus code all implement their own way of handling things? USB is supposed to use ad hoc mechanisms to load drivers. Based on the descriptor the device returns you can select the appropriate one, either a device specific one (such and such mouse, even down to serial number) or a general driver (mouse? Give it to me). In the end of course I plan to implement everything with LKM drivers loading and unloading at status change on the hub endports. Nick -- building: 27A address: STA-ISIS, T.P.270, Joint Research Centre, 21020 Ispra, Italy tel.: +39 332 78 9549 fax.: +39 332 78 9185 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message