From e29be5e342e82f789e119beda7fd21ec107f1598 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sat, 16 Apr 2005 11:42:56 +0000 Subject: Speed up PCI bus scanning by skipping fns 1-7 if fn 0 is not present. --- src/include/pci.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/include') diff --git a/src/include/pci.h b/src/include/pci.h index 9b7fcadae..d4e871d47 100644 --- a/src/include/pci.h +++ b/src/include/pci.h @@ -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 -- cgit v1.2.3-55-g7522