summaryrefslogtreecommitdiff
path: root/sys/scsi/cd.c
AgeCommit message (Expand)Author
2019-01-20No leading space(s) before labels.Kenneth R Westerback
2019-01-20When retiring a SCSI request, sometimes the buf's b_error value isKenneth R Westerback
2017-12-30Don't pull in <sys/file.h> just to get fcntl.hPhilip Guenther
2017-09-08If you use sys/param.h, you don't need sys/types.hTheo de Raadt
2017-05-29To prevent anyone else from stumbling on this (now) archaic bit ofKenneth R Westerback
2017-05-04Also pass the blk offset to disk_unbusy(), so that it can pass it toTheo de Raadt
2016-03-12Standardize on calling local scsi_link variables 'link' instead ofKenneth R Westerback
2015-06-07More damned eye searing whitespace.Kenneth R Westerback
2014-12-15convert bcopy to memcpy. ok dlg krwTed Unangst
2014-09-14remove uneeded proc.h includesJonathan Gray
2014-07-12add a size argument to free. will be used soon, but for now default to 0.Ted Unangst
2013-11-01Sprinkle (long long) casts where %lld is being used to print daddr_tKenneth R Westerback
2013-10-03Print daddr_t variables with %lld, u_int64_t variables with %llu.Kenneth R Westerback
2013-09-27scsi_size() is now used only by cd(4). So move it from scsi_base.cKenneth R Westerback
2013-09-15cddump() takes a daddr_t parameter. Call that parameter 'blkno' and notKenneth R Westerback
2013-09-15Use DL_SECTOBLK() and DL_BLKTOSEC() to clarify code and removeKenneth R Westerback
2013-06-11final removal of daddr64_t. daddr_t has been 64 bit for a long enoughTheo de Raadt
2011-07-06Eliminate redundant buf validation checks in xxstrategy() methods nowMatthew Dempsky
2011-07-03Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thingMatthew Dempsky
2011-06-30Refactor some common open/close/detach disk driver code intoMatthew Dempsky
2011-06-19Use disk_lock_nointr() in the xxclose() routines so that they cannotTheo de Raadt
2011-06-19Use disk_lock/disk_unlock directly and in the same way in these drivers,Theo de Raadt
2011-06-06Delete the long dead LOCKED and WANTED flags from cd(4), sd(4), andMatthew Dempsky
2011-06-05Drop kernel support for the useless DIOCWLABEL ioctl and prune a lotMatthew Dempsky
2011-06-03Get rid of the wlabel argument to bounds_check_with_label(). It'sMatthew Dempsky
2011-05-31Change a few of the more common disk drivers (sd, cd, wd, rd, and vnd)Matthew Dempsky
2011-03-17use dma_alloc/dma_free instead of malloc to allocate buffers which needTheo de Raadt
2010-11-22SCSI devices are assumed to be T_FIXED unless they say otherwise.Kenneth R Westerback
2010-09-23Introduce a DKF_NOLABELREAD flag, which is used by a device to preventJoel Sing
2010-09-22All users of physio(9) now pass NULL as the buf pointer argument, soMatthew Dempsky
2010-09-21Add a real DIOCGPDINFO, allowing access to the physical informationKenneth R Westerback
2010-09-20bufq_drain() does not need to be done in deactivate; we only needTheo de Raadt
2010-09-14scsi_xsh_del the xs handler on DEACTIVATE.David Gwynne
2010-09-12Make cd the same as sd by calling the cd_parms member of the softc 'params'Kenneth R Westerback
2010-09-11Be more ruthlessly consistent in variable names for blk/block ==Kenneth R Westerback
2010-09-08Introduce a disk_lookup() function which calls device_lookup(), beforeJoel Sing
2010-09-08Store a struct device pointer within struct disk and populate this whenJoel Sing
2010-09-07remove the powerhook code. All architectures now use the ca_activate treeTheo de Raadt
2010-09-07rely on SCSI_AUTOCONF for cd_resume instead of wrapping it in a workqTheo de Raadt
2010-09-01make struct bufq a member of the softc for devices that use it,David Gwynne
2010-08-31Change the powerhook into an activation routine. It has to use a workq.Theo de Raadt
2010-08-30Avoid possible aliasing-related compiler issues by always writing toMatthew Dempsky
2010-08-28Garbage collect struct dkdriver.Matthew Dempsky
2010-07-28DVD_INVALIDATE_AGID is a 'no payload' operation, so don't setKenneth R Westerback
2010-07-25Missing SCSI_DATA_IN flag in dvd_read_copyright() causedKenneth R Westerback
2010-07-25Let DVD's play again. Logic reversal prevented copyright reading.Kenneth R Westerback
2010-07-22Fix a few more scsi_scsi_cmd() removal regressions, caught byMatthew Dempsky
2010-07-22Appropriately set SCSI_DATA_IN or SCSI_DATA_OUT depending on type ofMatthew Dempsky
2010-07-22Eliminate scsi_scsi_cmd() now that ss(4) is gone and with it theKenneth R Westerback
2010-07-01Die struct scsi_device! Die! Instead, save a pointer to the routineKenneth R Westerback