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/wl | |
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/wl')
-rw-r--r-- | sys/dev/wl/if_wl.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/sys/dev/wl/if_wl.c b/sys/dev/wl/if_wl.c index 44f2849..97a36d7 100644 --- a/sys/dev/wl/if_wl.c +++ b/sys/dev/wl/if_wl.c @@ -194,13 +194,14 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include <sys/param.h> #include <sys/systm.h> +#include <sys/kernel.h> #include <sys/sockio.h> #include <sys/mbuf.h> #include <sys/socket.h> #include <sys/syslog.h> #include <sys/proc.h> +#include <sys/bus.h> -#include <sys/kernel.h> #include <sys/sysctl.h> #include <net/ethernet.h> @@ -227,6 +228,10 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include <i386/isa/if_wl.h> #include <machine/if_wl_wavelan.h> +#ifndef COMPAT_OLDISA +#error "The wl device requires the old isa compatibility shims" +#endif + static char t_packet[ETHERMTU + sizeof(struct ether_header) + sizeof(long)]; struct wl_softc{ @@ -263,8 +268,13 @@ static int wlprobe(struct isa_device *); static int wlattach(struct isa_device *); struct isa_driver wldriver = { - wlprobe, wlattach, "wl", 0 + INTR_TYPE_NET, + wlprobe, + wlattach, + "wl", + 0 }; +COMPAT_ISA_DRIVER(wl, wldriver); /* * XXX The Wavelan appears to be prone to dropping stuff if you talk to |