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 Find "mac-io" and "/pci/mac-io".
details: https://anonhg.NetBSD.org/src/rev/d7b1cb94188c
branches: trunk
changeset: 472540:d7b1cb94188c
user: tsubai <tsubai%NetBSD.org@localhost>
date: Sat May 01 10:36:08 1999 +0000
description:
Find "mac-io" and "/pci/mac-io".
diffstat:
sys/arch/macppc/dev/obio.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (37 lines):
diff -r 3bbc9ca0b102 -r d7b1cb94188c sys/arch/macppc/dev/obio.c
--- a/sys/arch/macppc/dev/obio.c Sat May 01 10:23:42 1999 +0000
+++ b/sys/arch/macppc/dev/obio.c Sat May 01 10:36:08 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: obio.c,v 1.5 1998/12/22 19:46:28 tsubai Exp $ */
+/* $NetBSD: obio.c,v 1.6 1999/05/01 10:36:08 tsubai Exp $ */
/*-
* Copyright (C) 1998 Internet Research Institute, Inc.
@@ -72,7 +72,7 @@
case 0x02: /* gc */
case 0x07: /* ohare */
case 0x10: /* mac-io "Heathrow" */
- case 0x17: /* mac-io "Paddington" (untested) */
+ case 0x17: /* mac-io "Paddington" */
return 1;
}
@@ -97,6 +97,7 @@
switch (PCI_PRODUCT(pa->pa_id)) {
+ /* XXX should not use name */
case 0x02:
node = OF_finddevice("/bandit/gc");
break;
@@ -107,7 +108,9 @@
case 0x10:
case 0x17:
- node = OF_finddevice("/pci/mac-io");
+ node = OF_finddevice("mac-io");
+ if (node == -1)
+ node = OF_finddevice("/pci/mac-io");
break;
default:
Home |
Main Index |
Thread Index |
Old Index