Subject: Re: AV Weirdness
To: None <khym@azeotrope.org>
From: Takeshi Shibagaki <sibagaki@lsi.melco.co.jp>
List: port-mac68k
Date: 11/14/2001 14:07:49
Hi,

>>>>> On Tue, 13 Nov 2001 22:34:21 -0600 (CST), Dave Huang <khym@azeotrope.org> said:

Dave> On Tue, 13 Nov 2001, Michael R. Zucca wrote:
>> I'm trying to do an install on a 660AV that I have and it seems there is
>> some SCSI weirdness going on.

Dave> Yeah, I just mentioned this earlier today :)
Dave> http://mail-index.netbsd.org/port-mac68k/2001/11/13/0007.html

Do you see my previous mail? My centris660av is working with following
patch.

If you want to get a fixed -current kernel as temporary, may I make it?

Takeshi Shibagaki
sibagaki@lsi.melco.co.jp

--- esp.c.orig  Thu Apr 26 02:53:14 2001
+++ esp.c       Sun Oct 21 02:48:05 2001
@@ -404,8 +408,13 @@
                return 0;
        }
 
+#if 0
        cnt = esc->sc_dmasize;
        if (esc->sc_dmasize == 0) {
+#else
+       cnt = *esc->sc_dmalen;
+       if (*esc->sc_dmalen == 0) {
+#endif
                printf("data interrupt, but no count left.");
        }
 
@@ -452,9 +461,17 @@
        sc->sc_espstat = (u_char) espstat;
        sc->sc_espintr = (u_char) espintr;
        *esc->sc_dmaaddr = p;
+#if 0
        esc->sc_dmasize = cnt;
+#else
+       *esc->sc_dmalen = cnt;
+#endif
 
+#if 0
        if (esc->sc_dmasize == 0) {
+#else
+       if (*esc->sc_dmalen == 0) {
+#endif
                esc->sc_tc = NCRSTAT_TC;
        }
        sc->sc_espstat |= esc->sc_tc;