diff options
author | nyan <nyan@FreeBSD.org> | 2000-05-31 10:51:53 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2000-05-31 10:51:53 +0000 |
commit | 5b00cbe48f71a56520862284ca09c5f1f30a07c5 (patch) | |
tree | 766dbd2438e41c4a5db3df071868c5514126b2fb /sys/pc98/cbus/olpt.c | |
parent | 2b96345c0f5ec60aab4122a95b2369a30297565c (diff) | |
download | FreeBSD-src-5b00cbe48f71a56520862284ca09c5f1f30a07c5.zip FreeBSD-src-5b00cbe48f71a56520862284ca09c5f1f30a07c5.tar.gz |
Update of isa drivers using compatability shims to use COMPAT_ISA_DRIVER().
Submitted by: haro@tk.kubota.co.jp (Munehiro Matsuda)
Diffstat (limited to 'sys/pc98/cbus/olpt.c')
-rw-r--r-- | sys/pc98/cbus/olpt.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/pc98/cbus/olpt.c b/sys/pc98/cbus/olpt.c index d51c5e8..99fa95b 100644 --- a/sys/pc98/cbus/olpt.c +++ b/sys/pc98/cbus/olpt.c @@ -113,6 +113,7 @@ #include <sys/conf.h> #include <sys/bio.h> #include <sys/buf.h> +#include <sys/bus.h> #include <sys/kernel.h> #include <sys/uio.h> #include <sys/syslog.h> @@ -136,6 +137,9 @@ #include <net/bpf.h> #endif /* INET */ +#ifndef COMPAT_OLDISA +#error "The olpt device requires the old isa compatibility shims" +#endif #define LPINITRDY 4 /* wait up to 4 seconds for a ready */ #define LPTOUTINITIAL 10 /* initial timeout to wait for ready 1/10 s */ @@ -284,8 +288,12 @@ static void lpintr(int); #endif /* INET */ struct isa_driver olptdriver = { - lptprobe, lptattach, "olpt" + INTR_TYPE_TTY, + lptprobe, + lptattach, + "olpt" }; +COMPAT_ISA_DRIVER(olpt, olptdriver); static d_open_t lptopen; static d_close_t lptclose; |