Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/scsipi Change PQUIRK_CAP_SYNC to set PERIPH_CAP_SYNC...



details:   https://anonhg.NetBSD.org/src/rev/4e3685bdb528
branches:  trunk
changeset: 526987:4e3685bdb528
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Wed May 15 11:43:22 2002 +0000

description:
Change PQUIRK_CAP_SYNC to set PERIPH_CAP_SYNC aslo for devices that
improperly claim to only support DT clocking.
Add a PQUIRK_CAP_WIDE16 quirk.
Add a quirk for IBM DXHS36D SCSI disk (claims to only support DT).

diffstat:

 sys/dev/scsipi/scsiconf.c   |  15 ++++++++++-----
 sys/dev/scsipi/scsipiconf.h |   5 +++--
 2 files changed, 13 insertions(+), 7 deletions(-)

diffs (63 lines):

diff -r 0a7198332611 -r 4e3685bdb528 sys/dev/scsipi/scsiconf.c
--- a/sys/dev/scsipi/scsiconf.c Wed May 15 11:19:38 2002 +0000
+++ b/sys/dev/scsipi/scsiconf.c Wed May 15 11:43:22 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: scsiconf.c,v 1.183 2002/05/05 06:01:28 thorpej Exp $   */
+/*     $NetBSD: scsiconf.c,v 1.184 2002/05/15 11:43:22 bouyer Exp $    */
 
 /*-
  * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -55,7 +55,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: scsiconf.c,v 1.183 2002/05/05 06:01:28 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: scsiconf.c,v 1.184 2002/05/15 11:43:22 bouyer Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -507,6 +507,10 @@
        {{T_DIRECT, T_FIXED,
         "IBM",      "0664",             ""},     PQUIRK_AUTOSAVE},
        {{T_DIRECT, T_FIXED,
+       /* improperly report DT-only sync mode */
+        "IBM     ", "DXHS36D",          ""},
+                               PQUIRK_CAP_SYNC|PQUIRK_CAP_WIDE16},
+       {{T_DIRECT, T_FIXED,
         "IBM     ", "H3171-S2",         ""},
                                PQUIRK_NOLUNS|PQUIRK_AUTOSAVE},
        {{T_DIRECT, T_FIXED,
@@ -868,10 +872,11 @@
                        if (inqbuf.flags4 & SID_QAS)
                                periph->periph_cap |= PERIPH_CAP_QAS;
                }
-       } else {
-               if (quirks & PQUIRK_CAP_SYNC)
-                       periph->periph_cap |= PERIPH_CAP_SYNC;
        }
+       if (quirks & PQUIRK_CAP_SYNC)
+               periph->periph_cap |= PERIPH_CAP_SYNC;
+       if (quirks & PQUIRK_CAP_WIDE16)
+               periph->periph_cap |= PERIPH_CAP_WIDE16;
 
        /*
         * Now apply any quirks from the table.
diff -r 0a7198332611 -r 4e3685bdb528 sys/dev/scsipi/scsipiconf.h
--- a/sys/dev/scsipi/scsipiconf.h       Wed May 15 11:19:38 2002 +0000
+++ b/sys/dev/scsipi/scsipiconf.h       Wed May 15 11:43:22 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: scsipiconf.h,v 1.67 2002/04/23 09:09:55 bouyer Exp $   */
+/*     $NetBSD: scsipiconf.h,v 1.68 2002/05/15 11:43:22 bouyer Exp $   */
 
 /*-
  * Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -452,7 +452,8 @@
 #define PQUIRK_NO_FLEX_PAGE    0x00020000      /* does not support flex geom
                                                   page */
 #define PQUIRK_NOBIGMODESENSE  0x00040000      /* has no big mode-sense op */
-#define PQUIRK_CAP_SYNC                0x00080000      /* SCSI1 device with sync op */
+#define PQUIRK_CAP_SYNC                0x00080000      /* SCSI device with ST sync op*/
+#define PQUIRK_CAP_WIDE16      0x00100000      /* SCSI device with ST wide op*/
 
 
 /*



Home | Main Index | Thread Index | Old Index