diff options
author | Justin T. Gibbs <gibbs@FreeBSD.org> | 1999-01-28 03:30:02 +0000 |
---|---|---|
committer | Justin T. Gibbs <gibbs@FreeBSD.org> | 1999-01-28 03:30:02 +0000 |
commit | dd3afbd452edbceb2e9ee1b21db2fa79f8c49811 (patch) | |
tree | 17548c064126ac3a6bd4a7cb2e419e41184a57d7 /sys/dev/ahb | |
parent | e3870274b450051e212d9eb4689fdcd52d48775e (diff) | |
download | src-dd3afbd452edbceb2e9ee1b21db2fa79f8c49811.tar.gz src-dd3afbd452edbceb2e9ee1b21db2fa79f8c49811.zip |
Correct test in poll loop for determining that the mailbox is free to
accept a new command.
Notes
Notes:
svn path=/head/; revision=43316
Diffstat (limited to 'sys/dev/ahb')
-rw-r--r-- | sys/dev/ahb/ahb.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/dev/ahb/ahb.c b/sys/dev/ahb/ahb.c index 8a790670b462..21edd2ea9b1b 100644 --- a/sys/dev/ahb/ahb.c +++ b/sys/dev/ahb/ahb.c @@ -25,7 +25,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ahb.c,v 1.4 1998/10/09 21:38:31 gibbs Exp $ + * $Id: ahb.c,v 1.5 1999/01/28 01:33:02 dillon Exp $ */ #include "eisa.h" @@ -171,14 +171,9 @@ ahbqueuembox(struct ahb_softc *ahb, u_int32_t mboxval, u_int attn_code) while (--loopmax) { u_int status; - /* - * XXX - this still looks wrong, even after fixing the - * parenthesization. - */ - status = ahb_inb(ahb, HOSTSTAT); if ((status & (HOSTSTAT_MBOX_EMPTY|HOSTSTAT_BUSY)) - != HOSTSTAT_MBOX_EMPTY) + == HOSTSTAT_MBOX_EMPTY) break; DELAY(20); } |