summaryrefslogtreecommitdiffstats
path: root/sys/scsi/cd.c
AgeCommit message (Expand)AuthorFilesLines
2020-02-20Relax the grip the dead hand of QBUS (a.k.a. MAXPHYS) has on thekrw1-3/+3
2020-02-05Nuke unnecessary abstraction 'scsi_minphys()' which just callskrw1-5/+6
2020-01-27Make the commonalities of cdminphys, sdminphys and stminphys morekrw1-4/+6
2020-01-26Shuffle some names around to make reading the code less headachekrw1-3/+3
2020-01-25Ensure scsi_minphys() is always called on the physio() path.krw1-1/+3
2019-12-06Various cleanup tweaks. 'return' is not a function. KNF. Whitespace,krw1-192/+190
2019-12-05Shrink scsi_mode_do_sense() parameter list by eliminating the threekrw1-7/+7
2019-11-28Always pass a pointer to 'big' to scsi_do_mode_sense().krw1-4/+4
2019-11-25Use scsi_read_cap[10|16] instead of re-rolling the code.krw1-48/+10
2019-11-23Consistently use ISSET() to check for set flags.krw1-16/+16
2019-11-23Consistently use !ISSET() to check for unset flags.krw1-11/+11
2019-11-23Consistently use SET() to set bits.krw1-12/+12
2019-11-22Be consistent and always use CLR() to clear flags.krw1-9/+9
2019-11-21Be consistent and always use [!]ISSET() to test flags in xs->flags.krw1-2/+2
2019-11-21Be consistent and always use SET() to set flags in xs->flags.krw1-10/+10
2019-09-29Introduce SC_DEBUG_SENSE() and simplify code by eliminating a bunchkrw1-4/+2
2019-09-29Tweak some whitespace to make autoindenter happy. Use consistent naming idiom forkrw1-2/+2
2019-09-27Add/tweak #endif comments to make spelunking via grep more rewarding.krw1-7/+7
2019-09-01Adopt the SCSI versioning #define's from FreeBSD. Eliminate thekrw1-7/+9
2019-08-28Introduce SCSI0(), SCSI2() and SCSI3() defines to clarify (some) useskrw1-4/+3
2019-08-17Nuke some unused variables, tweak some declarations andkrw1-3/+2
2019-01-20No leading space(s) before labels.krw1-4/+4
2019-01-20When retiring a SCSI request, sometimes the buf's b_error value iskrw1-4/+6
2017-12-30Don't pull in <sys/file.h> just to get fcntl.hguenther1-2/+2
2017-09-08If you use sys/param.h, you don't need sys/types.hderaadt1-2/+1
2017-05-29To prevent anyone else from stumbling on this (now) archaic bit ofkrw1-11/+1
2017-05-04Also pass the blk offset to disk_unbusy(), so that it can pass it toderaadt1-3/+3
2016-03-12Standardize on calling local scsi_link variables 'link' instead ofkrw1-41/+41
2015-06-07More damned eye searing whitespace.krw1-7/+7
2014-12-15convert bcopy to memcpy. ok dlg krwtedu1-9/+9
2014-09-14remove uneeded proc.h includesjsg1-2/+1
2014-07-12add a size argument to free. will be used soon, but for now default to 0.tedu1-2/+2
2013-11-01Sprinkle (long long) casts where %lld is being used to print daddr_tkrw1-2/+2
2013-10-03Print daddr_t variables with %lld, u_int64_t variables with %llu.krw1-2/+2
2013-09-27scsi_size() is now used only by cd(4). So move it from scsi_base.ckrw1-4/+112
2013-09-15cddump() takes a daddr_t parameter. Call that parameter 'blkno' and notkrw1-2/+2
2013-09-15Use DL_SECTOBLK() and DL_BLKTOSEC() to clarify code and removekrw1-4/+3
2013-06-11final removal of daddr64_t. daddr_t has been 64 bit for a long enoughderaadt1-4/+4
2011-07-06Eliminate redundant buf validation checks in xxstrategy() methods nowmatthew1-23/+5
2011-07-03Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thingmatthew1-3/+1
2011-06-30Refactor some common open/close/detach disk driver code intomatthew1-35/+5
2011-06-19Use disk_lock_nointr() in the xxclose() routines so that they cannotderaadt1-6/+2
2011-06-19Use disk_lock/disk_unlock directly and in the same way in these drivers,deraadt1-11/+9
2011-06-06Delete the long dead LOCKED and WANTED flags from cd(4), sd(4), andmatthew1-3/+1
2011-06-05Drop kernel support for the useless DIOCWLABEL ioctl and prune a lotmatthew1-11/+1
2011-06-03Get rid of the wlabel argument to bounds_check_with_label(). It'smatthew1-3/+2
2011-05-31Change a few of the more common disk drivers (sd, cd, wd, rd, and vnd)matthew1-2/+2
2011-03-17use dma_alloc/dma_free instead of malloc to allocate buffers which needderaadt1-90/+128
2010-11-22SCSI devices are assumed to be T_FIXED unless they say otherwise.krw1-1/+5
2010-09-23Introduce a DKF_NOLABELREAD flag, which is used by a device to preventjsing1-1/+2