From owner-freebsd-new-bus@FreeBSD.ORG Sat Sep 30 12:00:47 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 E441A16A5E0 for ; Sat, 30 Sep 2006 12:00:47 +0000 (UTC) (envelope-from namaskar_alok@yahoo.co.in) Received: from web8913.mail.in.yahoo.com (web8913.mail.in.yahoo.com [203.84.221.145]) by mx1.FreeBSD.org (Postfix) with SMTP id 6432543D4C for ; Sat, 30 Sep 2006 12:00:46 +0000 (GMT) (envelope-from namaskar_alok@yahoo.co.in) Received: (qmail 41540 invoked by uid 60001); 30 Sep 2006 12:00:43 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.in; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=LKiiHjJtJp2N8ocXIZ8DrfKn289STdasNhyVzTkd3SHGUPp8K5wiKAGf4V3Yv53qplOA0E/dsnrDyztadbbrDQ2VNQhKM86+qb+PIIOp72jmvjXxxEXWaMGUkb8xd4xT98tSpMJ/1ZPba/NZ2ek2sZZo5Y6np+oKn0iGG07Y3lE= ; Message-ID: <20060930120043.41538.qmail@web8913.mail.in.yahoo.com> Received: from [221.134.250.173] by web8913.mail.in.yahoo.com via HTTP; Sat, 30 Sep 2006 05:00:43 PDT Date: Sat, 30 Sep 2006 05:00:43 -0700 (PDT) From: Alok Barsode To: freebsd-new-bus@freebsd.org In-Reply-To: <20060928.101531.-957832987.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: more 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: Sat, 30 Sep 2006 12:00:48 -0000 hello, Thanks a lot for the reply. A question which arises is, If the kernel calls the probe routine (in case of PCI)for all the devices attached to it during bus-enumeration, whats the point of having the device entries in GENERIC?does the bus-dependent code call the probe routine of the device-driver,for only those devices which are mentioned in GENERIC file. I am writing a device driver for a memory mapped ethernet device.Does it HAVE to be attached to a bus?Its the only device I want to support(right now).Is it not possible to hard-code the probe-attach routine calls? Can i attach it to nexus? OR Can I attach it to the PCI bus (though its not a PCI device) through some hack? This is not a i386 port hence the ISA bus is absent. Will i have to implement a pseudo-bus (write the bus-dependent code)in order to attach my device? Thank you, Alok. "Let the wisdom of the old guide the buoyancy and vitality of the youth; let the buoyancy and vitality of the youth sustain the wisdom of the old." - Stanislavski __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com