Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/scsipi Fix formatting of scsi_quirk_patterns[] and w...



details:   https://anonhg.NetBSD.org/src/rev/9d5fad8173c2
branches:  trunk
changeset: 517749:9d5fad8173c2
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sun Nov 18 17:22:43 2001 +0000

description:
Fix formatting of scsi_quirk_patterns[] and wrap long lines.

diffstat:

 sys/dev/scsipi/scsiconf.c   |  38 +++++++++++++++++++++-----------------
 sys/dev/scsipi/scsipiconf.h |   5 +++--
 2 files changed, 24 insertions(+), 19 deletions(-)

diffs (136 lines):

diff -r 9f9f87429cbd -r 9d5fad8173c2 sys/dev/scsipi/scsiconf.c
--- a/sys/dev/scsipi/scsiconf.c Sun Nov 18 17:15:48 2001 +0000
+++ b/sys/dev/scsipi/scsiconf.c Sun Nov 18 17:22:43 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: scsiconf.c,v 1.166 2001/11/15 09:48:17 lukem Exp $     */
+/*     $NetBSD: scsiconf.c,v 1.167 2001/11/18 17:22:43 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.166 2001/11/15 09:48:17 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: scsiconf.c,v 1.167 2001/11/18 17:22:43 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -462,16 +462,16 @@
        {{T_CDROM, T_REMOV,
         "IBM     ", "CDRM00201     !F", "0724"}, PQUIRK_NOLUNS|PQUIRK_NOSYNC},
        {{T_CDROM, T_REMOV,
-        "ShinaKen", "CD-ROM DM-3x1S", "1.04"},   PQUIRK_NOLUNS},
+        "ShinaKen", "CD-ROM DM-3x1S",   "1.04"}, PQUIRK_NOLUNS},
        {{T_CDROM, T_REMOV,
         "JVC     ", "R2626",            ""},     PQUIRK_NOLUNS},
        {{T_CDROM, T_REMOV,
         "YAMAHA", "CRW8424S",           ""},     PQUIRK_NOLUNS},
        {{T_CDROM, T_REMOV,
-        "VMware", "Virtual",           "1.0"},
+        "VMware", "Virtual",            "1.0"},
                                PQUIRK_NOSTARTUNIT|PQUIRK_NODOORLOCK},
        {{T_CDROM, T_REMOV,
-        "LITE-ON", "LTR-12101B",       "LS38"},  PQUIRK_ONLYBIG},
+        "LITE-ON", "LTR-12101B",        "LS38"}, PQUIRK_ONLYBIG},
 
        {{T_DIRECT, T_FIXED,
         "MICROP  ", "1588-15MBSUN0669", ""},     PQUIRK_AUTOSAVE},
@@ -480,22 +480,23 @@
        {{T_OPTICAL, T_REMOV,
         "EPSON   ", "OMD-5010        ", "3.08"}, PQUIRK_NOLUNS},
        {{T_DIRECT, T_FIXED,
-        "TOSHIBA ","CD-ROM XM-3401TA", "0283"},  PQUIRK_CDROM|PQUIRK_NOLUNS},
+        "TOSHIBA ","CD-ROM XM-3401TA",  "0283"}, PQUIRK_CDROM|PQUIRK_NOLUNS},
        {{T_DIRECT, T_FIXED,
-        "TOSHIBA ", "CD-ROM DRIVE:XM", "1971"}, PQUIRK_CDROM|PQUIRK_NOLUNS},
+        "TOSHIBA ", "CD-ROM DRIVE:XM",  "1971"}, PQUIRK_CDROM|PQUIRK_NOLUNS},
        {{T_DIRECT, T_FIXED,
         "ADAPTEC ", "AEC-4412BD",       "1.2A"}, PQUIRK_NOMODESENSE},
        {{T_DIRECT, T_FIXED,
         "DEC     ", "RZ55     (C) DEC", ""},     PQUIRK_AUTOSAVE},
        {{T_DIRECT, T_FIXED,
-        "EMULEX  ", "MD21/S2     ESDI", "A00"},  PQUIRK_FORCELUNS|PQUIRK_AUTOSAVE},
+        "EMULEX  ", "MD21/S2     ESDI", "A00"},
+                               PQUIRK_FORCELUNS|PQUIRK_AUTOSAVE},
        /* Gives non-media hardware failure in response to start-unit command */
        {{T_DIRECT, T_FIXED,
-        "HITACHI", "DK515C",           "CP16"},  PQUIRK_NOSTARTUNIT},
+        "HITACHI", "DK515C",            "CP16"}, PQUIRK_NOSTARTUNIT},
        {{T_DIRECT, T_FIXED,
-        "HITACHI", "DK515C",           "CP15"},  PQUIRK_NOSTARTUNIT},
+        "HITACHI", "DK515C",            "CP15"}, PQUIRK_NOSTARTUNIT},
        {{T_DIRECT, T_FIXED,
-        "MICROP",  "1548-15MZ1077801", "HZ2P"},  PQUIRK_NOTAG},
+        "MICROP",  "1548-15MZ1077801",  "HZ2P"}, PQUIRK_NOTAG},
        {{T_DIRECT, T_FIXED,
         "HP      ", "C372",             ""},     PQUIRK_NOTAG},
        {{T_DIRECT, T_FIXED,
@@ -505,7 +506,8 @@
        {{T_DIRECT, T_FIXED,
         "IBM",      "0664",             ""},     PQUIRK_AUTOSAVE},
        {{T_DIRECT, T_FIXED,
-        "IBM     ", "H3171-S2",         ""},     PQUIRK_NOLUNS|PQUIRK_AUTOSAVE},
+        "IBM     ", "H3171-S2",         ""},
+                               PQUIRK_NOLUNS|PQUIRK_AUTOSAVE},
        {{T_DIRECT, T_FIXED,
         "IBM     ", "KZ-C",             ""},     PQUIRK_AUTOSAVE},
        /* Broken IBM disk */
@@ -572,7 +574,8 @@
        {{T_DIRECT, T_REMOV,
         "IOMEGA", "ZIP 100",            ""},     PQUIRK_NOMODESENSE},
        {{T_DIRECT, T_REMOV,
-        "IOMEGA", "ZIP 100",            "J.03"}, PQUIRK_NOMODESENSE|PQUIRK_NOLUNS},
+        "IOMEGA", "ZIP 100",            "J.03"},
+                               PQUIRK_NOMODESENSE|PQUIRK_NOLUNS},
        /* Letting the motor run kills floppy drives and disks quite fast. */
        {{T_DIRECT, T_REMOV,
         "TEAC", "FC-1",                 ""},     PQUIRK_NOSTARTUNIT},
@@ -636,15 +639,15 @@
        {{T_SCANNER, T_FIXED,
         "UMAX    ", "UMAX S-12       ", "V2.1"}, PQUIRK_NOLUNS},
        {{T_SCANNER, T_FIXED,
-        "ULTIMA  ", "A6000C          ", ""}, PQUIRK_NOLUNS},
+        "ULTIMA  ", "A6000C          ", ""},     PQUIRK_NOLUNS},
        {{T_PROCESSOR, T_FIXED,
-        "SYMBIOS", "", ""},     PQUIRK_NOLUNS},
+        "SYMBIOS",  "",                 ""},     PQUIRK_NOLUNS},
        {{T_PROCESSOR, T_FIXED,
         "LITRONIC", "PCMCIA          ", ""},     PQUIRK_NOLUNS},
        {{T_CHANGER, T_REMOV,
         "SONY    ", "CDL1100         ", ""},     PQUIRK_NOLUNS},
        {{T_ENCLOSURE, T_FIXED,
-        "SUN     ", "SENA            ", ""}, PQUIRK_NOLUNS},
+        "SUN     ", "SENA            ", ""},     PQUIRK_NOLUNS},
 };
 
 /*
@@ -845,7 +848,8 @@
        if (periph->periph_quirks & PQUIRK_CDROM) {
                periph->periph_quirks ^= PQUIRK_CDROM;
                inqbuf.dev_qual2 |= SID_REMOVABLE;
-               sa.sa_inqbuf.type = inqbuf.device = ((inqbuf.device & ~SID_REMOVABLE) | T_CDROM);
+               sa.sa_inqbuf.type = inqbuf.device =
+                   ((inqbuf.device & ~SID_REMOVABLE) | T_CDROM);
                sa.sa_inqbuf.removable = T_REMOV;
        }
 
diff -r 9f9f87429cbd -r 9d5fad8173c2 sys/dev/scsipi/scsipiconf.h
--- a/sys/dev/scsipi/scsipiconf.h       Sun Nov 18 17:15:48 2001 +0000
+++ b/sys/dev/scsipi/scsipiconf.h       Sun Nov 18 17:22:43 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: scsipiconf.h,v 1.62 2001/10/14 20:31:24 bouyer Exp $   */
+/*     $NetBSD: scsipiconf.h,v 1.63 2001/11/18 17:22:43 tsutsui Exp $  */
 
 /*-
  * Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -445,7 +445,8 @@
 #define        PQUIRK_NOSENSE          0x00004000      /* can't REQUEST SENSE */
 #define PQUIRK_ONLYBIG         0x00008000      /* only use SCSI_{R,W}_BIG */
 #define PQUIRK_BYTE5_ZERO      0x00010000      /* byte5 in capacity is wrong */
-#define PQUIRK_NO_FLEX_PAGE    0x00020000      /* does not support flex geom page */
+#define PQUIRK_NO_FLEX_PAGE    0x00020000      /* does not support flex geom
+                                                  page */
 #define PQUIRK_NOBIGMODESENSE  0x00040000      /* has no big mode-sense op */
 
 



Home | Main Index | Thread Index | Old Index