summaryrefslogtreecommitdiffstats
path: root/sys/cam
Commit message (Collapse)AuthorAgeFilesLines
* * 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
* Remove unused static variable quantum.marcel2002-04-231-2/+0
|
* Fix 3 of the four problems with my last indentation fix. ("fixing" theken2002-04-011-4/+2
| | | | | | | | fourth would be a divergence from the prevailing style.) Thanks to bde for catching this. Pointed out by: bde
* Fix an indentation problem.ken2002-04-011-7/+7
|
* DA (scsi) and AD (ata) diskdrivers:phk2002-03-311-48/+10
| | | | Make the dump routine do just writing of data.
* Maxtor Personal Storage 3000XT (Firewire) hangs uponsimokawa2002-03-241-0/+11
| | | | | | serial number probing. MFC after: 1 week
* Automatically detect devices that do not support READ(6)/WRITE(6)simokawa2002-03-231-1/+75
| | | | | | | | | | | | | | and upgrade to using 10 byte cdbs. As far as I tested, this works efficiently for most of the SBP-II/Firewire devices but most of the umass devices still need ad-hoc work around because umass-sim doesn't return any SCSI errors. A sysctl nob is also added for the last resort. I hope we don't need DA_Q_NO_6_BYTE quirks anymore. Reviewed by: gibbs MFC after: 1 week
* Remove __P.alfred2002-03-203-160/+159
|
* Mark some arguments __unused.phk2002-03-111-2/+2
|
* Add support for Simplified Direct Access Device in scsi_op_desc().simokawa2002-03-111-0/+4
|
* Simple p_ucred -> td_ucred changes to start using the per-thread ucredjhb2002-02-271-1/+1
| | | | reference.
* GC: BIO_ORDERED going away.phk2002-02-222-5/+2
|
* - Add support for Simplified Direct Access Device, mostly forsimokawa2002-02-212-1/+21
| | | | | | | | Firewire/SBP-II devices. - Add quirk for Logitec USB/Firewire HDD. MFC after: 3 days.
* o Move NTOHL() and associated macros into <sys/param.h>. These aremike2002-02-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | deprecated in favor of the POSIX-defined lowercase variants. o Change all occurrences of NTOHL() and associated marcros in the source tree to use the lowercase function variants. o Add missing license bits to sparc64's <machine/endian.h>. Approved by: jake o Clean up <machine/endian.h> files. o Remove unused __uint16_swap_uint32() from i386's <machine/endian.h>. o Remove prototypes for non-existent bswapXX() functions. o Include <machine/endian.h> in <arpa/inet.h> to define the POSIX-required ntohl() family of functions. o Do similar things to expose the ntohl() family in libstand, <netinet/in.h>, and <sys/param.h>. o Prepend underscores to the ntohl() family to help deal with complexities associated with having MD (asm and inline) versions, and having to prevent exposure of these functions in other headers that happen to make use of endian-specific defines. o Create weak aliases to the canonical function name to help deal with third-party software forgetting to include an appropriate header. o Remove some now unneeded pollution from <sys/types.h>. o Add missing <arpa/inet.h> includes in userland. Tested on: alpha, i386 Reviewed by: bde, jake, tmm
* Add NO_6_BYTE quirk entry for the LaCie Ltd. 105311 80 Gig USB2 drive.bsd2002-02-181-1/+8
| | | | Submitted by: Brian Schellenberger <bts@babbleon.org>
* Remove spurious ';'phk2002-02-101-1/+0
| | | | Obtained from: ~bde/sys.dif.gz
OpenPOWER on IntegriCloud