diff options
| author | Matt Jacob <mjacob@FreeBSD.org> | 2000-07-04 01:02:38 +0000 |
|---|---|---|
| committer | Matt Jacob <mjacob@FreeBSD.org> | 2000-07-04 01:02:38 +0000 |
| commit | 1d460ef8d5108d88e351279344f24e24850a213d (patch) | |
| tree | aeff63a2c472b13ebc17476136e7047c3ec2770e /sys/dev/isp/isp.c | |
| parent | 469b6b9efb66b5f05a10713ecce14efd3db369ef (diff) | |
Notes
Diffstat (limited to 'sys/dev/isp/isp.c')
| -rw-r--r-- | sys/dev/isp/isp.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/dev/isp/isp.c b/sys/dev/isp/isp.c index 7996b0fcedf1..554dc8f379e8 100644 --- a/sys/dev/isp/isp.c +++ b/sys/dev/isp/isp.c @@ -2482,7 +2482,7 @@ isp_intr(arg) isp->isp_mboxtmp[i] = ISP_READ(isp, MBOX_OFF(i)); } - isp->isp_mboxbsy = 0; + MBOX_NOTIFY_COMPLETE(isp); } else { PRINTF("%s: Command Mbox 0x%x\n", isp->isp_name, mbox); @@ -3605,12 +3605,7 @@ isp_mboxcmd(isp, mbp) /* * While we haven't finished the command, spin our wheels here. */ - - do { - if (isp_intr(isp) == 0) { - SYS_DELAY(500); - } - } while (isp->isp_mboxbsy != 0); + MBOX_WAIT_COMPLETE(isp); /* * Copy back output registers. |
