From: smurph Date: Wed, 5 Apr 2000 04:29:58 +0000 (+0000) Subject: Changed boot messages and fixed Ultra160 boot messages. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=23c7eeed9264d395920a0e2e0f769c9bba296843;p=openbsd Changed boot messages and fixed Ultra160 boot messages. AHA-29160 Ultra160 verified working. --- diff --git a/sys/dev/ic/aic7xxx.c b/sys/dev/ic/aic7xxx.c index 5c4a961663d..cd8e2db882c 100644 --- a/sys/dev/ic/aic7xxx.c +++ b/sys/dev/ic/aic7xxx.c @@ -33,7 +33,7 @@ * SUCH DAMAGE. * * $FreeBSD: src/sys/dev/aic7xxx/aic7xxx.c,v 1.40 2000/01/07 23:08:17 gibbs Exp $ - * $OpenBSD: aic7xxx.c,v 1.20 2000/04/04 03:48:47 smurph Exp $ + * $OpenBSD: aic7xxx.c,v 1.21 2000/04/05 04:29:58 smurph Exp $ */ /* * A few notes on features of the driver. @@ -1378,7 +1378,7 @@ ahc_set_syncrate(ahc, devinfo, syncrate, period, offset, type, paused, done) * Print messages if we're verbose and at the end of a negotiation * cycle. */ - if (done && bootverbose) { + if (done) { if (offset != 0) { printf("%s: target %d synchronous at %sMHz, " "offset = 0x%x\n", ahc_name(ahc), @@ -2597,9 +2597,10 @@ ahc_handle_msg_reject(ahc, devinfo) struct tmode_tstate *tstate; /* note 8bit xfers */ - printf("%s:%c:%d: refuses WIDE negotiation. Using " - "8bit transfers\n", ahc_name(ahc), - devinfo->channel, devinfo->target); + if (bootverbose) + printf("%s:%c:%d: refuses WIDE negotiation. Using " + "8bit transfers\n", ahc_name(ahc), + devinfo->channel, devinfo->target); ahc_set_width(ahc, devinfo, MSG_EXT_WDTR_BUS_8_BIT, AHC_TRANS_ACTIVE|AHC_TRANS_GOAL, @@ -2633,14 +2634,16 @@ ahc_handle_msg_reject(ahc, devinfo) AHC_TRANS_ACTIVE|AHC_TRANS_GOAL, /*paused*/TRUE, /*done*/TRUE); - printf("%s:%c:%d: refuses synchronous negotiation. " - "Using asynchronous transfers\n", - ahc_name(ahc), - devinfo->channel, devinfo->target); + if (bootverbose) + printf("%s:%c:%d: refuses synchronous negotiation. " + "Using asynchronous transfers\n", + ahc_name(ahc), + devinfo->channel, devinfo->target); } else if ((scb->hscb->control & MSG_SIMPLE_Q_TAG) != 0) { - printf("%s:%c:%d: refuses tagged commands. Performing " - "non-tagged I/O\n", ahc_name(ahc), - devinfo->channel, devinfo->target); + if (bootverbose) + printf("%s:%c:%d: refuses tagged commands. Performing " + "non-tagged I/O\n", ahc_name(ahc), + devinfo->channel, devinfo->target); ahc_set_tags(ahc, devinfo, FALSE); diff --git a/sys/dev/pci/ahc_pci.c b/sys/dev/pci/ahc_pci.c index 9158bea15d0..2097e308fcb 100644 --- a/sys/dev/pci/ahc_pci.c +++ b/sys/dev/pci/ahc_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ahc_pci.c,v 1.13 2000/03/22 04:01:07 smurph Exp $ */ +/* $OpenBSD: ahc_pci.c,v 1.14 2000/04/05 04:29:59 smurph Exp $ */ /* $NetBSD: ahc_pci.c,v 1.9 1996/10/21 22:56:24 thorpej Exp $ */ /* @@ -428,7 +428,8 @@ void *aux; sfunct = ahc_inb(ahc, SFUNCT) & ~ALT_MODE; ahc_outb(ahc, SFUNCT, sfunct | ALT_MODE); optionmode = ahc_inb(ahc, OPTIONMODE); - printf("OptionMode = %x\n", optionmode); + if (bootverbose) + printf("%s: OptionMode = %x\n", ahc_name(ahc), optionmode); ahc_outb(ahc, OPTIONMODE, OPTIONMODE_DEFAULTS); /* Send CRC info in target mode every 4K */ ahc_outb(ahc, TARGCRCCNT, 0);