On 09.11.2008, at 03:52, Kevin O'Connor <[EMAIL PROTECTED]> wrote:

How can I find the maximum PCI bus number of the system?

The PCI bios calls need to be able to return this information.  It
also helps when scanning for pci devices, because then we don't have
to check for all 256 possible buses.

Right now, SeaBIOS has a compile time definition for the max, but that
is awkward and it can lead to hard to debug failures.

Ideas?


Yes, look at coreinfo. The idea is to start at bus 0 and whenever you see a bridge, iterate over it's secondary bus. This way you get all devices but never scan a single bus too much.



-Kevin

--
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot


--
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to