summaryrefslogtreecommitdiffstats
path: root/sys/cam/scsi/scsi_all.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix several potential buffer overrun conditions. These changes have beenken1998-10-151-2/+3
| | | | | | | | tested both in the kernel and in userland. Also, fix a couple of printf warnings that show up when CAMDEBUG is defined. Reviewed by: imp Partially submitted by: imp
* Modify the changer driver so it can handle (hopefully!) changers that needken1998-10-021-2/+30
| | | | | | | | | | | | | | | | | | | | | | | | | block descriptors enabled on mode sense commands. Basically, we try sending a mode sense with block descriptors disabled (the previous default), and if it fails, we try sending the mode sense with block descriptors enabled. If that works, we note that in a runtime quirk entry, so we don't bother disabling block descriptors again for the device. This problem was first reported by Chris Jones <cjones@honors.montana.edu> on one of the NetBSD lists, but I'd imagine that some FreeBSD users would have run into it eventually as well, since our changer driver is derived form the NetBSD changer driver. Also, change some of the probe logic so that we do the right thing in the case of a failure to attach. Fix a memory leak in chgetparams(). Add a couple of inline helper functions to scsi_all.h to correctly return the start of a mode page. NetBSD PR: kern/6214 Reviewed by: gibbs
* In the bootverbose case, print out error messages for all errors that willken1998-09-291-1/+2
| | | | | | not be retried again, even if the SF_NO_PRINT flag is set. Reviewed by: gibbs
* Fix the CAM code so that people can compile kernels with the CD driver butken1998-09-181-1/+69
| | | | | | | | | | | | | | | | | without the DA driver. The problem was that the CD driver depended on scsi_read_write() and scsi_start_stop(), which were defined in scsi_da.c. I moved both functions, and their associated data structures and defines from scsi_da.* to scsi_all.*. This is technically the "wrong" thing to do since those commands are really only for direct-access type devices, not for all SCSI devices. I think, though, that the advantage (allowing people to compile kernels without the disk driver) outweighs any architectural purity arguments. PR: kern/7969 Reviewed by: gibbs
* SCSI Peripheral drivers for CAM:gibbs1998-09-151-0/+814
da - Direct Access Devices (disks, optical devices, SS disks) cd - CDROM (or devices that can act like them, WORM, CD-RW, etc) ch - Medium Changer devices. sa - Sequential Access Devices (tape drives) pass - Application pass-thru driver targ - Target Mode "Processor Target" Emulator pt - Processor Target Devices (scanners, cpus, etc.) Submitted by: The CAM Team
OpenPOWER on IntegriCloud