summaryrefslogtreecommitdiff
path: root/sys/scsi/cd.c
AgeCommit message (Expand)Author
2007-09-07The obvious bzero/memset -> M_ZERO changes.Kenneth R Westerback
2007-06-20b_cylinder does not need to be set on the callpath down into drivers.Theo de Raadt
2007-06-18avoid modification race in DIOCRLDINFO; ok krw miodTheo de Raadt
2007-06-08all drivers should spoof version 1 labelsTheo de Raadt
2007-06-07in OpenBSD as all old BSD unix, RAW_PART always starts at 0, so noTheo de Raadt
2007-06-06now that all partition size/offsets are potentially 64-bit, change theTheo de Raadt
2007-06-05use six new macros to access & store the 48-bit disklabel fields relatedTheo de Raadt
2007-06-01Don't initialize d_partitions[RAW_DISK] just before callingKenneth R Westerback
2007-05-25ANSI-fication, minor KNF. No code change. My plane had power outletsKenneth R Westerback
2007-04-28Fix comments above DISKMINOR uses. DISKMINOR provides minor not majorKenneth R Westerback
2007-04-26Use the standard DISKPART/DISKUNIT/etc. defines rather than identicalKenneth R Westerback
2007-04-12Add cd_kill_buffers() as a separate function, like sd_kill_buffers()Kenneth R Westerback
2007-04-10``it's'' -> ``its'' when the grammar gods require this change.Miod Vallat
2007-04-10Always use idiom 'struct cd_softc *cd = (struct cd_softc *)self'. SpottedKenneth R Westerback
2007-02-03Make comment match code. ok pedroAlexander Bluhm
2006-12-23Add the ability to issue GPCMD_REPORT_KEY and GPCMD_SEND_KEY scsiKenneth R Westerback
2006-12-12Give the SCSI layer the ability to requeue i/o's rejected by a driverKenneth R Westerback
2006-11-28rename scsibus_attach_args to scsi_attach_args. this can help avoidDavid Gwynne
2006-11-27more magic removalBob Beck
2006-11-27get rid of the rest of the asc/ascq magic codes in scsiBob Beck
2006-10-08Something more closely resembling english in this comment.Bob Beck
2006-10-07make cd-roms retry forever while the device indicates that it isBob Beck
2006-09-26Zap D_REMOVABLE flag from disklabel. If you didn't already know thatKenneth R Westerback
2006-07-29The version field of scsi_inquiry_data is not a simple numeric valueKenneth R Westerback
2006-07-23remove some scsi ioctls, most importantly the ones that can reprobe theDavid Gwynne
2006-07-19Add cd_powerhook(). Use it to lock CD drives having open partitionsKenneth R Westerback
2006-05-11Zap trailing whitespace.Kenneth R Westerback
2006-03-15Nuke dk_establish(), no longer used.Miod Vallat
2006-03-04Typos grab bag of the month, eyeballed by jmc@Miod Vallat
2006-01-21Invoke disk_detach() and related cleanup work in detach(), rather thanMiod Vallat
2006-01-17Need to device_unreg() the implicit device_ref() done by cdlookup() inMiod Vallat
2006-01-12Don't populate the fabricated disklabel's partition info from trackKenneth R Westerback
2005-12-25Cleanup/fix cdgetdisklabel() byKenneth R Westerback
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