aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/lnc
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2000-05-28 13:40:48 +0000
committerPeter Wemm <peter@FreeBSD.org>2000-05-28 13:40:48 +0000
commit6a4c2576dc38451d20c994bd9aaa237052ef5a6c (patch)
tree7d2bcb981eaa33af24a486d43171ff1e2bd0f29a /sys/dev/lnc
parent23dff9e0660784a140878911c18423e5cec4fa46 (diff)
downloadsrc-6a4c2576dc38451d20c994bd9aaa237052ef5a6c.tar.gz
src-6a4c2576dc38451d20c994bd9aaa237052ef5a6c.zip
Mass update of isa drivers using compatability shims to use
COMPAT_ISA_DRIVER() so that we can get rid of the evil isa_compat.h table.
Notes
Notes: svn path=/head/; revision=61011
Diffstat (limited to 'sys/dev/lnc')
-rw-r--r--sys/dev/lnc/if_lnc.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/dev/lnc/if_lnc.c b/sys/dev/lnc/if_lnc.c
index c4c4ecad14dd..2144891289b8 100644
--- a/sys/dev/lnc/if_lnc.c
+++ b/sys/dev/lnc/if_lnc.c
@@ -68,11 +68,13 @@
#include <sys/param.h>
#include <sys/systm.h>
+#include <sys/kernel.h>
#include <sys/sockio.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
#include <sys/syslog.h>
+#include <sys/bus.h>
#include <net/ethernet.h>
#include <net/if.h>
@@ -90,6 +92,10 @@
#include <dev/lnc/if_lncvar.h>
#include <dev/lnc/if_lncreg.h>
+#ifndef COMPAT_OLDISA
+#error "The lnc device requires the old isa compatibility shims"
+#endif
+
lnc_softc_t lnc_softc[NLNC];
static char const * const nic_ident[] = {
@@ -145,7 +151,13 @@ void mbuf_dump_chain __P((struct mbuf *m));
void lncintr_sc __P((lnc_softc_t *sc));
-struct isa_driver lncdriver = {lnc_probe, lnc_attach, "lnc"};
+struct isa_driver lncdriver = {
+ INTR_TYPE_NET,
+ lnc_probe,
+ lnc_attach,
+ "lnc"
+};
+COMPAT_ISA_DRIVER(lnc, lncdriver);
static __inline void
write_bcr(lnc_softc_t *sc, u_short port, u_short val)