Date: Thu, 13 Apr 2006 05:00:32 GMT From: John-Mark Gurney <jmg@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 95140 for review Message-ID: <200604130500.k3D50Wh1073014@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=95140 Change 95140 by jmg@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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604130500.k3D50Wh1073014>