summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/if_cx.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2000-05-28 13:40:48 +0000
committerpeter <peter@FreeBSD.org>2000-05-28 13:40:48 +0000
commitda78ae6c9675a977414b94dce05e10ea7794242c (patch)
treeb698cb70726751826f1f715167f5f658303053f2 /sys/i386/isa/if_cx.c
parent8a48a8126ed656b68c8dd9d9f7dc0626b8a25ec1 (diff)
downloadFreeBSD-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_cx.c')
-rw-r--r--sys/i386/isa/if_cx.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/i386/isa/if_cx.c b/sys/i386/isa/if_cx.c
index ac68d97..7e22487 100644
--- a/sys/i386/isa/if_cx.c
+++ b/sys/i386/isa/if_cx.c
@@ -35,12 +35,18 @@
#include <sys/sockio.h>
#include <sys/socket.h>
#include <sys/conf.h>
+#include <sys/bus.h>
#include <net/if.h>
#include <net/bpf.h>
#include <i386/isa/isa_device.h>
+
+#ifndef COMPAT_OLDISA
+#error "The cx device requires the old isa compatibility shims"
+#endif
+
#define watchdog_func_t void(*)(struct ifnet *)
#define start_func_t void(*)(struct ifnet*)
@@ -294,7 +300,13 @@ cxattach (struct isa_device *id)
return (1);
}
-struct isa_driver cxdriver = { cxprobe, cxattach, "cx" };
+struct isa_driver cxdriver = {
+ INTR_TYPE_NET,
+ cxprobe,
+ cxattach,
+ "cx"
+};
+COMPAT_ISA_DRIVER(cx, cxdriver);
/*
* Process an ioctl request.
OpenPOWER on IntegriCloud