summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/umass.c
Commit message (Collapse)AuthorAgeFilesLines
* Plug a potential memory leak.kan2005-05-111-1/+3
| | | | Noticed by: Coverity Prevent analysis tool.
* Fix an incorrect NULL argument to usbd_set_interface() associatediedowse2005-03-251-1/+1
| | | | | | | with the ALT_IFACE_1 quirk. PR: usb/79190 Submitted by: Hans Petter Selasky <hselasky@c2i.net>
* Use M_NOWAIT when allocating from a callout routine.iedowse2005-03-251-3/+4
| | | | PR: kern/73295
* Abort any active transfers when the device detaches. This fixes aiedowse2005-02-141-0/+44
| | | | few situations where we used to crash, but by no means all of them.
* When attached to a high-speed device, report a more appropriateiedowse2005-02-131-3/+11
| | | | | | base transfer speed to CAM. The actual value used (40MB/s) is fairly arbitrary, but assumes the same 33% overhead as was implied by the 1MB/s figure we used for USB1 devices.
* Add support for the TwinMOS Memory Disk IV.iedowse2004-11-281-0/+4
| | | | | | PR: kern/73766 Submitted by: Valentin Nechayev MFC after: 1 week
* Add support for the Trumpion/Comotron C3310 MP3 player.iedowse2004-11-281-0/+4
|
* Keep a handle on the startup rescan timer and cancel the timer ifiedowse2004-11-101-5/+6
| | | | the device goes away.
* Pass through the commands necessary to format USB floppy devices,bms2004-10-121-5/+4
| | | | | | | | | from within umass_ufi_transform(). This includes the 12-byte commands FORMAT_UNIT, WRITE_AND_VERIFY, VERIFY, and READ_FORMAT_CAPACITIES (sorted in numerical order). Reviewed by: ken, scottl MFC after: 2 weeks
* Add support Western Digital External USB HDDsanpei2004-09-041-0/+4
| | | | | | | | ONSPEC entry are sorted PR: kern/71031 Submitted by: Johann Hugo <jhugo@icomtek.csir.co.za> MFC after: 1 week
* Tweak the compatibility macros a little so that the device printing isimp2004-08-151-1/+0
| | | | moved into them.
* add support for SanDisk Cruzer Mini 256MB USB 2.0 Flash Drivesanpei2004-08-121-0/+4
| | | | | | PR: kern/65438 Submitted by: Peter D. Quilty <pdquilty@adelphia.net> MFC after: 1 week
* add support Sitecom CN-311 usb flash reader(aka SIIG_WINTERREADER)sanpei2004-08-121-0/+4
| | | | | | PR: kern/64722 Submitted by: Thiemo Nordenholz <nz@thiemo.net> MFC after: 1 week
* Add support Sony Handycam TRV-30 memory stick slotsanpei2004-08-081-0/+4
| | | | | | PR: kern/69915 Submitted by: Christian Gusenbauer <c47g@gmx.at> MFC after: 1 week
* MFp4: First batch of dev/usb/usbdevs.h -> usbdevs.h changes.imp2004-06-271-1/+1
|
* Add support Neodio-3260 8-in-1 multi format USB memory card / flash controllersanpei2004-06-051-0/+4
| | | | | | PR: kern/67115 Submitted by: Jukka A. Ukkonen <jau@iki.fi> MFC after: 1 week
* Fix typos in comments.le2004-05-221-9/+9
| | | | Submitted by: Gerhard Gonter <gonter@falbala.wu-wien.ac.at>
* Add support 2 devices(USB-DVD-R drives)sanpei2004-03-071-0/+8
| | | | | | | | | - Logitec LDR-H443SU2 - IO-DATA DVR-UEH8 PR: kern/63793 Submitted by: Ryuji MATSUMOTO <matumoto@pluto.ai.kyutech.ac.jp> MFC after: 1 week
* Add support SimpleTech UCF-100 USB CompactFlash reader(OnSpec Electronic, Inc.)sanpei2004-03-041-0/+4
| | | | | | PR: kern/63619 Submitted by: Greg Rivers <gcr@sa.fedex.com> MFC after: 1 week
* MFNetBSD:sanpei2004-02-061-2/+9
| | | | | | | netbsd.org -> NetBSD.org(rev.1.109) fix typo in comment(rev.1.90) add list of ``already merged''
* MFNetBSD: URL updates(rev.1.108)sanpei2004-02-021-4/+4
|
* Add Supportsanpei2004-01-241-0/+8
| | | | | | | | | | | - 2nd type of GL641USB USB-IDE bridge [1] - Plextor Plexwriter 40/12/40U [2] PR: kern/61671 [1] kern/61803 [2] Submitted by: Ralf Wenk <RZ-FreeBSD0401@fh-karlsruhe.de> [1] Feisal Mohammed <feisal@uwi.tt> [2] MFC after: 1 week
* Add support IO-data DVD Multi-plus unit iU-CD2sanpei2004-01-191-0/+4
| | | | | | PR: kern/61578 Submitted by: Masaharu FUJITA <m@fjts.org> MFC after: 1 week
* Pay attention to the timeout value passed down by the upper layer.sanpei2004-01-181-10/+18
| | | | | | | | (NetBSD src/sys/dev/usb/umass.c rev.1.67) PR: kern/58649 (Problem 1) Submitted by: SAKIYAMA Nobuo <sakichan@sakichan.org> MFC after: 1 week
* Fix Scanlogic SL11R usb-ide protocol and quirkssanpei2004-01-031-2/+2
| | | | | PR: kern/60389 Submitted by: Sang Woo Shim <ssw@swoo.org>
* Add the MMC commands to umass_atapi_transform. It seems to worksanpei2004-01-031-0/+16
| | | | | | | | unmodified for ATAPI type devices with ports/sysutils/cdrtools. (But we need timeout routine which was in kern/58649 for fixate, I think.) PR: kern/58649 Submitted by: SAKIYAMA Nobuo <sakichan@sakichan.org>
* Add support Panasonic KXL-CB35AN(DVD-ROM & CD-R/RW)sanpei2003-12-191-0/+4
| | | | Submitted by: OISHI Masakuni <yamasa@bsdhouse.org> [FreeBSD-users-jp 77672]
* Fix PANASONIC KXLCB20AN Protocol.sanpei2003-12-181-1/+1
| | | | Submitted by: OISHI Masakuni <yamasa@bsdhouse.org> [FreeBSD-users-jp 77672]
* Add support IBM 256MB USB Drive(MSYSTEM DiskOnKey2)sanpei2003-12-181-0/+4
| | | | | PR: kern/57050 Submitted by: Brian J. McGovern <mcgovern@beta.com>
* Add Supportsanpei2003-12-181-0/+4
| | | | | | | | | | | - PNY Attache Flash Drive [1] - minolta 5400 USB scanner [2] PR: kern/58045 [1] kern/56496 [2] Submitted by: [1] Rick C. Petty <rick@kiwi-computer.com> [2] Mark Diekhans <markd@kermodei.com>
* Add supportsanpei2003-12-171-0/+8
| | | | | | | | [1] Logitec LDR-H443U2 DVD-RAM/-R/+R/-RW/+RW Drive [2] Panasonic KXL-CB20AN Portable DVD-ROM/CD-R/RW Submitted by: [1] Taoka Fumiyoshi <fmysh@iijmio-mail.jp> [bsd-usb:727] [2] SHIMIZU Kazuhiro <kazuhiro@shimizu.homeip.net> [FreeBSD-users-jp 77608]
* In umass_bbb_get_max_lun() move maxlun to before the DPRINTF so thatgj2003-09-201-1/+1
| | | | the actual number of LUNs is printed.
* SHUTTLE_INIT quirk for EXATELECOM i-Bead mp3 playernjl2003-08-221-0/+4
|
* Remove the 6-10 byte translation from UFI and ATAPI command sets. It isnjl2003-08-061-61/+0
| | | | | | no longer needed now that we have PIM_NO_6_BYTE. Requested by: jhb
* Add a PATH_INQ flag, PIM_NO_6_BYTE, which indicates the SIM never wishes tonjl2003-07-281-1/+1
| | | | | | | | | | receive 6 byte commands. Add a check for this flag to da(4) and cd(4) so that they honor it. This is a quick workaround for many devices (especially USB) that require da(4) quirks to operate. The more complete approach is to finish the new transport code which will be aware of the SCSI version a transport implements. MFC after: 1 day
* remove \n at end of panic strings. They are added by the call to panic.jmg2003-07-041-10/+10
| | | | | | This brings us more in line with Net/OpenBSD Obtained from: Net/OpenBSD
* WARNING: white space diffjmg2003-07-041-24/+24
| | | | | | This code reduces the number of trailing white space to be more in line w/ NetBSD. I don't regenerate usbdevs, saving that for when it really changes.
* Merge common XPT_CALC_GEOMETRY functions into a single convenience function.njl2003-06-141-19/+1
| | | | | | Devices below may experience a change in geometry. * umass(4) drives exactly 1 GB in size now no longer use extended geometry.
* Quirk for Hitachi DVD USB drive. It returns "invalid field in cdb" fornjl2003-05-211-0/+4
| | | | | | | normal INQUIRY requests so enable the NO_INQUIRY quirk. Submitted by: Lars Eggert <larse@ISI.EDU> Approved by: re (scottl)
* Remove a redundant quirk. Instead, we wildcard all Asahi Optical chips.njl2003-05-201-5/+0
| | | | Approved by: re
* Generalize a quirk for Asahi Optical-based cameras (i.e. Pentax). It appearsnjl2003-05-151-2/+1
| | | | | | | | all of the Optio series have the same problems. It might be a better approach eventually to add wildcard support to USB quirks. PR: kern/50271, kern/46369 Approved by: re (rwatson)
* Extend the digital camera support (umass) to the PENTAX Optio 330GS.joe2003-05-111-0/+5
| | | | | | | Submitted by: Jan-Oliver Neumann <neumannj@arcor.de> By way of: n_hibma Approved by: re (jhb & bmah) MFC After: 7 days
* Use a sim for each device on it's own instead of one for all umassticso2003-04-141-145/+62
| | | | | | | | devices. This reduces complexity and fixes a number of small problems. Approved by: gallatin (mentor) Reviewed by: njl
* Add code to implement two new USB quirk types: NO_INQUIRY and NO_INQUIRY_EVPDnjl2003-03-251-11/+60
| | | | | | | | | | | | | | The former fakes a valid response to an inquiry command. (I am completely blown away that there are devices which hang upon receiving inquiry). The latter returns "invalid request" to any inquiry commands with EVPD set. NO_INQUIRY implies NO_INQUIRY_EVPD but not vice versa. Both quirks have been tested separately on my USB key although it didn't require either of them. While I'm here, fix wildcarding so that any/all of vendor, product, revision can be wildcarded. Idea from: Linux MFC after: 2 weeks
* Quirk for Pentax Optio 230 USB camera. Note that other products probablynjl2003-03-111-0/+5
| | | | | | | | | use the underlying AsahiOptical USB chip and thus this quirk may need to be generalized in the future. PR: kern/46369 Submitted by: Tim Vanderhoek <vanderh@ecf.utoronto.ca> MFC After: 3 days
* Centralize the devstat handling for all GEOM disk device driversphk2003-03-081-1/+0
| | | | | | | | in geom_disk.c. As a side effect this makes a lot of #include <sys/devicestat.h> lines not needed and some biofinish() calls can be reduced to biodone() again.
* Fix ATAPI/USB/Firewire CDROM drive handling in cd(4) and hopefully fixken2003-02-211-27/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a number of related problems along the way. - Automatically detect CDROM drives that can't handle 6 byte mode sense and mode select, and adjust our command size accordingly. We have to handle this in the cd(4) driver (where the buffers are allocated), since the parameter list length is different for the 6 and 10 byte mode sense commands. - Remove MODE_SENSE and MODE_SELECT translation removed in ATAPICAM and in the umass(4) driver, since there's no way for that to work properly. - Add a quirk entry for CDROM drives that just hang when they get a 6 byte mode sense or mode select. The reason for the quirk must be documented in a PR, and all quirks must be approved by ken@FreeBSD.org. This is to make sure that we fully understand why each quirk is needed. Once the CAM_NEW_TRAN_CODE is finished, we should be able to remove any such quirks, since we'll know what protocol the drive speaks (SCSI, ATAPI, etc.) and therefore whether we should use 6 or 10 byte mode sense/select commands. - Change the way the da(4) handles the no_6_byte sysctl. There is now a per-drive sysctl to set the minimum command size for that particular disk. (Since you could have multiple disks with multiple requirements in one system.) - Loader tunable support for all the sysctls in the da(4) and cd(4) drivers. - Add a CDIOCCLOSE ioctl for cd(4) (bde pointed this out a long time ago). - Add a media validation routine (cdcheckmedia()) to the cd(4) driver, to fix some problems bde pointed out a long time ago. We now allow open() to succeed no matter what, but if we don't detect valid media, the user can only issue CDIOCCLOSE or CDIOCEJECT ioctls. - The media validation routine also reads the table of contents off the drive. We use the table of contents to implement the CDIOCPLAYTRACKS ioctl using the PLAY AUDIO MSF command. The PLAY AUDIO TRACK INDEX command that we previously used was deprecated after SCSI-2. It works in every SCSI CDROM I've tried, but doesn't seem to work on ATAPI CDROM drives. We still use the play audio track index command if we don't have a valid TOC, but I suppose it'll fail anyway in that case. - Add _len() versions of scsi_mode_sense() and scsi_mode_select() so that we can specify the minimum command length. - Fix a couple of formatting problems in the sense printing code. MFC after: 4 weeks
* Back out M_* changes, per decision of the TRB.imp2003-02-191-1/+1
| | | | Approved by: trb
* Fix `umass0: BBB bulk-in clear stall failed, IOERROR' problem withsanpei2003-02-041-0/+27
| | | | | | | | some USB devices. (Make sure to set xfer data length when we force a short inquiry.) Obtained from: NetBSD(sys/dev/usb/umass_scsipi.c rev.1.8) Original idea from: Shingo WATANABE <nabe@nabechan.org>
* 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).
OpenPOWER on IntegriCloud