summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/pci/ofw_pcib.c
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2006-10-12 04:44:01 +0000
committerkmacy <kmacy@FreeBSD.org>2006-10-12 04:44:01 +0000
commitf64ee1a32f0c0053cd991dd2e771a5925a41a3a2 (patch)
tree070cd77df2f88a3642faad083d9c58698c40c7a2 /sys/sparc64/pci/ofw_pcib.c
parente728d447453104c4d242dc342a1e96716657cad7 (diff)
downloadFreeBSD-src-f64ee1a32f0c0053cd991dd2e771a5925a41a3a2.zip
FreeBSD-src-f64ee1a32f0c0053cd991dd2e771a5925a41a3a2.tar.gz
The T2000 has multiple PCI domains requiring bus allocation to be done differently.
This pulls in changes by jmg from perforce and makes them sun4v only for now. Approved by: scottl (acting as backup for mentor rwatson)
Diffstat (limited to 'sys/sparc64/pci/ofw_pcib.c')
-rw-r--r--sys/sparc64/pci/ofw_pcib.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/sparc64/pci/ofw_pcib.c b/sys/sparc64/pci/ofw_pcib.c
index d4e627d..9d20486 100644
--- a/sys/sparc64/pci/ofw_pcib.c
+++ b/sys/sparc64/pci/ofw_pcib.c
@@ -35,6 +35,7 @@
__FBSDID("$FreeBSD$");
#include "opt_ofw_pci.h"
+#include "opt_global.h"
#include <sys/param.h>
#include <sys/kernel.h>
@@ -119,6 +120,11 @@ ofw_pcib_attach(device_t dev)
sc = device_get_softc(dev);
ofw_pcib_gen_setup(dev);
pcib_attach_common(dev);
+#ifdef SUN4V
+ device_add_child(dev, "pci", -1);
+#else
device_add_child(dev, "pci", sc->ops_pcib_sc.secbus);
+#endif
+
return (bus_generic_attach(dev));
}
OpenPOWER on IntegriCloud