summaryrefslogtreecommitdiffstats
path: root/sys/dev/lnc
diff options
context:
space:
mode:
authorpaul <paul@FreeBSD.org>2000-12-29 11:59:41 +0000
committerpaul <paul@FreeBSD.org>2000-12-29 11:59:41 +0000
commit57ea0a2a3dfe1ac6fb3a73b9576d7fdd97fa2837 (patch)
tree702351e70f4d754fd5e399c3d73248ac535a196f /sys/dev/lnc
parent0915b9d6ecf413d0d081e63802bccbf7fc953317 (diff)
downloadFreeBSD-src-57ea0a2a3dfe1ac6fb3a73b9576d7fdd97fa2837.zip
FreeBSD-src-57ea0a2a3dfe1ac6fb3a73b9576d7fdd97fa2837.tar.gz
The pci and isa drivers were meant to share the same devclass but
the devclass definitions were all wrong so they had their own private ones with the same name. Fix it so they all use the same global devclass.
Diffstat (limited to 'sys/dev/lnc')
-rw-r--r--sys/dev/lnc/if_lnc.c2
-rw-r--r--sys/dev/lnc/if_lnc_isa.c2
-rw-r--r--sys/dev/lnc/if_lnc_pci.c2
-rw-r--r--sys/dev/lnc/if_lncvar.h3
4 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/lnc/if_lnc.c b/sys/dev/lnc/if_lnc.c
index 1444556..05c3476 100644
--- a/sys/dev/lnc/if_lnc.c
+++ b/sys/dev/lnc/if_lnc.c
@@ -90,6 +90,8 @@
#include <dev/lnc/if_lncvar.h>
#include <dev/lnc/if_lncreg.h>
+devclass_t lnc_devclass;
+
static char const * const nic_ident[] = {
"Unknown",
"BICC",
diff --git a/sys/dev/lnc/if_lnc_isa.c b/sys/dev/lnc/if_lnc_isa.c
index ba84f3a..29dc39a 100644
--- a/sys/dev/lnc/if_lnc_isa.c
+++ b/sys/dev/lnc/if_lnc_isa.c
@@ -310,6 +310,4 @@ static driver_t lnc_isa_driver = {
sizeof(struct lnc_softc),
};
-static devclass_t lnc_devclass;
-
DRIVER_MODULE(lnc_isa, isa, lnc_isa_driver, lnc_devclass, 0, 0);
diff --git a/sys/dev/lnc/if_lnc_pci.c b/sys/dev/lnc/if_lnc_pci.c
index 1e0d940..e5a84e7 100644
--- a/sys/dev/lnc/if_lnc_pci.c
+++ b/sys/dev/lnc/if_lnc_pci.c
@@ -217,6 +217,4 @@ static driver_t lnc_pci_driver = {
sizeof(struct lnc_softc),
};
-static devclass_t lnc_devclass;
-
DRIVER_MODULE(lnc_pci, pci, lnc_pci_driver, lnc_devclass, 0, 0);
diff --git a/sys/dev/lnc/if_lncvar.h b/sys/dev/lnc/if_lncvar.h
index 8c50353..7c4ed70 100644
--- a/sys/dev/lnc/if_lncvar.h
+++ b/sys/dev/lnc/if_lncvar.h
@@ -253,4 +253,7 @@ struct host_ring_entry {
/* Functional declarations */
extern int lnc_attach_common __P((device_t));
extern void lnc_stop __P((struct lnc_softc *));
+
+/* Variable declarations */
extern driver_intr_t lncintr;
+extern devclass_t lnc_devclass;
OpenPOWER on IntegriCloud