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.
This commit is contained in:
Justin T. Gibbs 1996-05-12 16:25:32 +00:00
parent 63cdf05c43
commit 58efe44318

View File

@ -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) {