aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/usb2
Commit message (Collapse)AuthorAgeFilesLines
* Move the new USB stack into its new home.Andrew Thompson2009-02-23173-108653/+0
| | | | Notes: svn path=/head/; revision=188942
* Use root_mount_hold and root_mount_rel to allow the USB bus to be exploredAndrew Thompson2009-02-222-0/+13
| | | | | | | | before trying to mount root. Unlike USB1 the busses are not explored at attach but rather after threads are running. Notes: svn path=/head/; revision=188907
* Revert r188878 for the moment, this breaks kdump.Andrew Thompson2009-02-211-24/+0
| | | | Notes: svn path=/head/; revision=188880
* Provide compat typedefs for usb1.Andrew Thompson2009-02-211-0/+24
| | | | Notes: svn path=/head/; revision=188878
* Switch over to usbdevs.h generated at compile time.Andrew Thompson2009-02-1844-13539/+43
| | | | Notes: svn path=/head/; revision=188746
* Make uslcom compile, cut'n'paste errors from uplcom.Andrew Thompson2009-02-151-7/+7
| | | | Notes: svn path=/head/; revision=188664
* MFp4 //depot/projects/usb@157699Andrew Thompson2009-02-142-58/+48
| | | | | | | | | | | | | | | | | | | Add two new functions to the libusb20 API and required kernel ioctls. - libusb20_dev_get_iface_desc - libusb20_dev_get_info New command to usbconfig, "show_ifdrv", which will print out the kernel driver attached to the given USB device aswell. See "man libusb20" for a detailed description. Some minor style corrections long-line wrapping. Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=188622
* - ieee80211_chan2ieee returns an intAndrew Thompson2009-02-142-30/+74
| | | | | | | | | | - avoid null deref in detach - update pause timings Obtained from: //depot/projects/usb Notes: svn path=/head/; revision=188619
* Remove unneeded execute-permissions from the USB2 device node.Ed Schouten2009-02-141-3/+3
| | | | | | | | | | | Giving a charactere device execute permissions doesn't have any use. Right now there isn't a single device node in /dev that has it, except the USB2 device node, so remove it. Approved by: hps, thompsa Notes: svn path=/head/; revision=188609
* - ieee80211_chan2ieee returns an intAndrew Thompson2009-02-131-5/+7
| | | | | | | | | | - set ic_update_promisc to the same callback as mcast - avoid null deref in zyd_detach Obtained from: //depot/projects/usb Notes: svn path=/head/; revision=188601
* MFp4 //depot/projects/usb; 157501, 157608, 157609Andrew Thompson2009-02-135-77/+29
| | | | | | | | | | | | - Make usb2_transfer_pending() part of the USB core header file. - Make usb2_transfer_pending() NULL safe. - Make sure that USB process functions return if the process has been drained. - Remove two unused functions. Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=188600
* Restore some of the link handling code that was inadvertently removed inAndrew Thompson2009-02-131-12/+41
| | | | | | | | | | r188412, this broke the GU-1000T adapters. Submitted by: yongari Pointy hat: me Notes: svn path=/head/; revision=188553
* Add module dependency on miibus.Andrew Thompson2009-02-131-1/+3
| | | | | | | Submitted by: yongari Notes: svn path=/head/; revision=188552
* Remove usb2_config_td.[ch], they are no longer used.Andrew Thompson2009-02-092-392/+0
| | | | Notes: svn path=/head/; revision=188422
* MFp4 //depot/projects/usb; 157429, 157433, 157443Andrew Thompson2009-02-096-359/+363
| | | | | | | | | Various changes wrt. usb procs and tasks. Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=188419
* Correct sources for r188417Andrew Thompson2009-02-096-363/+359
| | | | | | | | | | | | MFp4 //depot/projects/usb; 157412 Sync from svn.freebsd.org/base/user/thompsa/usb which is a minimal changeset from oldUSB (no config_td). This excludes the taskqueue changes (for the moment) as requested. Notes: svn path=/head/; revision=188418
* MFp4 //depot/projects/usb; 157412Andrew Thompson2009-02-099-7807/+6640
| | | | | | | | | | Sync from svn.freebsd.org/base/user/thompsa/usb which is a minimal changeset from oldUSB (no config_td). This excludes the taskqueue changes (for the moment) as requested. Notes: svn path=/head/; revision=188417
* MFp4 //depot/projects/usb; 157069, 157255Andrew Thompson2009-02-091-5/+6
| | | | | | | | | | | - Change "usb2_pause_mtx" so that it takes the timeout value in ticks - Make sure that attach waits for the generic probe to leave room for firware loader drivers and device specific USB Audio drivers like USB phone adapters Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=188416
* MFp4 //depot/projects/usb; 157203Andrew Thompson2009-02-091-67/+22
| | | | | | | | | - Remove CAM layer quirks Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=188415
* MFp4 //depot/projects/usb; 157069Andrew Thompson2009-02-091-4/+1
| | | | | | | | | - Change "usb2_pause_mtx" so that it takes the timeout value in ticks Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=188414
* MFp4 //depot/projects/usb; 157069, 157136, 157143, 157145, 157429Andrew Thompson2009-02-0920-2119/+1206
| | | | | | | | | | | - USB serial drivers cleanup, factor out code - Simplify line state programming - Integrate uslcom from old USB stack Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=188413
* MFp4 //depot/projects/usb; 157100Andrew Thompson2009-02-0918-5283/+2654
| | | | | | | | | | | | | | | | | 1. Move most of the ifnet logic into the usb2_ethernet module, this includes, - make all usb ethernet interfaces named ue%d - handle all threading in usb2_ethernet - provide default ioctl handler - handle mbuf rx - provide locked callbacks for init,start,stop,etc 2. Cleanup CDC-Ethernet driver. Submitted by: Hans Petter Selasky Obtained from: svn.freebsd.org/base/user/thompsa/usb [1] Notes: svn path=/head/; revision=188412
* MFp4 //depot/projects/usb; 157069, 157429, 157430Andrew Thompson2009-02-0911-43/+111
| | | | | | | | | | | - Change "usb2_pause_mtx" so that it takes the timeout value in ticks - Factor out USB ethernet and USB serial driver specific control request. - USB process naming cleanup. Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=188411
* MFp4 //depot/projects/usbAndrew Thompson2009-02-092-0/+714
| | | | | | | | | - Bring in ehci2_ixp4xx.c and ehci2_mbus.c from dev/usb. Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=188410
* MFp4 //depot/projects/usb; 157069,157296,157375,157384,157430Andrew Thompson2009-02-0911-71/+91
| | | | | | | | | | | | | | - Change "usb2_pause_mtx" so that it takes the timeout value in ticks - USB controller: EHCI High Speed Interrupt endpoint fix. - Fix OHCI and EHCI counting bug when multiple TD's are involved in a short USB transfer and a short packet happens on the non-last TD in the USB transfer frame. - USB process naming cleanup. Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=188409
* When bouncing pages, allow a new option to preserve the intra-pageWarner Losh2009-02-081-1/+1
| | | | | | | | | | | | | | | | | | | offset. This is needed for the ehci hardware buffer rings that assume this behavior. This is an interim solution, and a more general one is being worked on. This solution doesn't break anything that doesn't ask for it directly. The mbuf and uio variants with this flag likely don't work and haven't been tested. Universe builds with these changes. I don't have a huge-memory machine to test these changes with, but will be happy to work with folks that do and hps if this changes turns out not to be sufficient. Submitted by: alfred@ from Hans Peter Selasky's original Notes: svn path=/head/; revision=188350
* The NRL value in the queue head must be zero for interrupt transfers. This wasAndrew Thompson2009-02-081-1/+3
| | | | | | | | | diagnosed using a USB analyser obtained through a FreeBSD Foundation grant. Thanks to: FreeBSD Foundation Notes: svn path=/head/; revision=188336
* Fix build, sigh.Andrew Thompson2009-02-071-1/+1
| | | | Notes: svn path=/head/; revision=188292
* Dont hold the lock over the controller init, we are still attaching.Andrew Thompson2009-02-073-28/+13
| | | | Notes: svn path=/head/; revision=188273
* RegenKevin Lo2009-02-062-2/+9
| | | | Notes: svn path=/head/; revision=188235
* Add the Buffalo WLI-U2-SG54HGKevin Lo2009-02-061-0/+1
| | | | Notes: svn path=/head/; revision=188234
* - Keep the same sorting on usb_errstr_table as the enum.Andrew Thompson2009-02-032-43/+44
| | | | | | | - Use c99 array initializers for usb_quirk_str so the indexing isnt critical. Notes: svn path=/head/; revision=188076
* Add missing string table for the usb quirk enum.Andrew Thompson2009-02-032-3/+28
| | | | | | | | Pointy hat: me Submitted by: rrs Notes: svn path=/head/; revision=188074
* Move away from autogenerated enums, these values never change and its helpfulAndrew Thompson2009-02-035-124/+114
| | | | | | | to be able to look them up. Notes: svn path=/head/; revision=188048
* src/usr.bin/usbhidaction/usbhidaction.cAlfred Perlstein2009-02-025-43/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/usr.bin/usbhidctl/usbhid.c src/sys/dev/usb2/include/usb2_hid.h src/sys/dev/usb2/input/uhid2.c src/lib/libusbhid/Makefile src/lib/libusbhid/descr.c src/lib/libusbhid/descr_compat.c src/lib/libusbhid/usbhid.3 src/lib/libusbhid/usbhid.h src/lib/libusbhid/usbvar.h Patches to make libusbhid and HID userland utilities compatible with the new USB stack. All HID ioctls should go through the libusbhid library to ensure compatibility. I have found at least one piece of software in /usr/ports which needs to get updated before USB HID devices will work. This is the X joystick input driver. Reported and tested by: Daichi GOTO and Masanori OZAWA. src/sys/dev/usb2/core/usb2_process.c Correct USB process names. Reported by: Andre Guibert de Bruet src/sys/dev/usb2/serial/uftdi2.c Integrate changes from old USB stack. Submitted by: hps Notes: svn path=/head/; revision=187994
* Revert part of r187970, the NULL check was removed fromAndrew Thompson2009-02-011-0/+3
| | | | | | | udbp_bulk_read_complete() as well as udbp_attach. Notes: svn path=/head/; revision=187972
* Remove check for null softc in attach, it can never happen.Andrew Thompson2009-02-0144-140/+0
| | | | Notes: svn path=/head/; revision=187970
* Update ubtbcmfw2 (aka usb2_bluetooth_fw) driverMaksim Yevmenkin2009-01-281-222/+204
| | | | | | | Reviewed by: HPS Notes: svn path=/head/; revision=187866
* Make ng_ubt2 (aka usb2_bluetooth_ng) driver only attach as "generic" driverMaksim Yevmenkin2009-01-281-0/+3
| | | | | | | Reviewed by: HPS Notes: svn path=/head/; revision=187865
* Clean up ng_ubt2. Get rid of excessive use of NG_NODE_REF/UNREF().Maksim Yevmenkin2009-01-262-503/+244
| | | | | | | | | | | | Make detach() completely synchronous. Properly handle stalled USB transfers (use internal mechanism instead of submitting own control transfers). Rename/remove a couple of variables and update comments. This work was done in close collaboration with HPS. Reviewed by: HPS Notes: svn path=/head/; revision=187741
* MFp4 //depot/projects/usb/ @156706Andrew Thompson2009-01-261-6/+10
| | | | | | | | | Adjust an UHCI portreset delay. Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=187732
* Regen.Andrew Thompson2009-01-262-2/+46
| | | | Notes: svn path=/head/; revision=187731
* MFp4 //depot/projects/usb/ @156522,156530Andrew Thompson2009-01-263-1/+36
| | | | | | | | | | UHCI SOF Quirk. Makes some broken USB devices work again. Reported by several people. Patch made by me. Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=187730
* MFp4 //depot/projects/usb/ @156521Andrew Thompson2009-01-261-22/+50
| | | | | | | | | | U3G regression issue. Patch to support multiple modem instances per logical USB interface. Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=187728
* Fix up USB_GET_REPORT_DESC ioctl.Andrew Thompson2009-01-261-1/+1
| | | | | | | Submitted by: daichi Notes: svn path=/head/; revision=187727
* Add umass quirk.Andrew Thompson2009-01-261-0/+4
| | | | | | | Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=187726
* Add a usb hid quirk.Andrew Thompson2009-01-261-0/+1
| | | | | | | Submitted by: Andre Guibert de Bruet Notes: svn path=/head/; revision=187725
* Rename sc_is_pseudo to sc_nobulk member in ufoma_softc.Takanori Watanabe2009-01-221-13/+13
| | | | | | | | | That was pseudo ucom because it used home brew tty interface. Now, it is integrated to usb serial framework, so it is not pseudo ucom any more. Notes: svn path=/head/; revision=187579
* Fix typo in commentMaksim Yevmenkin2009-01-201-1/+1
| | | | | | | Pointed out by: Daan Vreeken / Daan at vehosting dot nl Notes: svn path=/head/; revision=187505
* Update (well, actually rewrite mostly) ng_ubt2 driver for USB2.Maksim Yevmenkin2009-01-202-1135/+1350
| | | | | | | | Reviewed by: HPS, alfred Blessed by: HPS Notes: svn path=/head/; revision=187494