summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgibbs <gibbs@FreeBSD.org>1996-05-12 16:25:32 +0000
committergibbs <gibbs@FreeBSD.org>1996-05-12 16:25:32 +0000
commit69278b0c5dc7ccde95c4e6d05783bf61464c8942 (patch)
tree80d1e02ab55628656c04abbb4485a542fb67d3e4
parentaf3757a685be64f1653129d280d89b4ec7fa7110 (diff)
downloadFreeBSD-src-69278b0c5dc7ccde95c4e6d05783bf61464c8942.zip
FreeBSD-src-69278b0c5dc7ccde95c4e6d05783bf61464c8942.tar.gz
Fix a brain-o. The scratch ram on aic78X0 controllers is initialized to 0x00
not 0xff after POST, so test for that when trying to determine if a BIOS intialized the card for us.
-rw-r--r--sys/pci/aic7870.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/pci/aic7870.c b/sys/pci/aic7870.c
index f66888a..dda058c 100644
--- a/sys/pci/aic7870.c
+++ b/sys/pci/aic7870.c
@@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: aic7870.c,v 1.31 1996/05/12 01:46:11 gibbs Exp $
+ * $Id: aic7870.c,v 1.32 1996/05/12 01:50:33 gibbs Exp $
*/
#include <pci.h>
@@ -425,7 +425,7 @@ aic7870_attach(config_id, unit)
/* See if someone else set us up already */
u_long i;
for(i=io_port + TARG_SCRATCH; i < io_port + 0x60; i++) {
- if(inb(i) != 0xff)
+ if(inb(i) != 0x00)
break;
}
if(i != io_port + 0x60) {
OpenPOWER on IntegriCloud