aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/isa/cy.c
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2000-05-28 13:40:48 +0000
committerPeter Wemm <peter@FreeBSD.org>2000-05-28 13:40:48 +0000
commit6a4c2576dc38451d20c994bd9aaa237052ef5a6c (patch)
tree7d2bcb981eaa33af24a486d43171ff1e2bd0f29a /sys/i386/isa/cy.c
parent23dff9e0660784a140878911c18423e5cec4fa46 (diff)
downloadsrc-6a4c2576dc38451d20c994bd9aaa237052ef5a6c.tar.gz
src-6a4c2576dc38451d20c994bd9aaa237052ef5a6c.zip
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.
Notes
Notes: svn path=/head/; revision=61011
Diffstat (limited to 'sys/i386/isa/cy.c')
-rw-r--r--sys/i386/isa/cy.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/i386/isa/cy.c b/sys/i386/isa/cy.c
index dfeb69ac11e5..52a8cf36892f 100644
--- a/sys/i386/isa/cy.c
+++ b/sys/i386/isa/cy.c
@@ -78,6 +78,7 @@
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/syslog.h>
+#include <sys/bus.h>
#include <machine/clock.h>
#include <machine/ipl.h>
#ifndef SMP
@@ -89,6 +90,10 @@
#include <i386/isa/cyreg.h>
#include <i386/isa/ic/cd1400.h>
+#ifndef COMPAT_OLDISA
+#error "The cy device requires the old isa compatibility shims"
+#endif
+
#ifdef SMP
#define disable_intr() COM_DISABLE_INTR()
#define enable_intr() COM_ENABLE_INTR()
@@ -361,8 +366,12 @@ static struct com_s *p_com_addr[NSIO];
#define com_addr(unit) (p_com_addr[unit])
struct isa_driver siodriver = {
- sioprobe, sioattach, driver_name
+ INTR_TYPE_TTY | INTR_TYPE_FAST,
+ sioprobe,
+ sioattach,
+ driver_name
};
+COMPAT_ISA_DRIVER(cy, cydriver); /* XXX */
static d_open_t sioopen;
static d_close_t sioclose;