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 Match "keylargo".
details: https://anonhg.NetBSD.org/src/rev/c694ef0c7214
branches: trunk
changeset: 480929:c694ef0c7214
user: tsubai <tsubai%NetBSD.org@localhost>
date: Sun Jan 23 10:01:44 2000 +0000
description:
Match "keylargo".
diffstat:
sys/arch/macppc/dev/obio.c | 20 +++++++++++---------
1 files changed, 11 insertions(+), 9 deletions(-)
diffs (47 lines):
diff -r 889966140648 -r c694ef0c7214 sys/arch/macppc/dev/obio.c
--- a/sys/arch/macppc/dev/obio.c Sun Jan 23 09:58:13 2000 +0000
+++ b/sys/arch/macppc/dev/obio.c Sun Jan 23 10:01:44 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: obio.c,v 1.6 1999/05/01 10:36:08 tsubai Exp $ */
+/* $NetBSD: obio.c,v 1.7 2000/01/23 10:01:44 tsubai Exp $ */
/*-
* Copyright (C) 1998 Internet Research Institute, Inc.
@@ -69,10 +69,11 @@
if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_APPLE)
switch (PCI_PRODUCT(pa->pa_id)) {
- case 0x02: /* gc */
- case 0x07: /* ohare */
- case 0x10: /* mac-io "Heathrow" */
- case 0x17: /* mac-io "Paddington" */
+ case PCI_PRODUCT_APPLE_GC:
+ case PCI_PRODUCT_APPLE_OHARE:
+ case PCI_PRODUCT_APPLE_HEATHROW:
+ case PCI_PRODUCT_APPLE_PADDINGTON:
+ case PCI_PRODUCT_APPLE_KEYLARGO:
return 1;
}
@@ -98,16 +99,17 @@
switch (PCI_PRODUCT(pa->pa_id)) {
/* XXX should not use name */
- case 0x02:
+ case PCI_PRODUCT_APPLE_GC:
node = OF_finddevice("/bandit/gc");
break;
- case 0x07:
+ case PCI_PRODUCT_APPLE_OHARE:
node = OF_finddevice("/bandit/ohare");
break;
- case 0x10:
- case 0x17:
+ case PCI_PRODUCT_APPLE_HEATHROW:
+ case PCI_PRODUCT_APPLE_PADDINGTON:
+ case PCI_PRODUCT_APPLE_KEYLARGO:
node = OF_finddevice("mac-io");
if (node == -1)
node = OF_finddevice("/pci/mac-io");
Home |
Main Index |
Thread Index |
Old Index