summaryrefslogtreecommitdiff
path: root/sys/scsi
AgeCommit message (Expand)Author
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-10-10Make some panic messages more useful.Kenneth R Westerback
2005-10-04shorter name for wait channelTheo de Raadt
2005-09-29fix the check for the type of enclosureDavid Gwynne
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-19Use variable to eliminate repeated calculation. More readable. NoKenneth R Westerback
2005-09-15Don't fake MODE SENSE page 4 info inside raid drivers, just let sdKenneth R Westerback
2005-09-11Simplify code by changing struct scsi_mode_sense_buf{ union {}Kenneth R Westerback
2005-09-11Some UMASS devices blow up if MODE SENSE buffer length is 0 (aka 256).Kenneth R Westerback
2005-09-08free(NULL, ...) is not safe in the kernel. So check for NULL'nessKenneth R Westerback
2005-08-29If a buffer larger than the max allowed is offered to scsi_mode_sense()Kenneth R Westerback
2005-08-29Make sure certain architectures/compilers don't round up the size ofKenneth R Westerback
2005-08-27Put in missing parenthesis and thus always passKenneth R Westerback
2005-08-24dont reject safte devices that have more inquiry information than theDavid Gwynne
2005-08-24Test xs->bp before de-referencing it. Initialize it to NULL, not 0.Kenneth R Westerback
2005-08-23setting the FAULT flag on a device so the alarm led blinks may haveDavid Gwynne
2005-08-23Move uses of struct scsi_mode_sense_buf (255 bytes each) from theKenneth R Westerback
2005-08-23Spin up sd units even if TEST_UNIT_READY says they're ready.Kenneth R Westerback
2005-08-23Test for cold and apply relevant flags for all scsi commands.Marco Peereboom
2005-08-22check for scsi_autoconf state, spotted by marco; ok krwTheo de Raadt
2005-08-22spell: failture->failureDavid Krause
2005-08-21handle the unblink request; ok dlg marco krwTheo de Raadt
2005-08-21Some devices go berserk when asked for mode sense pages they don'tKenneth R Westerback
2005-08-18Only allow blocksizes that are powers of 2 between 512 and 64K. An sdKenneth R Westerback
2005-08-18Silly dlg did not read my old code careful enough. Missed 2 bits that areMarco Peereboom
2005-08-18infrastructure to support blinking controlled via /dev/bio ioctls. theDavid Gwynne
2005-08-18das blinkenlighten! uses /dev/bio to allow an ioctl to turn identify onDavid Gwynne
2005-08-17add a macro for the WRITE_BUFFER opcodeDavid Gwynne
2005-08-17Use defines for disk mode page codes. Check returned mode pages toKenneth R Westerback
2005-08-17dont increment the offset both in and out of the loop while reading theDavid Gwynne
2005-08-15free the right buffer on errorDavid Gwynne
2005-08-13Use scsi_do_mode_sense(). Testing on beck@'s new LTO changer.Kenneth R Westerback
2005-08-13let safte match on dell enclosures too. ses takes precedence thoughDavid Gwynne
2005-08-12rewrite the reading of the status page, which in turn adds support forDavid Gwynne
2005-08-12Move disk mode page structure declarations out of scsi_disk_pagesKenneth R Westerback
2005-08-11typosDavid Gwynne
2005-08-10use the appropriate flags to scsi_scsi_cmd during autoconf so we dont spinDavid Gwynne
2005-08-09Add Vital Product Data structure. Requested deraadt@ ok dlg@Marco Peereboom
2005-08-09normalise the fan speed outputDavid Gwynne
2005-08-08Fill in device structure, bad dlg@Marco Peereboom
2005-08-08Fill in device structure, bad dlg@Marco Peereboom
2005-08-05report the fan speed as a percentage since it seems all the enclosures weDavid Gwynne
2005-08-05dont do an inquiry in attach just to print the safte revision number. itDavid Gwynne
2005-08-05switch safte from using a scsi cmd at softclock to doing the commandsDavid Gwynne
2005-08-05reorder the allocation of bits in attach to make cleaning up on an errorDavid Gwynne