Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/macppc/dev More initialization by calling Open Firm...
details: https://anonhg.NetBSD.org/src/rev/733bdd287a34
branches: trunk
changeset: 473815:733bdd287a34
user: tsubai <tsubai%NetBSD.org@localhost>
date: Sun Jun 20 05:34:59 1999 +0000
description:
More initialization by calling Open Firmware.
diffstat:
sys/arch/macppc/dev/if_bm.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (25 lines):
diff -r f1a3ce2c546e -r 733bdd287a34 sys/arch/macppc/dev/if_bm.c
--- a/sys/arch/macppc/dev/if_bm.c Sun Jun 20 04:17:57 1999 +0000
+++ b/sys/arch/macppc/dev/if_bm.c Sun Jun 20 05:34:59 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_bm.c,v 1.2 1999/05/18 23:52:53 thorpej Exp $ */
+/* $NetBSD: if_bm.c,v 1.3 1999/06/20 05:34:59 tsubai 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