summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>2001-12-19 08:49:11 +0000
committermdodd <mdodd@FreeBSD.org>2001-12-19 08:49:11 +0000
commitc6b070b1734f667835308989231ba4936dbd525f (patch)
tree1d8838027cd207ae0a3757b52e06b9cfbb3023fa /sys/dev/pci
parent3145320d5808fab2aaa4d0dd7999119aeb51d3ae (diff)
downloadFreeBSD-src-c6b070b1734f667835308989231ba4936dbd525f.zip
FreeBSD-src-c6b070b1734f667835308989231ba4936dbd525f.tar.gz
Don't put variable declarations in header files, put prototypes.
'pci_devq' provides useful information now.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/pci.c2
-rw-r--r--sys/dev/pci/pcivar.h6
2 files changed, 6 insertions, 2 deletions
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_ */
OpenPOWER on IntegriCloud