Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/scsipi Add a new quirk value PQUIRK_CAP_SYNC for SCS...



details:   https://anonhg.NetBSD.org/src/rev/7d57c1b3b19f
branches:  trunk
changeset: 517821:7d57c1b3b19f
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Mon Nov 19 22:50:00 2001 +0000

description:
Add a new quirk value PQUIRK_CAP_SYNC for SCSI1 devices which support
sync transfers, and set PERIPH_CAP_SYNC for them in scsi_probe_device().
As per discussion on tech-kern.

diffstat:

 sys/dev/scsipi/scsiconf.c   |  9 +++++++--
 sys/dev/scsipi/scsipiconf.h |  3 ++-
 2 files changed, 9 insertions(+), 3 deletions(-)

diffs (54 lines):

diff -r 9c3b610d4538 -r 7d57c1b3b19f sys/dev/scsipi/scsiconf.c
--- a/sys/dev/scsipi/scsiconf.c Mon Nov 19 22:17:42 2001 +0000
+++ b/sys/dev/scsipi/scsiconf.c Mon Nov 19 22:50:00 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: scsiconf.c,v 1.169 2001/11/19 16:54:20 soren Exp $     */
+/*     $NetBSD: scsiconf.c,v 1.170 2001/11/19 22:50:00 tsutsui 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.169 2001/11/19 16:54:20 soren Exp $");
+__KERNEL_RCSID(0, "$NetBSD: scsiconf.c,v 1.170 2001/11/19 22:50:00 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -562,6 +562,8 @@
        {{T_DIRECT, T_FIXED,
         "SEAGATE ", "ST19171",          ""},     PQUIRK_NOMODESENSE},
        {{T_DIRECT, T_FIXED,
+        "SEAGATE ", "ST32430N",         ""},     PQUIRK_CAP_SYNC},
+       {{T_DIRECT, T_FIXED,
         "SEAGATE ", "ST34501FC       ", ""},     PQUIRK_NOMODESENSE},
        {{T_DIRECT, T_FIXED,
         "TOSHIBA ", "MK538FB         ", "6027"}, PQUIRK_NOLUNS},
@@ -838,6 +840,9 @@
                        periph->periph_cap |= PERIPH_CAP_SFTRESET;
                if ((inqbuf.flags3 & SID_RelAdr) != 0)
                        periph->periph_cap |= PERIPH_CAP_RELADR;
+       } else {
+               if (quirks & PQUIRK_CAP_SYNC)
+                       periph->periph_cap |= PERIPH_CAP_SYNC;
        }
 
        /*
diff -r 9c3b610d4538 -r 7d57c1b3b19f sys/dev/scsipi/scsipiconf.h
--- a/sys/dev/scsipi/scsipiconf.h       Mon Nov 19 22:17:42 2001 +0000
+++ b/sys/dev/scsipi/scsipiconf.h       Mon Nov 19 22:50:00 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: scsipiconf.h,v 1.63 2001/11/18 17:22:43 tsutsui Exp $  */
+/*     $NetBSD: scsipiconf.h,v 1.64 2001/11/19 22:50:00 tsutsui Exp $  */
 
 /*-
  * Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -448,6 +448,7 @@
 #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 */
 
 
 /*



Home | Main Index | Thread Index | Old Index