Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic When checking for a non-standard address ROM form...



details:   https://anonhg.NetBSD.org/src/rev/01bbb1c8ad98
branches:  trunk
changeset: 481236:01bbb1c8ad98
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Jan 25 03:14:12 2000 +0000

description:
When checking for a non-standard address ROM format, allow the
Cobalt Networks address ROM through.

>From Soren S. Jorvang <soren%wheel.dk@localhost>

diffstat:

 sys/dev/ic/tulip.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r 1d9f53f76509 -r 01bbb1c8ad98 sys/dev/ic/tulip.c
--- a/sys/dev/ic/tulip.c        Tue Jan 25 02:44:03 2000 +0000
+++ b/sys/dev/ic/tulip.c        Tue Jan 25 03:14:12 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tulip.c,v 1.36 1999/12/15 12:23:32 tsutsui Exp $       */
+/*     $NetBSD: tulip.c,v 1.37 2000/01/25 03:14:12 thorpej Exp $       */
 
 /*-
  * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -2052,9 +2052,14 @@
                 * DEC Address ROM format, but rather just have an
                 * Ethernet address in the first 6 bytes, maybe a
                 * 2 byte checksum, and then all 0xff's.
+                *
+                * On the other hand, Cobalt Networks interfaces
+                * simply have the address in the first six bytes
+                * with the rest zeroed out.
                 */
                for (i = 8; i < 32; i++) {
-                       if (sc->sc_srom[i] != 0xff)
+                       if (sc->sc_srom[i] != 0xff &&
+                           sc->sc_srom[i] != 0)
                                return (0);
                }
 



Home | Main Index | Thread Index | Old Index