diff options
author | gibbs <gibbs@FreeBSD.org> | 1999-01-28 03:30:02 +0000 |
---|---|---|
committer | gibbs <gibbs@FreeBSD.org> | 1999-01-28 03:30:02 +0000 |
commit | 75a344a2d5a5369c1251db6136e2965384b276c3 (patch) | |
tree | 859e431b1973dbdcf2e923d41c20490f1fa459c6 /sys | |
parent | 32400d0462e856d104df455999edd2a8b7bd1764 (diff) | |
download | FreeBSD-src-75a344a2d5a5369c1251db6136e2965384b276c3.zip FreeBSD-src-75a344a2d5a5369c1251db6136e2965384b276c3.tar.gz |
Correct test in poll loop for determining that the mailbox is free to
accept a new command.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ahb/ahb.c | 9 | ||||
-rw-r--r-- | sys/i386/eisa/ahb.c | 9 |
2 files changed, 4 insertions, 14 deletions
diff --git a/sys/dev/ahb/ahb.c b/sys/dev/ahb/ahb.c index 8a79067..21edd2e 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); } diff --git a/sys/i386/eisa/ahb.c b/sys/i386/eisa/ahb.c index 8a79067..21edd2e 100644 --- a/sys/i386/eisa/ahb.c +++ b/sys/i386/eisa/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); } |