diff options
author | mjacob <mjacob@FreeBSD.org> | 2000-09-21 17:06:45 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2000-09-21 17:06:45 +0000 |
commit | a5b979afa0926873efe5f134b465efa9a2002dc6 (patch) | |
tree | 5174e177feb5985a675dbdc029219a754dfcde40 /sys/dev/isp | |
parent | 897f1759678ada51db84ec4c7520905c5be63818 (diff) | |
download | FreeBSD-src-a5b979afa0926873efe5f134b465efa9a2002dc6.zip FreeBSD-src-a5b979afa0926873efe5f134b465efa9a2002dc6.tar.gz |
Inintialize the queue index stuff from what the f/w sends back- just
in case it's insane enough to not do what you tell it to.
Print out (LOGINFO level) initiator ID.
Diffstat (limited to 'sys/dev/isp')
-rw-r--r-- | sys/dev/isp/isp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/isp/isp.c b/sys/dev/isp/isp.c index e477fc8..8aa1c1e 100644 --- a/sys/dev/isp/isp.c +++ b/sys/dev/isp/isp.c @@ -849,19 +849,18 @@ isp_scsi_init(isp) if (mbs.param[0] != MBOX_COMMAND_COMPLETE) { return; } - isp->isp_residx = 0; + isp->isp_residx = mbs.param[5]; mbs.param[0] = MBOX_INIT_REQ_QUEUE; mbs.param[1] = RQUEST_QUEUE_LEN(isp); mbs.param[2] = DMA_MSW(isp->isp_rquest_dma); mbs.param[3] = DMA_LSW(isp->isp_rquest_dma); mbs.param[4] = 0; - mbs.param[5] = 0; isp_mboxcmd(isp, &mbs, MBLOGALL); if (mbs.param[0] != MBOX_COMMAND_COMPLETE) { return; } - isp->isp_reqidx = isp->isp_reqodx = 0; + isp->isp_reqidx = isp->isp_reqodx = mbs.param[4]; /* * Turn on Fast Posting, LVD transitions @@ -914,6 +913,8 @@ isp_scsi_channel_init(isp, channel) if (mbs.param[0] != MBOX_COMMAND_COMPLETE) { return; } + isp_prt(isp, ISP_LOGINFO, "Initiator ID is %d", sdp->isp_initiator_id); + /* * Set current per-target parameters to a safe minimum. |