Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/sys/arch/i386/pci Pullup 1.20 [thorpej]:
details: https://anonhg.NetBSD.org/src/rev/1ffbb0916e1f
branches: netbsd-1-5
changeset: 490019:1ffbb0916e1f
user: tv <tv%NetBSD.org@localhost>
date: Mon Oct 30 23:30:18 2000 +0000
description:
Pullup 1.20 [thorpej]:
Support the second PCI bus on SeverWorks chipsets. From OpenBSD.
diffstat:
sys/arch/i386/pci/pchb.c | 27 +++++++++++++++++++++------
1 files changed, 21 insertions(+), 6 deletions(-)
diffs (48 lines):
diff -r d34531ea7425 -r 1ffbb0916e1f sys/arch/i386/pci/pchb.c
--- a/sys/arch/i386/pci/pchb.c Mon Oct 30 23:28:17 2000 +0000
+++ b/sys/arch/i386/pci/pchb.c Mon Oct 30 23:30:18 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pchb.c,v 1.18 2000/05/11 16:44:14 drochner Exp $ */
+/* $NetBSD: pchb.c,v 1.18.4.1 2000/10/30 23:30:18 tv Exp $ */
/*-
* Copyright (c) 1996, 1998 The NetBSD Foundation, Inc.
@@ -113,6 +113,26 @@
printf("%s: %s (rev. 0x%02x)\n", self->dv_xname, devinfo,
PCI_REVISION(pa->pa_class));
switch (PCI_VENDOR(pa->pa_id)) {
+ case PCI_VENDOR_PEQUR:
+ pbnum = pci_conf_read(pa->pa_pc, pa->pa_tag, 0x44);
+
+ if (pbnum == 0)
+ break;
+
+ /*
+ * This host bridge has a second PCI bus.
+ * Configure it.
+ */
+ pba.pba_busname = "pci";
+ pba.pba_iot = pa->pa_iot;
+ pba.pba_memt = pa->pa_memt;
+ pba.pba_dmat = pa->pa_dmat;
+ pba.pba_bus = pbnum;
+ pba.pba_flags = pa->pa_flags;
+ pba.pba_pc = pa->pa_pc;
+ config_found(self, &pba, pchb_print);
+ break;
+
case PCI_VENDOR_INTEL:
switch (PCI_PRODUCT(pa->pa_id)) {
case PCI_PRODUCT_INTEL_PCI450_PB:
@@ -205,11 +225,6 @@
}
break;
}
- /*
- * XXX: vendor=PEQUR, device=0x0005 - host bridge with
- * auxiliary PCI bus (used in Compaq Proliant) should
- * be here, but I don't have enough information.
- */
}
}
Home |
Main Index |
Thread Index |
Old Index