diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index d731e36445a7..ac812d9ec71a 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -188,6 +188,8 @@ struct pci_quirk pci_quirks[] = { #define PCI_MAPMEMP 0x02 /* prefetchable memory map */ #define PCI_MAPPORT 0x04 /* port map */ +struct devlist pci_devq; +u_int32_t pci_generation; u_int32_t pci_numdevs = 0; /* return base address of memory or port map */ diff --git a/sys/dev/pci/pcivar.h b/sys/dev/pci/pcivar.h index 8a1c28156d87..5014d3117521 100644 --- a/sys/dev/pci/pcivar.h +++ b/sys/dev/pci/pcivar.h @@ -330,7 +330,9 @@ extern struct cdevsw pcicdev; /* * List of all PCI devices, generation count for the list. */ -STAILQ_HEAD(devlist, pci_devinfo) pci_devq; -u_int32_t pci_generation; +STAILQ_HEAD(devlist, pci_devinfo); + +extern struct devlist pci_devq; +extern u_int32_t pci_generation; #endif /* _PCIVAR_H_ */