PERFORCE change 94446 for review
John-Mark Gurney
jmg at FreeBSD.org
Sun Apr 2 06:11:50 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=94446
Change 94446 by jmg at 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
More information about the p4-projects
mailing list