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/gsc.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/gsc.c')
-rw-r--r-- | sys/i386/isa/gsc.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/i386/isa/gsc.c b/sys/i386/isa/gsc.c index d487e53..dd2925d 100644 --- a/sys/i386/isa/gsc.c +++ b/sys/i386/isa/gsc.c @@ -42,6 +42,7 @@ #include <sys/malloc.h> #include <sys/kernel.h> #include <sys/uio.h> +#include <sys/bus.h> #include <machine/gsc.h> @@ -49,6 +50,10 @@ #include <i386/isa/isa_device.h> #include <i386/isa/gscreg.h> +#ifndef COMPAT_OLDISA +#error "The gsc device requires the old isa compatibility shims" +#endif + /*********************************************************************** * * CONSTANTS & DEFINES @@ -175,7 +180,13 @@ static struct gsc_unit unittab[NGSC]; static int gscprobe (struct isa_device *isdp); static int gscattach(struct isa_device *isdp); -struct isa_driver gscdriver = { gscprobe, gscattach, "gsc" }; +struct isa_driver gscdriver = { + INTR_TYPE_TTY, + gscprobe, + gscattach, + "gsc" +}; +COMPAT_ISA_DRIVER(gsc, gscdriver); static d_open_t gscopen; static d_close_t gscclose; |