From df88297cad3e438e774e13137af8eaff53c0fc7f Mon Sep 17 00:00:00 2001 From: bde Date: Thu, 22 Oct 1998 05:58:45 +0000 Subject: Initialize isa_devtab entries for interrupt handlers in individual device drivers, not in ioconf.c. Use a different hack in isa_device.h so that a new config(8) is not required yet. pc98 parts approved by: kato --- sys/dev/syscons/syscons.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/dev/syscons/syscons.c') diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index eba0d36..caf072a 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: syscons.c,v 1.283 1998/10/01 11:39:18 yokota Exp $ + * $Id: syscons.c,v 1.284 1998/10/01 21:04:52 ache Exp $ */ #include "sc.h" @@ -239,6 +239,7 @@ static const int nsccons = MAXCONS+2; /* prototypes */ static int scattach(struct isa_device *dev); +static ointhand2_t scintr; static int scparam(struct tty *tp, struct termios *t); static int scprobe(struct isa_device *dev); static int scvidprobe(int unit, int flags); @@ -645,6 +646,7 @@ scattach(struct isa_device *dev) int vc; #endif + dev->id_ointr = scintr; scinit(); sc_flags = dev->id_flags; if (!ISFONTAVAIL(adp_flags)) @@ -851,7 +853,7 @@ scwrite(dev_t dev, struct uio *uio, int flag) return((*linesw[tp->t_line].l_write)(tp, uio, flag)); } -void +static void scintr(int unit) { static struct tty *cur_tty; -- cgit v1.1