Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Make sure 21040 chips are at least pass 2.0 and ...



details:   https://anonhg.NetBSD.org/src/rev/3d21d8d64732
branches:  trunk
changeset: 476369:3d21d8d64732
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Sep 14 23:43:10 1999 +0000

description:
Make sure 21040 chips are at least pass 2.0 and that 21140 chips are at
least pass 1.1.

diffstat:

 sys/dev/pci/if_tlp_pci.c |  23 ++++++++++++++++++++++-
 1 files changed, 22 insertions(+), 1 deletions(-)

diffs (37 lines):

diff -r 9e0a1b746928 -r 3d21d8d64732 sys/dev/pci/if_tlp_pci.c
--- a/sys/dev/pci/if_tlp_pci.c  Tue Sep 14 23:33:04 1999 +0000
+++ b/sys/dev/pci/if_tlp_pci.c  Tue Sep 14 23:43:10 1999 +0000
@@ -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_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;
 
        /*



Home | Main Index | Thread Index | Old Index