summaryrefslogtreecommitdiff
path: root/sys/scsi/cd.c
AgeCommit message (Expand)Author
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
2010-07-01Restore setting xs->bp; fixes ncr(4) on VAX.Matthew Dempsky
2010-06-30Bring cd(4) into line with sd(4) and st(4) by implementing CDF_DYINGKenneth R Westerback
2010-06-28Move disk_attach() to the end of the attach functions, at which point theJoel Sing
2010-06-15dont pass the dev_t from the scsi device drivers into the midlayer forDavid Gwynne
2010-06-11Restore an unusual XS_SENSE semantic that inadvertantly got lostKenneth R Westerback
2010-06-03cut cd(4) over to use xshandlers. based on the sd(4) diff and includes theDavid Gwynne
2010-06-01move cd, st & ss over to bufq's again.Thordur I. Bjornsson
2010-05-18dont let sys/ioctl.h imply that you get the ioctls in dkio.h. thisDavid Gwynne
2010-04-23Recycle unused disklabel fields in order to create a disklabel uniqueJoel Sing
2010-04-12i snuck fine grained locking into the midlayer as part of all theDavid Gwynne
2010-02-28If no TOC header is read, report EIO. Even if the command finishedKenneth R Westerback
2010-01-15Abstract and merge the manual buf queue manipulating functions intoKenneth R Westerback
2010-01-15Restore XS_BUSY delay behaviour for buf i/o. Same as for sync path.Kenneth R Westerback
2010-01-12bring sd.c r1.180 over to the other drivers now using the antisemaphore,David Gwynne
2010-01-11Bring mutex protections to ststart, cdstart and ssstart, as alreadyKenneth R Westerback
2010-01-11Be as careful with sd/cd buf queue manipulations as was found necessary forKenneth R Westerback
2010-01-09dont try to prevent multiple concurrent runs of a devices start routineDavid Gwynne
2009-12-16nothing needs to see cd_softc except the driver, so move it into cd.cDavid Gwynne
2009-12-13prefix all softc members with sc_, not just most of them.David Gwynne
2009-12-13use sc consistently as the name of the pointer to the softc variable, notDavid Gwynne
2009-12-12move cd(4) from using scsi_scsi_cmd over to scsi_xs_exec for doing io.David Gwynne
2009-12-06nitems(array) is prettier than sizeof(array)/sizeof(array[0])David Gwynne
2009-12-06whitespace tweaksDavid Gwynne
2009-12-06ansify dvd functions a bit.David Gwynne
2009-10-13Get rid of devact enum, substitute it with an int and coresponding defines.Paul Irofti
2009-08-13Replace the error strings that were being passed around with much simplerTheo de Raadt
2009-06-17Revert bufq's. this is inline with the major midlayer reverts thatThordur I. Bjornsson
2009-06-03add a flexible buffer queue (bufq) api, based on the never usedThordur I. Bjornsson