From owner-freebsd-hackers Sat Aug 21 2:13: 9 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from ns.skylink.it (ns.skylink.it [194.177.113.1]) by hub.freebsd.org (Postfix) with ESMTP id 8888B14DB7 for ; Sat, 21 Aug 1999 02:13:01 -0700 (PDT) (envelope-from n_hibma@skylink.it) Received: from heidi.plazza.it (va-145.skylink.it [194.185.55.145]) by ns.skylink.it (8.9.1/8.8.8) with ESMTP id LAA24865; Sat, 21 Aug 1999 11:11:14 +0200 Received: from localhost (localhost [127.0.0.1]) by heidi.plazza.it (8.9.3/8.8.5) with ESMTP id KAA17397; Sat, 21 Aug 1999 10:45:57 +0200 (CEST) Date: Sat, 21 Aug 1999 10:45:57 +0200 (CEST) From: Nick Hibma X-Sender: n_hibma@heidi.plazza.it Reply-To: Nick Hibma To: Warner Losh Cc: "David E. Cross" , freebsd-hackers@FreeBSD.ORG Subject: Re: device_add_child?? In-Reply-To: <199908210651.AAA41509@harmony.village.org> 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 man 9 device_probe_and_attach Nick On Sat, 21 Aug 1999, Warner Losh wrote: > In message <199908210557.BAA22317@cs.rpi.edu> "David E. Cross" writes: > : I have been writing a nasty kludge to treat a CardBus bridge as a standard > : PCI bridge (with static config) . > > Ewe. Yuck. Wouldn't it be better to help the pccard/cardbus efforts :-) > > : I have > : it to the point where I can (after the system is booted) 'pciconf -r > : pci5:0:0 0' and get scan information (neat, huh :). Welll, I thought it would > : then just be a simple matter of 'device_add_child(dev, "pci", 5, 0);' to get > : the bus to show up at PCI5: at bootup, but it seems to ignore it. following > : from pcisupport.c I also tried to 'bus_generic_attach()' it after > : device_add_child() finished. no go. Any suggestions? > > device_add_child just adds it to the tree. It doesn't probe or attach > it. If you kludge adding it into the tree, you'll have to kludge > attaching it. You might want to look at my pccard kludge-o-matic for > examples. > > Warner > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > > -- e-Mail: hibma@skylink.it To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message