summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/wt.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/wt.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/wt.c')
-rw-r--r--sys/i386/isa/wt.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/i386/isa/wt.c b/sys/i386/isa/wt.c
index c6b46e4..35fd31c 100644
--- a/sys/i386/isa/wt.c
+++ b/sys/i386/isa/wt.c
@@ -67,12 +67,16 @@
#include <sys/malloc.h>
#include <sys/mtio.h>
#include <sys/conf.h>
+#include <sys/bus.h>
#include <machine/clock.h>
#include <i386/isa/isa_device.h>
#include <i386/isa/wtreg.h>
+#ifndef COMPAT_OLDISA
+#error "The wt device requires the old isa compatibility shims"
+#endif
/*
* Uncomment this to enable internal device tracing.
@@ -271,7 +275,13 @@ wtattach (struct isa_device *id)
return (1);
}
-struct isa_driver wtdriver = { wtprobe, wtattach, "wt", };
+struct isa_driver wtdriver = {
+ INTR_TYPE_BIO,
+ wtprobe,
+ wtattach,
+ "wt",
+};
+COMPAT_ISA_DRIVER(wt, wtdriver);
/*
* Open routine, called on every device open.
OpenPOWER on IntegriCloud