When we can, bound the maximum number of PCI devices to attempt to scan, by

the number found on the system. Only implemented for Linux right now.
This commit is contained in:
Daniel Stone 2006-06-05 20:22:06 +00:00
commit 8444bb77c9
5 changed files with 36 additions and 3 deletions

View file

@ -108,6 +108,9 @@ static pciBusInfo_t linuxPci0 = {
/* bridge */ NULL
};
/* from lnx_pci.c. */
extern int lnxPciInit(void);
void
linuxPciInit()
{
@ -123,6 +126,7 @@ linuxPciInit()
pciFindFirstFP = pciGenFindFirst;
pciFindNextFP = pciGenFindNext;
pciSetOSBIOSPtr(linuxPciHandleBIOS);
xf86MaxPciDevs = lnxPciInit();
}
static int