Date: Sun, 2 Apr 2006 06:11:49 GMT From: John-Mark Gurney <jmg@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 94446 for review Message-ID: <200604020611.k326BnbD013349@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=94446 Change 94446 by jmg@jmg_carbon-60 on 2006/04/02 06:11:15 add debuging printf.. Affected files ... .. //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/hv_pci.c#5 edit Differences ... ==== //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/hv_pci.c#5 (text+ko) ==== @@ -157,6 +157,7 @@ int width) { struct hvpci_softc *sc; + int r; #ifdef notyet pci_cfg_data_t data; #endif @@ -164,11 +165,16 @@ sc = device_get_softc(dev); - if (hvio_config_get(sc->hs_devhandle, HVPCI_BDF(bus, slot, func), reg, - width, &data) == -1) - return -1; + data = 0; + r = hvio_config_get(sc->hs_devhandle, HVPCI_BDF(bus, slot, func), + reg, width, &data); + + printf("read_config(%#x, %#x, %d, %d) = %#x\n", sc->hs_devhandle, + HVPCI_BDF(bus, slot, func), reg, width, data); + if (r == H_EOK) + return data; - return data; + return -1; } #if 0
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604020611.k326BnbD013349>