From c6b070b1734f667835308989231ba4936dbd525f Mon Sep 17 00:00:00 2001 From: mdodd Date: Wed, 19 Dec 2001 08:49:11 +0000 Subject: Don't put variable declarations in header files, put prototypes. 'pci_devq' provides useful information now. --- sys/dev/pci/pci.c | 2 ++ sys/dev/pci/pcivar.h | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index d731e36..ac812d9 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 8a1c281..5014d31 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_ */ -- cgit v1.1