Make sure 21040 chips are at least pass 2.0 and that 21140 chips are at

least pass 1.1.
This commit is contained in:
thorpej 1999-09-14 23:43:10 +00:00
parent 70997fd3d5
commit f23c7a31b4

@ -1,4 +1,4 @@
/* $NetBSD: if_tlp_pci.c,v 1.9 1999/09/14 23:33:04 thorpej Exp $ */
/* $NetBSD: if_tlp_pci.c,v 1.10 1999/09/14 23:43:10 thorpej Exp $ */
/*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@ -405,6 +405,27 @@ tlp_pci_attach(parent, self, aux)
tlp_pci_chip_names[sc->sc_chip],
(sc->sc_rev >> 4) & 0xf, sc->sc_rev & 0xf);
switch (sc->sc_chip) {
case TULIP_CHIP_21040:
if (sc->sc_rev < 0x20) {
printf("%s: 21040 must be at least pass 2.0\n",
sc->sc_dev.dv_xname);
return;
}
break;
case TULIP_CHIP_21140:
if (sc->sc_rev < 0x11) {
printf("%s: 21140 must be at least pass 1.1\n",
sc->sc_dev.dv_xname);
return;
}
break;
default:
/* Nothing. */
}
sc->sc_dmat = pa->pa_dmat;
/*