summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb2
Commit message (Collapse)AuthorAgeFilesLines
* Move the new USB stack into its new home.thompsa2009-02-23173-108653/+0
|
* Use root_mount_hold and root_mount_rel to allow the USB bus to be exploredthompsa2009-02-222-0/+13
| | | | | before trying to mount root. Unlike USB1 the busses are not explored at attach but rather after threads are running.
* Revert r188878 for the moment, this breaks kdump.thompsa2009-02-211-24/+0
|
* Provide compat typedefs for usb1.thompsa2009-02-211-0/+24
|
* Switch over to usbdevs.h generated at compile time.thompsa2009-02-1844-13539/+43
|
* Make uslcom compile, cut'n'paste errors from uplcom.thompsa2009-02-151-7/+7
|
* MFp4 //depot/projects/usb@157699thompsa2009-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
* - ieee80211_chan2ieee returns an intthompsa2009-02-142-30/+74
| | | | | | | - avoid null deref in detach - update pause timings Obtained from: //depot/projects/usb
* Remove unneeded execute-permissions from the USB2 device node.ed2009-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
* - ieee80211_chan2ieee returns an intthompsa2009-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
* MFp4 //depot/projects/usb; 157501, 157608, 157609thompsa2009-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
* Restore some of the link handling code that was inadvertently removed inthompsa2009-02-131-12/+41
| | | | | | | r188412, this broke the GU-1000T adapters. Submitted by: yongari Pointy hat: me
* Add module dependency on miibus.thompsa2009-02-131-1/+3
| | | | Submitted by: yongari
* Remove usb2_config_td.[ch], they are no longer used.thompsa2009-02-092-392/+0
|
* MFp4 //depot/projects/usb; 157429, 157433, 157443thompsa2009-02-096-359/+363
| | | | | | Various changes wrt. usb procs and tasks. Submitted by: Hans Petter Selasky
* Correct sources for r188417thompsa2009-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.
* MFp4 //depot/projects/usb; 157412thompsa2009-02-099-7896/+6729
| | | | | | | 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.
* MFp4 //depot/projects/usb; 157069, 157255thompsa2009-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
* MFp4 //depot/projects/usb; 157203thompsa2009-02-091-67/+22
| | | | | | - Remove CAM layer quirks Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb; 157069thompsa2009-02-091-4/+1
| | | | | | - Change "usb2_pause_mtx" so that it takes the timeout value in ticks Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb; 157069, 157136, 157143, 157145, 157429thompsa2009-02-0920-2121/+1208
| | | | | | | | - USB serial drivers cleanup, factor out code - Simplify line state programming - Integrate uslcom from old USB stack Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb; 157100thompsa2009-02-0918-5295/+2666
| | | | | | | | | | | | | | 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]
* MFp4 //depot/projects/usb; 157069, 157429, 157430thompsa2009-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
* MFp4 //depot/projects/usbthompsa2009-02-092-0/+714
| | | | | | - Bring in ehci2_ixp4xx.c and ehci2_mbus.c from dev/usb. Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb; 157069,157296,157375,157384,157430thompsa2009-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
* When bouncing pages, allow a new option to preserve the intra-pageimp2009-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
* The NRL value in the queue head must be zero for interrupt transfers. This wasthompsa2009-02-081-1/+3
| | | | | | diagnosed using a USB analyser obtained through a FreeBSD Foundation grant. Thanks to: FreeBSD Foundation
* Fix build, sigh.thompsa2009-02-071-1/+1
|
* Dont hold the lock over the controller init, we are still attaching.thompsa2009-02-073-28/+13
|
* Regenkevlo2009-02-062-2/+9
|
* Add the Buffalo WLI-U2-SG54HGkevlo2009-02-061-0/+1
|
* - Keep the same sorting on usb_errstr_table as the enum.thompsa2009-02-032-43/+44
| | | | - Use c99 array initializers for usb_quirk_str so the indexing isnt critical.
* Add missing string table for the usb quirk enum.thompsa2009-02-032-3/+28
| | | | | Pointy hat: me Submitted by: rrs
* Move away from autogenerated enums, these values never change and its helpfulthompsa2009-02-035-124/+114
| | | | to be able to look them up.
* src/usr.bin/usbhidaction/usbhidaction.calfred2009-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
* Revert part of r187970, the NULL check was removed fromthompsa2009-02-011-0/+3
| | | | udbp_bulk_read_complete() as well as udbp_attach.
* Remove check for null softc in attach, it can never happen.thompsa2009-02-0144-140/+0
|
* Update ubtbcmfw2 (aka usb2_bluetooth_fw) driveremax2009-01-281-225/+207
| | | | Reviewed by: HPS
* Make ng_ubt2 (aka usb2_bluetooth_ng) driver only attach as "generic" driveremax2009-01-281-0/+3
| | | | Reviewed by: HPS
* Clean up ng_ubt2. Get rid of excessive use of NG_NODE_REF/UNREF().emax2009-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
* MFp4 //depot/projects/usb/ @156706thompsa2009-01-261-6/+10
| | | | | | Adjust an UHCI portreset delay. Submitted by: Hans Petter Selasky
* Regen.thompsa2009-01-262-2/+46
|
* MFp4 //depot/projects/usb/ @156522,156530thompsa2009-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
* MFp4 //depot/projects/usb/ @156521thompsa2009-01-261-22/+50
| | | | | | | U3G regression issue. Patch to support multiple modem instances per logical USB interface. Submitted by: Hans Petter Selasky
* Fix up USB_GET_REPORT_DESC ioctl.thompsa2009-01-261-1/+1
| | | | Submitted by: daichi
* Add umass quirk.thompsa2009-01-261-0/+4
| | | | Submitted by: Hans Petter Selasky
* Add a usb hid quirk.thompsa2009-01-261-0/+1
| | | | Submitted by: Andre Guibert de Bruet
* Rename sc_is_pseudo to sc_nobulk member in ufoma_softc.takawata2009-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.
* Fix typo in commentemax2009-01-201-1/+1
| | | | Pointed out by: Daan Vreeken / Daan at vehosting dot nl
* Update (well, actually rewrite mostly) ng_ubt2 driver for USB2.emax2009-01-202-1147/+1362
| | | | | Reviewed by: HPS, alfred Blessed by: HPS
OpenPOWER on IntegriCloud