From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Chris Brand" Date: Wed, 06 Feb 2002 17:55:56 +0000 Subject: Re: PCI hotplug question: resources Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org >> But I have developed a PCI-card which is "not present" at boot time >> because there is no firmware in the FPGA which is responsible for PCI >> communication. > >So the question is valid: Is there a way under Linux to grab a bunch >of PCI resources after the system is already running? Detach them >again? Well, I haven't done this under linux of PCI, but I have done it under VxWorks and Windows2000 and CompactPCI. As I understand it, the PCI configuration algorithm is the same for both PCI and CompactPCI, so it should be do-able. Essentially, what you're trying to do is to hotplug-insert the board, but without physically inserting it. So the board won't be detected automatically by the system, but you should be able to use the same code hotplug uses to do the actual PCI configuration (I'm going to make the assumption that your FPGA implements the necessary parts of PCI config space correctly, per the spec). You just need some way of invoking that code on demand, presumably from a user-space program of some kind. Unfortunately, it's been a while since I looked at the linux hotplug code, so I can't be more specific than that, but hopefully somebody else on the list can... Chris _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel