aboutsummaryrefslogtreecommitdiff
path: root/sys/pci
diff options
context:
space:
mode:
authorJustin T. Gibbs <gibbs@FreeBSD.org>1998-09-16 17:11:59 +0000
committerJustin T. Gibbs <gibbs@FreeBSD.org>1998-09-16 17:11:59 +0000
commit348811e078fe0b280c49726dbcc26c0b65368a81 (patch)
treeed346ff16e0272ffc2fd8a6226039d341ee8ee6c /sys/pci
parenta185f9b1c3ccea561ee438ce2c927937f21ba838 (diff)
Notes
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/ncr.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/sys/pci/ncr.c b/sys/pci/ncr.c
index 3cb9842554b7..988cec09562b 100644
--- a/sys/pci/ncr.c
+++ b/sys/pci/ncr.c
@@ -1,6 +1,6 @@
/**************************************************************************
**
-** $Id: ncr.c,v 1.124 1998/09/15 10:06:22 gibbs Exp $
+** $Id: ncr.c,v 1.125 1998/09/15 22:05:38 gibbs Exp $
**
** Device driver for the NCR 53C8XX PCI-SCSI-Controller Family.
**
@@ -1288,7 +1288,7 @@ static void ncr_attach (pcici_t tag, int unit);
static char ident[] =
- "\n$Id: ncr.c,v 1.124 1998/09/15 10:06:22 gibbs Exp $\n";
+ "\n$Id: ncr.c,v 1.125 1998/09/15 22:05:38 gibbs Exp $\n";
static const u_long ncr_version = NCR_VERSION * 11
+ (u_long) sizeof (struct ncb) * 7
@@ -4606,18 +4606,23 @@ ncr_freeze_devq (ncb_p np, struct cam_path *path)
if ((cp->phys.header.launch.l_paddr
== NCB_SCRIPT_PHYS (np, select))
&& (xpt_path_comp(path, cp->ccb->ccb_h.path) >= 0)) {
+ int i;
/* Remove from the start queue */
- cp->phys.header.launch.l_paddr =
- NCB_SCRIPT_PHYS (np, skip);
+ for (i = 0; i < MAX_START; i++) {
+ if (np->squeue[i] == CCB_PHYS(cp, phys))
+ np->squeue[i] =
+ NCB_SCRIPT_PHYS (np, skip);
+ }
cp->host_status=HS_STALL;
ncr_complete (np, cp);
}
+ break;
default:
break;
}
cp = cp->link_nccb;
- };
+ }
}
/*==========================================================