Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/macppc/pci Use PCI products defined in pcidevs.h
details: https://anonhg.NetBSD.org/src/rev/df92f9ceec7b
branches: trunk
changeset: 480727:df92f9ceec7b
user: thorpej <thorpej%NetBSD.org@localhost>
date: Tue Jan 18 20:05:23 2000 +0000
description:
Use PCI products defined in pcidevs.h
diffstat:
sys/arch/macppc/pci/pchb.c | 19 ++++++-------------
1 files changed, 6 insertions(+), 13 deletions(-)
diffs (52 lines):
diff -r a6ff2102e4c0 -r df92f9ceec7b sys/arch/macppc/pci/pchb.c
--- a/sys/arch/macppc/pci/pchb.c Tue Jan 18 20:02:32 2000 +0000
+++ b/sys/arch/macppc/pci/pchb.c Tue Jan 18 20:05:23 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pchb.c,v 1.2 1998/07/13 19:27:13 tsubai Exp $ */
+/* $NetBSD: pchb.c,v 1.3 2000/01/18 20:05:23 thorpej Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -47,10 +47,6 @@
#include <dev/pci/pcireg.h>
#include <dev/pci/pcidevs.h>
-#ifndef PCI_PRODUCT_APPLE_BANDIT
-#define PCI_PRODUCT_APPLE_BANDIT 1
-#endif
-
int pchbmatch __P((struct device *, struct cfdata *, void *));
void pchbattach __P((struct device *, struct device *, void *));
@@ -70,26 +66,23 @@
* Match all known PCI host chipsets.
*/
switch (PCI_VENDOR(pa->pa_id)) {
-
case PCI_VENDOR_APPLE:
switch (PCI_PRODUCT(pa->pa_id)) {
-
case PCI_PRODUCT_APPLE_BANDIT:
- case 0x08:
- return 1;
+ case PCI_PRODUCT_APPLE_BANDIT2:
+ return (1);
}
break;
case PCI_VENDOR_MOT:
switch (PCI_PRODUCT(pa->pa_id)) {
-
- case 0x02: /* MPC106 */
- return 1;
+ case PCI_PRODUCT_MOT_MPC106:
+ return (1);
}
break;
}
- return 0;
+ return (0);
}
void
Home |
Main Index |
Thread Index |
Old Index