Subject: Re: Missing atapibus target 1
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Gary Duzan <gary@duzan.org>
List: current-users
Date: 10/14/2003 20:04:51
In Message <20031014204453.GB1362@antioche.eu.org> ,
Manuel Bouyer <bouyer@antioche.eu.org> wrote:
=>Sorry, I forgot another test. Please try attached patch.
That fixed it; I get wd0, wd1, and cd0, no problems. Thanks.
Gary Duzan
=>--
=>Manuel Bouyer <bouyer@antioche.eu.org>
=> NetBSD: 24 ans d'experience feront toujours la difference
=>--
=>
=>Index: wdc.c
=>===================================================================
=>RCS file: /cvsroot/src/sys/dev/ic/wdc.c,v
=>retrieving revision 1.140
=>diff -u -r1.140 wdc.c
=>--- wdc.c 2003/10/12 19:28:50 1.140
=>+++ wdc.c 2003/10/14 20:43:24
=>@@ -618,9 +618,9 @@
=> chp->wdc ? chp->wdc->sc_dev.dv_xname : "wdcprobe",
=> chp->channel, st0, st1), DEBUG_PROBE);
=>
=>- if ((st0 & 0x7f) == 0x7f || st0 == WDSD_IBM)
=>+ if (st0 == 0xff || st0 == WDSD_IBM)
=> ret_value &= ~0x01;
=>- if ((st1 & 0x7f) == 0x7f || st1 == (WDSD_IBM | 0x10))
=>+ if (st1 == 0xff || st1 == (WDSD_IBM | 0x10))
=> ret_value &= ~0x02;
=> /* Register writability test, drive 0. */
=> if (ret_value & 0x01) {
=>@@ -1188,8 +1188,6 @@
=> end:
=> if (er0 != 0x01 && er0 != 0x81)
=> drv_mask &= ~0x01;
=>- if (er1 != 0x01)
=>- drv_mask &= ~0x02;
=> WDCDEBUG_PRINT(("%s:%d:0: after reset, sc=0x%x sn=0x%x "
=> "cl=0x%x ch=0x%x\n",
=> chp->wdc ? chp->wdc->sc_dev.dv_xname : "wdcprobe",
=>