#
1.23 |
|
28-Feb-2022 |
krw |
Shuffle some SCSIDEBUG code to simplify code, tersify the emitted verbiage, and show INQUIRY header & vendor info early so humans can more easily determine what scsi_probe_link() will do.
No functional change outside SCSIDEBUG.
|
Revision tags: OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
|
#
1.22 |
|
27-Jul-2020 |
krw |
Refactor scsi_show_flags() to allow 32-bit flags. Display unnamed flags as one hex value after named flags. Make flag name arrays NULL terminated rathar than fixed size.
|
Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE
|
#
1.21 |
|
30-Sep-2019 |
krw |
SC_DEBUGN is not spelled SCSI_DEBUGN.
|
#
1.20 |
|
29-Sep-2019 |
krw |
Restore SC_DEBUGN() as it was used outside sys/scsi. Some things are not compiled on amd64!
|
#
1.19 |
|
29-Sep-2019 |
krw |
Introduce SC_DEBUG_SENSE() and simplify code by eliminating a bunch of three line SCSIDEBUG chunks.
|
#
1.18 |
|
29-Sep-2019 |
krw |
Continue SCSIDEBUG cleanup by nuking pointles SC_DEBUGN() #define.
|
#
1.17 |
|
29-Sep-2019 |
krw |
Tweak some whitespace to make autoindenter happy. Use consistent naming idiom for the debug functions.
|
#
1.16 |
|
27-Sep-2019 |
krw |
Use consistent idiom/naming convention for the the #include guards. Spelunkers using grep are easily confused.
|
#
1.15 |
|
27-Sep-2019 |
krw |
Add/tweak #endif comments to make spelunking via grep more rewarding.
|
#
1.14 |
|
27-Sep-2019 |
krw |
Shuffle and consolidate SCSIDEBUG declarations into fewer sections in more intuitive locations.
|
Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
|
#
1.13 |
|
11-Nov-2017 |
mlarkin |
Fix a broken compilation when using SCSIDEBUG options(4).
Diff from Carlos Cardenas, thanks!
ok krw@
|
Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.12 |
|
12-Mar-2016 |
krw |
Standardize on calling local scsi_link variables 'link' instead of 'sc_link'. 'sc_link' is a field in the various device *_softc structures, where the sc_ prefix was for 'softc'. Reduces potential mental confusion. Newer code from down under was already using 'link'.
No functional change.
Prompted by bluhm@'s adventures in scsi. ok dlg@ jmatthew@
|
Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE
|
#
1.11 |
|
07-Jun-2015 |
krw |
More damned eye searing whitespace.
|
Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE
|
#
1.10 |
|
21-Jun-2011 |
matthew |
scsi_link's scsibus field is redundant with bus->sc_dev.dv_unit, so remove two of the remaining three uses of it. (softraid(4) still uses it at the moment, so the field and its assignment in scsibusattach() stay for now...)
ok krw@; feedback and "tenteiramen rejid"(!?) miod@
|
Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
|
#
1.9 |
|
10-Nov-2008 |
deraadt |
clean namespace a fair bit; wrap kernel-use-only structures and gunk in #ifdef _KERNEL
|
Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE SMP_SYNC_A SMP_SYNC_B
|
#
1.8 |
|
25-Jan-2004 |
krw |
Allow restriction of SCSIDEBUG output to particular scsi buses in addition to device targets and luns.
ok deraadt@.
|
Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE SMP_BASE UBC_BASE UBC_SYNC_A UBC_SYNC_B kame_19991208
|
#
1.7 |
|
05-Sep-1997 |
millert |
branches: 1.7.12; Add SCSITERSE option which omits the (large) ASC/ASCQ table. Old scsi error printing code is now gone.
|
#
1.6 |
|
22-Aug-1997 |
millert |
Add more detailed SCSI error printing by Matthew Jacob. Enabled by default. Use "option SCSIVERBOSE=0" to turn off (only added 8Kb to my kernel). From the NetBSD commit message: Add in more detailed SCSI error printing, based off of final SCSI-2 spec. This will also print out things like progress indicator errors, and will also dump out additional sense bytes that haven't been decoded.
|
Revision tags: OPENBSD_2_1_BASE
|
#
1.5 |
|
14-Apr-1997 |
downsj |
Merge in various pieces of current NetBSD scsi code, including but not limited to:
* New changer driver. * Better optical support. * Different `done' semantics. * New quirks for SCSI QIC tape driver, SCSI floppy drives. * Better support for SCSI-I devices.
Everybody needs to test this.
|
#
1.4 |
|
28-Nov-1996 |
niklas |
Make SCSI debugging more dynamic, more targets and luns can be debugged simultaneously and which ones, as well as the verbosity, can be determined at runtime.
|
#
1.3 |
|
31-Oct-1996 |
niklas |
$OpenBSD RCSIDs + comment fix in sd.c
|
Revision tags: OPENBSD_2_0_BASE
|
#
1.2 |
|
10-Jun-1996 |
downsj |
Several changes: * Implemented NetBSD PR#2529, adding ZIP 100. * Added MTIOCTOP support to acd, cd, and sd. * Implemented eject on close for acd, cd, and sd.
`mt -f /dev/rcd0d offline' now ejects a mounted {acd|cd|sd} when it is unmounted.
|
#
1.1 |
|
18-Oct-1995 |
deraadt |
branches: 1.1.1; Initial revision
|
#
1.22 |
|
27-Jul-2020 |
krw |
Refactor scsi_show_flags() to allow 32-bit flags. Display unnamed flags as one hex value after named flags. Make flag name arrays NULL terminated rathar than fixed size.
|
Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE
|
#
1.21 |
|
30-Sep-2019 |
krw |
SC_DEBUGN is not spelled SCSI_DEBUGN.
|
#
1.20 |
|
29-Sep-2019 |
krw |
Restore SC_DEBUGN() as it was used outside sys/scsi. Some things are not compiled on amd64!
|
#
1.19 |
|
29-Sep-2019 |
krw |
Introduce SC_DEBUG_SENSE() and simplify code by eliminating a bunch of three line SCSIDEBUG chunks.
|
#
1.18 |
|
29-Sep-2019 |
krw |
Continue SCSIDEBUG cleanup by nuking pointles SC_DEBUGN() #define.
|
#
1.17 |
|
29-Sep-2019 |
krw |
Tweak some whitespace to make autoindenter happy. Use consistent naming idiom for the debug functions.
|
#
1.16 |
|
27-Sep-2019 |
krw |
Use consistent idiom/naming convention for the the #include guards. Spelunkers using grep are easily confused.
|
#
1.15 |
|
27-Sep-2019 |
krw |
Add/tweak #endif comments to make spelunking via grep more rewarding.
|
#
1.14 |
|
27-Sep-2019 |
krw |
Shuffle and consolidate SCSIDEBUG declarations into fewer sections in more intuitive locations.
|
Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
|
#
1.13 |
|
11-Nov-2017 |
mlarkin |
Fix a broken compilation when using SCSIDEBUG options(4).
Diff from Carlos Cardenas, thanks!
ok krw@
|
Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.12 |
|
12-Mar-2016 |
krw |
Standardize on calling local scsi_link variables 'link' instead of 'sc_link'. 'sc_link' is a field in the various device *_softc structures, where the sc_ prefix was for 'softc'. Reduces potential mental confusion. Newer code from down under was already using 'link'.
No functional change.
Prompted by bluhm@'s adventures in scsi. ok dlg@ jmatthew@
|
Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE
|
#
1.11 |
|
07-Jun-2015 |
krw |
More damned eye searing whitespace.
|
Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE
|
#
1.10 |
|
21-Jun-2011 |
matthew |
scsi_link's scsibus field is redundant with bus->sc_dev.dv_unit, so remove two of the remaining three uses of it. (softraid(4) still uses it at the moment, so the field and its assignment in scsibusattach() stay for now...)
ok krw@; feedback and "tenteiramen rejid"(!?) miod@
|
Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
|
#
1.9 |
|
10-Nov-2008 |
deraadt |
clean namespace a fair bit; wrap kernel-use-only structures and gunk in #ifdef _KERNEL
|
Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE SMP_SYNC_A SMP_SYNC_B
|
#
1.8 |
|
25-Jan-2004 |
krw |
Allow restriction of SCSIDEBUG output to particular scsi buses in addition to device targets and luns.
ok deraadt@.
|
Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE SMP_BASE UBC_BASE UBC_SYNC_A UBC_SYNC_B kame_19991208
|
#
1.7 |
|
05-Sep-1997 |
millert |
branches: 1.7.12; Add SCSITERSE option which omits the (large) ASC/ASCQ table. Old scsi error printing code is now gone.
|
#
1.6 |
|
22-Aug-1997 |
millert |
Add more detailed SCSI error printing by Matthew Jacob. Enabled by default. Use "option SCSIVERBOSE=0" to turn off (only added 8Kb to my kernel). From the NetBSD commit message: Add in more detailed SCSI error printing, based off of final SCSI-2 spec. This will also print out things like progress indicator errors, and will also dump out additional sense bytes that haven't been decoded.
|
Revision tags: OPENBSD_2_1_BASE
|
#
1.5 |
|
14-Apr-1997 |
downsj |
Merge in various pieces of current NetBSD scsi code, including but not limited to:
* New changer driver. * Better optical support. * Different `done' semantics. * New quirks for SCSI QIC tape driver, SCSI floppy drives. * Better support for SCSI-I devices.
Everybody needs to test this.
|
#
1.4 |
|
28-Nov-1996 |
niklas |
Make SCSI debugging more dynamic, more targets and luns can be debugged simultaneously and which ones, as well as the verbosity, can be determined at runtime.
|
#
1.3 |
|
31-Oct-1996 |
niklas |
$OpenBSD RCSIDs + comment fix in sd.c
|
Revision tags: OPENBSD_2_0_BASE
|
#
1.2 |
|
10-Jun-1996 |
downsj |
Several changes: * Implemented NetBSD PR#2529, adding ZIP 100. * Added MTIOCTOP support to acd, cd, and sd. * Implemented eject on close for acd, cd, and sd.
`mt -f /dev/rcd0d offline' now ejects a mounted {acd|cd|sd} when it is unmounted.
|
#
1.1 |
|
18-Oct-1995 |
deraadt |
branches: 1.1.1; Initial revision
|
#
1.21 |
|
30-Sep-2019 |
krw |
SC_DEBUGN is not spelled SCSI_DEBUGN.
|
#
1.20 |
|
29-Sep-2019 |
krw |
Restore SC_DEBUGN() as it was used outside sys/scsi. Some things are not compiled on amd64!
|
#
1.19 |
|
29-Sep-2019 |
krw |
Introduce SC_DEBUG_SENSE() and simplify code by eliminating a bunch of three line SCSIDEBUG chunks.
|
#
1.18 |
|
29-Sep-2019 |
krw |
Continue SCSIDEBUG cleanup by nuking pointles SC_DEBUGN() #define.
|
#
1.17 |
|
29-Sep-2019 |
krw |
Tweak some whitespace to make autoindenter happy. Use consistent naming idiom for the debug functions.
|
#
1.16 |
|
27-Sep-2019 |
krw |
Use consistent idiom/naming convention for the the #include guards. Spelunkers using grep are easily confused.
|
#
1.15 |
|
27-Sep-2019 |
krw |
Add/tweak #endif comments to make spelunking via grep more rewarding.
|
#
1.14 |
|
27-Sep-2019 |
krw |
Shuffle and consolidate SCSIDEBUG declarations into fewer sections in more intuitive locations.
|
Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
|
#
1.13 |
|
11-Nov-2017 |
mlarkin |
Fix a broken compilation when using SCSIDEBUG options(4).
Diff from Carlos Cardenas, thanks!
ok krw@
|
Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.12 |
|
12-Mar-2016 |
krw |
Standardize on calling local scsi_link variables 'link' instead of 'sc_link'. 'sc_link' is a field in the various device *_softc structures, where the sc_ prefix was for 'softc'. Reduces potential mental confusion. Newer code from down under was already using 'link'.
No functional change.
Prompted by bluhm@'s adventures in scsi. ok dlg@ jmatthew@
|
Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE
|
#
1.11 |
|
07-Jun-2015 |
krw |
More damned eye searing whitespace.
|
Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE
|
#
1.10 |
|
21-Jun-2011 |
matthew |
scsi_link's scsibus field is redundant with bus->sc_dev.dv_unit, so remove two of the remaining three uses of it. (softraid(4) still uses it at the moment, so the field and its assignment in scsibusattach() stay for now...)
ok krw@; feedback and "tenteiramen rejid"(!?) miod@
|
Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
|
#
1.9 |
|
10-Nov-2008 |
deraadt |
clean namespace a fair bit; wrap kernel-use-only structures and gunk in #ifdef _KERNEL
|
Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE SMP_SYNC_A SMP_SYNC_B
|
#
1.8 |
|
25-Jan-2004 |
krw |
Allow restriction of SCSIDEBUG output to particular scsi buses in addition to device targets and luns.
ok deraadt@.
|
Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE SMP_BASE UBC_BASE UBC_SYNC_A UBC_SYNC_B kame_19991208
|
#
1.7 |
|
05-Sep-1997 |
millert |
branches: 1.7.12; Add SCSITERSE option which omits the (large) ASC/ASCQ table. Old scsi error printing code is now gone.
|
#
1.6 |
|
22-Aug-1997 |
millert |
Add more detailed SCSI error printing by Matthew Jacob. Enabled by default. Use "option SCSIVERBOSE=0" to turn off (only added 8Kb to my kernel). From the NetBSD commit message: Add in more detailed SCSI error printing, based off of final SCSI-2 spec. This will also print out things like progress indicator errors, and will also dump out additional sense bytes that haven't been decoded.
|
Revision tags: OPENBSD_2_1_BASE
|
#
1.5 |
|
14-Apr-1997 |
downsj |
Merge in various pieces of current NetBSD scsi code, including but not limited to:
* New changer driver. * Better optical support. * Different `done' semantics. * New quirks for SCSI QIC tape driver, SCSI floppy drives. * Better support for SCSI-I devices.
Everybody needs to test this.
|
#
1.4 |
|
28-Nov-1996 |
niklas |
Make SCSI debugging more dynamic, more targets and luns can be debugged simultaneously and which ones, as well as the verbosity, can be determined at runtime.
|
#
1.3 |
|
31-Oct-1996 |
niklas |
$OpenBSD RCSIDs + comment fix in sd.c
|
Revision tags: OPENBSD_2_0_BASE
|
#
1.2 |
|
10-Jun-1996 |
downsj |
Several changes: * Implemented NetBSD PR#2529, adding ZIP 100. * Added MTIOCTOP support to acd, cd, and sd. * Implemented eject on close for acd, cd, and sd.
`mt -f /dev/rcd0d offline' now ejects a mounted {acd|cd|sd} when it is unmounted.
|
#
1.1 |
|
18-Oct-1995 |
deraadt |
branches: 1.1.1; Initial revision
|
#
1.13 |
|
11-Nov-2017 |
mlarkin |
Fix a broken compilation when using SCSIDEBUG options(4).
Diff from Carlos Cardenas, thanks!
ok krw@
|
Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.12 |
|
12-Mar-2016 |
krw |
Standardize on calling local scsi_link variables 'link' instead of 'sc_link'. 'sc_link' is a field in the various device *_softc structures, where the sc_ prefix was for 'softc'. Reduces potential mental confusion. Newer code from down under was already using 'link'.
No functional change.
Prompted by bluhm@'s adventures in scsi. ok dlg@ jmatthew@
|
Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE
|
#
1.11 |
|
07-Jun-2015 |
krw |
More damned eye searing whitespace.
|
Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE
|
#
1.10 |
|
21-Jun-2011 |
matthew |
scsi_link's scsibus field is redundant with bus->sc_dev.dv_unit, so remove two of the remaining three uses of it. (softraid(4) still uses it at the moment, so the field and its assignment in scsibusattach() stay for now...)
ok krw@; feedback and "tenteiramen rejid"(!?) miod@
|
Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
|
#
1.9 |
|
10-Nov-2008 |
deraadt |
clean namespace a fair bit; wrap kernel-use-only structures and gunk in #ifdef _KERNEL
|
Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE SMP_SYNC_A SMP_SYNC_B
|
#
1.8 |
|
25-Jan-2004 |
krw |
Allow restriction of SCSIDEBUG output to particular scsi buses in addition to device targets and luns.
ok deraadt@.
|
Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE SMP_BASE UBC_BASE UBC_SYNC_A UBC_SYNC_B kame_19991208
|
#
1.7 |
|
05-Sep-1997 |
millert |
branches: 1.7.12; Add SCSITERSE option which omits the (large) ASC/ASCQ table. Old scsi error printing code is now gone.
|
#
1.6 |
|
22-Aug-1997 |
millert |
Add more detailed SCSI error printing by Matthew Jacob. Enabled by default. Use "option SCSIVERBOSE=0" to turn off (only added 8Kb to my kernel). From the NetBSD commit message: Add in more detailed SCSI error printing, based off of final SCSI-2 spec. This will also print out things like progress indicator errors, and will also dump out additional sense bytes that haven't been decoded.
|
Revision tags: OPENBSD_2_1_BASE
|
#
1.5 |
|
14-Apr-1997 |
downsj |
Merge in various pieces of current NetBSD scsi code, including but not limited to:
* New changer driver. * Better optical support. * Different `done' semantics. * New quirks for SCSI QIC tape driver, SCSI floppy drives. * Better support for SCSI-I devices.
Everybody needs to test this.
|
#
1.4 |
|
28-Nov-1996 |
niklas |
Make SCSI debugging more dynamic, more targets and luns can be debugged simultaneously and which ones, as well as the verbosity, can be determined at runtime.
|
#
1.3 |
|
31-Oct-1996 |
niklas |
$OpenBSD RCSIDs + comment fix in sd.c
|
Revision tags: OPENBSD_2_0_BASE
|
#
1.2 |
|
10-Jun-1996 |
downsj |
Several changes: * Implemented NetBSD PR#2529, adding ZIP 100. * Added MTIOCTOP support to acd, cd, and sd. * Implemented eject on close for acd, cd, and sd.
`mt -f /dev/rcd0d offline' now ejects a mounted {acd|cd|sd} when it is unmounted.
|
#
1.1 |
|
18-Oct-1995 |
deraadt |
branches: 1.1.1; Initial revision
|