From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Wed, 15 Mar 2006 15:57:31 +0000 Subject: Re: pci configuration registers Message-Id: <20060315155731.GA26556@kroah.com> List-Id: References: <1142348627.9472.31.camel@ikkyo.elis.UGent.be> In-Reply-To: <1142348627.9472.31.camel@ikkyo.elis.UGent.be> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Wed, Mar 15, 2006 at 08:49:14AM +0100, Philippe Faes wrote: > On Tue, 2006-03-14 at 11:25 -0800, Greg KH wrote: > > On Tue, Mar 14, 2006 at 04:03:47PM +0100, Philippe Faes wrote: > > > Hi Gang, > > > > > > I've read how I can use fakephp to (virtually) remove an detect devices > > > on my PCI bus. > > > My problem now is: my (new) device doesn't have its PCI configuration > > > registers set. Normally this is done during boot, but since I hot-plug > > > it, they are not set. > > > I think pci_setup_device does something similar, but this function is > > > not made visible to the modules. > > > > > > What is the proper way to automatically configure the PCI registers? > > > > Use the pci hotplug controller interface :) > > > > good luck, > > > > greg k-h > > > > And where do I look for the specific functions of interest? > I've been browsing through the kernel source a lot, but as you know the > kernel is pretty big (and not always well-documented). What specifically are you trying to do when you say that you "hotplug" your new device? Are you using fakephp to do this? For a new device that was just added to the system? Or for a device that was just removed by the same driver? And what do you mean that "pci_setup_device is not made visible to the modules"? What modules? You should not ever need to call that function, as on its own, it is incomplete to set up a new pci device. What is wrong with the pci_scan_single_device() call that fakephp makes? Also, if you have further pci hotplug specific questions, there is a pci hotplug mailing list with people on it that can help you out. thanks, greg k-h ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ 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