PERFORCE change 95140 for review
John-Mark Gurney
jmg at FreeBSD.org
Thu Apr 13 05:00:33 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=95140
Change 95140 by jmg at jmg_arlene on 2006/04/13 04:59:32
get the softc from bus instead of dev... don't force the unit
number of the pci bus, this makes multidomain work...
Affected files ...
.. //depot/projects/kmacy_sun4v/src/sys/sparc64/pci/ofw_pcib.c#4 edit
.. //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/hv_pci.c#38 edit
Differences ...
==== //depot/projects/kmacy_sun4v/src/sys/sparc64/pci/ofw_pcib.c#4 (text+ko) ====
@@ -116,6 +116,6 @@
sc = device_get_softc(dev);
ofw_pcib_gen_setup(dev);
pcib_attach_common(dev);
- device_add_child(dev, "pci", sc->ops_pcib_sc.secbus);
+ device_add_child(dev, "pci", -1);
return (bus_generic_attach(dev));
}
==== //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/hv_pci.c#38 (text+ko) ====
@@ -359,7 +359,7 @@
{
struct hvpci_softc *sc;
- sc = device_get_softc(dev);
+ sc = device_get_softc(bus);
return (sc->hs_node);
}
More information about the p4-projects
mailing list