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 | |
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')
-rw-r--r-- | sys/pc98/cbus/olpt.c | 10 | ||||
-rw-r--r-- | sys/pc98/pc98/if_ed.c | 6 | ||||
-rw-r--r-- | sys/pc98/pc98/olpt.c | 10 | ||||
-rw-r--r-- | sys/pc98/pc98/wd.c | 12 |
4 files changed, 33 insertions, 5 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; diff --git a/sys/pc98/pc98/if_ed.c b/sys/pc98/pc98/if_ed.c index 2f594bc..ac5b6c8 100644 --- a/sys/pc98/pc98/if_ed.c +++ b/sys/pc98/pc98/if_ed.c @@ -99,6 +99,10 @@ #include <i386/isa/icu.h> #include <dev/ed/if_edreg.h> +#ifndef COMPAT_OLDISA +#error "The ed device requires the old isa compatibility shims" +#endif + #ifdef PC98 /* register offsets */ struct pc98_edregister { @@ -322,11 +326,13 @@ card_intr(struct pccard_devinfo *devi) #endif /* NCARD > 0 */ struct isa_driver eddriver = { + INTR_TYPE_NET, ed_probe, ed_attach_isa, "ed", 1 /* We are ultra sensitive */ }; +COMPAT_ISA_DRIVER(ed, eddriver); /* * Interrupt conversion table for WD/SMC ASIC/83C584 diff --git a/sys/pc98/pc98/olpt.c b/sys/pc98/pc98/olpt.c index d51c5e8..99fa95b 100644 --- a/sys/pc98/pc98/olpt.c +++ b/sys/pc98/pc98/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; diff --git a/sys/pc98/pc98/wd.c b/sys/pc98/pc98/wd.c index a41aaf8..7908d03 100644 --- a/sys/pc98/pc98/wd.c +++ b/sys/pc98/pc98/wd.c @@ -93,6 +93,10 @@ #include <pc98/pc98/atapi.h> +#ifndef COMPAT_OLDISA +#error "The wdc device requires the old isa compatibility shims" +#endif + extern void wdstart(int ctrlr); #ifdef IDE_DELAY @@ -238,10 +242,12 @@ static int wdunwedge(struct disk *du); static int wdwait(struct disk *du, u_char bits_wanted, int timeout); struct isa_driver wdcdriver = { - wdprobe, wdattach, "wdc", + INTR_TYPE_BIO, + wdprobe, + wdattach, + "wdc", }; - - +COMPAT_ISA_DRIVER(wdc, wdcdriver); static d_open_t wdopen; static d_close_t wdclose; |