summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/matcd/matcd.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/matcd/matcd.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/matcd/matcd.c')
-rw-r--r--sys/i386/isa/matcd/matcd.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/sys/i386/isa/matcd/matcd.c b/sys/i386/isa/matcd/matcd.c
index b056a84..6d105db 100644
--- a/sys/i386/isa/matcd/matcd.c
+++ b/sys/i386/isa/matcd/matcd.c
@@ -360,9 +360,14 @@ static char MATCDCOPYRIGHT[] = "Matsushita CD-ROM driver, Copr. 1994,1995 Frank
#include <sys/conf.h>
#include <sys/kernel.h>
+#include <sys/bus.h>
#include <i386/isa/isa_device.h>
+#ifndef COMPAT_OLDISA
+#error "The matcd device requires the old isa compatibility shims"
+#endif
+
/*---------------------------------------------------------------------------
Defines and structures
---------------------------------------------------------------------------*/
@@ -495,8 +500,13 @@ struct matcd_read2 {
static int matcd_probe(struct isa_device *dev);
static int matcd_attach(struct isa_device *dev);
-struct isa_driver matcddriver={matcd_probe, matcd_attach,
- "matcdc"};
+struct isa_driver matcddriver={
+ INTR_TYPE_BIO,
+ matcd_probe,
+ matcd_attach,
+ "matcdc"
+};
+COMPAT_ISA_DRIVER(matcd, matcddriver);
static d_open_t matcdopen;
OpenPOWER on IntegriCloud