summaryrefslogtreecommitdiffstats
path: root/sys/dev/ahb/ahb.c
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>1999-01-28 01:33:02 +0000
committerdillon <dillon@FreeBSD.org>1999-01-28 01:33:02 +0000
commitbada4b37ff3f7d5effb75895357b4276798f82de (patch)
tree0a09b040af3b50a7379ddb0adcf7a5fe6aab1b9a /sys/dev/ahb/ahb.c
parent975fba8a24263006afbbb4e38dd6bf515bdf4b43 (diff)
downloadFreeBSD-src-bada4b37ff3f7d5effb75895357b4276798f82de.zip
FreeBSD-src-bada4b37ff3f7d5effb75895357b4276798f82de.tar.gz
Fix parenthesization, but the code still looks wrong.
Diffstat (limited to 'sys/dev/ahb/ahb.c')
-rw-r--r--sys/dev/ahb/ahb.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/dev/ahb/ahb.c b/sys/dev/ahb/ahb.c
index 7493c30..8a79067 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.3 1998/09/17 00:08:26 gibbs Exp $
+ * $Id: ahb.c,v 1.4 1998/10/09 21:38:31 gibbs Exp $
*/
#include "eisa.h"
@@ -171,8 +171,13 @@ 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)
+ if ((status & (HOSTSTAT_MBOX_EMPTY|HOSTSTAT_BUSY))
!= HOSTSTAT_MBOX_EMPTY)
break;
DELAY(20);
OpenPOWER on IntegriCloud