Date: Mon, 16 May 2016 19:39:05 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r299969 - head/sys/dev/siba Message-ID: <201605161939.u4GJd5gL010138@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adrian Date: Mon May 16 19:39:05 2016 New Revision: 299969 URL: https://svnweb.freebsd.org/changeset/base/299969 Log: [siba] make the debug code somewhat useful again. It's still not configurable by a kernel option; that'll come next. Sponsored by: Palm Springs Modified: head/sys/dev/siba/siba_core.c head/sys/dev/siba/sibavar.h Modified: head/sys/dev/siba/siba_core.c ============================================================================== --- head/sys/dev/siba/siba_core.c Mon May 16 19:33:23 2016 (r299968) +++ head/sys/dev/siba/siba_core.c Mon May 16 19:39:05 2016 (r299969) @@ -184,6 +184,8 @@ siba_core_attach(struct siba_softc *siba siba->siba_ops = &siba_pci_ops; + siba->siba_debug = SIBA_DEBUG_SCAN; + siba_pci_gpio(siba, SIBA_GPIO_CRYSTAL | SIBA_GPIO_PLL, 1); siba_scan(siba); @@ -332,7 +334,8 @@ siba_scan(struct siba_softc *siba) DPRINTF(siba, SIBA_DEBUG_SCAN, "core %d (%s) found (cc %#xrev %#x vendor %#x)\n", i, siba_core_name(sd->sd_id.sd_device), - sd->sd_id.sd_device, sd->sd_id.sd_rev, sd->sd_id.vendor); + sd->sd_id.sd_device, sd->sd_id.sd_rev, + sd->sd_id.sd_vendor); switch (sd->sd_id.sd_device) { case SIBA_DEVID_CHIPCOMMON: Modified: head/sys/dev/siba/sibavar.h ============================================================================== --- head/sys/dev/siba/sibavar.h Mon May 16 19:33:23 2016 (r299968) +++ head/sys/dev/siba/sibavar.h Mon May 16 19:39:05 2016 (r299969) @@ -604,6 +604,7 @@ struct siba_softc { bus_addr_t siba_maddr; bus_size_t siba_msize; uint8_t siba_ncores; + uint32_t siba_debug; /* * the following variables are only used for siba_bwn bridge.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605161939.u4GJd5gL010138>