Date: Sun, 25 Oct 2015 17:24:37 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r289939 - head/sys/dev/isp Message-ID: <201510251724.t9PHObZ8024601@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Sun Oct 25 17:24:37 2015 New Revision: 289939 URL: https://svnweb.freebsd.org/changeset/base/289939 Log: Rework r289933 using already existing macro. Modified: head/sys/dev/isp/isp.c Modified: head/sys/dev/isp/isp.c ============================================================================== --- head/sys/dev/isp/isp.c Sun Oct 25 17:17:50 2015 (r289938) +++ head/sys/dev/isp/isp.c Sun Oct 25 17:24:37 2015 (r289939) @@ -6073,11 +6073,10 @@ isp_parse_async_fc(ispsoftc_t *isp, uint if (IS_24XX(isp)) { nphdl = ISP_READ(isp, OUTMAILBOX1); nlstate = ISP_READ(isp, OUTMAILBOX2); - reason = ISP_READ(isp, OUTMAILBOX3); - chan = reason & 0xff; + reason = ISP_READ(isp, OUTMAILBOX3) >> 8; + GET_24XX_BUS(isp, chan, "ASYNC_CHANGE_NOTIFY"); echan = (nphdl == NIL_HANDLE) ? isp->isp_nchan - 1 : chan; - reason = reason >> 8; } else { nphdl = NIL_HANDLE; nlstate = reason = 0;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510251724.t9PHObZ8024601>