diff options
| author | tsutsui <tsutsui@NetBSD.org> | 2003-10-18 07:44:51 +0000 |
|---|---|---|
| committer | tsutsui <tsutsui@NetBSD.org> | 2003-10-18 07:44:51 +0000 |
| commit | fd5c63296ff29ab74a1eec30584d7bcc0cd42f6a (patch) | |
| tree | bbf740b0b01069d4fa1c8c489f7e962f8b0e972d /sys/dev/ic | |
| parent | 810d184699fe4b2a0569c20e1e7a6e70a5cdb11d (diff) | |
Fix some attach messages for new ahc(4).
Diffstat (limited to 'sys/dev/ic')
| -rw-r--r-- | sys/dev/ic/aic77xx.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/sys/dev/ic/aic77xx.c b/sys/dev/ic/aic77xx.c index 94aed32ac88..598ecdff760 100644 --- a/sys/dev/ic/aic77xx.c +++ b/sys/dev/ic/aic77xx.c @@ -1,4 +1,4 @@ -/* $NetBSD: aic77xx.c,v 1.3 2003/04/19 19:33:29 fvdl Exp $ */ +/* $NetBSD: aic77xx.c,v 1.4 2003/10/18 07:44:51 tsutsui Exp $ */ /* * Common routines for AHA-27/284X and aic7770 motherboard SCSI controllers. @@ -31,7 +31,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: aic77xx.c,v 1.3 2003/04/19 19:33:29 fvdl Exp $"); +__KERNEL_RCSID(0, "$NetBSD: aic77xx.c,v 1.4 2003/10/18 07:44:51 tsutsui Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -87,7 +87,6 @@ int ahc_aic77xx_attach(ahc) struct ahc_softc *ahc; { - char *id_string; u_int8_t sblkctl; u_int8_t sblkctl_orig; u_int8_t hostconf; @@ -101,16 +100,14 @@ ahc_aic77xx_attach(ahc) ahc_outb(ahc, SBLKCTL, sblkctl); sblkctl = ahc_inb(ahc, SBLKCTL); if (sblkctl != sblkctl_orig) { - id_string = "aic7770 >= Rev E, "; + printf("%s: aic7770 >= Rev E: R/O autoflush enabled\n", + ahc_name(ahc)); /* * Ensure autoflush is enabled */ sblkctl &= ~AUTOFLUSHDIS; ahc_outb(ahc, SBLKCTL, sblkctl); - } else - id_string = "aic7770 <= Rev C, "; - - printf("%s: %s", ahc_name(ahc), id_string); + } /* Setup the FIFO threshold and the bus off time */ hostconf = ahc_inb(ahc, HOSTCONF); |
