summaryrefslogtreecommitdiffstats
path: root/sys/pci/ncr.c
diff options
context:
space:
mode:
authorgibbs <gibbs@FreeBSD.org>1997-09-21 22:02:25 +0000
committergibbs <gibbs@FreeBSD.org>1997-09-21 22:02:25 +0000
commita415512fd4b3c95c87808401c97e649c8ac7f41e (patch)
tree8463ee0d001498dfdefc34fc8911c491b2f0ecf0 /sys/pci/ncr.c
parent52ace446d29ab170f74f1db02832f24b01e04f20 (diff)
downloadFreeBSD-src-a415512fd4b3c95c87808401c97e649c8ac7f41e.zip
FreeBSD-src-a415512fd4b3c95c87808401c97e649c8ac7f41e.tar.gz
Update for new callout interface.
Diffstat (limited to 'sys/pci/ncr.c')
-rw-r--r--sys/pci/ncr.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/pci/ncr.c b/sys/pci/ncr.c
index 2f0ad96..d13fc9e 100644
--- a/sys/pci/ncr.c
+++ b/sys/pci/ncr.c
@@ -1,6 +1,6 @@
/**************************************************************************
**
-** $Id: ncr.c,v 1.109 1997/09/09 21:52:31 se Exp $
+** $Id: ncr.c,v 1.110 1997/09/10 20:46:11 se Exp $
**
** Device driver for the NCR 53C810 PCI-SCSI-Controller.
**
@@ -1113,6 +1113,7 @@ struct ncb {
u_short ticks;
u_short latetime;
u_long lasttime;
+ struct callout_handle timeout_ch;
/*-----------------------------------------------
** Debug and profiling
@@ -1340,7 +1341,7 @@ static void ncr_attach (pcici_t tag, int unit);
static char ident[] =
- "\n$Id: ncr.c,v 1.109 1997/09/09 21:52:31 se Exp $\n";
+ "\n$Id: ncr.c,v 1.110 1997/09/10 20:46:11 se Exp $\n";
static const u_long ncr_version = NCR_VERSION * 11
+ (u_long) sizeof (struct ncb) * 7
@@ -5534,7 +5535,7 @@ static void ncr_timeout (void *arg)
splx (oldspl);
}
- timeout (ncr_timeout, (caddr_t) np, step ? step : 1);
+ np->timeout_ch = timeout (ncr_timeout, (caddr_t) np, step ? step : 1);
if (INB(nc_istat) & (INTF|SIP|DIP)) {
@@ -5895,7 +5896,7 @@ void ncr_exception (ncb_p np)
if (i%16==15) printf (".\n");
};
- untimeout (ncr_timeout, (caddr_t) np);
+ untimeout (ncr_timeout, (caddr_t) np, np->timeout_ch);
printf ("%s: halted!\n", ncr_name(np));
/*
OpenPOWER on IntegriCloud