summaryrefslogtreecommitdiff
path: root/sys/scsi/safte.c
AgeCommit message (Expand)Author
2021-10-24Constify struct cfattach.Martin Pieuchot
2020-09-22Since dlg@'s 2009 scsi midlayer refactoring the 'struct scsi_generic *cmd'Kenneth R Westerback
2020-09-12Use SID_SCSI2_RESPONSE instead of '2' when checking INQUIRY data format.Kenneth R Westerback
2020-09-12No need to check inq for NULL when it always points at the inqdata inside aKenneth R Westerback
2020-09-12No need to ask for extra INQUIRY data, all available data is already cached inKenneth R Westerback
2020-06-30Nuke unneeded 'sa_inqbuf' member of struct scsi_attach_args. It alwaysKenneth R Westerback
2019-12-07Various cleanup tweaks. 'return' is not a function. KNF. Whitespace,Kenneth R Westerback
2019-11-23Consistently use SET() to set bits.Kenneth R Westerback
2019-11-22Be consistent and always use CLR() to clear flags.Kenneth R Westerback
2019-09-27Add/tweak #endif comments to make spelunking via grep more rewarding.Kenneth R Westerback
2019-09-19Introduce and use convenience SID_REPOONSE_FORMAT() define.Kenneth R Westerback
2019-09-01Adopt the SCSI versioning #define's from FreeBSD. Eliminate theKenneth R Westerback
2019-08-28Recast "SCSISPC() != 2" into "!SCSI2() || SCSI3()", i.e. "!= 2" intoKenneth R Westerback
2019-08-24KNF tweak.Kenneth R Westerback
2015-08-23add some sizes to free. looked over by deraadtTed Unangst
2015-06-07More damned eye searing whitespace.Kenneth R Westerback
2014-09-14remove uneeded proc.h includesJonathan Gray
2014-07-13use mallocarray where arguments are multiplied; ok teduTheo de Raadt
2014-07-12add a size argument to free. will be used soon, but for now default to 0.Ted Unangst
2011-06-15factor the common bits out of code that builds scsi inquiry commands intoDavid Gwynne
2011-03-17use dma_alloc/dma_free instead of malloc to allocate buffers which needTheo de Raadt
2010-09-27A few M_ZEROs without any M_WAITOK/M_NOWAITs.Thordur I. Bjornsson
2010-08-30Avoid possible aliasing-related compiler issues by always writing toMatthew Dempsky
2010-07-22Fix a few more scsi_scsi_cmd() removal regressions, caught byMatthew Dempsky
2010-07-22style(9) fix and release rwlock(9) if scsi_xs_get() returns NULL,Matthew Dempsky
2010-07-22In safte_match(), return 0 on SCSI errors, not an errno value. FixesMatthew Dempsky
2010-07-22Eliminate scsi_scsi_cmd() now that ss(4) is gone and with it theKenneth R Westerback
2009-01-20Prevent unaligned access.Mark Kettenis
2007-09-16MALLOC/FREE -> malloc/free, M_ZERO, extraneous casts,Kenneth R Westerback
2007-09-07The obvious bzero/memset -> M_ZERO changes.Kenneth R Westerback
2007-06-24rework sensor tasks to use the kernels generic workq rather than a specialDavid Gwynne
2007-06-01backout r1.33: temperature sensor description was removed on purpose,Constantine A. Murenin
2007-04-03modernise scsi_inquiry. the length field has grown and now theres pages toDavid Gwynne
2007-03-22split userland & kernel struct sensor/sensordev so that the additionTheo de Raadt
2007-02-21Add missing sensor description for temperature.Deanna Phillips
2006-12-23adapt to new two-level sensor api; Constantine A. MureninTheo de Raadt
2006-11-28rename scsibus_attach_args to scsi_attach_args. this can help avoidDavid Gwynne
2006-10-01Free sensors on detach.Alexander Yurchenko
2006-07-29The version field of scsi_inquiry_data is not a simple numeric valueKenneth R Westerback
2006-05-21replace lockmgr with rwlock.David Gwynne
2006-05-09make sensor names look more normal; ok dlgTheo de Raadt
2006-01-19Replace SENSOR_ADD() macro with a pair of functionsAlexander Yurchenko
2006-01-11dont print anything if we're unable to read the status pageDavid Gwynne
2005-12-02Missing 'break;'. Spotted by lint.Kenneth R Westerback
2005-11-19Remove unnecessary lockmgr() archaism that was costing too much in termsPedro Martelletto
2005-11-13lock updates to the buffer with the enclosure status in it so that oneDavid Gwynne
2005-11-12there are two things that safte does: update sensors and blink lights. ifDavid Gwynne
2005-11-11include sys/device.h. builds on sparc. dlg@ ok.Federico G. Schwindt
2005-11-10remove half the includes since they seem to be unnecessary.David Gwynne
2005-11-10i am a stupid head. unbreak kernels that done have the bio(4) device.David Gwynne