svn commit: r299969 - head/sys/dev/siba
Adrian Chadd
adrian at FreeBSD.org
Mon May 16 19:39:07 UTC 2016
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.
More information about the svn-src-all
mailing list