Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-02-06 | Try to reduce the lying, hyperbolic or obsolete commentary on | Kenneth R Westerback | |
the relationships between various scsi structs. | |||
2020-02-05 | Ooops. Missed a file in nuke of scsi_minphys. mpath_minphys() needs to | Kenneth R Westerback | |
check dev_minphys for NULL before calling it. | |||
2020-02-05 | Nuke unnecessary abstraction 'scsi_minphys()' which just calls | Kenneth R Westerback | |
'minphys()'. Just use & check for NULL instead, since 'minphys()' is always called on the code path ([cd|sd|st]minphys) that calls physio(). | |||
2020-01-27 | Make the commonalities of cdminphys, sdminphys and stminphys more | Kenneth R Westerback | |
obvious by consistently using the variable names and idiom of sdminphys. No functional change. | |||
2020-01-26 | Shuffle some names around to make reading the code less headache | Kenneth R Westerback | |
inducing. Rename scsi_adapter member 'scsi_minphys' to 'dev_minphys' to reflect what it is supposed to do. Use consistent naming convention (<dev>_minphys) for the actual device functions. No functional change. | |||
2020-01-25 | Ensure scsi_minphys() is always called on the physio() path. | Kenneth R Westerback | |
Will allow simplification of individual driver *minphys() functions. ok jmatthew@ as part of larger diff | |||
2020-01-24 | cleanup unused headers generated by config | Jonathan Gray | |
ok tedu@ krw@ deraadt@ | |||
2020-01-23 | Use a consistant idiom/format when declaring scsi_adapter structures | Kenneth R Westerback | |
in drivers. Terse one liners, NULLs instead of 0's, explicitly specify all members, etc. Nuke #ifdef notyet blocks related to the scsi_adapter in aic. No intentional functional change. ok tedu@ | |||
2020-01-22 | scsi_delay(): sleep without lbolt | cheloha | |
If we want to sleep for a multiple of seconds we can do that without involving lbolt. This may cause some paths to sleep longer than they have on average, as sleeping on lbolt wakes you up within one second, not after one second. If this is a problem we will need to shorten the intervals given to scsi_delay(). With insight from deraadt@. ok krw@ | |||
2019-12-08 | Various cleanup tweaks. 'return' is not a function. KNF. Whitespace, | Kenneth R Westerback | |
Comment fixes. | |||
2019-12-08 | Various cleanup tweaks. 'return' is not a function. KNF. Whitespace, | Kenneth R Westerback | |
Comment fixes. | |||
2019-12-07 | Various cleanup tweaks. 'return' is not a function. KNF. Whitespace, | Kenneth R Westerback | |
Comment fixes. | |||
2019-12-07 | Various cleanup tweaks. 'return' is not a function. KNF. Whitespace, | Kenneth R Westerback | |
Comment fixes. | |||
2019-12-07 | Various cleanup tweaks. 'return' is not a function. KNF. Whitespace, | Kenneth R Westerback | |
Comment fixes. | |||
2019-12-06 | Various cleanup tweaks. 'return' is not a function. KNF. Whitespace, | Kenneth R Westerback | |
Comment fixes. | |||
2019-12-06 | Various cleanup tweaks. 'return' is not a function. KNF. Whitespace, | Kenneth R Westerback | |
Comment fixes. | |||
2019-12-06 | Various cleanup tweaks. 'return' is not a function. KNF. Whitespace, | Kenneth R Westerback | |
Comment fixes. | |||
2019-12-05 | Various cleanup tweaks. 'return' is not a function. KNF. Whitespace, | Kenneth R Westerback | |
Comment fixes. | |||
2019-12-05 | Don't discard error from mode sense (6) if mode sense (10) is | Kenneth R Westerback | |
not attempted. | |||
2019-12-05 | Shrink scsi_mode_do_sense() parameter list by eliminating the three | Kenneth R Westerback | |
pointers returning possible block descriptor values for block size, block count and density. Most calls were passing "NULL, NULL, NULL" since they did not care. Call scsi_parse_blkdesc() directly in those few cases where one or more of the values is of interest. No intentional functional change. | |||
2019-12-05 | No need for 'byte2' parameter to scsi_mode_sense[_big]() since we | Kenneth R Westerback | |
always pass 0. i.e. never disable block descriptors, never accept long LBA values. | |||
2019-12-05 | Move prototypes for scsi_mode_sense(), scsi_mode_sense_big(), | Kenneth R Westerback | |
scsi_mode_sense_page() and scsi_mode_sense_big_page() into scsi_base.c. They are just internal helper functions for scsi_do_mode_sense(). | |||
2019-12-04 | Convert infinite sleeps to {m,t}sleep_nsec(9). | Martin Pieuchot | |
ok krw@, jca@ | |||
2019-12-03 | Check for expected mode sense page code as well as expected mode page length ↵ | Kenneth R Westerback | |
when constructing the pointer to the page data. Remove now unneeded DISK_PGCODE(). Usual misc whitespace/modernization tweaks to functions being modified. | |||
2019-12-03 | Add display of mode sense data to SCSIDEBUG. | Kenneth R Westerback | |
2019-12-02 | Have SCSIDEBUG show the number of bytes of VPD inquiry data received, | Kenneth R Westerback | |
not the number of bytes that were available in the buffer. | |||
2019-12-02 | Don't forget the scsi_vpd_header when calculating the number of bytes | Kenneth R Westerback | |
obtained by scsi_inquire_vpd(). | |||
2019-12-01 | Tweak variable names to be consistent with 'pg_code' and 'pg_length' | Kenneth R Westerback | |
field names in sense mode structs. | |||
2019-12-01 | Make prototype and implementation signatures the same by removing | Kenneth R Westerback | |
'const' from the only two 'const int' instances. | |||
2019-12-01 | Don't overwrite original error returned by scsi_do_mode_sense(). | Kenneth R Westerback | |
2019-11-29 | DISK_PGCODE() #define includes a check for NULL, so no need to | Kenneth R Westerback | |
do the same check before invoking it. | |||
2019-11-29 | Add defines for changer mode page codes. Move AUDIO_PAGE define to | Kenneth R Westerback | |
nestle amoung its friends. | |||
2019-11-28 | Abstract mode sense block descriptor parsing into a separate function. | Kenneth R Westerback | |
2019-11-28 | Align an annoying comment. | Kenneth R Westerback | |
2019-11-28 | Always pass a pointer to 'big' to scsi_do_mode_sense(). | Kenneth R Westerback | |
Sets up some simplifications. | |||
2019-11-26 | Reinitialize 'err' to ensure we are not checking a stale value. | Kenneth R Westerback | |
Discovered by and ok tim@ | |||
2019-11-26 | Don't zero existing values for density, block_count and block_size in | Kenneth R Westerback | |
scsi_do_mode_sense(). Just update the values when valid data is available. Initialize the variables passed to scsi_do_mode_sense() in the one instance where they weren't already set. Fixes issue with softraid crypto volumes on 4K-sector disks. Found, fix tested, and ok tim@ | |||
2019-11-25 | Use scsi_read_cap[10|16] instead of re-rolling the code. | Kenneth R Westerback | |
More careful initialization, better error/debug messages. | |||
2019-11-25 | Move struct scsi_read_cap_data and struct scsi_read_cap_data_16 to | Kenneth R Westerback | |
scsi_all.h. Add scsi_read_cap_10() and scsi_read_cap_16() functions to scsi_base.c, i.e. move logic to do actual READ_CAPACITY commands out of sd_read_cap() and sd_read_cap_16(). This will allow the READ_CAPACITY code to be reused by cd(4). Return -1 for errors where the error code is just discarded, reducing ENOMEM, ENXIO, EIO uses. No intentional functional change. | |||
2019-11-23 | Consistently use ISSET() to check for set flags. | Kenneth R Westerback | |
2019-11-23 | Consistently use !ISSET() to check for unset flags. | Kenneth R Westerback | |
2019-11-23 | Consistently use SET() to set bits. | Kenneth R Westerback | |
2019-11-22 | Be consistent and always use CLR() to clear flags. | Kenneth R Westerback | |
2019-11-21 | Be consistent and always use [!]ISSET() to test flags in xs->flags. | Kenneth R Westerback | |
2019-11-21 | Be consistent and always use SET() to set flags in xs->flags. | Kenneth R Westerback | |
2019-11-10 | Tedu scsi_scanner.h as krw@ intended to do | Patrick Wildt | |
2019-11-09 | Make sure that SDEV_NOSYNC abd SDEV_NOWIDE quirks are not | Kenneth R Westerback | |
inadvertantly set on devices for which they are irrelevant or incorrect. Lets these device operate at full speed. ok sthen@ deraadt@ | |||
2019-11-09 | Shuffle sd_get_parms() logic to ensure we only update sc->params with | Kenneth R Westerback | |
a complete set of validated (possibly fictitious) data. Add SCSIDEBUG output showing mismatch between disksize and cyls * heads * sectors. | |||
2019-11-09 | Fix SCSIDEBUG display of VPD inquiry data. | Kenneth R Westerback | |
Remove extraneous whitespace in SCSIDEBUG read capacity display. | |||
2019-11-09 | Fix SCSIDEBUG display of VPD inquiry data. | Kenneth R Westerback | |
Remove extraneous whitespace in SCSIDEBUG read capacity display. |