From 58efe44318eaf846cb8dba6bb2a3cb34cdd2c9a6 Mon Sep 17 00:00:00 2001 From: "Justin T. Gibbs" Date: Sun, 12 May 1996 16:25:32 +0000 Subject: [PATCH] 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. --- sys/pci/aic7870.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/pci/aic7870.c b/sys/pci/aic7870.c index f66888ad9750..dda058ca87ae 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 @@ -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) {