summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pcivar.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-03-25 21:10:38 +0000
committerbde <bde@FreeBSD.org>1995-03-25 21:10:38 +0000
commitde5bb9367bf3645cdcafdb5fc125cffb8132623d (patch)
tree5bb75f0be0025f88fb30d88a4ce98374e88785b5 /sys/dev/pci/pcivar.h
parent90b59d01f5c6180d6aae3ca0f589c7515fd245aa (diff)
downloadFreeBSD-src-de5bb9367bf3645cdcafdb5fc125cffb8132623d.zip
FreeBSD-src-de5bb9367bf3645cdcafdb5fc125cffb8132623d.tar.gz
Forward-declare kern_devconf for use in a prototype. Some drivers
include <pci/pcivar.h> without including <sys/devconf.h> and other drivers include <pci/pcivar.h> before including <sys/devconf.h> if certain identifiers are defined. The devconf headers have convoluted interdependencies. <sys/devconf.h> includes <machine/devconf.h> which includes <pci/pcivar.h>. Most drivers include <sys/devconf.h> so even isa drivers depend on <pci/pcivar.h>. For similar reasons, most drivers depend on another pci header, on an isa header and on two scsi headers.
Diffstat (limited to 'sys/dev/pci/pcivar.h')
-rw-r--r--sys/dev/pci/pcivar.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/pcivar.h b/sys/dev/pci/pcivar.h
index 23bc8ae..712c670 100644
--- a/sys/dev/pci/pcivar.h
+++ b/sys/dev/pci/pcivar.h
@@ -1,6 +1,6 @@
/**************************************************************************
**
-** $Id: pcivar.h,v 1.3 1995/03/17 04:27:21 davidg Exp $
+** $Id: pcivar.h,v 1.4 1995/03/21 23:01:06 se Exp $
**
** Declarations for pci device drivers.
**
@@ -125,6 +125,8 @@ void pci_conf_write (pcici_t tag, u_long reg, u_long data);
**-----------------------------------------------------------------
*/
+struct kern_devconf;
+
struct pci_device {
char* pd_name;
char* (*pd_probe ) (pcici_t tag, pcidi_t type);
OpenPOWER on IntegriCloud