summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb
Commit message (Collapse)AuthorAgeFilesLines
* fix a ehci's bug that it's occurred when the xfers are aborted underweongyo2009-01-151-1/+1
| | | | | | | | | heavy loads or working. It looks this bug exists since r158869 so needs to revert a part of the previous. Reviewed by: imp Tested by: sam MFC after: 3 weeks
* MFp4: //depot/projects/usb@155748thompsa2009-01-131-0/+4
| | | | | | | Umass module quirk from Alexander Best to support Meizu Electronics MiniPlayer. Submitted by: Hans Petter Selasky
* Readd the Alcor Transcend device which is referenced in usb2/storage/umass2.c,thompsa2009-01-091-0/+1
| | | | regenerate the usb2 dev tables for the scanner additions while I am here.
* Provide handler for USB controller error interrupts for Marvell EHCI device.raj2009-01-081-0/+76
| | | | Obtained from: Semihalf
* Add workaround for Parallels 4.0. Without it, ehci and uhci driverstrasz2009-01-062-0/+14
| | | | | | | | would fail to attach due to unsupported USB revision. It should have no effect when running on a real hardware. Reviewed by: imp Approved by: rwatson (mentor)
* add some USB scanner IDs for recent Epson multifunction devices.luigi2008-12-312-6/+27
| | | | | | | | | Add support to uscanner.c for known-working devices (the same should be done for uscanner2.c). Waiting for 7.1 to be released before the merge. MFC after: 3 weeks
* fix a silly bug that I missed a for-loop to initialize AL2230S PHY.weongyo2008-12-251-2/+4
| | | | Reported by: Hans Petter Selasky <hselasky_at_c2i.net>
* must pack structures for architectures like armsam2008-12-241-2/+2
| | | | Reviewed by: thompsa
* move IXP4XX EHCI bus shim to the usb directory and renamesam2008-12-231-0/+360
|
* Add support for the HP 4470C scanner.remko2008-12-232-0/+2
| | | | | | | | | | Note that there is no working backend (or at least that is mentioned in the PR ticket) but the device is now supported on our end. PR: 117205 Submitted by: Artem Naluzhnyy <tut at nhamon dot com dot ua> MFC after: 1 week
* Add support for the MaxSream USB test carrier.remko2008-12-232-1/+4
| | | | | | | PR: 117546 Submitted by: Daniel J. O'Connor <darius at midget dot dons dot net dot au> MFC after: 1 week
* Add support for 2 EVDO devices.remko2008-12-231-0/+5
| | | | | | PR: 119150 Submitted by: lioux MFC after: 1 week
* o add Transaction Translator support (still missing ISOC xfers)sam2008-12-232-21/+40
| | | | | | | o add EHCI_SCFLG_BIGEMMIO flag to force big-endian byte-select to be set in USBMODE o split reset work into new public routine ehci_reset so bus shim drivers can force big-endian byte-select before ehci_init
* o add sys/endian.h now required by ehcivar.hsam2008-12-201-1/+3
| | | | o reorder a couple of include's to make this consistent with pci code
* fix build w/ EHCI_DEBUGsam2008-12-201-1/+1
|
* Merge usb changes for Gateworks Cambria boards:sam2008-12-206-374/+504
|\ | | | | | | | | | | | | | | | | | | | | | | | | o add support to byte swap EHCI descriptor contents; the IXP435 has dual-EHCI controllers integral but descriptor contents are in big-endian format; this support is configured with the USB_EHCI_BIG_ENDIAN_DESC option and enabled with EHCI_SCFLG_BIGEDESC o clean up EHCI USBMODE register setup during init; add #defines for bit values o split debug support out into a new file and enable use through ddb o while here remove a bunch of lingering netbsd-isms Reviewed by: imp
| * MFH @ 186335sam2008-12-203-41/+53
| |\ | |/ |/|
* | Fix last commit, ttydisc_rint_bypass returns the total, not remainder.thompsa2008-12-181-1/+1
| |
* | Attempt to handoff the entire buffer with ttydisc_rint_bypass() before bangingthompsa2008-12-181-9/+12
| | | | | | | | each char separately.
* | Make the tp pointer available for debugging.phk2008-12-141-0/+2
| |
* | Bump the FTDI receive buffer size to 256 in order to improve throughput.phk2008-12-141-25/+26
| |
* | Move the code that injects received characters into the tty system intophk2008-12-142-17/+23
| | | | | | | | | | a separate public function ucomrxchars(), to avoid requirement of simple metadata prefixing on the USB data stream.
| * Merge WIP from p4:sam2008-12-136-374/+475
|/ | | | | | | | | | | | | | | | | | o recognize ixp435 cpu o change memory layout for for ixp4xx to not assume memory is aliases to 0x10000000 (Cambria/ixp435 memory starts at zero) o handle 64 irqs for ixp435 o dual EHCI USB 2.0 controller integral to ixp435 o overhaul NPE code for ixp435 and better MAC+MII naming o updated NPE firmware (including NPE-A image for ixp435/ixp465) o Gateworks Cambria board support: - IDE compact flash - MCU - front panel LED on i2c bus - Octal LED latch Sanity-tested with NFS-root on Avila and Cambria boards. Requires pending boot2 mods for CF-boot on Cambria.
* The TWINKLECAM entry is under CHICONY2, remove MICRODIA.thompsa2008-12-121-4/+1
| | | | Obtained from: NetBSD
* Use correct AIPTEK2 name for vendor 0x04fc, now that the PENCAM_MEGA_1_3thompsa2008-12-121-1/+1
| | | | | | product is paired with it. Obtained from: NetBSD
* Add entries for some Option, Sierra and Stelera 3G cards.thompsa2008-12-111-0/+8
|
* The startall variable should default to zero, otherwise the vap is restartedthompsa2008-12-061-6/+5
| | | | | | everytime an ioctl happens. While I am here, limit the locking scope to SIOCSIFFLAGS.
* The Netgear WG111v2 USB dongle contains a RTL8187 chip,kevlo2008-12-011-1/+0
| | | | | | not a GW3887 chip. Obtained from: OpenBSD
* - Add the device ID for the HP HS2300 MC8775 clone (michael)n_hibma2008-11-262-6/+8
| | | | | | | - Bugfix: Don't excede static number of ports allowed when iterating over endpoints within an interface. - u3g_speeds contains speeds in baud, not bytes per second, so divide the buffer size by 10.
* - improve AL2230 RF handling when the device type is zd1211. After thisweongyo2008-11-252-1145/+1526
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | patch the RX/TX performance becomes about 17~18 Mbps comparing with the previous whose values were RX 7~8Mbps and TX 13~14Mbps. - improve AL2230 RF handling in zd1211b - support AL2230S RF that PV2000 is renamed to AL2230S - use register ZYD_CR244, ZYD_CR243, ZYD_CR242 when the driver writes values on RF. This routine is more faster than the original one - use private TX lock to avoid LOR at zyd_raw_xmit() - increase TX slots from 1 to 5 - needs to set the channel at IEEE80211_S_AUTH not IEEE80211_S_RUN - detailed error handling. In previous the next command was sent to the device even if there was errors - setting ZYD_MAC_RX_THRESHOLD value should be different between 1211 and 1211b - only try to stop the device at zyd_init_locked() if the device is UPed - do not use MTX_RECURSE - do not try to grap Giant lock when the channel is changing - move the device initialization routines from zyd_attach to zyd_init to give a device full-reset chance to the driver. - code cleanup at zyd_raw_xmit() - simplify zyd_attach() routines - resort functions and clean up variables - DPRINTF style change. - style(9) Reviewed by: sam
* src/sys/dev/usb2/controller/uss820dci_pccard.calfred2008-11-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/sys/dev/usb2/core/usbdevs src/sys/dev/usb2/include/urio2_ioctl.h src/sys/dev/usb2/storage/ustorage2_fs.h These files are not used any more. src/usr.sbin/Makefile src/etc/mtree/BSD.include.dist src/include/Makefile src/lib/Makefile src/share/man/man7/hier.7 src/share/mk/bsd.libnames.mk src/etc/mtree/BSD.include.dist Make "usbconfig" and "libusb20" a part of the default build. src/sys/dev/usb/rio500_usb.h src/sys/dev/usb2/storage/urio2.c Use common include file. src/sys/dev/usb2/bluetooth/ng_ubt2.c Make USB bluetooth depend on "ng_hci" module. src/sys/dev/usb2/controller/ehci2.c src/sys/dev/usb2/controller/ehci2.h Patches for Marvell EHCI. src/sys/dev/usb2/core/usb2_busdma.c Bugfix for 64-bit platforms. Need to unload the previously loaded DMA map and some cleanup regarding some corner cases. src/sys/dev/usb2/core/usb2_core.h src/sys/dev/usb2/core/usb2_dev.c src/sys/dev/usb2/core/usb2_dev.h Bugfix for libusb filesystem interface. New feature: Add support for filtering device data at the expense of the userland process. Add some more comments. Some minor code styling. Remove unused function, usb2_fifo_get_data_next(). Fix an issue about "fifo_index" being used instead of "ep_index". src/sys/dev/usb2/core/usb2_device.c src/sys/dev/usb2/core/usb2_generic.c Bugfix for Linux USB compat layer. Do not free non-generic FIFOs when doing an alternate setting. Cleanup USB IOCTL and USB reference handling. Fix a corner case where USB-FS was left initialised after setting a new configuration or alternate setting. src/sys/dev/usb2/core/usb2_hub.c Improvement: Check all USB HUB ports by default at least one time. src/sys/dev/usb2/core/usb2_request.c Bugfix: Make sure destination ASCII string is properly zero terminated in all cases. Improvement: Skip invalid characters instead of replacing with a dot. src/sys/dev/usb2/core/usb2_util.c src/sys/dev/usb2/image/uscanner2.c Spelling. src/sys/dev/usb2/include/Makefile Share "usbdevs" with the old USB stack. src/sys/dev/usb2/include/usb2_devid.h src/sys/dev/usb2/include/usb2_devtable.h Regenerate files. Alfred: Please fix the RCS tag at the top. src/sys/dev/usb2/include/usb2_ioctl.h Fix compilation of "kdump". src/sys/dev/usb2/serial/ubsa2.c src/sys/dev/usb2/serial/ugensa2.c Remove device ID's which will end up in a new 3G driver. src/sys/dev/usb2/sound/uaudio2.c Correct a debug printout. src/sys/dev/usb2/storage/umass2.c Sync with old USB stack. src/lib/libusb20/libusb20.3 Add more documentation. src/lib/libusb20/libusb20.c Various bugfixes and improvements. src/usr.sbin/usbconfig/dump.c src/usr.sbin/usbconfig/usbconfig.c New commands for dumping strings and doing custom USB requests from the command line. Remove keyword requirements from generated files: "head/sys/dev/usb2/include/usb2_devid.h" "head/sys/dev/usb2/include/usb2_devtable.h"
* Hide the attach message. This needs to be done in the probe as well, asn_hibma2008-11-131-6/+23
| | | | | | | | the softc is reset a few times during probing. Print 'changing to modem mode' messages if booting verbose to show the reason for the time delay. Note: Some devices (Huawei for one) take 20 seconds to appear on the USB bus).
* Silence detach messages if the device has marked itself quiet (u3g).n_hibma2008-11-131-12/+14
| | | | MFC after: 3 weeks
* Add a reset device command to ugen.c.n_hibma2008-11-135-10/+19
| | | | | This is needed to make some devices work that require a firmware upload and a USB reset afterwards.
* Add a quirk for Belkin USB Bluetooth adapters (F8T012xx1 series)keramida2008-11-122-0/+10
| | | | | | | | | | | The same (vendor, product) tuple is used for aue(4) adapters, but I am not sure if the quirk is correct. I'm using the USB device 'release' info to skip aue(4) detection right now, but if there's a better way to differentiate between USB-LAN and USB Bluetooth we should update the quirk. Reviewed by: imp, rink MFC after: 2 weeks
* Add support for the Microsoft Comfort Optical Mouse 3000 (model 1043).cperciva2008-11-122-0/+3
| | | | | PR: usb/128760 Submitted by: Arjan de Vet
* Bugfix: Cut&paste error from the NetBSD code.n_hibma2008-11-031-18/+22
| | | | | | | | | Also: Change the initialisation of the command string to a static initialiser. Verify it against the output of umass.c when being sent a command using 'camcontrol eject da0' to a Bulk-Only device. This should make those devices work that need a SCSI eject command to switch to modem mode (Novatel 950D and others).
* uaa->ifaces contains pointers so set its entry to NULL not 0.n_hibma2008-11-031-1/+1
|
* Merge some minor deltas from p4 newcard tree:imp2008-11-021-0/+2
| | | | | | (1) Belkin F5D7050_V4000 was also sold as 'Ativa 802.11g wireless card' (document) (2) Add HP Office Jet 4215
* We need to print out the device info ourselves on FBSD 6.n_hibma2008-10-301-0/+7
| | | | Submitted by: Thomas Nystrom
* Bugfix: Check the error code for in progress as well, after starting then_hibma2008-10-301-8/+10
| | | | | | transfer. Some changes to improve the debugging experience.
* Return USBD_NORMAL_COMPLETION instead of a hard coded 0.n_hibma2008-10-301-1/+1
|
* Comment out #define turning on debugging which went in with r184436 andbz2008-10-291-1/+1
| | | | which is also in conf/NOTES and thus defined twice when building LINT.
* Add the device ID for the mass storage device that appears before then_hibma2008-10-292-4/+4
| | | | modem appears to facilitate faster switching to modem mode.
* Unbreak LINT from r184381 using the correct variable in debuggingbz2008-10-281-4/+1
| | | | DPRINTF for the device and remove dead code.
* Grab Sierra and Novatel init functions from NetBSD version of the u3gn_hibma2008-10-271-26/+141
| | | | | | | | driver (rev 1.3), by Joerg Sonnenberger. Note: This change is untested as I do not own the hardware. Let me know if things work or do not work for you by sending me the output dmesg (and usbctl -f /dev/usbX if possible). Thanks.
* o use the new association callback to notify the driver when joining a bsssam2008-10-271-5/+0
| | | | | | | in sta and adhoc modes; this should've been done forever ago as most all drivers use this hook to set per-station transmit parameters such as for tx rate control o adjust drivers to remove explicit calls to the driver newassoc method
* Make the driver compile on FBSD6 as well.n_hibma2008-10-241-2/+6
| | | | | Up the speed on the E220 ID as it is a part which is used in other devices that are capable of HSPA speeds.
* Add U3G_DEBUG to LINTn_hibma2008-10-241-0/+1
|
* - Bugfix: Only claim interface after having checked all endpoints. Thisn_hibma2008-10-241-42/+40
| | | | | | | | might make Qualcomm and Option cards (which have all endpoints in 1 interface) work. - Change the USB buffer sizes to depend on the transfer speed. With UMTS we use a buffer 384k / 1000 frames/sec * 50msecs =~ 15kB for example. - Add a MODULE_VERSION statement
OpenPOWER on IntegriCloud