summaryrefslogtreecommitdiff
path: root/sys/scsi/safte.c
AgeCommit message (Collapse)Author
2006-10-01Free sensors on detach.Alexander Yurchenko
ok dlg@
2006-07-29The version field of scsi_inquiry_data is not a simple numeric valueKenneth R Westerback
that specifies the version of SCSI being supported. Even the ANSI part that we use is complex. 4 means 2, 5 means 3 and 6 means 4. Translate and use the value correctly. Fixes SCSI5 and SCSI6 in dmesg. And properly protects SCSI2 devices from getting SCSI3 commands. "seems like an elegant solution to me" millert@ ok dlg@ marco@
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
sensor_add()/sensor_del() so that sensors can be attached and detached dynamicaly. ok kettenis@ deraadt@ dlg@
2006-01-11dont print anything if we're unable to read the status pageDavid Gwynne
requested by deraadt@
2005-12-02Missing 'break;'. Spotted by lint.Kenneth R Westerback
ok dlg@
2005-11-19Remove unnecessary lockmgr() archaism that was costing too much in termsPedro Martelletto
of panics and bugfixes. Access curproc directly, do not expect a process pointer as an argument. Should fix many "process context required" bugs. Incentive and okay millert@, okay marc@. Various testing, thanks.
2005-11-13lock updates to the buffer with the enclosure status in it so that oneDavid Gwynne
process cant read from it while another one is fetching it from the scsi device. looks ok krw@
2005-11-12there are two things that safte does: update sensors and blink lights. ifDavid Gwynne
attach figures out that we cant do either of them, then free up all the resources.
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
reported and fixed by Michael Knudsen.
2005-11-10cut safte over to using the generic sensors kthread.David Gwynne
2005-08-24dont reject safte devices that have more inquiry information than theDavid Gwynne
space we want to store it in. thanks to mtu for providing access to hardware for this. ok deraadt@
2005-08-23Test for cold and apply relevant flags for all scsi commands.Marco Peereboom
ok dlg@ krw@ deraadt@
2005-08-22check for scsi_autoconf state, spotted by marco; ok krwTheo de Raadt
2005-08-21handle the unblink request; ok dlg marco krwTheo de Raadt
2005-08-18das blinkenlighten! uses /dev/bio to allow an ioctl to turn identify onDavid Gwynne
for a particular target
2005-08-17dont increment the offset both in and out of the loop while reading theDavid Gwynne
config ok deraadt@ marco@
2005-08-15free the right buffer on errorDavid Gwynne
ok deraadt@
2005-08-13let safte match on dell enclosures too. ses takes precedence thoughDavid Gwynne
ok marco@ deraadt@
2005-08-12rewrite the reading of the status page, which in turn adds support forDavid Gwynne
monitoring the fans, powersupplies, doorlock, and alarm as well the temps. ok deraadt@ marco@
2005-08-10use the appropriate flags to scsi_scsi_cmd during autoconf so we dont spinDavid Gwynne
forever on mp kernels problem reported by matthieu baptiste
2005-08-08Fill in device structure, bad dlg@Marco Peereboom
2005-08-05dont do an inquiry in attach just to print the safte revision number. itDavid Gwynne
is window dressing. zap it deraadt@
2005-08-05switch safte from using a scsi cmd at softclock to doing the commandsDavid Gwynne
in a kernel thread. very similair to the same change in ses.c. ok marco@ beck@ deraadt@
2005-08-05READ BUFFER is a generic opcode, so dont define our ownDavid Gwynne
2005-08-05shorten dmesg outputTheo de Raadt
2005-08-05make the naming of the safte files consisten with the rest of the scsiDavid Gwynne
drivers ok krw@ deraadt@ marco@