summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/umass.c
Commit message (Collapse)AuthorAgeFilesLines
* Move usb to a graveyard location under sys/legacy/dev, it is intended that thethompsa2009-02-231-3611/+0
| | | | | | | new USB2 stack will fully replace this for 8.0. Remove kernel modules, a subsequent commit will update conf/files. Unhook usbdevs from the build.
* must pack structures for architectures like armsam2008-12-241-2/+2
| | | | Reviewed by: thompsa
* Move all the hacks for the Huawei, Novatel and Qualcomm cards into a stubn_hibma2008-10-141-22/+0
| | | | | | | driver. This stub also hides the devices until they are ready to be used to avoid confusion (commented out for now).
* Fix a comment.n_hibma2008-10-141-9/+8
| | | | Submitted by: Nick Mann
* - Only refuse to attach to the first interface on the Huawei cards as forn_hibma2008-10-131-6/+23
| | | | | | | | | | example the Huawei Mobile has an SD card slot on the second interface. - Do not attach to Qualcomm and Novatel cards. If ignored these cards will switch to modem mode automatically it seems. - Reduce the priority on generic attachment to the appropriate level. Note: A better solution is to send an eject command straightaway, but that can be left till later.
* uark/ucom: Minor code cleanup.n_hibma2008-10-091-12/+1
| | | | | umass; Remove duplicated code. ukbd: Fill in the arg parameter on the through call.
* Quirks for SDS-infrared.com "Hotfind-D" camera.phk2008-10-081-0/+4
| | | | PR: 127943
* Tell umass to leave Huawei radio devices alone so ubsa(4) willphk2008-09-251-0/+7
| | | | be able to kick them into shape.
* Add support for the Alcor Card Reader (9361)remko2008-08-211-0/+4
| | | | | | | PR: 124656 Submitted by: Vincent Francois <vincentfrancois dot pro at gmail dot com> Approved by: imp (mentor, implicit) MFC after: 1 week
* o Add a quirk for Sony Handycam DCR-HC32E.maxim2008-08-131-0/+4
| | | | | | PR: usb/96599 Submitted by: Eugene Grosbein MFC after: 1 week
* Add support for the Nikon D300 cameraremko2008-05-161-0/+4
| | | | | | | PR: usb/118741 Submitted by: Yuri <yuri at tsoft dot com> Approved by: imp (mentor, implicit) MFC after: 3 days
* Add support for the VIA USB2IDE bridge [1].remko2008-02-211-0/+19
| | | | | | | | | PR: usb/95173 Submitted by: Goegele Hannes <diazepam@gmx.net> Ben Kelly <bkelly at vadev dot org> Tested by: blackend Approved by: imp (mentor, blanket for simple patches) X-MFC-After: 1 week
* Add quirks for Netac Onlydisk 2000 USB disk.davidxu2007-12-111-0/+4
|
* Add quirks, derived from the linux quirks table for:imp2007-07-051-4/+296
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o Adonics Cable 205 o Aiptek PocketCAM 3Mega o Belkin USB2SCSI o Casio QV DigiCam o CCYU EasyDisk ED1064 o Desknote UCR-61S2B o Epson Stylus Photo 875DC Card Reader o Epson Stylus Photo 895 Card Reader o Feiya 5-in-1 Card Reader o Hitachi Dvd-CAM DZ-MV100A Camcorder o HP CD-WRiter+ CD-4e o Insystem Storage Adapter v2 o Kyocera Finecam S3x o Kyocera Finecam S4 o Kyocera Finecam S5 o Kyocera Finecam L3 o Lexar USB CF Reader o MindAtWork Digital Wallet o Minolta Dimage F300 o Minolta Dimage E223 o Minsumi USB Fdd o Netac USB-CF-Card o NetChip USB Clik! 40 o Onspec MDCFE-B USB CF Reader o Onspec SIIG/Datafab Memory Stick + CF Reader/Writer o Onspec Datafab-based Reader o Onspec PNY/Datafab CF+SM Reader o Onspec SimpleTech/Datafab CF+SM Reader o Onspec MDSM-b Reader o Onspec USB To CF + SM Combo (LC1) o Onspec ImageMate SDDR55 o Panasonic LS-120 Camera o Samsung Techwin Digimax 410 o Shuttle eUSB SmartMedia / CompactFlash Adapter o Skanhex MD 7425 Camera o Skanhex SX 520z Camera o Sony Memorystick NW-MS7 o Sony Portable USB Hardrive V2 o Sony Memorystick PEG N760c o Sony Memorystick MSC-U03 o TREK/IBM USB memory key o Trumpion T33520 USB Flash Card Controller o Trumpion MP3 Player o Vivtar Vivicam 35Xx o WinMaxGroup USB Flash Disk 64M-C o Zoran Digital Camera EX-20 DSC and maybe a few others... Submitted by: Vaidas Damosevicius and flz PR: 79893 Reviewed by: njl, flz Approved by: re (blanket)
* Add support for Western Digital MyBook external enclosures. They needimp2007-07-051-0/+4
| | | | | | | | this quirk to work. Submitted by: Dierk Sacher PR: usb/99419 Approved by: re (blanket)
* WD Firewire/USB Combo hangs under load on USB interface. Fix withimp2007-07-021-0/+4
| | | | | | | | these quirks. Submitted by: John Pettitt PR: 79140 Approved by: re@ (blanket)
* umass quirk: Samsung YP-U2 USB MP3/Ogg Playerimp2007-06-301-0/+4
| | | | | | Submitted by: Ulrich Spoerlein PR: 114154 Approved by: re@ (blanket)
* quirk for CENTURY EX35QUAT disk enclosureimp2007-06-301-0/+4
| | | | | | Submitted by: Daniel Hartmeier PR: 94132 Approved by: re (blanket)
* Fix cheapy Myson USB-IDE adapterimp2007-06-301-0/+4
| | | | | | Submitted by: Arno J. Klaassen PR: 88939 Approved by: re@ (blanket)
* Expand the transform API to allow transports to return 'success' forimp2007-06-301-5/+20
| | | | | | | | | the command. Make UFI devices return 'success' when asked to do a SYNC_CACHE. There's no support for write caching in the UFI spec, so this is the most appropriate action to undertake. Reviewed by: scottl Approved by: re@ (blanket)
* Add support for YANO external USB-HDD.imp2007-06-211-0/+4
| | | | | | Submitted by: Norihiro TANAKA PR: 94742 Approved by: re (kensmith blanket)
* Latest round of usb cleanups:imp2007-06-211-9/+30
| | | | | | | | | | | | | | | | | | | o Consistently use device_foo_t and bus_foo_t for functions implementing device_foo and bus_foo respectively. Adjust those routines that were wrong (we should do this throughout the tree). o make all the modules depend on usb. Otherwise these modules won't load. o ucycom doesn't need usb_port.h o Minor unifdefing o uhub, umass, ums, urio, uscanner conversion complete. o ukbd: Remove the NO_SET_PROTO quirk (fixes a PR 77940). NetBSD removed their check and setting the proto a long time ago. o umodem panic fixed. UQ_ASSUME_CM_OVER_DATA quirk removed because I've never seen a umodem that needed this rejection for proection (this gets rid of ~20% of the quirks). Approved by: re@ (kensmith) PR: 77940
* s/logprintf/printf/gimp2007-06-201-1/+1
| | | | Approved by: re@
* Mark the few remaining drivers that haven't been converted as needingimp2007-06-181-0/+1
| | | | usb_port.h by explicitly including it.
* Expand USB_MATCH_STARTimp2007-06-171-1/+1
|
* Prepare for future integration between CAM and newbus. xpt_bus_registerscottl2007-06-171-1/+1
| | | | | | | 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.
* Remove more __OtherBSD__ ifdefs that don't make sense, and haven't forimp2007-06-131-2/+0
| | | | some time.
* Expand USB_DETACH, USB_ATTACH and USB_MATCH inline. No functionalimp2007-06-131-3/+6
| | | | change, and MD5's appear to be the same.
* Expand USB_ATTACH_{ERROR,SUCCESS}_RETURN inline and eliminate fromimp2007-06-121-10/+10
| | | | usb_port.h. They aren't needed, and are a legacy of this code's past.
* Kill USB_MATCH_SETUP, since this is the only place it was used in the tree.imp2007-06-091-8/+2
| | | | While I'm here, kill devinfo junk.
* Remove Giant from CAM. Drivers (SIMs) now register a mutex that CAM willscottl2007-04-151-0/+3
| | | | | | | | | | | 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.
* Some USB mass storage devices return the number of sectors in responseimp2007-02-271-0/+18
| | | | | | | | | | | | | | | | | | to a READ_CAPACITY request rather than the maximum sector (off by one problem). This causes a huge cascade of errors as the geom tasting code tries to read the last sector (which isn't really there in the face of this error). automated tools that manipulate disk labels and such also have issues. Create a new quirk READ_CAPACITY_OFFBY1 and add a quirk for the SanDISK ImageMate that I have that suffers from this problem (the SDDR-31). It intercepts the READ_CAPACITY response and adjusts it from number of sectors to max sector for devices with this quirk. Reading the Linux source suggests that there are a host of other devices with this issue, including iPods and some popular cameras. I've not added quirks for them, since I don't have the devices in front of me to test.
* Initialise {transport,protocol}{,_version} fields during a PATH_INQ to avoid an_hibma2007-02-211-1/+5
| | | | warning message.
* 2nd and final commit that moves us to CAM_NEW_TRAN_CODEmjacob2006-11-021-9/+0
| | | | | | as the default. Reviewed by multitudes.
* The first of 3 major steps to move the CAM layer forward to usingmjacob2006-10-311-0/+8
| | | | | | | | | | | | | | | | | | | | | the CAM_NEW_TRAN_CODE that has been in the tree for some years now. This first step consists solely of adding to or correcting CAM_NEW_TRAN_CODE pieces in the kernel source tree such that a both a GENERIC (at least on i386) and a LINT build with CAM_NEW_TRAN_CODE as an option will compile correctly and run (at least with some the h/w I have). After a short settle time, the other pieces (making CAM_NEW_TRAN_CODE the default and updating libcam and camcontrol) will be brought in. This will be an incompatible change in that the size of structures related to XPT_PATH_INQ and XPT_{GET,SET}_TRAN_SETTINGS change in both size and content. However, basic system operation and basic system utilities work well enough with this change. Reviewed by: freebsd-scsi and specific stakeholders
* Add a USB umass(4) quirk for Panasonic KXL-840AN CD-R drive.flz2006-10-071-0/+4
| | | | | | PR: usb/81073 Submitted by: James E. Flemer <jflemer@alum.rpi.edu> MFC after: 3 days
* More removing compatibility macros.imp2006-09-071-102/+102
| | | | | | md5 still the same. "Dave, stop. I feel my mind slipping away." -- hal
* s/Static/static/gimp2006-09-061-67/+67
| | | | | | | | | | s/device_ptr_t/device_t/g No md5 changes in the .o's # Note to the md5 tracking club: $FreeBSD$ changes md5 after every commit # so you need to checkout -kk to get $FreeBSD$ instead of the actual value # of the keyword.
* Sony DSC cameras with revision number 6.0 require the same quirkiedowse2006-03-171-0/+4
| | | | | | | as those reporting revision 5.0. Reported by: Brian Reichert MFC after: 1 week
* When we get an unknown ATAPI comand, try it even if it is not listed,phk2006-03-051-2/+4
| | | | in all likelyhood just passing it through will work.
* Add USB polling calls to umass_cam_poll(). This appears to be enoughiedowse2006-02-121-7/+3
| | | | | to make kernel crash dumps to umass devices work, at least in some cases.
* ADDON is registered as 0x0d7d, not PNY. Don't confuse the two as weimp2006-01-311-10/+14
| | | | | | | try to use the registrant for numbers in this file, not the OEM that put their label on it. Use PNY's real number 0x154b. Add another PNY atachmate with quirks from a PR filed a while ago, but that I can't seem to find now...
* - Add a scsi_da.c and a umass.c quirk for Genesys 6-in-1 Card Reader.flz2006-01-301-0/+4
| | | | | | | Reported by: anders on freebsd-usb@ Tested by: anders Approved by: ssouhlal MFC after: 3 days
* - Add a umass quirk that should have been part of latest commit.flz2006-01-261-0/+4
| | | | | Approved by: iedowse (implicit) MFC after: 3 days
* Add Product IDs :flz2006-01-261-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Sandisk Cruzer Micro 128MB [5] - DANE-ELEC zMate 512MB USB flash drive [7] - Attache 256MB USB 2.0 Flash Drive [8] - Sandisk Cruzer Micro 256MB [9] Add scsi_da.c quirks : - Samsung USB key 128Mb [1] - Kingston DataTraveler 2.0 [2] - Creative MuVo Slim [3] - United MP 5512 Portable MP3 Player [4] - Sandisk Cruzer Micro 128MB [5], [9] - PNY USB Flash keys [6], [7], [8] Add umass.c quirks : - Sandisk Cruzer Micro 128MB [5] - DANE-ELEC zMate 512MB USB flash drive [7] - Attache 256MB USB 2.0 Flash Drive [8] - Sandisk Cruzer Micro 256MB [9] PR: usb/90081 [1], usb/89196 [2], kern/86131 [3], usb/80487 [4], usb/75970 [5], usb/75578 [6], usb/72344 [7], usb/65436 [8], usb/70835 [9] Submitted by: Henri-Pierre CHARLES <hpc@prism.uvsq.fr> [1], Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua> [2], Erich Rickheit KSC <rickheit-fbp@numachi.com> [3], tnu@chania.di.uoa.gr [4], Bram Abbekerk <bram@abbekerk.demon.nl> [5], Thomas Pornin <pornin@bolet.org> [6], parv <parv@pair.com> [7], Peter D. Quilty <pdquilty@adelphia.net> [8], Raymundo M. Vega <rvega@ms-smtp-03-eri0.socal.rr.com> [9] Approved by: iedowse MFC after: 3 days
* Enable NO_GETMAXLUN quirk.flz2006-01-091-1/+2
| | | | | | | PR: usb/90670 Submitted by: Wojciech A. Koszek <dunstan@freebsd.czest.pl> Approved by: iedowse MFC after: 1 week
* - Fix type in previous commit; unbreak buildpav2005-12-201-1/+1
| | | | | Approved by: ssouhlal Pointy hat to: pav
* - Ignore incorrect CSW signatures on my PURE PocketDab 2000 playerpav2005-12-201-3/+11
| | | | | Approved by: ssouhlal MFC after: 1 week
* Allow to use TransFlash drive, which can be found in Motorola E398 Mobile Phone.pjd2005-12-191-0/+4
| | | | | | PR: usb/89889 Submitted by: Wojciech A. Koszek <dunstan@freebsd.czest.pl> MFC after: 1 week
* Revision 5.0 of the Sony DSC camera appears to require RBC commandsiedowse2005-11-261-2/+14
| | | | | | | | to be padded to 12 bytes in length. Otherwise the requests just time out. Reported by: anders MFC after: 1 week
OpenPOWER on IntegriCloud