From owner-p4-projects@FreeBSD.ORG Sun Apr 2 06:11:50 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 5E21916A424; Sun, 2 Apr 2006 06:11:50 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 39FBE16A401 for ; Sun, 2 Apr 2006 06:11:50 +0000 (UTC) (envelope-from jmg@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD2AB43D45 for ; Sun, 2 Apr 2006 06:11:49 +0000 (GMT) (envelope-from jmg@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k326BnCu013352 for ; Sun, 2 Apr 2006 06:11:49 GMT (envelope-from jmg@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k326BnbD013349 for perforce@freebsd.org; Sun, 2 Apr 2006 06:11:49 GMT (envelope-from jmg@freebsd.org) Date: Sun, 2 Apr 2006 06:11:49 GMT Message-Id: <200604020611.k326BnbD013349@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jmg@freebsd.org using -f From: John-Mark Gurney To: Perforce Change Reviews Cc: Subject: PERFORCE change 94446 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Apr 2006 06:11:50 -0000 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