Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amiga/dev Change reading the ATAPI IDENTIFY data: ...



details:   https://anonhg.NetBSD.org/src/rev/d4cfa8f5c7bd
branches:  trunk
changeset: 471954:d4cfa8f5c7bd
user:      mhitch <mhitch%NetBSD.org@localhost>
date:      Fri Apr 16 03:29:49 1999 +0000

description:
Change reading the ATAPI IDENTIFY data:  a ZIP drive responds differently than my CDROM
and will cause the drive to hang on boot.  The ZIP drive still does not work, but the
system no longer will hang,

diffstat:

 sys/arch/amiga/dev/idesc.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r 26a87b2ebf11 -r d4cfa8f5c7bd sys/arch/amiga/dev/idesc.c
--- a/sys/arch/amiga/dev/idesc.c        Fri Apr 16 02:18:07 1999 +0000
+++ b/sys/arch/amiga/dev/idesc.c        Fri Apr 16 03:29:49 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: idesc.c,v 1.38 1999/04/01 16:22:57 mhitch Exp $        */
+/*     $NetBSD: idesc.c,v 1.39 1999/04/16 03:29:49 mhitch Exp $        */
 
 /*
  * Copyright (c) 1994 Michael L. Hitch
@@ -458,7 +458,7 @@
                                continue;
                        }
                        if (idecommand(&sc->sc_ide[i], 0, 0, 0,
-                           sizeof(struct ataparams), ATAPI_IDENTIFY) != 0 ||
+                           DEV_BSIZE, ATAPI_IDENTIFY) != 0 ||
                            wait_for_drq(sc) != 0) {
 #ifdef DEBUG_ATAPI
                                printf("\nATAPI_IDENTIFY failed for drive %d",
@@ -466,10 +466,10 @@
 #endif
                                continue;
                        }
-                       len = rp->ide_cyl_lo + rp->ide_cyl_hi * 256;
+                       len = DEV_BSIZE;
 #ifdef DEBUG_ATAPI
                        printf("\nATAPI_IDENTIFY returned %d/%d bytes",
-                           len, sizeof(struct ataparams));
+                           rp->ide_cyl_lo + rp->ide_cyl_hi * 256, DEV_BSIZE);
 #endif
                        while (len) {
                                if (p < (u_short *)(&id + 1))



Home | Main Index | Thread Index | Old Index