Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic In wdcccommand(), load wd_features, not wd_precom...



details:   https://anonhg.NetBSD.org/src/rev/d63b5d62e00b
branches:  trunk
changeset: 566980:d63b5d62e00b
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu May 27 02:09:26 2004 +0000

description:
In wdcccommand(), load wd_features, not wd_precomp, with the features
provided by callers.

>From Jordan Rhody @ Wasabi.

diffstat:

 sys/dev/ic/wdc.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 93b1037932f2 -r d63b5d62e00b sys/dev/ic/wdc.c
--- a/sys/dev/ic/wdc.c  Thu May 27 00:51:24 2004 +0000
+++ b/sys/dev/ic/wdc.c  Thu May 27 02:09:26 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wdc.c,v 1.176 2004/05/25 20:42:41 thorpej Exp $ */
+/*     $NetBSD: wdc.c,v 1.177 2004/05/27 02:09:26 thorpej Exp $ */
 
 /*
  * Copyright (c) 1998, 2001, 2003 Manuel Bouyer.  All rights reserved.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wdc.c,v 1.176 2004/05/25 20:42:41 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wdc.c,v 1.177 2004/05/27 02:09:26 thorpej Exp $");
 
 #ifndef WDCDEBUG
 #define WDCDEBUG
@@ -1856,8 +1856,8 @@
        /* Select drive, head, and addressing mode. */
        bus_space_write_1(chp->cmd_iot, chp->cmd_iohs[wd_sdh], 0,
            WDSD_IBM | (drive << 4) | head);
-       /* Load parameters. wd_features(ATA/ATAPI) = wd_precomp(ST506) */
-       bus_space_write_1(chp->cmd_iot, chp->cmd_iohs[wd_precomp], 0,
+       /* Load parameters into the wd_features register. */
+       bus_space_write_1(chp->cmd_iot, chp->cmd_iohs[wd_features], 0,
            precomp);
        bus_space_write_1(chp->cmd_iot, chp->cmd_iohs[wd_cyl_lo], 0, cylin);
        bus_space_write_1(chp->cmd_iot, chp->cmd_iohs[wd_cyl_hi],



Home | Main Index | Thread Index | Old Index