diff options
author | peter <peter@FreeBSD.org> | 2000-05-28 13:40:48 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2000-05-28 13:40:48 +0000 |
commit | da78ae6c9675a977414b94dce05e10ea7794242c (patch) | |
tree | b698cb70726751826f1f715167f5f658303053f2 /sys/i386/isa/tw.c | |
parent | 8a48a8126ed656b68c8dd9d9f7dc0626b8a25ec1 (diff) | |
download | FreeBSD-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/tw.c')
-rw-r--r-- | sys/i386/isa/tw.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/sys/i386/isa/tw.c b/sys/i386/isa/tw.c index e560dda..212c064 100644 --- a/sys/i386/isa/tw.c +++ b/sys/i386/isa/tw.c @@ -142,12 +142,13 @@ #include <sys/param.h> #include <sys/systm.h> -#include <sys/conf.h> #include <sys/kernel.h> +#include <sys/conf.h> #include <sys/uio.h> #include <sys/syslog.h> #include <sys/select.h> #include <sys/poll.h> +#include <sys/bus.h> #define MIN(a,b) ((a)<(b)?(a):(b)) #ifdef HIRESTIME @@ -156,6 +157,10 @@ #include <i386/isa/isa_device.h> +#ifndef COMPAT_OLDISA +#error "The tw device requires the old isa compatibility shims" +#endif + /* * Transmission is done by calling write() to send three byte packets of data. * The first byte contains a four bit house code (0=A to 15=P). @@ -207,8 +212,12 @@ static int twprobe(struct isa_device *idp); static int twattach(struct isa_device *idp); struct isa_driver twdriver = { - twprobe, twattach, "tw" + INTR_TYPE_TTY, + twprobe, + twattach, + "tw" }; +COMPAT_ISA_DRIVER(tw, twdriver); static d_open_t twopen; static d_close_t twclose; |