summaryrefslogtreecommitdiff
path: root/sys/dev/pci/pcivar.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/pcivar.h')
-rw-r--r--sys/dev/pci/pcivar.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/dev/pci/pcivar.h b/sys/dev/pci/pcivar.h
index 8eb6ef58092..9aa4858e92d 100644
--- a/sys/dev/pci/pcivar.h
+++ b/sys/dev/pci/pcivar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcivar.h,v 1.42 2005/06/29 03:53:28 brad Exp $ */
+/* $OpenBSD: pcivar.h,v 1.43 2006/03/11 22:08:07 brad Exp $ */
/* $NetBSD: pcivar.h,v 1.23 1997/06/06 23:48:05 thorpej Exp $ */
/*
@@ -42,6 +42,7 @@
* provided by pci_machdep.h.
*/
+#include <sys/device.h>
#include <machine/bus.h>
#include <dev/pci/pcireg.h>
@@ -50,6 +51,7 @@
*/
typedef u_int32_t pcireg_t; /* configuration space register XXX */
struct pcibus_attach_args;
+struct pci_softc;
/*
* Machine-dependent definitions.
@@ -141,6 +143,14 @@ struct pci_quirkdata {
};
#define PCI_QUIRK_MULTIFUNCTION 0x00000001
+struct pci_softc {
+ struct device sc_dev;
+ pci_chipset_tag_t sc_pc;
+ void *sc_powerhook;
+ LIST_HEAD(, pci_dev) sc_devs;
+ int sc_bus;
+};
+
/*
* Locators devices that attach to 'pcibus', as specified to config.
*/