Source-Changes-HG archive

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

[src/netbsd-1-4]: src/sys/arch/macppc/dev Pull up revision 1.3 (requested by ...



details:   https://anonhg.NetBSD.org/src/rev/c812aaeae621
branches:  netbsd-1-4
changeset: 470112:c812aaeae621
user:      he <he%NetBSD.org@localhost>
date:      Thu Jan 20 21:35:11 2000 +0000

description:
Pull up revision 1.3 (requested by danw):
  Work around a problem where the 'bm' (iMac and Blue G3 built-in
  ethernet) driver only works if initialized from Open Firmware.

diffstat:

 sys/arch/macppc/dev/if_bm.c |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r a0e302305a12 -r c812aaeae621 sys/arch/macppc/dev/if_bm.c
--- a/sys/arch/macppc/dev/if_bm.c       Thu Jan 20 21:28:52 2000 +0000
+++ b/sys/arch/macppc/dev/if_bm.c       Thu Jan 20 21:35:11 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_bm.c,v 1.1 1999/01/01 01:27:52 tsubai Exp $ */
+/*     $NetBSD: if_bm.c,v 1.1.2.1 2000/01/20 21:35:11 he Exp $ */
 
 /*-
  * Copyright (C) 1998, 1999 Tsubai Masanari.  All rights reserved.
@@ -174,8 +174,14 @@
        int i;
 
        sc->sc_flags =0;
-       if (strcmp(ca->ca_name, "ethernet") == 0)
+       if (strcmp(ca->ca_name, "ethernet") == 0) {
+               char name[64];
+
+               bzero(name, 64);
+               OF_package_to_path(ca->ca_node, name, sizeof(name));
+               OF_open(name);
                sc->sc_flags |= BMAC_BMACPLUS;
+       }
 
        ca->ca_reg[0] += ca->ca_baseaddr;
        ca->ca_reg[2] += ca->ca_baseaddr;



Home | Main Index | Thread Index | Old Index