summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/umass.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove duplicated entrysanpei2003-02-041-9/+4
| | | | | Put the Trek Smart Thumbdrives (8MB model) entry in the right place. (Entries are sorted by vendor id).
* Add support for the Trek Thumbdrive 8MB USB Drive.trhodes2003-01-301-1/+9
| | | | | PR: 46004 Submitted by: Brian J. McGovern <mcgovern@tick.beta.com> (original version)
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-1/+1
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,schweikh2003-01-011-1/+1
| | | | especially in troff files.
* Revert part of the last commit. Do not fake-up the cylinders to makedillon2002-12-221-2/+1
| | | | | the sectors fit (at least, don't fake them up any more then they are already faked up).
* Modify the fake cylinders calculation so it is >= the size of the device,dillon2002-12-201-6/+26
| | | | | | | | | | | | | | | | | | | | | | | | not < the size of the device. This avoids geom complaints. Fix a serious bug in the handling of the RS_NO_CLEAR_UA quirk. When we go and insert the test-unit-ready command the umass_cam_quirk_cb() function sets the status as if the READ_CAPACITY command suceeded when, in fact, it did not. This leads to the CAM layer trying to use garbage in the return buffer and panicing the system (or doing other bad things). Add a quirk entry for MSYSTEMS DISK-ON-KEY, which is sold under the Sony brand as a solid state disk-on-key usb device. This device requires several quirks to work properly. Note that the disk-on-key device will not work properly until CAM also gets a quirk entry for it, which has been submitted to the CAM maintainer, and you may have to temporarily uncomment the DELAY() as well. -current does not properly wait for devices to power up so you may also have to temporarily uncomment the DELAY(300000) to make your device work. A solution must be found to that issue. MFC after: 3 days X-MFC note: the quirk support must MFCd before this patch can be
* Reviewed by: n_hibmamr2002-11-081-8/+16
| | | | | | MFC after: 2 weeks fix XPT_CALC_GEOMETRY to fill in some reasonable values. Inspired by aic/sbp.
* Specify the correct protocol for the Olympus C-1 camera. It appearsiedowse2002-11-011-1/+1
| | | | | | | | that this entry was accidentally given the wrong protocol in revision 1.61. PR: kern/42417 Submitted by: "Moriki, Toshiomi" <toshiomi@whi.m-net.ne.jp>
* Use the hw.usb sysctl tree instead of debug.usb.joe2002-08-081-1/+2
| | | | Requested by: imp
* Replace the FOO_DEBUG definitions with USB_DEBUG, and switch thejoe2002-07-311-15/+15
| | | | | | debugging levels to off by default. Now that debug levels can be tweaked by sysctl we don't need to go through hoops to get the different usb parts to produce debug data.
* Get bored with hard coded debug level variables and introduce a debug.usbjoe2002-07-311-0/+3
| | | | | | sysctl tree for tweaking them real-time. Reviewed by: iedowse
* clean up some KASSERTS.n_hibma2002-06-171-13/+18
|
* Rewrite the probe routine. This makes adding drives and quirks more easy.n_hibma2002-06-161-267/+251
| | | | While there change a few names to less confusing ones.
* Make this compile again when UMASS_DEBUG isn't defined.jhb2002-04-111-0/+2
|
* Delay umass_cam_rescan by 200 ms to make sure attach is finished by then_hibma2002-04-111-3/+12
| | | | | | | | time we tell CAM to rescan the bus. Together with the previous patch this should avoid the problem where the devices would wedge because they got spoken to over two different pipes. Tested by: Tomas Pluskal <plusik@pohoda.cz>
* Postpone I/O to the device until attach has finished. This fixesn_hibma2002-04-101-21/+23
| | | | | | | | | | | | | attachment after boot in some cases where the device gets confused if spoken to over two different pipes simultaneously (resulting in TIMEOUT errors on requesting INQUIRY data). This solution is far from perfect, as after umass_attach has returned the USB stack fetches the string descriptors in order for creating the event that is sent to userland. It just makes the chances of collisions less likely. Tested by: Tomas Pluskal <plusik@pohoda.cz>
* MFNetBSD: Update many URLs.joe2002-04-011-3/+7
|
* Fix warnings on 64-bit hosts.obrien2002-03-201-10/+12
|
* Remove __P.alfred2002-03-201-2/+2
|
* Fix some gcc-3.1+ warnings:peter2002-03-191-2/+3
| | | | | warning: deprecated use of label at end of compound statement umass.c:2626:46: multi-line string literals are deprecated
* Clean up some debugging output.n_hibma2002-02-191-9/+26
| | | | Add function to display the CBI command block.
* 1) Fix a debug statement by filling in its data before the printf inguido2002-01-241-3/+72
| | | | | | | | | | stead of after 2) Honour NO_TEST_UNIT_READY quirk for atapi devices as well 3) Actually support FujiFilm FinePix 6800 camera's. Will very likely also work for other FinePix models. Based on a debug session about half a year ago with Nik Hibma. MFC after: 2 weeks
* Staticise a couple of things that shouldn't be leaked into thejoe2002-01-081-1/+1
| | | | | | kernel namespace. Submitted by: msmith
* Sync usb.h with NetBSD, apart from usb_device_info.speed, whichjoe2002-01-021-2/+2
| | | | | requires logic changes. For now leave it as usb_device_info.lowspeed. It will get addressed when the usb.c code is sync'd.
* Revert part of the last commit. UIPROTO_MASS_BBB was renamed tojoe2002-01-021-2/+2
| | | | UIPROTO_MASS_BULK _after_ the previous change was made in NetBSD.
* Sync with NetBSD:joe2002-01-021-10/+10
| | | | | | date: 2000/02/29 21:37:01; author: augustss; state: Exp; Distinguish between device and interface classes. (I finally found a document that said that they were different.)
* - Add a function to convert 6 byte SCSI commands for read, write, modejhb2001-12-181-35/+89
| | | | | | | | | | | | | | | | sense, and mode select into their 10 byte equivalents. Eventually the da(4) driver will become more intelligent about this, or at least allow umass(4) to pass quirks in directly. However, this is a functional workaround until a better fix is implemented. - Use the 6 to 10 conversion function to allow the ATAPI and UFI command sets to emulate 6 byte commands with 10 byte commands. - Use the ATAPI command set rather than UFI for the ScanLogic SL11R-IDE as it supports the SYNCH_CACHE command. - Enable ATAPI command set support. - Pass READ/WRITE_12 commands through for UFI support as the UFI spec says they should be supported. - Update a comment in the UFI translation function since we handle MODE_SELECT.
* The ScanLogic SL11R-IDE claims to be SCSI-compatible, but actually requiresmsmith2001-12-091-1/+11
| | | | | | | | | the UFI command set. Even with this patch, it's incredibly slow on my laptop, but at least now it works. Note that the drive is reported to CAM with the vendor and device IDs from the device itself, forcing the user to patch the da(4) quirk table manually.
* The Olympus C-1 digital camera uses a non-standard BBB command-statusiedowse2001-11-231-0/+17
| | | | | | | | | signature, but otherwise behaves just like a normal USB mass-storage device. Add a new quirk to cover this case, and enable it for C-1 cameras. The quirk enables translation from the C-1 signature to the normal CSWSIGNATURE value. Reviewed by: n_hibma
* Support for the HP 8200e CD writer. (commented out)n_hibma2001-08-211-0/+12
| | | | Submitted by: Heath Nielson <heath@cs.byu.edu>
* Add support for the Microtech CameraMate.n_hibma2001-08-211-0/+9
| | | | | Submitted by: Phil Knaack <pknaack1@netscape.net> Submitted by: Jim Bryant <kc5vdj@yahoo.com>
* Deconfuse a debugging message.n_hibma2001-08-211-3/+3
|
* Add a quirk for drives that do not handle long inquiry data.n_hibma2001-01-081-22/+41
| | | | | | | | | Add the entry for the Yano U640MO-03 MO drive. (ifdef-0-ed out for now) Fix a hack were an original buffer was modified instead of copied (cmd[] -> (*rcmd)[]) Submitted by: Iwasa Kazmi <kzmi@ca2.so-net.ne.jp>
* Add the Synchronize command to umass_atapi_transform. It seems to workn_hibma2001-01-071-0/+1
| | | | unmodified for ATAPI type devices.
* Print the correct value in a debugging printf.n_hibma2001-01-071-1/+1
| | | | Submitted by: Iwasa Kazmi <kzmi@ca2.so-net.ne.jp>
* 1) Return the requestad length - the transferred length as the residue,n_hibma2001-01-071-4/+6
| | | | | | | | | | | | instead of the requested length. Otherwise all transfers look like 0 byte transfers to CAM. Submitted by: Iwasa Kazmi <kzmi@ca2.so-net.ne.jp> 2) Finalise the command in the case of CBI transfers with CCI (command completion interrupt). 3) Remove a redundant bzero of a buffer.
* UMASS_DEBUG implemented panic(9).n_hibma2001-01-041-0/+2
| | | | | PR: 24044 Submitted by: Mike Bristow <mike@urgle.com>
* Initialise rcmdlen.n_hibma2000-12-201-0/+1
| | | | Submitted by: Ian Dowse <iedowse@maths.tcd.ie>
* Remove unneeded #include <machine/clock.h>phk2000-10-151-1/+0
|
* Support for RBC devices, like Sony Memory Sticks.n_hibma2000-09-041-3/+65
| | | | | | Not extensively tested yet, so be warned. Submitted by: Gerd Knops <gerti@bitart.com>
* Fix up the command in the destination buffer, not the source.n_hibma2000-08-211-2/+2
| | | | | This makes the conversion from Test-Unit-Ready to Start-Stop-Unit in the case of SCSI (Iomega Zip drive) actually work.
* CAM, the module: scbus, da, cd, and st wrapped in one module.n_hibma2000-08-131-0/+3
| | | | | | | Make the umass driver depend on this module. Makes it possible to compile the kernel without SCSI support and load it when for example a USB floppy is conencted.
* Fix indentation ruined by previous commit.n_hibma2000-08-111-10/+10
|
* Finally got my brain around what a SIM UNIT number is and how it differsn_hibma2000-08-091-2/+7
| | | | | | | | | | | from the SCSI id it has. (this avoids the confusing umass-sim32 device. It should have been umass-sim0 all along (there is only one), and if it is spoken to as a SCSI device the sim should be umass32. Make the rescan actually work. We need to fill in a target and lun wildcard and not the SCSI id of the SIM. Add a seatbelt.
* Spell the word 'limited' with only one 't'.steve2000-07-301-1/+1
|
* Remove the preliminary support for ATAPI. It does not work and breaksn_hibma2000-07-261-0/+6
| | | | (physically) IBM Microdrives.
* Remove __P prototypes to reduce diffs between the NetBSD and FreeBSDn_hibma2000-07-171-57/+57
| | | | versions.
* Add some detection code for the InSystem USB cable (ATAPI support not yetn_hibma2000-07-161-1/+14
| | | | there, so the cable does not work yet)
* Add the ID of the InSystem USB Cable (not really supported yet).n_hibma2000-06-081-2/+9
|
* Make some if's cleaner. Add a define for the Zip 250.n_hibma2000-05-141-5/+5
|
OpenPOWER on IntegriCloud