summaryrefslogtreecommitdiff
path: root/sys/dev/sym
diff options
context:
space:
mode:
authorMatt Jacob <mjacob@FreeBSD.org>2001-04-09 05:43:49 +0000
committerMatt Jacob <mjacob@FreeBSD.org>2001-04-09 05:43:49 +0000
commit0b0038cc5fba7eedd3d2ce57200433e99e32dabc (patch)
treee486030d92f07e2924618d271f467dd9a6a9a2a9 /sys/dev/sym
parent1494c90c10a23013b73e2ab2b33a2642fd93f8c4 (diff)
Notes
Diffstat (limited to 'sys/dev/sym')
-rw-r--r--sys/dev/sym/sym_hipd.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/sys/dev/sym/sym_hipd.c b/sys/dev/sym/sym_hipd.c
index d205037a7a6a..ac1899d66bc9 100644
--- a/sys/dev/sym/sym_hipd.c
+++ b/sys/dev/sym/sym_hipd.c
@@ -8960,6 +8960,14 @@ sym_pci_attach2(pcici_t pci_tag, int unit)
snprintf(np->inst_name, sizeof(np->inst_name), "sym%d", np->unit);
/*
+ * Initialyze the CCB free and busy queues.
+ */
+ sym_que_init(&np->free_ccbq);
+ sym_que_init(&np->busy_ccbq);
+ sym_que_init(&np->comp_ccbq);
+ sym_que_init(&np->cam_ccbq);
+
+ /*
* Allocate a tag for the DMA of user data.
*/
#ifdef FreeBSD_Bus_Dma_Abstraction
@@ -9194,21 +9202,12 @@ sym_pci_attach2(pcici_t pci_tag, int unit)
goto attach_failed;
/*
- * Initialyze the CCB free and busy queues.
* Allocate some CCB. We need at least ONE.
*/
- sym_que_init(&np->free_ccbq);
- sym_que_init(&np->busy_ccbq);
- sym_que_init(&np->comp_ccbq);
if (!sym_alloc_ccb(np))
goto attach_failed;
/*
- * Initialyze the CAM CCB pending queue.
- */
- sym_que_init(&np->cam_ccbq);
-
- /*
* Calculate BUS addresses where we are going
* to load the SCRIPTS.
*/