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/i386/isa/if_cx.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/i386/isa/if_cx.c') diff --git a/sys/i386/isa/if_cx.c b/sys/i386/isa/if_cx.c index ded05ec..26ff1bc 100644 --- a/sys/i386/isa/if_cx.c +++ b/sys/i386/isa/if_cx.c @@ -62,6 +62,7 @@ static int cxattach __P((struct isa_device *id)); static void cxput __P((cx_chan_t *c, char b)); static void cxsend __P((cx_chan_t *c)); static void cxrinth __P((cx_chan_t *c)); +static ointhand2_t cxintr; static int cxtinth __P((cx_chan_t *c)); #ifdef DEBUG @@ -230,6 +231,8 @@ cxattach (struct isa_device *id) int i; struct sppp *sp; + id->id_ointr = cxintr; + /* Initialize the board structure. */ cx_init (b, unit, iobase, ffs(irq)-1, drq); @@ -707,7 +710,7 @@ cxtinth (cx_chan_t *c) return (teoir); } -void +static void cxintr (int bnum) { cx_board_t *b = cxboard + bnum; -- cgit v1.1