Speed up PCI bus scanning by skipping fns 1-7 if fn 0 is not present.

This commit is contained in:
Michael Brown
2005-04-16 11:42:56 +00:00
parent 6e5a3858bf
commit e29be5e342
2 changed files with 23 additions and 1 deletions

View File

@@ -252,6 +252,7 @@ struct pci_device {
#define PCI_BUS(busdevfn) ( ( (busdevfn) >> 8 ) & 0xff )
#define PCI_DEV(busdevfn) ( ( (busdevfn) >> 3 ) & 0x1f )
#define PCI_FUNC(busdevfn) ( (busdevfn) & 0x07 )
#define PCI_FN0(busdevfn) ( (busdevfn) & 0xfff8 )
/*
* An individual PCI device identified by vendor and device IDs