summaryrefslogtreecommitdiffstats
path: root/sys/cam
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Add support of PhotoClip USB Camera (http://www.myphotoclip.com):sobomax2002-01-311-0/+7
| | | | | | | | | - Vendor&Device IDs for USB product, - quirk for SCSI CAM. PR: 34481 Submitted by: Olexander Kunytsa <kunia@x-telecom.net> MFC in: 3 days
* Define the kern.cam sysctl in the cam layer, rather than multiply in severalmsmith2002-01-095-8/+13
| | | | | | | peripheral drivers. Remove Ken's comment to the effect that this needed to be done. Staticise camnet_ih and cambio_ih.
* Staticise a debugging variable.msmith2002-01-091-1/+1
| | | | Submitted by: non
* Add quirk for DIVA USB Mp3 Player.sobomax2002-01-081-0/+8
| | | | | | | PR: kern/33638 Submitted by: Olexander Kunytsa <kunia@x-telecom.net> MFC after: 3 days (pending re's approval)
* Extend Olympus E-100RS quirk to cover entire E series of digital cameras.kbyanc2002-01-071-5/+2
|
* Change the preemption code for software interrupt thread schedules andjhb2002-01-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mutex releases to not require flags for the cases when preemption is not allowed: The purpose of the MTX_NOSWITCH and SWI_NOSWITCH flags is to prevent switching to a higher priority thread on mutex releease and swi schedule, respectively when that switch is not safe. Now that the critical section API maintains a per-thread nesting count, the kernel can easily check whether or not it should switch without relying on flags from the programmer. This fixes a few bugs in that all current callers of swi_sched() used SWI_NOSWITCH, when in fact, only the ones called from fast interrupt handlers and the swi_sched of softclock needed this flag. Note that to ensure that swi_sched()'s in clock and fast interrupt handlers do not switch, these handlers have to be explicitly wrapped in critical_enter/exit pairs. Presently, just wrapping the handlers is sufficient, but in the future with the fully preemptive kernel, the interrupt must be EOI'd before critical_exit() is called. (critical_exit() can switch due to a deferred preemption in a fully preemptive kernel.) I've tested the changes to the interrupt code on i386 and alpha. I have not tested ia64, but the interrupt code is almost identical to the alpha code, so I expect it will work fine. PowerPC and ARM do not yet have interrupt code in the tree so they shouldn't be broken. Sparc64 is broken, but that's been ok'd by jake and tmm who will be fixing the interrupt code for sparc64 shortly. Reviewed by: peter Tested on: i386, alpha
* Add support for Nikon Coolpix E775 and E885 cameras.jedgar2002-01-011-2/+9
| | | | | PR: 33407 (E885) Submitted by: Brian Behlendorf <brian@hyperreal.org> (E885)
* o Add KLD support for scsi_low.non2001-12-151-0/+11
| | | | | | o Add KLD dependency of ncv, nsp and stg drivers to scsi_low. Submitted by: takawata
OpenPOWER on IntegriCloud