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/i386/isa/if_le.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/i386/isa/if_le.c')
-rw-r--r-- | sys/i386/isa/if_le.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/i386/isa/if_le.c b/sys/i386/isa/if_le.c index 35951a6..7932c74 100644 --- a/sys/i386/isa/if_le.c +++ b/sys/i386/isa/if_le.c @@ -41,10 +41,12 @@ #include <sys/param.h> #include <sys/systm.h> +#include <sys/kernel.h> #include <sys/mbuf.h> #include <sys/socket.h> #include <sys/sockio.h> #include <sys/malloc.h> +#include <sys/bus.h> #include <net/ethernet.h> #include <net/if.h> @@ -65,6 +67,10 @@ #include <net/bpf.h> +#ifndef COMPAT_OLDISA +#error "The le device requires the old isa compatibility shims" +#endif + /* Forward declarations */ typedef struct le_softc le_softc_t; typedef struct le_board le_board_t; @@ -248,8 +254,12 @@ static const le_board_t le_boards[] = { * This tells the autoconf code how to set us up. */ struct isa_driver ledriver = { - le_probe, le_attach, "le", + INTR_TYPE_NET, + le_probe, + le_attach, + "le", }; +COMPAT_ISA_DRIVER(le, ledriver); static unsigned le_intrs[NLE]; |