summaryrefslogtreecommitdiffstats
path: root/sys/cam
Commit message (Collapse)AuthorAgeFilesLines
* Back out last commit.peter2003-01-061-1/+1
|
* Move dashutdown from SHUTDOWN_PRI_DEFAULT to SHUTDOWN_PRI_FIRST.peter2003-01-061-1/+1
| | | | | | | | | | | Otherwise, the scsi devices that it is trying to issue commands to may have gone away. This is what caused shutdown to hang on ia64 systems with mpt scsi controllers. The bus system has torn down the device tree and reset the mpt controller etc, and suddenly along comes dashutdown and wants to issue a few more scsi commands.... <HANG!> This shouldn't work on i386 either, but it seems to work solely due to luck.
* Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/schweikh2002-12-301-1/+1
| | | | Add FreeBSD Id tag where missing.
* Quirk for Memorybird pen drivenjl2002-12-181-0/+8
| | | | | | PR: kern/34712 Submitted by: Oliver Fromme <olli@lurza.secnetix.de> MFC after: 3 days
* The HP DAT 40 tape drive should be able to handle variable block sizes.trhodes2002-12-161-0/+4
| | | | | | | | | But for some reason the block size is different when a different type of tape is placed in the drive. This commit fixes that. PR: 46209 Submitted by: Alex Wang <alex@alexwang.com> Approved by: mjacob
* Clear the "device open" flag in daopen() before returning a error,yar2002-12-121-0/+1
| | | | | | | so the device won't stay marked as open whereas it isn't. Approved by: re, njl MFC after: 1 week
* Release the reference to the peripheral if returning a error.yar2002-11-291-0/+2
| | | | | | | | | That reference is to be held only if daopen() has been successful and until daclose() releases it. daclose() won't be called if daopen() has failed, though. Approved by: re, njl MFC after: 1 week
* Remove unnecessary includes and add sys/{lock,mutex}.hnjl2002-11-251-6/+2
| | | | | Submitted by: bde Approved by: re (previously)
* Whitespace cleanup that was missed by quirks commit 1.114njl2002-11-231-4/+4
|
* Allow acd(4) and cd(4) to support old behavior for CDRIOC*SPEED ioctls.njl2002-11-231-0/+6
| | | | | | | | | | If the value from the user is less than 177, assume it is a multiple of a single speed CDROM and convert to KB/sec. No complaints from: sos Reviewed by: ken Approved by: re MFC after: 1 day
* Update quirks, adding PR references and fixing a capitalization mismatch.njl2002-11-231-3/+5
| | | | | PR: kern/45494 Approved by: re
* New SCSI target emulator codenjl2002-11-222-2103/+922
| | | | | | | | | | | | | | | | | | | | | This code allows a user program to enable target mode on a SIM and then emulate any number of devices (disks, tape drives, etc.) All decisions about device behavior (UA, CA, inquiry response) are left to the usermode program and the kernel driver is merely a conduit for CCBs. This enables multiple concurrent target emulators, each using its own backing store and IO model. Also included is a user program that emulates a disk (RBC) using a file as a backing store. This provides functionality similar to md(4) at the CAM layer. Code has been tested on ahc(4) and should also work on isp(4) (and other SIMs that gain target mode support). It is a complete rewrite of /sys/cam/scsi_target* and /usr/share/examples/scsi_target. Design, comments from: gibbs Supported by: Cryptography Research Approved by: re
* Panic message strings do not need a trailing \n.imp2002-11-141-1/+1
| | | | Reviewed by: ken
* Panic message should end with \n.imp2002-11-142-12/+12
| | | | Reviewed by: ken a while ago.
* Fix instances of macros with improperly parenthasized arguments.alfred2002-11-091-2/+2
| | | | Verified by: md5
* * Add CDRIOC{READ,WRITE}SPEED ioctls to cd(4). Units are in KB/sec.njl2002-10-182-0/+58
| | | | | | | | | | | | | | | * Change atapi-cd ioctls to use the same units. * Change burncd, cdcontrol to convert CDROM speed to KB/sec before calling the ioctl. Add a "max" speed option for their command lines. This change does not break ABI but does change the units passed through the ioctl so 3rd party software that uses cdrio.h will have to convert (most likely by multiplying CDROM speed by 177 to get KB/s). PR: kern/36845 Submitted by: Philipp Mergenthaler <p@i609a.hadiko.de> (CAM ioctls) Reviewed by: sos, ken MFC after: 1 month
* Backout my previous "brain cramp" commit.pirzyk2002-10-181-11/+9
| | | | | | Requested by: Most developers Apologies to: Most developers, with special note to <ken@kdm.org> Collabroation in the future with: Kenneth D. Merry <ken@kdm.org>
* Changed the scsi mode command to use 10 bytes scsi commands insteadpirzyk2002-10-171-9/+11
| | | | | | | of the 6 byte ones. This helps with using a IDE cdrom behind a USB interface. PR: kern/43885
* Quirk for HP 315 USB Digital Cameranjl2002-10-171-0/+8
| | | | | | | Submitted by: Keith White <kwhite@uottawa.ca> PR: kern/41010 MFC after: 1 week
* Trapdoor access to cd%da and cd%c so they still work, but do not let themphk2002-10-111-0/+24
| | | | show up in /dev.
* Use malloc(9)'s M_ZERO rather than explicit bzero(9) call.phk2002-10-111-2/+2
|
* Fix the location of the length bytes in the 12-byte read/write CDBken2002-10-081-1/+1
| | | | | | | | | structure. This has been broken since 1998, but probably hasn't been noticed because it takes a read/write of 64K blocks (32MB with 512 byte blocks) to trigger using the 12 byte read/write CDB in scsi_read_write(). Submitted by: "Moore, Eric Dean" <emoore@lsil.com> MFC after: 3 days
* Correctly convert to appropriate blocksize.phk2002-10-071-1/+2
| | | | | | | note to self: Never check block-size sensitive patches on Sun compatible CD drives. Sponsored by: DARPA & NAI Labs.
* Unhook the SCSI CD driver from the disk "mini-layer" and/or GEOM.phk2002-10-041-117/+23
| | | | | | | | | | | | | | | | | | SCSI disks are too square pegs for the round holes in both of these. And since atapi-cd has clearly shown that there are better acccess models for CD media than trying to pretend to be a classical disk, we stop the masquerade rather than patch up the costume. But do implement the DIOCGMEDIASIZE and DIOCGSECTORSIZE so it will be possible to manually attach to GEOM, should some the need arise. Ideally, this driver should do media-detection and call make_dev() when a CD is inserted and destroy_dev() when it is removed, this would allow our future devd(8) to automount etc etc but coding that takes SCSI-clue beyond anything I posses. Tested on: sparc64
* Fix style problems in the quirk entry section.ken2002-10-031-4/+6
| | | | MFC after: 2 weeks
* Add quirks for DaisyTechnology PhotoClip camera.sobomax2002-10-011-0/+7
| | | | | Submitted by: Olexander Kunitsa <kunia@istc.kiev.ua> MFC after: 3 days
* Add quirk for Apacer HandyDriveguido2002-09-301-0/+7
| | | | MFC after: 1 week
* Be consistent about "static" functions: if the function is markedphk2002-09-284-13/+13
| | | | | | static in its prototype, mark it static at the definition too. Inspired by: FlexeLint warning #512
* use __packed.alfred2002-09-231-2/+2
|
* A SCSI_DELAY of zero is a legitimate value to have.mjacob2002-09-231-2/+4
| | | | The notion that you must "always" have a delay is at best misinformed.
* Note that the large Hitachi's are also CAM_QUIRK_HILUNSmjacob2002-09-231-0/+8
|
* (This commit touches about 15 disk device drivers in a very consistentphk2002-09-202-64/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and predictable way, and I apologize if I have gotten it wrong anywhere, getting prior review on a patch like this is not feasible, considering the number of people involved and hardware availability etc.) If struct disklabel is the messenger: kill the messenger. Inside struct disk we had a struct disklabel which disk drivers used to communicate certain metrics to the disklayer above (GEOM or the disk mini-layer). This commit changes this communication to use four explicit fields instead. Amongst the benefits is that the fields do not get overwritten by wrong or bogus on-disk disklabels. Once that is clear, <sys/disk.h> which is included in the drivers no longer need to pull <sys/disklabel.h> and <sys/diskslice.h> in, the few places that needs them, have gotten explicit #includes for them. The disklabel inside struct disk is now only for internal use in the disk mini-layer, so instead of embedding it, we malloc it as we need it. This concludes (modulus any mistakes) the series of disklabel related commits. I belive it all amounts to a NOP for all the rest of you :-) Sponsored by: DARPA & NAI Labs.
* Don't use dkunit() to find out unit, we already have our softc pointerphk2002-09-201-5/+3
| | | | | | | | where we can find it. Don't call dkpart() just to print the result, it is constant. Sponsored by: DARPA & NAI Labs.
* Make SCSI_DELAY setable at boot time and runtime via thebrooks2002-09-024-24/+85
| | | | | | kern.cam.scsi_delay tunable/sysctl. Reviewed by: mdodd, njl
* Add \n to various printfs. grep shows these should be the last ones.njl2002-08-271-3/+3
|
* Adjust scsi_calc_syncparam() to the exception table changing from 10ths togibbs2002-08-261-2/+4
| | | | | 100ths of ns. This should correct a problem with camcontrol "ignoring" requests to negotiate to slower speeds.
* Replace various spelling with FALLTHROUGH which is lint()ablecharnier2002-08-251-2/+2
|
* Add some \n's to printf()speter2002-08-241-5/+5
|
* Fix unit wiring. Also, change the variable "hit" to "wired" so that itpeter2002-08-241-11/+9
| | | | | | is more obvious. Obtained from: gibbs/ken
* Updates to cmd6workaround:njl2002-08-161-15/+18
| | | | | | | | | * Only update cdb in place if not CDB_POINTER * Correctly check for QFRZ before restarting CCB * More accurate printf message * style(9) changes at end Patch tested successfully on Maxtor 4 G120J6 GAK8.
* Remove cam_extend.[ch] after all references to them were removed.njl2002-08-152-145/+0
| | | | | PR: kern/39809 Approved by: gibbs
* Remove usage of cam_extend.c, replace with dev->si_drv1njl2002-08-159-243/+74
| | | | | PR: kern/39809 Approved by: gibbs
* Correct spelling of 'supplied'.robert2002-06-191-1/+1
| | | | PR: misc/39528
* If we boot verbose, then print out 'interesting' CAM errors that otherwisemjacob2002-06-071-5/+65
| | | | would hide problems (like Selection Timeout).
* Add the 160MHz syncrate to scsi_calc_syncrate() sync period exception table.gibbs2002-06-051-6/+7
|
* scsi_message.h:gibbs2002-06-052-6/+43
| | | | | | | | Include PPR option bits defined in SPI4. scsi_iu.h: Add data structures releated to parallel SCSI information units for use in SPI4 packetized protocol.
* Add REPORT LUNS basic infrastructure.mjacob2002-06-042-20/+77
|
* PR: kern/38208dillon2002-05-291-0/+7
| | | | X-MFC after: immediate w/ release eng approval.
* Add a Quirk entry for the USB SimpleTech UCF-100 compact flash reader.dillon2002-05-191-0/+7
| | | | | Note that even with the quirk entry the reader typically only works if the USB device is recognized by UHCI instead of the generic OHCI driver.
* Make Veritas Storage Appliance a HILUNS device.mjacob2002-04-241-0/+5
| | | | MFC after: 1 day
OpenPOWER on IntegriCloud