summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/loran.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/loran.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/loran.c')
-rw-r--r--sys/i386/isa/loran.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/i386/isa/loran.c b/sys/i386/isa/loran.c
index e92d793..ee34511 100644
--- a/sys/i386/isa/loran.c
+++ b/sys/i386/isa/loran.c
@@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
- * $Id: loran.c,v 1.7 1998/08/17 18:47:36 bde Exp $
+ * $Id: loran.c,v 1.8 1998/08/17 19:09:36 bde Exp $
*
* This device-driver helps the userland controlprogram for a LORAN-C
* receiver avoid monopolizing the CPU.
@@ -213,6 +213,7 @@ static d_open_t loranopen;
static d_close_t loranclose;
static d_read_t loranread;
static d_write_t loranwrite;
+static ointhand2_t loranintr;
extern struct timecounter loran_timecounter[];
/**********************************************************************/
@@ -257,6 +258,8 @@ loranattach(struct isa_device *isdp)
{
int i;
+ isdp->id_ointr = loranintr;
+
/* We need to be a "fast-intr" */
isdp->id_ri_flags |= RI_FAST;
@@ -403,7 +406,7 @@ loranwrite(dev_t dev, struct uio * uio, int ioflag)
return(err);
}
-void
+static void
loranintr(int unit)
{
u_long ef;
OpenPOWER on IntegriCloud