From owner-freebsd-new-bus Fri Aug 30 10:35:44 2002 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 24F1637B400 for ; Fri, 30 Aug 2002 10:35:43 -0700 (PDT) Received: from mail.speakeasy.net (mail14.speakeasy.net [216.254.0.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id B6EA843E6E for ; Fri, 30 Aug 2002 10:35:42 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 9984 invoked from network); 30 Aug 2002 17:35:48 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail14.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 30 Aug 2002 17:35:48 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.5/8.12.5) with ESMTP id g7UHZeBQ049524 for ; Fri, 30 Aug 2002 13:35:40 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Fri, 30 Aug 2002 13:35:42 -0400 (EDT) From: John Baldwin To: new-bus@FreeBSD.org Subject: bus_generic_probe() is wrong I think Sender: owner-freebsd-new-bus@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG If we are going to support having multiple driver's for a given device which is a bus (like we do now for PCI busses and like I am doing for this concept of a system buson i386) then I think that bus devices do not need to go identify child devices until after they have won the probe and are being attached. Thus, I'm ending up calling bus_generic_probe() in my attach routines instead of my probe routines. Does this make sense or am I missing something? I at least have to do this in the system bus case here for the same reasons that when I added another PCI bus driver, I had to change the PCI drivers to add children devices (equivalent of doing an identify) during attach() time and not during probe() time. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-new-bus" in the body of the message