summaryrefslogtreecommitdiff
path: root/sys/scsi/ch.c
AgeCommit message (Expand)Author
2020-08-11Explicitly #include <scsi/scsi_debug.h> rather than assuming scsiconf.h will doKenneth R Westerback
2020-06-30Nuke unneeded 'sa_inqbuf' member of struct scsi_attach_args. It alwaysKenneth R Westerback
2019-12-06Various cleanup tweaks. 'return' is not a function. KNF. Whitespace,Kenneth R Westerback
2019-12-05Shrink scsi_mode_do_sense() parameter list by eliminating the threeKenneth R Westerback
2019-12-01Don't overwrite original error returned by scsi_do_mode_sense().Kenneth R Westerback
2019-11-29Add defines for changer mode page codes. Move AUDIO_PAGE define toKenneth R Westerback
2019-11-28Always pass a pointer to 'big' to scsi_do_mode_sense().Kenneth R Westerback
2019-11-23Consistently use ISSET() to check for set flags.Kenneth R Westerback
2019-11-23Consistently use !ISSET() to check for unset flags.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-11-21Be consistent and always use [!]ISSET() to test flags in xs->flags.Kenneth R Westerback
2019-09-27Add/tweak #endif comments to make spelunking via grep more rewarding.Kenneth R Westerback
2019-01-20No leading space(s) before labels.Kenneth R Westerback
2016-03-12Standardize on calling local scsi_link variables 'link' instead ofKenneth R Westerback
2015-08-23add some sizes to free. looked over by deraadtTed Unangst
2015-03-14Remove some includes include-what-you-use claims don'tJonathan Gray
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-17Update ch(4) to use ISO C style function definitions to avoidMatthew Dempsky
2011-03-31- use nitems(); no binary change.Jasper Lievisse Adriaanse
2011-03-17use dma_alloc/dma_free instead of malloc to allocate buffers which needTheo de Raadt
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-22Eliminate scsi_scsi_cmd() now that ss(4) is gone and with it theKenneth R Westerback
2010-07-01Die struct scsi_device! Die! Instead, save a pointer to the routineKenneth R Westerback
2010-06-26Don't #include <sys/user.h> into files that don't need the stuffPhilip Guenthe
2010-06-15dont pass the dev_t from the scsi device drivers into the midlayer forDavid Gwynne
2009-01-10Get rid of eye-bleeding horror of casting pointers to u_long to addBob Beck
2009-01-10Don't try to cast an lvalue which is forbidden and something pcc, lint,Jonathan Gray
2008-06-22Replace MUSTEK_RETRIES, SCANJET_RETRIES and ST_RETRIES with SCSI_RETRIES,Kenneth R Westerback
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
2006-11-28rename scsibus_attach_args to scsi_attach_args. this can help avoidDavid Gwynne
2006-11-27more magic removalBob Beck
2006-11-27rework asc/ascq handling to get rid of "magic" 0x values in the code, changesBob Beck
2006-10-07make cd-roms retry forever while the device indicates that it isBob Beck
2006-06-15 Quell dmesg spewage from ch(4) - this diff moves much of theBob Beck
2006-05-31fix treeTheo de Raadt
2006-05-31 Add support for primary and alternate volume tags to ch(4) - borrowedBob Beck
2006-05-28Fix open(2) semantics for ch(4) to not be completely on fresh minty crack:Bob Beck
2006-05-11Zap trailing whitespace.Kenneth 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-13Use scsi_do_mode_sense(). Testing on beck@'s new LTO changer.Kenneth R Westerback
2005-05-23Don't bzero() data before calling scsi_mode_sense[_big]() sinceKenneth R Westerback
2005-05-14Add scsi_mode_[sense|select]_big() and use it instead ofKenneth R Westerback
2005-04-05Factor out scsi_mode_sense() and scsi_mode_select() like NetBSD does.Kenneth R Westerback
2004-11-30No longer require write permission for read-only SCSI commandsKenneth R Westerback