[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
This commit is contained in:
Adrian Chadd 2016-05-16 19:39:05 +00:00
parent af524a9f4b
commit 3c4efeae16
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=299969
2 changed files with 5 additions and 1 deletions

View File

@ -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:

View File

@ -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.