mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-01 03:03:58 +00:00
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:
parent
11cf4d2fde
commit
8444bb77c9
5 changed files with 36 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue