From 7dc45d10f88af4211cf41df1dd2904cb1d9a1e60 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Thu, 11 Oct 2001 21:03:36 +0000 Subject: fix the cmd execution problem from pr#2116; from pvk@tsinet.ru --- sys/dev/pci/cac_pci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/pci/cac_pci.c b/sys/dev/pci/cac_pci.c index ec848766c94..ca88b166a14 100644 --- a/sys/dev/pci/cac_pci.c +++ b/sys/dev/pci/cac_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cac_pci.c,v 1.5 2001/08/25 10:13:29 art Exp $ */ +/* $OpenBSD: cac_pci.c,v 1.6 2001/10/11 21:03:35 mickey Exp $ */ /* $NetBSD: cac_pci.c,v 1.10 2001/01/10 16:48:04 ad Exp $ */ /*- @@ -274,7 +274,7 @@ int cac_pci_l0_intr_pending(struct cac_softc *sc) { - return (cac_inl(sc, CAC_42REG_STATUS) & CAC_42_EXTINT); + return ((cac_inl(sc, CAC_42REG_STATUS) & CAC_42_EXTINT) != 0); } void @@ -288,5 +288,5 @@ int cac_pci_l0_fifo_full(struct cac_softc *sc) { - return (~cac_inl(sc, CAC_42REG_CMD_FIFO)); + return (cac_inl(sc, CAC_42REG_CMD_FIFO) != 0); } -- cgit v1.2.3