summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/lpt.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/lpt.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/lpt.c')
-rw-r--r--sys/i386/isa/lpt.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/i386/isa/lpt.c b/sys/i386/isa/lpt.c
index d9e1592..a2907cf 100644
--- a/sys/i386/isa/lpt.c
+++ b/sys/i386/isa/lpt.c
@@ -46,7 +46,7 @@
* SUCH DAMAGE.
*
* from: unknown origin, 386BSD 0.1
- * $Id: lpt.c,v 1.69 1998/06/07 17:10:44 dfr Exp $
+ * $Id: lpt.c,v 1.70 1998/08/17 01:05:23 bde Exp $
*/
/*
@@ -259,6 +259,7 @@ static struct lpt_softc {
static timeout_t lptout;
static int lptprobe (struct isa_device *dvp);
static int lptattach (struct isa_device *isdp);
+static ointhand2_t lptintr;
#ifdef INET
@@ -422,6 +423,7 @@ lptattach(struct isa_device *isdp)
struct lpt_softc *sc;
int unit;
+ isdp->id_ointr = lptintr;
unit = isdp->id_unit;
sc = lpt_sc + unit;
sc->sc_port = isdp->id_iobase;
@@ -749,7 +751,7 @@ lptwrite(dev_t dev, struct uio * uio, int ioflag)
* do checking for interrupted write call.
*/
-void
+static void
lptintr(int unit)
{
struct lpt_softc *sc = lpt_sc + unit;
OpenPOWER on IntegriCloud