diff options
author | peter <peter@FreeBSD.org> | 2000-05-28 13:40:48 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2000-05-28 13:40:48 +0000 |
commit | da78ae6c9675a977414b94dce05e10ea7794242c (patch) | |
tree | b698cb70726751826f1f715167f5f658303053f2 /sys/dev/lnc/if_lnc.c | |
parent | 8a48a8126ed656b68c8dd9d9f7dc0626b8a25ec1 (diff) | |
download | FreeBSD-src-da78ae6c9675a977414b94dce05e10ea7794242c.zip FreeBSD-src-da78ae6c9675a977414b94dce05e10ea7794242c.tar.gz |
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.
Diffstat (limited to 'sys/dev/lnc/if_lnc.c')
-rw-r--r-- | sys/dev/lnc/if_lnc.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/dev/lnc/if_lnc.c b/sys/dev/lnc/if_lnc.c index c4c4eca..2144891 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) |