summaryrefslogtreecommitdiffstats
path: root/sys/cam
Commit message (Collapse)AuthorAgeFilesLines
* After talking with njl@, change this wildcard entry to be a bit less wild.imp2007-07-011-1/+1
| | | | Approved by: re (blanket)
* Quirk for WD Mybook. Seems they do not like serial number queries.imp2007-06-301-0/+12
| | | | | | Submitted by: Jason Harris PR: 107495 Approved by: re@ (blanket)
* Quirk for ChipsBnk usb stickimp2007-06-301-0/+8
| | | | | | Submitted by: Mark Andrews PR: 103702 Approved by: re@ (blanket)
* Add quirk for JoyFly 128mb USB Flash Driveimp2007-06-301-0/+8
| | | | | | submitted by: Toni Schmidbauer PR: 96133 Approved by: re@ (blanket)
* quirk for I/O Magic USB flash drive "Giga Bank"imp2007-06-301-0/+8
| | | | | | Submitted by: Jeff Anton PR: 108810 Approved by: re@ (blanket)
* Samsung MP0402H quirkimp2007-06-301-0/+8
| | | | | | Submitted by: Gipsy<wint3r@securimail.com> PR: 108427 Approved by: re@ (blanket)
* Add support for JNC MP3 Playerimp2007-06-301-0/+8
| | | | | | Submitted by: User & <dhenin@cypries.cyclopes.org> PR: 94439 Approved by: re (blanket)
* Philips USB Key Audio KEY013imp2007-06-301-0/+8
| | | | | | Submitted by: Arnoud Engelfriet PR: 68412 Approved by: re (blanket)
* Support for iRiver U10 USB connectionimp2007-06-281-0/+8
| | | | | | PR: 92306 Submitted by: Soren Dossing Approved by: re (blanket)
* Quirk for Denver MP3 player usb.imp2007-06-281-0/+8
| | | | | | Submitted by: Ed Schouten PR: 107101 Approved by: re (blanket for device supprot)
* Prepare for future integration between CAM and newbus. xpt_bus_registerscottl2007-06-173-4/+6
| | | | | | | now takes a device_t to be the parent of the bus that is being created. Most SIMs have been updated with a reasonable argument, but a few exceptions just pass NULL for now. This argument isn't used yet and the newbus integration likely won't be ready until after 7.0-RELEASE.
* Revert an accidental change from the previous rev.scottl2007-06-161-2/+1
|
* Work around the other uses of M_WAITOK.scottl2007-06-162-4/+11
|
* Work around a malloc locking problem.scottl2007-06-161-1/+6
|
* Commit for Nate his "guidelines for submitting quirks".mjacob2007-06-101-2/+210
|
* Despite several examples in the kernel, the third argument ofdwmalone2007-06-042-2/+2
| | | | | | | | | | | | | sysctl_handle_int is not sizeof the int type you want to export. The type must always be an int or an unsigned int. Remove the instances where a sizeof(variable) is passed to stop people accidently cut and pasting these examples. In a few places this was sysctl_handle_int was being used on 64 bit types, which would truncate the value to be exported. In these cases use sysctl_handle_quad to export them and change the format to Q so that sysctl(1) can still print them.
* Add a placeholder document to be filled out by Nate which will describemjacob2007-05-291-0/+4
| | | | in detail the procedure for getting device quirks into the CAM subsystem.
* Back out 1.212 at Nate's request in order to go through themjacob2007-05-291-9/+0
| | | | actual formal process he's trying to get established for quirks..
* Use the Hitachi 2.5" HD, 120 GB as a USB device.mjacob2007-05-291-0/+9
| | | | | Submitted by: Joakim Bentholm` MFC after: 3 days
* Remove duplicate includes.cognet2007-05-232-3/+0
| | | | Submitted by: Cyril Nguyen Huu <cyril ci0 org>
* Zero scsi_readcapacity allocations so we can reallymjacob2007-05-181-4/+3
| | | | | | | tell if there has been data returned (for some broken residual checking points). MFC after: 3 days
* Release the bus reference that is acquired when doing a CAMIOCOMMANDscottl2007-05-161-0/+1
| | | | ioctl. This should make SIM removal a bit more robust.
* Remove an assertion in xpt_print_path() that makes debugging code much morescottl2007-05-161-1/+0
| | | | difficult.
* Add a helper function for registering async callbacks. Besidesscottl2007-05-1611-272/+70
| | | | eliminating a lot of duplicated code, this also fixes a locking edge case.
* Eliminate the use of M_TEMP.scottl2007-05-146-115/+122
|
* Only schedule the xpt_finishconfig_task once. This fixes some potentialscottl2007-04-271-4/+6
| | | | panics on boot.
* Remove obsolete headers. Move kernel specific headers under #ifdefsscottl2007-04-231-9/+2
|
* Retire the spl() markers. Add in some minor missed locking as a result.scottl2007-04-192-193/+31
|
* Inline cam_periph_lock|unlock to make debugging easier. Use morescottl2007-04-193-30/+21
| | | | CAM_SIM_LOCK() more uniformly.
* Fix a leaked lock in dashutdown.scottl2007-04-191-1/+3
|
* Avoid problems with make_dev.scottl2007-04-192-0/+4
|
* Zero the CCBs when mallocing them.scottl2007-04-191-2/+2
|
* Split the camisr into per-SIM done queues. This optimizes the locking ascottl2007-04-193-45/+49
| | | | | little bit and allows for direct dispatch of the doneq from certain contexts that would otherwise face recursive locking problems.
* Missed locking the dump and shutdown entry points in the scsi_da driver.scottl2007-04-181-2/+9
|
* Revert a driver API change to xpt_alloc_ccb that isn't necessary. Fix ascottl2007-04-185-18/+31
| | | | couple of associated error checks.
* Don't delete the devalias, as per the man page.scottl2007-04-171-4/+1
| | | | Submitted by: jmg
* For the XPT_SASYNC_CB operation, only decouple the broadcast to the busscottl2007-04-161-86/+67
| | | | | and device lists instead of decoupling the whole operation. This avoids problems with SIMs going away.
* Drop the topology lock before calling the periph oninvalidate and dtorscottl2007-04-161-7/+5
| | | | vectors.
* Drop the periph/sim lock when calling disk_destroy().scottl2007-04-162-5/+3
|
* Destroy the devalias before destroying the dev.scottl2007-04-161-1/+1
|
* Remove Giant from CAM. Drivers (SIMs) now register a mutex that CAM willscottl2007-04-1519-957/+1210
| | | | | | | | | | | use to synchornize and protect all data objects that are used for that SIM. Drivers that are not yet MPSAFE register Giant and operate as usual. RIght now, no drivers are MPSAFE, though a few will be changed in the coming week as this work settles down. The driver API has changed, so all CAM drivers will need to be recompiled. The userland API has not changed, so tools like camcontrol do not need to be recompiled.
* A fix for the SG_GET_TIMEOUT function slipped into a previous commit byscottl2007-04-102-8/+22
| | | | | accident. Remove the text describing the problem as it is no longer relevant. Also give real implementations for the GET and SET ioctls.
* Make use of M_ZERO in various malloc calls.scottl2007-04-091-5/+4
|
* Fix a logic bug that slipped in at the last minute and apparently escapedscottl2007-04-091-4/+3
| | | | testing.
* Add the CAM 'SG' peripheral device. This device implements a subset of thescottl2007-04-072-0/+1126
| | | | | | | | | | | | | | | | | | | | | | | Linux SCSI SG passthrough device API. The intention is to allow for both running of Linux apps that want to talk to /dev/sg* nodes, and to facilitate porting of apps from Linux to FreeBSD. As such, both native and linuxolator entry points and definitions are provided. Caveats: - This does not support the procfs and sysfs nodes that the Linux SG driver provides. Some Linux apps may rely on these for operation, others may only use them for informational purposes. - More ioctls need to be implemented. - Linux uses a naming scheme of "sg[a-z]" for devices, while FreeBSD uses a scheme of "sg[0-9]". Devfs aliasis (symlinks) are automatically created to link the two together. However, tools like camcontrol only see the native names. - Some operations were originally designed to return byte counts or other data directly as the syscall return value. The linuxolator doesn't appear to support this well, so this driver just punts for these cases. Now that the driver is in place, others are welcome to add missing functionality. Thanks to Roman Divacky for pushing this work along.
* A silly buglet found by Coverity- check the return value frommjacob2007-03-151-1/+7
| | | | cam_periph_acquire.
* Use tsleep() rather than msleep() with a NULL mtx.jhb2007-02-271-3/+3
|
* Add an xpt_rescan function and a thread that will fieldmjacob2007-02-232-4/+50
| | | | | | | | | | | | | | rescan requests. The purpose of this is to allow a SIM (or other entities) to request a bus rescan and have it then fielded in a different (process) context from the caller. There are probably better ways to accomplish this, but it's a very small change that helps solve a number of problems. Reviewed by: Justin, Ken and Scott. MFC after: 2 weeks
* Reduce the noise when plugging in (USB) mass storage devices, like a 4 portn_hibma2007-02-211-2/+6
| | | | | | | | | flash card reader. Also remove an 'Opened da0 -> <random number>' which is not needed on a daily basis (available through bootverbose). Reviewed by: phk, ken MFC after: 1 week
* Use the more specific 'EM732X' designation rather than * to disable syncimp2007-01-231-1/+1
| | | | cache commands, per request from njl@.
OpenPOWER on IntegriCloud