summaryrefslogtreecommitdiffstats
path: root/sys/pccard
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2001-09-04 20:08:33 +0000
committerimp <imp@FreeBSD.org>2001-09-04 20:08:33 +0000
commite53cbcb0196b273739aad7b289d82490e0a7b95c (patch)
treed5cb6f0b3531b8abd7196126877404c0b6b85ddb /sys/pccard
parentfae098aa75f033c28830b26c6dc6a193140bebee (diff)
downloadFreeBSD-src-e53cbcb0196b273739aad7b289d82490e0a7b95c.zip
FreeBSD-src-e53cbcb0196b273739aad7b289d82490e0a7b95c.tar.gz
MFS: put debug writes behind boot verbose.
Diffstat (limited to 'sys/pccard')
-rw-r--r--sys/pccard/pcic.c23
1 files changed, 16 insertions, 7 deletions
diff --git a/sys/pccard/pcic.c b/sys/pccard/pcic.c
index c1ce023..bffd59f 100644
--- a/sys/pccard/pcic.c
+++ b/sys/pccard/pcic.c
@@ -686,27 +686,36 @@ pcic_reset(void *chan)
struct slot *slt = chan;
struct pcic_slot *sp = slt->cdata;
- printf("reset %d\n", slt->insert_seq);
+ if (bootverbose)
+ device_printf(sp->sc->dev, "reset %d ", slt->insert_seq);
switch (slt->insert_seq) {
case 0: /* Something funny happended on the way to the pub... */
+ if (bootverbose)
+ printf("\n");
return;
case 1: /* Assert reset */
pcic_clrb(sp, PCIC_INT_GEN, PCIC_CARDRESET);
- printf("int is %x stat is %x\n", sp->getb(sp, PCIC_INT_GEN),
- sp->getb(sp, PCIC_STATUS));
+ if (bootverbose)
+ printf("int is %x stat is %x\n",
+ sp->getb(sp, PCIC_INT_GEN),
+ sp->getb(sp, PCIC_STATUS));
slt->insert_seq = 2;
timeout(pcic_reset, (void *)slt, hz/4);
return;
case 2: /* Deassert it again */
pcic_setb(sp, PCIC_INT_GEN, PCIC_CARDRESET | PCIC_IOCARD);
- printf("int is %x stat is %x\n", sp->getb(sp, PCIC_INT_GEN),
- sp->getb(sp, PCIC_STATUS));
+ if (bootverbose)
+ printf("int is %x stat is %x\n",
+ sp->getb(sp, PCIC_INT_GEN),
+ sp->getb(sp, PCIC_STATUS));
slt->insert_seq = 3;
timeout(pcic_reset, (void *)slt, hz/4);
return;
case 3: /* Wait if card needs more time */
- printf("int is %x stat is %x\n", sp->getb(sp, PCIC_INT_GEN),
- sp->getb(sp, PCIC_STATUS));
+ if (bootverbose)
+ printf("int is %x stat is %x\n",
+ sp->getb(sp, PCIC_INT_GEN),
+ sp->getb(sp, PCIC_STATUS));
if (!sp->getb(sp, PCIC_STATUS) & PCIC_READY) {
timeout(pcic_reset, (void *)slt, hz/10);
return;
OpenPOWER on IntegriCloud