Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbmips/alchemy Use AU1500_MAC0_BASE as well as a t...



details:   https://anonhg.NetBSD.org/src/rev/43274bed93f8
branches:  trunk
changeset: 536211:43274bed93f8
user:      simonb <simonb%NetBSD.org@localhost>
date:      Wed Sep 11 08:30:48 2002 +0000

description:
Use AU1500_MAC0_BASE as well as a test for setting the MAC addresses
of the on-chip interfaces.

diffstat:

 sys/arch/evbmips/alchemy/autoconf.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r c2ca136c68ab -r 43274bed93f8 sys/arch/evbmips/alchemy/autoconf.c
--- a/sys/arch/evbmips/alchemy/autoconf.c       Wed Sep 11 08:15:37 2002 +0000
+++ b/sys/arch/evbmips/alchemy/autoconf.c       Wed Sep 11 08:30:48 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: autoconf.c,v 1.1 2002/07/29 16:22:55 simonb Exp $ */
+/* $NetBSD: autoconf.c,v 1.2 2002/09/11 08:30:48 simonb Exp $ */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -108,7 +108,8 @@
                                ethaddr[i] = strtoul(cp, &cp0, 16);
                                cp = cp0 + 1;
                        }
-                       if (aa->aa_addr != MAC0_BASE) {
+                       if (aa->aa_addr != MAC0_BASE &&
+                           aa->aa_addr != AU1500_MAC0_BASE) {
                                /* XXX
                                 * The PROM has a variable for the MAC address
                                 * of the first interface.  For now, just add



Home | Main Index | Thread Index | Old Index