Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Fix some attach messages for new ahc(4).
details: https://anonhg.NetBSD.org/src/rev/41a9db131172
branches: trunk
changeset: 553522:41a9db131172
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Oct 18 07:44:51 2003 +0000
description:
Fix some attach messages for new ahc(4).
diffstat:
sys/dev/ic/aic77xx.c | 13 +++++--------
1 files changed, 5 insertions(+), 8 deletions(-)
diffs (46 lines):
diff -r 6c7d862e5520 -r 41a9db131172 sys/dev/ic/aic77xx.c
--- a/sys/dev/ic/aic77xx.c Sat Oct 18 07:41:26 2003 +0000
+++ b/sys/dev/ic/aic77xx.c Sat Oct 18 07:44:51 2003 +0000
@@ -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 @@
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_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);
Home |
Main Index |
Thread Index |
Old Index