From mboxrd@z Thu Jan 1 00:00:00 1970 From: Donald Becker Date: Fri, 08 Feb 2002 01:06:01 +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 On Thu, 7 Feb 2002, Greg KH wrote: > On Tue, Feb 05, 2002 at 05:17:02PM -0800, Stephen Williams wrote: > > I have in front of me an Adex Electronics PCI bus extender with a > > disconnect switch. I would like to use this to plug PCI boards into ... > I don't think it did anything about removals. I wrote PCI hotplug code for a similar board, primarily for testing my drivers. It hooked into the CardBus/hotplug interface ("pci-scan") that I use. I handled the removal (actually power-off) case just by polling the vendor ID register in PCI configuration space in a normal add_timer(). This initially looks sleazy, but it's very low overhead and the semantics match CardBus controllers. ("Oh, yeah, the card was ejected two seconds ago. I assumed that you knew that when you got 0xffffffff when reading. Here is your eject callback so that you can clean up.") Donald Becker becker@scyld.com Scyld Computing Corporation http://www.scyld.com 410 Severn Ave. Suite 210 Second Generation Beowulf Clusters Annapolis MD 21403 410-990-9993 _______________________________________________ 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