From owner-freebsd-new-bus@FreeBSD.ORG Thu Sep 28 10:24:42 2006 Return-Path: X-Original-To: freebsd-new-bus@freebsd.org Delivered-To: freebsd-new-bus@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 857BA16A417 for ; Thu, 28 Sep 2006 10:24:42 +0000 (UTC) (envelope-from namaskar_alok@yahoo.co.in) Received: from web8912.mail.in.yahoo.com (web8912.mail.in.yahoo.com [203.84.221.144]) by mx1.FreeBSD.org (Postfix) with SMTP id 0D00B43D5D for ; Thu, 28 Sep 2006 10:24:39 +0000 (GMT) (envelope-from namaskar_alok@yahoo.co.in) Received: (qmail 93195 invoked by uid 60001); 28 Sep 2006 10:24:37 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.in; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=unQ0pH8tt78Z7PM96WbAv8in4jGYVyMvsIVm7v80cgechCR3qB4F9kWyNIKWri51f/U8dxzo6R69LmRREPdjp1LLVIpmbMvKrRGF8blvCF8laSQFBciW3YeJDs/SD6cBuC1+FjqLBIlUzGkAPQ6l5qAOEwOM24ojrT+xEQ8We4k= ; Message-ID: <20060928102437.93193.qmail@web8912.mail.in.yahoo.com> Received: from [220.225.33.101] by web8912.mail.in.yahoo.com via HTTP; Thu, 28 Sep 2006 03:24:37 PDT Date: Thu, 28 Sep 2006 03:24:37 -0700 (PDT) From: Alok Barsode To: freebsd-new-bus@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: Device enumeration X-BeenThere: freebsd-new-bus@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD's new-bus architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Sep 2006 10:24:42 -0000 Hi, I am a newbie working on FreeBSD 4.10. I am a bit confused between i386/conf/GENERIC and i386/conf/GENERIC.hints. Does a device driver's probe/attach routine is invoked when a enty is made for it in the GENERIC file? for example an enty in the GENERIC file will be : device nge # NatSemi DP83820 gigabit Ethernet Does the probe routine in if_nge.c invoked when the kernel encounters the above entry? How can I probe/attach a device which is not self-identifying? Like a memory mapped device? Does an entry in the GENERIC file make sure the probe/attach function will be called for it? How can I identify where in the device hierarchy is it located? The device is not connected to any BUS. so will it be a independent device? In GENERIC.hints a device's bus, port,irq are mentioned. What is the actual purpose of doing so? is this hard coding the values (like irqs)? what information has to be mentioned in this file? I was unable to find a good document on the newbus architecture and device enumeration.If anybody knows of one, plz let me know. Thanks, Alok. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com