From owner-freebsd-hackers Mon Apr 3 8:23: 1 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from Draculina.otdel-1.org (Draculina.Otdel-1.ORG [195.230.65.30]) by hub.freebsd.org (Postfix) with ESMTP id 884EB37BECD for ; Mon, 3 Apr 2000 08:22:57 -0700 (PDT) (envelope-from nms@otdel-1.org) Received: by Draculina.otdel-1.org (Postfix, from userid 1002) id 8100B82; Mon, 3 Apr 2000 19:22:46 +0400 (MSD) Date: Mon, 3 Apr 2000 19:22:46 +0400 From: Nikolai Saoukh To: Warner Losh Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Reserving Resources Message-ID: <20000403192246.C55382@Draculina.otdel-1.org> References: <20000403190741.A55382@Draculina.otdel-1.org> <20000403104318.A53697@Draculina.otdel-1.org> <200004022029.OAA54341@harmony.village.org> <20000403104318.A53697@Draculina.otdel-1.org> <200004031430.IAA60992@harmony.village.org> <20000403190741.A55382@Draculina.otdel-1.org> <200004031511.JAA61348@harmony.village.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <200004031511.JAA61348@harmony.village.org>; from imp@village.org on Mon, Apr 03, 2000 at 09:11:10AM -0600 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Apr 03, 2000 at 09:11:10AM -0600, Warner Losh wrote: > You can't always disable PNP devices. More accurately, the devices > reported by PNPBIOS are defined to be hard wired and always active. > You cannot turn them off or relocate their resources. They likely > should be probed first rather than last like they are now, with > changes made to those drivers taht don't yet support PNP. However, > since the isa bus isn't guaranteed to exist until later in the boot > process, this may have some problems. Well, create a automagic device 'known' and attach all known devices from PNPBIOS to it. Now _all_ pnp devices got their resources (even if there is no driver for it) and attached to 'unknown' driver. Any kldloaded driver later does not see the device. Simple remove of 'unknown' driver from src/sys/isa/isa_common.c makes device free and visible, but resources allocated to it at boot time lost forever. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message