1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Don't put variable declarations in header files, put prototypes.

'pci_devq' provides useful information now.
This commit is contained in:
Matthew N. Dodd 2001-12-19 08:49:11 +00:00
parent cf5b29e126
commit 47676b530c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=88184
2 changed files with 6 additions and 2 deletions

View File

@ -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 */

View File

@ -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_ */