From 932d2288a0c9417ddad7f05560b6564e414a9fcb Mon Sep 17 00:00:00 2001 From: Yoshihiro Takahashi Date: Wed, 31 May 2000 10:51:53 +0000 Subject: [PATCH] Update of isa drivers using compatability shims to use COMPAT_ISA_DRIVER(). Submitted by: haro@tk.kubota.co.jp (Munehiro Matsuda) --- sys/pc98/cbus/olpt.c | 10 +++++++++- sys/pc98/pc98/if_ed.c | 6 ++++++ sys/pc98/pc98/olpt.c | 10 +++++++++- 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 d51c5e83b60a..99fa95b8b443 100644 --- a/sys/pc98/cbus/olpt.c +++ b/sys/pc98/cbus/olpt.c @@ -113,6 +113,7 @@ #include #include #include +#include #include #include #include @@ -136,6 +137,9 @@ #include #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 2f594bca26f7..ac5b6c8fa4ab 100644 --- a/sys/pc98/pc98/if_ed.c +++ b/sys/pc98/pc98/if_ed.c @@ -99,6 +99,10 @@ #include #include +#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 d51c5e83b60a..99fa95b8b443 100644 --- a/sys/pc98/pc98/olpt.c +++ b/sys/pc98/pc98/olpt.c @@ -113,6 +113,7 @@ #include #include #include +#include #include #include #include @@ -136,6 +137,9 @@ #include #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 a41aaf82ebab..7908d038d825 100644 --- a/sys/pc98/pc98/wd.c +++ b/sys/pc98/pc98/wd.c @@ -93,6 +93,10 @@ #include +#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;