[SeaBIOS] [PATCH] pci: capability scanning function'

Gerd Hoffmann kraxel at redhat.com
Wed Jul 6 17:43:34 CEST 2011


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. Tsirkin<mst at 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




More information about the SeaBIOS mailing list