From owner-freebsd-hackers Sun Apr 2 13:30:40 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 65BE637B5DB for ; Sun, 2 Apr 2000 13:30:33 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id OAA84347; Sun, 2 Apr 2000 14:30:31 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id OAA54341; Sun, 2 Apr 2000 14:29:55 -0600 (MDT) Message-Id: <200004022029.OAA54341@harmony.village.org> To: Nick Hibma Subject: Re: Reserving Resources Cc: Nikolai Saoukh , freebsd-hackers@FreeBSD.ORG In-reply-to: Your message of "Sun, 02 Apr 2000 21:19:41 BST." References: Date: Sun, 02 Apr 2000 14:29:55 -0600 From: Warner Losh Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message Nick Hibma writes: : The issue is pretty hairy and for now I think the solution is to make : any stub use DEVICE_NOMATCH (see pci.c), which does not attach a driver : to a device, just mentions it during boot. And during every reprobe after that... :-(. I'm currently working on a pci card driver and the vga chipset gets reprinted every single time I load the driver... The whole purpose of unknown is to CONSUME the resources that others might try to use. This can't easily be done in the base bus w/o it actually consuming them. Maybe we need a flag that means "I'm a pseudo device that was created to consume these resources, please feel free to detach me when reprobing the bus for any reason." While the above would solve the problem being talked about, it would still suffer from the "all unknown children printing" problem, I think. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message