diff options
Diffstat (limited to 'sys/gnu/i386')
-rw-r--r-- | sys/gnu/i386/isa/dgb.c | 12 | ||||
-rw-r--r-- | sys/gnu/i386/isa/dgm.c | 12 |
2 files changed, 22 insertions, 2 deletions
diff --git a/sys/gnu/i386/isa/dgb.c b/sys/gnu/i386/isa/dgb.c index 3755c43..5b778ad 100644 --- a/sys/gnu/i386/isa/dgb.c +++ b/sys/gnu/i386/isa/dgb.c @@ -52,6 +52,7 @@ #include <sys/fcntl.h> #include <sys/kernel.h> #include <sys/sysctl.h> +#include <sys/bus.h> #include <machine/clock.h> @@ -60,6 +61,10 @@ #include <i386/isa/isa_device.h> +#ifndef COMPAT_OLDISA +#error "The dgb device requires the old isa compatibility shims" +#endif + #include <gnu/i386/isa/dgbios.h> #include <gnu/i386/isa/dgfep.h> @@ -197,8 +202,13 @@ static void disc_optim __P((struct tty *tp, struct termios *t)); struct isa_driver dgbdriver = { - dgbprobe, dgbattach, "dgb",0 + INTR_TYPE_TTY, + dgbprobe, + dgbattach, + "dgb", + 0 }; +COMPAT_ISA_DRIVER(dgb, dgbdriver); static d_open_t dgbopen; static d_close_t dgbclose; diff --git a/sys/gnu/i386/isa/dgm.c b/sys/gnu/i386/isa/dgm.c index 18122f0..a31ff9c 100644 --- a/sys/gnu/i386/isa/dgm.c +++ b/sys/gnu/i386/isa/dgm.c @@ -55,6 +55,7 @@ #include <sys/fcntl.h> #include <sys/kernel.h> #include <sys/sysctl.h> +#include <sys/bus.h> #include <machine/clock.h> @@ -63,6 +64,10 @@ #include <i386/isa/isa_device.h> +#ifndef COMPAT_OLDISA +#error "The dgm device requires the old isa compatibility shims" +#endif + #include <gnu/i386/isa/dgmfep.h> #include <gnu/i386/isa/dgmbios.h> #include <gnu/i386/isa/dgmreg.h> @@ -200,8 +205,13 @@ static void disc_optim __P((struct tty *tp, struct termios *t)); struct isa_driver dgmdriver = { - dgmprobe, dgmattach, "dgm",0 + INTR_TYPE_TTY, + dgmprobe, + dgmattach, + "dgm", + 0 }; +COMPAT_ISA_DRIVER(dgm, dgmdriver); static d_open_t dgmopen; static d_close_t dgmclose; |