summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb
Commit message (Collapse)AuthorAgeFilesLines
* Unifdef __NetBSD__ here, the usb stack as a whole doesnt support NetBSD and itthompsa2009-05-262-418/+2
| | | | obsfucates the code.
* Do not forcefully close the write transfer when closing the tty, it needs tothompsa2009-05-262-21/+7
| | | | run to completion and drain the tty queue.
* Don't clear last usage when a new HID item is found, it improves parsing ofthompsa2009-05-211-3/+0
| | | | | | Apple keyboard HID descriptors. Submitted by: Hans Petter Selasky
* Remove README.TXT as the info is in usb(4).thompsa2009-05-211-411/+0
|
* Add Sharp WILLCOM03 ipaq and Option GTHSDPA 3g device ids.thompsa2009-05-213-1/+6
| | | | Submitted by: Hans Petter Selasky
* Use the correct usb config number on attach.thompsa2009-05-211-1/+1
| | | | | Reported by: Greg Rivers Submitted by: Hans Petter Selasky
* Fix a failure to report failure on stalled status stage for controlthompsa2009-05-211-7/+0
| | | | | | transactions. Submitted by: Hans Petter Selasky
* Add a driver for the AVR32 series USB Device Controller. Not hooked up asthompsa2009-05-212-0/+2319
| | | | | | | FreeBSD does not yet support this platform but it makes it easier to stay in sync. Submitted by: Hans Petter Selasky
* Improve device mode (gadget) stall handling.thompsa2009-05-2110-10/+25
| | | | | | | | | Some hardware easily comes out of sync with regard to whether the current or the next control transfer should be stalled, if a stall command is always issued before receiving the SETUP packet. After this patch the stall command will only be issued when a transfer should actually be stalled. Submitted by: Hans Petter Selasky
* Print out device attachment.thompsa2009-05-212-0/+2
|
* Rename the usb sysctl tree from hw.usb2.* back to hw.usb.*.thompsa2009-05-2147-99/+99
| | | | Submitted by: Hans Petter Selasky
* Use enums for speed and rev data types.thompsa2009-05-2112-39/+39
|
* - rename usb2_mode to usb_mode [1]thompsa2009-05-2159-138/+138
| | | | | | - change variable types to use the enum Submitted by: Hans Petter Selasky [1]
* Overhaul monitor mode handling:sam2009-05-208-152/+151
| | | | | | | | | | | | | | | | | | | | | | | | o replace DLT_IEEE802_11 support in net80211 with DLT_IEEE802_11_RADIO and remove explicit bpf support from wireless drivers; drivers now use ieee80211_radiotap_attach to setup shared data structures that hold the radiotap header for each packet tx/rx o remove rx timestamp from the rx path; it was used only by the tdma support for debugging and was mostly useless due to it being 32-bits and mostly unavailable o track DLT_IEEE80211_RADIO bpf attachments and maintain per-vap and per-com state when there are active taps o track the number of monitor mode vaps o use bpf tap and monitor mode vap state to decide when to collect radiotap state and dispatch frames; drivers no longer explicitly directly check bpf state or use bpf calls to tap frames o handle radiotap state updates on channel change in net80211; drivers should not do this (unless they bypass net80211 which is almost always a mistake) o update various drivers to be more consistent/correct in handling radiotap o update ral to include TSF in radiotap'd frames o add promisc mode callback to wi Reviewed by: cbzimmer, rpaulo, thompsa
* Use defines for register offsets that do not change.thompsa2009-05-202-63/+29
| | | | Submitted by: Hans Petter Selasky
* - Add new register definitionsthompsa2009-05-202-10/+45
| | | | | | - Enable the controller and wait for the PLL to start Submitted by: Hans Petter Selasky
* The register shift is not needed on this controller.thompsa2009-05-201-3/+0
| | | | Submitted by: Hans Petter Selasky
* try to unsetup USB xfers before calling ieee80211_ifdetach() to fix aweongyo2009-05-202-2/+2
| | | | | | | | bug referencing a destroyed lock within TX callbacks during device detach. Submitted by: hps (original version) Tested by: Lucius Windschuh <lwindschuh at googlemail.com>
* add TRENDnet TEW-504UB/EUsam2009-05-172-0/+2
| | | | Submitted by: Lucius Windschuh <lwindschuh@googlemail.com>
* fix 11a channel use; mark OFDM operation correctlysam2009-05-171-2/+2
| | | | Submitted by: Lucius Windschuh <lwindschuh@googlemail.com>
* Ensure the bmRequestType is the right type for the incoming control request.thompsa2009-05-131-2/+4
| | | | Submitted by: Hans Petter Selasky
* Add parenthesis around the xfer macro argument.thompsa2009-05-131-3/+3
| | | | Submitted by: Hans Petter Selasky
* Make sure collections have the usage field set.thompsa2009-05-131-3/+9
| | | | Submitted by: Hans Petter Selasky
* Check the correct variable for IO_NDELAY.thompsa2009-05-131-2/+2
| | | | Submitted by: Hans Petter Selasky
* Add debug lines for fullspeed and highspeed xfer completion.thompsa2009-05-131-0/+4
| | | | Submitted by: Hans Petter Selasky
* Sync to P4thompsa2009-05-132-64/+90
| | | | | | Add umass quirks for Alcor AU6390, Cypress PATA 6830XX and MPMan MPF400. Submitted by: Hans Petter Selasky
* The transfer must return USB_ERR_CANCELLED when the device is gone due to thethompsa2009-05-131-1/+5
| | | | | | way usb drivers work. Submitted by: Hans Petter Selasky
* Add WUSB54AG and XM142 entries for upgt(4)weongyo2009-05-121-0/+2
|
* ports upgt(4) driver for USB2.weongyo2009-05-112-0/+2886
|
* Use a 32 bit type for the interface mask as this equals the max interfacethompsa2009-05-071-1/+2
| | | | count.
* Add the Sierra AC885U and increase the max ports to 8.thompsa2009-05-071-1/+2
|
* - Fix the u3g port detection where it would not calculate the correct number ofthompsa2009-05-071-50/+43
| | | | | ports when multiple interfaces are present. - Claim all interfaces regardless of how many are attached
* Use vendor and product macro expansion to make the device table smaller andthompsa2009-05-071-57/+56
| | | | more readable.
* Make sure the frame list base address is re-programmed after stopping the USBthompsa2009-05-051-37/+50
| | | | | | | schedule, in case the hardware clears the frame list base address. Submitted by: Hans Petter Selasky Reported by: Chao Shin
* Remove USB shutdown methods from device drivers as its the host controllersthompsa2009-05-0512-150/+0
| | | | | | | responsibility to detach the bus. PR: usb/133896 Submitted by: Hans Petter Selasky
* Revert part of r191494 which used the udev state to mark suspending, this needsthompsa2009-05-0510-56/+54
| | | | | | | | to be set via two variables (peer_suspended and self_suspended) and can not be merged into one. Submitted by: Hans Petter Selasky Pointy hat: me
* Create a taskqueue for each wireless interface which provides a serialisedthompsa2009-05-029-957/+318
| | | | | | | | | | | | | | | | | | | | | | | sleepable context for net80211 driver callbacks. This removes the need for USB and firmware based drivers to roll their own code to defer the chip programming for state changes, scan requests, channel changes and mcast/promisc updates. When a driver callback completes the hardware state is now guaranteed to have been updated and is in sync with net80211 layer. This nukes around 1300 lines of code from the wireless device drivers making them more readable and less race prone. The net80211 layer has been updated as follows - all state/channel changes are serialised on the taskqueue. - ieee80211_new_state() always queues and can now be called from any context - scanning runs from a single taskq function and executes to completion. driver callbacks are synchronous so the channel, phy mode and rx filters are guaranteed to be set in hardware before probe request frames are transmitted. Help and contributions from Sam Leffler. Reviewed by: sam
* We need to ref the bss node when sending the beacon since it goes through thethompsa2009-04-301-1/+1
| | | | normal tx path and will be decremented on the mbuf free.
* Make the state string descriptions public.thompsa2009-04-252-9/+18
|
* Track the usb device state as its powered on, addressed and configured. This ↵thompsa2009-04-2511-39/+103
| | | | | | | | | helps to avoid touching the device when it is not going to respond and would otherwise timeout. Implement the suspend tracking as a udev state too.
* MFp4 //depot/projects/usb@160930thompsa2009-04-2220-413/+445
| | | | | | | Change the roothub exec functions to take the usb request and data pointers directly rather than placing them on the parent bus struct. Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb@160708thompsa2009-04-221-8/+9
| | | | | | | Need to check Read/Write allowed before writing any data for non-control transfers. Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb@160706thompsa2009-04-223-2/+25
| | | | | | Resolve possible device side mode deadlock by creating another thread. Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb@160678thompsa2009-04-223-3/+0
| | | | | | Remove unused field. Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb@160655thompsa2009-04-221-5/+15
| | | | | | Fix possible issue with clear-stall and set-config happening at the same time. Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb@160614thompsa2009-04-221-1/+2
| | | | | | Fix errornous printout. Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb@160485thompsa2009-04-221-23/+11
| | | | | | | | Fix a bug in the USB power daemon code where connection of multiple HUBs in series would result in incorrect device suspend. Reported by: Nicolas xxx@wanadoo.fr Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb@160413thompsa2009-04-224-4/+6
| | | | | | | | | Use direct reference to parent high-speed HUB instead of indirect, due to pointer clearing race at detach of parent USB HUB. Reported by: kientzle Submitted by: Hans Petter Selasky PR: usb/133545
* Add another FTDI serial converter.takawata2009-04-212-0/+2
|
* Revert r190676,190677thompsa2009-04-101-1/+1
| | | | | | | The geom and CAM changes for root_hold are the wrong solution for USB design quirks. Requested by: scottl
OpenPOWER on IntegriCloud