On Wed, Jul 06, 2011 at 05:43:34PM +0200, Gerd Hoffmann wrote:
On 07/06/11 16:57, Michael S. Tsirkin wrote:
On Wed, Jul 06, 2011 at 05:03:21PM +0300, Michael S. Tsirkin wrote:
Add pci_find_capability to scan capability list. Return 0 on error, capability offset if found.
Signed-off-by: Michael S. Tsirkinmst@redhat.com
Not useful by itself, but should be handy if we ever want to look at capabilities such as pci express.
Here's an example using slot register and pci express register to figure out how many expansion slots does a bridge have:
Thanks, I'll use the bits for finetuning in the next version of the two-pass pci init patches.
cheers, Gerd
BTw I don't think we need to make it a dependency of that patchset, necessarily. Keeping it simple also has certain appeal, and might make it easier for management to figure out what is and isn't supported.