summaryrefslogtreecommitdiff
path: root/sys/scsi/cd.c
AgeCommit message (Expand)Author
2005-12-23Make cd_load_toc() take an address mode parameter, clean up a bit.Kenneth R Westerback
2005-12-22Move a struct cd_toc (800 bytes) from the stack to malloc'ed memory.Kenneth R Westerback
2005-12-22Initialize data_track before a 'goto done;' could lead to it beingKenneth R Westerback
2005-10-15Eliminate unnecessary bzero() by only writing valid information.Kenneth R Westerback
2005-10-14Eliminate uneeded variable 'i' and use under utilized 'data_track'Kenneth R Westerback
2005-10-11use [bl]etohXX instead of ntoh[sl], makes the code more consistent andHans-Joerg Hoexer
2005-10-11Change some byte shifting to _4btol() and swap32() calls.Kenneth R Westerback
2005-10-10Some KNF. malloc/free instead of MALLOC/FREE since it's a variableKenneth R Westerback
2005-09-29Clear SDEV_MEDIA_LOADED for cd media on the last close of a device, asKenneth R Westerback
2005-09-26Use SCSI_IGNORE_ILLEGAL_REQUEST when reading a cd's table of contents.Kenneth R Westerback
2005-09-21Improve readability by using a variable instead of repeatedKenneth R Westerback
2005-09-21Missing parenthesis. Same problem was addressed in sd.c r1.90. CouldKenneth R Westerback
2005-09-11Simplify code by changing struct scsi_mode_sense_buf{ union {}Kenneth R Westerback
2005-08-23Move uses of struct scsi_mode_sense_buf (255 bytes each) from theKenneth R Westerback
2005-08-03Move a couple of 2048+4 byte structures from the stack to the heap.Kenneth R Westerback
2005-06-11Elminate a few unnecessary casts by using union field names, bit of KNF.Kenneth R Westerback
2005-06-05Fix scsi_mode_select() and scsi_mode_select_big() to send just theKenneth R Westerback
2005-06-03Move definitions of struct cd_softc{} and CDRETRIES from cdvar.h intoKenneth R Westerback
2005-06-03Tweak scsi_do_mode_sense(). NetBSD was right and I was wrong. Sigh.Kenneth R Westerback
2005-05-27Don't bother issuing a MODE SELECT in cd_set_pa_immed() if we aren'tKenneth R Westerback
2005-05-27Convert cd code to new mode sense framework. Merge cd_scsi andKenneth R Westerback
2005-05-01Allow RAW_PART+S_IFCHR device opens to succeed even if media notKenneth R Westerback
2005-04-06De-register scsi.Kenneth R Westerback
2005-04-05Clean up some logic. Use better error handling for sd devices. BeKenneth R Westerback
2005-03-30Comment typo, minor knf. No code change.Kenneth R Westerback
2004-05-09Add missing <cr>'s to various SC_DEBUG() calls, along with a few otherKenneth R Westerback
2004-02-15new arg to disk_unbusy, to record separate read/write statistics.Ted Unangst
2003-11-07adress -> address, and a few more; all from Jonathon Gray;Jason McIntyre
2003-07-30reverse booleans so it's clear what we're looking for. ok krw@Ted Unangst
2003-05-18constify the quirck tables and fix the scsi_inqmatch() proto accordingly; krw...Michael Shalayeff
2003-05-17READ_CD_CAPCITY -> READ_CD_CAPACITY in comment.Kenneth R Westerback
2003-05-16Provide most if not all the support required for the usb changes NateKenneth R Westerback
2003-04-06The disklabel fields d_packname and d_typename are not null terminated stringsKenneth R Westerback
2003-01-17The end of the track is one frame before the first frame of the next trackJason Wright
2003-01-05spellingTheo de Raadt
2002-12-30Add new parameter to scsi_test_unit_ready(): retries number.Alexander Yurchenko
2002-06-09splassert a splbio assumption.Artur Grabowski
2002-06-08KISS. the spl variable doesn't have to be called s, but it make the code less...Artur Grabowski
2002-06-08splbio around biodoneArtur Grabowski
2002-05-23Signed/unsigned int bug caused lp->d_npartitions to be set to zero.Constantine Sapuntzakis
2002-03-14Final __P removal plus some cosmetic fixupsTodd C. Miller
2002-03-14First round of __P removal in sysTodd C. Miller
2002-02-01cdstrategy(): check that media is loaded before doing anything with theHans Insulander
2001-10-25Allow an empty cd to be opened (raw device/whole disk) primarily toDale Rahn
2001-06-22KNFTheo de Raadt
2000-07-18Update cd_size to handle failure of READ_CD_CAPACITY by returningConstantine Sapuntzakis
2000-04-18cd detachConstantine Sapuntzakis
2000-04-18sd and scsibus detachConstantine Sapuntzakis
2000-04-09Don't trust the TOC coming from the drive so much.Constantine Sapuntzakis
1999-11-12Use cdio.h instead of dvdio.hAngelos D. Keromytis