Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-09-01 | Stop setting d_bbsize and d_sbsize. Nobody has paid | Kenneth R Westerback | |
any attention for some time. ok otto@ as part of larger diff | |||
2022-01-11 | spelling | Jonathan Gray | |
2021-10-24 | Constify struct cfattach. | Martin Pieuchot | |
ok visa@ a long time ago, ok krw@ | |||
2021-03-12 | spelling | Jonathan Gray | |
2020-09-22 | Since dlg@'s 2009 scsi midlayer refactoring the 'struct scsi_generic *cmd' | Kenneth R Westerback | |
member of 'struct scsi_xfer' has always been pointed at the 'struct scsi_generic cmdstore' member of the same instance. So nuke 'cmdstore' and remove the '*' from cmd. Take the address of cmd as required by the various casts. No intentional functional change. luna88k test by aoyama@, sparc64 test by jmatthew@ Identification of 2009's last *cmd use and ok jmatthew@ | |||
2020-09-01 | Rename [READ|WRITE]_BIG to [READ|WRITE]_10. Rename struct scsi_rw_big to | Kenneth R Westerback | |
struct scsi_rw_10. ok gnezdo@ jmatthew@ (who also did sparc64 compile test) | |||
2020-08-29 | More recent MMC specificiations add READ(12)/WRITE(12). So add cd_cmd_rw12() | Kenneth R Westerback | |
and let cdstart() use it if the requested i/o is unable to fit into a READ(10). Certainly better than silently truncating the i/o into a READ(10)/WRITE(10). | |||
2020-08-29 | Use ISSET() to check b_flags for B_READ. | Kenneth R Westerback | |
2020-08-29 | Use u_int32_t for nsecs, making it crystal clear that the values | Kenneth R Westerback | |
are expected to fit into a 4-byte field. | |||
2020-08-29 | Have [cd|sd]_cmd_rw[6|10|12|16] return the length of the created command and | Kenneth R Westerback | |
have the caller assign it to xs->cmdlen. Pass in xs->cmd instead of xs. A slightly cleaner API that provides the potential of detecting and reacting to a failure to create the desired command. | |||
2020-08-28 | Shuffle [cd|sd]start code into closer alignment. Move the initialization of the | Kenneth R Westerback | |
xs fields to a more convenient location, shrinking upcoming diffs. Nuke some Captain Obvious comments. | |||
2020-08-28 | Abstract cd_cmd_rw6() and cd_cmd_rw10() a la sd_cmd_rw6() and sd_cmd_rw10(). | Kenneth R Westerback | |
2020-08-28 | Nuke CDF_ANCIENT, SDF_ANCIENT SDEV_ONLYBIG and bogus check of SID_RelAdr in | Kenneth R Westerback | |
favour of simply using the device's claimed SCSI level of support. Except of course for ATAPI/USB devices which often don't claim anything. Keep assuming they are at least SCSI-2. Use consistant tests in sdminphys/cdminphys/sdstart/cdstart. | |||
2020-08-26 | Remove needless uses of SDEV_ONLYBIG. It was always set when SDEV_UMASS was set, | Kenneth R Westerback | |
and was always checked in concert with SDEV_ATAPI. Just rely on SDEV_ATAPI and SDEV_UMASS in all but the one place sd(4) where SDEV_ONLYBIG is set independently of SDEV_ATAPI/_UMASS. ok jmatthew@ | |||
2020-08-22 | The last timeout_add(sc_timeout) died in the great XS_NO_CCB purge of 2017. Nuke | Kenneth R Westerback | |
pointless timeout_set(sc_timoeut) and timeout_del(sc_timeout) calls and the sc_timeout fields themselves. | |||
2020-08-20 | Revert DYING. At least some USB memory sticks get very upset. | Kenneth R Westerback | |
2020-08-19 | Nuke SDF_DYING, CDF_DYING and ST_DYING flags. Use the scsi_link flag | Kenneth R Westerback | |
SDEV_S_DYING instead. Makes it clear that the scsi_link and the [cd|sd|st] device always agree on their state. | |||
2020-08-15 | The last SET()s of CDF_WAITING, SDF_WAITING, and ST_WAITING died in the great | Kenneth R Westerback | |
XS_NO_CCB purge of 2017. Nuke pointless ISSET()/CLR() checks and the #define's. | |||
2020-08-11 | Explicitly #include <scsi/scsi_debug.h> rather than assuming scsiconf.h will do | Kenneth R Westerback | |
it. Prepares for removal of #include <scsi/scsi_debug.h> from scsiconf.h as soon as the alpha tester digs out from hurricane to compile last untested files. | |||
2020-07-16 | Access scsibus_softc info (luns, adapter, adapter_target, | Kenneth R Westerback | |
adapter_softc, adapter_buswidth) via link->bus rather than using copies currently residing in the link. | |||
2020-06-30 | Nuke unneeded 'sa_inqbuf' member of struct scsi_attach_args. It always | Kenneth R Westerback | |
points to the inquiry data contained in the struct scsi_link pointed to by the other member, sa_sc_link. | |||
2020-02-20 | Relax the grip the dead hand of QBUS (a.k.a. MAXPHYS) has on the | Kenneth R Westerback | |
throat of physio(). Allows individual devices to eventually be modified to support larger physio() (a.k.a. 'raw') i/o's if they prove capable of them. No immediate functional change. Tested for many weeks by and ok robert@. | |||
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 | |||
2019-12-06 | Various cleanup tweaks. 'return' is not a function. KNF. Whitespace, | Kenneth R Westerback | |
Comment fixes. | |||
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-11-28 | Always pass a pointer to 'big' to scsi_do_mode_sense(). | Kenneth R Westerback | |
Sets up some simplifications. | |||
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-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-09-29 | Introduce SC_DEBUG_SENSE() and simplify code by eliminating a bunch | Kenneth R Westerback | |
of three line SCSIDEBUG chunks. | |||
2019-09-29 | Tweak some whitespace to make autoindenter happy. Use consistent naming ↵ | Kenneth R Westerback | |
idiom for the debug functions. | |||
2019-09-27 | Add/tweak #endif comments to make spelunking via grep more rewarding. | Kenneth R Westerback | |
2019-09-01 | Adopt the SCSI versioning #define's from FreeBSD. Eliminate the | Kenneth R Westerback | |
now unneeded version_to_spc() mapping array, a duplicate #define and a couple of magic numbers. Toss in some comments for future generations of spelunkers. Makes it possible to check for specific SPC versions when new features or eliminated features require such a check. No intentional functional change. | |||
2019-08-28 | Introduce SCSI0(), SCSI2() and SCSI3() defines to clarify (some) uses | Kenneth R Westerback | |
of SCSISPC() when checking the values of the INQUIRY version field. | |||
2019-08-17 | Nuke some unused variables, tweak some declarations and | Kenneth R Westerback | |
variable names into a consistant idiom. | |||
2019-01-20 | No leading space(s) before labels. | Kenneth R Westerback | |
Prodded by guenther@ | |||
2019-01-20 | When retiring a SCSI request, sometimes the buf's b_error value is | Kenneth R Westerback | |
forcibly set to a value. Make sure that in all those cases the B_ERROR flag is cleared (if b_error is being set to 0) or set (if b_error is being set to non-zero) appropriately. ok dlg@ jmatthew@ | |||
2017-12-30 | Don't pull in <sys/file.h> just to get fcntl.h | Philip Guenther | |
ok deraadt@ krw@ | |||
2017-09-08 | If you use sys/param.h, you don't need sys/types.h | Theo de Raadt | |
2017-05-29 | To prevent anyone else from stumbling on this (now) archaic bit of | Kenneth R Westerback | |
history, nuke all mentions of XS_NO_CCB and the #define. 2006 - 2017. R.I.P. ok kettenis@ inferred ok dlg@ | |||
2017-05-04 | Also pass the blk offset to disk_unbusy(), so that it can pass it to | Theo de Raadt | |
the random subsystem as entropy. This value is pretty much unknown, and anyways our entropy input ring does not saturate from knowns. ok mikeb djm | |||
2016-03-12 | Standardize on calling local scsi_link variables 'link' instead of | Kenneth R Westerback | |
'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@ | |||
2015-06-07 | More damned eye searing whitespace. | Kenneth R Westerback | |