summaryrefslogtreecommitdiff
path: root/sys/scsi/scsi_base.c
AgeCommit message (Expand)Author
2020-08-19Replace last 2 'blah & (flag1 | flag2) == 0' with !ISSET(blah, (flag1 | flag2)).Kenneth R Westerback
2020-08-11Explicitly #include <scsi/scsi_debug.h> rather than assuming scsiconf.h will doKenneth R Westerback
2020-07-27Refactor scsi_show_flags() to allow 32-bit flags. Display unnamed flags as oneKenneth R Westerback
2020-07-27SDEV_2NDBUS is gone. Update flagnames[] appropriately.Kenneth R Westerback
2020-07-16Access scsibus_softc info (luns, adapter, adapter_target,Kenneth R Westerback
2020-03-12Pass scsi_mode_sense_buf pointers to scsi_mode_sense[_buf]() ratherKenneth R Westerback
2020-03-12Check for short mode sense error inside scsi_mode_sense_big()Kenneth R Westerback
2020-03-12Eliminate 'len' parameter from scsi_mode_sense[_big](). It'sKenneth R Westerback
2020-03-11No need to pass 20000 to scsi_mode_sense[_big]() as the desiredKenneth R Westerback
2020-01-22scsi_delay(): sleep without lboltcheloha
2019-12-06Various cleanup tweaks. 'return' is not a function. KNF. Whitespace,Kenneth R Westerback
2019-12-05Don't discard error from mode sense (6) if mode sense (10) isKenneth R Westerback
2019-12-05Shrink scsi_mode_do_sense() parameter list by eliminating the threeKenneth R Westerback
2019-12-05No need for 'byte2' parameter to scsi_mode_sense[_big]() since weKenneth R Westerback
2019-12-05Move prototypes for scsi_mode_sense(), scsi_mode_sense_big(),Kenneth R Westerback
2019-12-04Convert infinite sleeps to {m,t}sleep_nsec(9).Martin Pieuchot
2019-12-03Check for expected mode sense page code as well as expected mode page length ...Kenneth R Westerback
2019-12-03Add display of mode sense data to SCSIDEBUG.Kenneth R Westerback
2019-12-02Have SCSIDEBUG show the number of bytes of VPD inquiry data received,Kenneth R Westerback
2019-12-02Don't forget the scsi_vpd_header when calculating the number of bytesKenneth R Westerback
2019-12-01Tweak variable names to be consistent with 'pg_code' and 'pg_length'Kenneth R Westerback
2019-12-01Make prototype and implementation signatures the same by removingKenneth R Westerback
2019-11-28Abstract mode sense block descriptor parsing into a separate function.Kenneth R Westerback
2019-11-28Align an annoying comment.Kenneth R Westerback
2019-11-28Always pass a pointer to 'big' to scsi_do_mode_sense().Kenneth R Westerback
2019-11-26Don't zero existing values for density, block_count and block_size inKenneth R Westerback
2019-11-25Move struct scsi_read_cap_data and struct scsi_read_cap_data_16 toKenneth 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-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-11-21Be consistent and always use SET() to set flags in xs->flags.Kenneth R Westerback
2019-11-09Fix SCSIDEBUG display of VPD inquiry data.Kenneth R Westerback
2019-09-29Introduce SC_DEBUG_SENSE() and simplify code by eliminating a bunchKenneth R Westerback
2019-09-29Move some logic inside scsi_show_xs() instead of surrounding theKenneth R Westerback
2019-09-29Tweak some whitespace to make autoindenter happy. Use consistent naming idiom...Kenneth R Westerback
2019-09-27Add/tweak #endif comments to make spelunking via grep more rewarding.Kenneth R Westerback
2019-09-27Shuffle and consolidate SCSIDEBUG declarations into fewer sections inKenneth R Westerback
2019-09-23When printing the scsi_link info under SCSIDEBUG show state, luns,Kenneth R Westerback
2019-09-21Expand scsi_inquiry_data to 96 bytes to include new fields. If theKenneth R Westerback
2019-09-20Print inquiry and read capacity (10 and 16) data under SCSIDEBUG.Kenneth R Westerback
2019-09-01Adopt the SCSI versioning #define's from FreeBSD. Eliminate theKenneth R Westerback
2019-08-28Introduce SCSI0(), SCSI2() and SCSI3() defines to clarify (some) usesKenneth R Westerback
2017-09-08If you use sys/param.h, you don't need sys/types.hTheo de Raadt
2017-05-29To prevent anyone else from stumbling on this (now) archaic bit ofKenneth R Westerback
2016-09-15all pools have their ipl set via pool_setipl, so fold it into pool_init.David Gwynne
2016-03-12Standardize on calling local scsi_link variables 'link' instead ofKenneth R Westerback
2016-03-10Enforce some naming sanity. Stop using 'sc_link' to mean two differentKenneth R Westerback
2016-03-07Sync no-argument function declaration and definition by adding (void).Christian Weisgerber
2015-06-07More damned eye searing whitespace.Kenneth R Westerback