From owner-freebsd-questions Thu May 24 19: 6: 8 2001 Delivered-To: freebsd-questions@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 6385537B422; Thu, 24 May 2001 19:05:59 -0700 (PDT) (envelope-from imp@billy-club.village.org) Received: from billy-club.village.org (billy-club.village.org [10.0.0.3]) by rover.village.org (8.11.3/8.11.3) with ESMTP id f4P25v667854; Thu, 24 May 2001 20:05:57 -0600 (MDT) (envelope-from imp@billy-club.village.org) Received: from billy-club.village.org (localhost [127.0.0.1]) by billy-club.village.org (8.11.2/8.8.3) with ESMTP id f4P262l39959; Thu, 24 May 2001 20:06:02 -0600 (MDT) Message-Id: <200105250206.f4P262l39959@billy-club.village.org> To: Alexander Langer Subject: Re: Device driver questions Cc: SJ , freebsd-questions@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG In-reply-to: Your message of "Wed, 23 May 2001 08:58:57 +0200." <20010523085857.B1103@zerogravity.kawo2.rwth-aachen.d> References: <20010523085857.B1103@zerogravity.kawo2.rwth-aachen.d> <20010523003414.51600.qmail@web13405.mail.yahoo.com> Date: Thu, 24 May 2001 20:06:02 -0600 From: Warner Losh Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <20010523085857.B1103@zerogravity.kawo2.rwth-aachen.d> Alexander Langer writes: : Thus spake SJ (sandejain@rocketmail.com): : : Hi! : : > 1. "ioconf.c" contains struct config_resource and : > config_device definitions for declarations in : > "config" file. But I noticed that for some devices : > e.g. device atadisk : > device atapicd : > ... : > the corresponding lines in ioconf.c are missing?? : : I think it's because ata is a self-identifying bus. : Not sure, though. Are any PCI-only devices listed? That's because that is handled in two ways. One is by the hints mechanism. The other is by the DRIVER_MODULE at the end of the driver. : > 3. File naming question: : > whats the reasoning behind having "bus.h" and : > "bus_private.h"....whats the significance of : > "private" here. : : drivers include bus.h, kernel does also include bus_private.h bus_private.h contains stuff that you should consider to be 100% hands off. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message