summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/asc.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-10-22 05:58:45 +0000
committerbde <bde@FreeBSD.org>1998-10-22 05:58:45 +0000
commitdf88297cad3e438e774e13137af8eaff53c0fc7f (patch)
treed694ec5d94b6e29be85865e36be61cbb2bea66dc /sys/i386/isa/asc.c
parent7a07480a8f242db0c438040f3beb4ce7b2c7cde2 (diff)
downloadFreeBSD-src-df88297cad3e438e774e13137af8eaff53c0fc7f.zip
FreeBSD-src-df88297cad3e438e774e13137af8eaff53c0fc7f.tar.gz
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
Diffstat (limited to 'sys/i386/isa/asc.c')
-rw-r--r--sys/i386/isa/asc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/i386/isa/asc.c b/sys/i386/isa/asc.c
index fe8dba6..1a801b0 100644
--- a/sys/i386/isa/asc.c
+++ b/sys/i386/isa/asc.c
@@ -34,7 +34,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*
- * $Id: asc.c,v 1.30 1998/06/07 17:10:13 dfr Exp $
+ * $Id: asc.c,v 1.31 1998/08/12 18:16:38 bde Exp $
*/
#include "asc.h"
@@ -188,6 +188,8 @@ static int ascprobe (struct isa_device *isdp);
static int ascattach(struct isa_device *isdp);
struct isa_driver ascdriver = { ascprobe, ascattach, "asc" };
+static ointhand2_t ascintr;
+
static d_open_t ascopen;
static d_close_t ascclose;
static d_read_t ascread;
@@ -448,6 +450,7 @@ ascattach(struct isa_device *isdp)
int unit = isdp->id_unit;
struct asc_unit *scu = unittab + unit;
+ isdp->id_ointr = ascintr;
scu->flags |= FLAG_DEBUG;
printf("asc%d: [GI1904/Trust Ami-Scan Grey/Color]\n", unit);
@@ -497,7 +500,7 @@ ascattach(struct isa_device *isdp)
*** ascintr
*** the interrupt routine, at the end of DMA...
***/
-void
+static void
ascintr(int unit)
{
struct asc_unit *scu = unittab + unit;
OpenPOWER on IntegriCloud