summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/controller
Commit message (Collapse)AuthorAgeFilesLines
* Integrate Efika MX project back to home.ray2013-03-201-0/+282
| | | | Sponsored by: The FreeBSD Foundation
* Fix spelling.hselasky2013-03-201-1/+2
|
* Resolve a LOR after r246616. Protect control requests using the USB devicehselasky2013-02-131-6/+12
| | | | | | | | | enumeration lock. Make sure all callers of usbd_enum_lock() check the return value. Remove the control transfer specific lock. Bump the FreeBSD version number, hence external USB modules may need to be recompiled due to a USB device structure change. MFC after: 1 week
* Add defines to more easily allow a single threaded version of the FreeBSDhselasky2013-02-053-39/+33
| | | | USB stack. This is useful for non-kernel purposes, like the loader.
* Use DEVMETHOD_END macro defined in sys/bus.h instead of {0, 0} sentinel on ↵sbz2013-01-301-1/+2
| | | | | | | device_method_t arrays Reviewed by: cognet Approved by: cognet
* Do not unnecessarily split a string literal, becausehselasky2013-01-301-2/+2
| | | | | | splitting it makes it hard to grep. Submitted by: Christoph Mallon
* Use string literals in string descriptors for marginallyhselasky2013-01-306-25/+12
| | | | | | better readability. Submitted by: Christoph Mallon
* Provide one global language string descriptor forhselasky2013-01-306-36/+12
| | | | | | | american english instead of giving each module its own. Submitted by: Christoph Mallon
* Modify the FreeBSD USB kernel code so that it can be compiled directlyhselasky2013-01-3011-26/+75
| | | | | | | | | | | | | | | | | | | | | | into the FreeBSD boot loader, typically for non-USB aware BIOSes, EFI systems or embedded platforms. This is also useful for out of the system compilation of the FreeBSD USB stack for various purposes. The USB kernel files can now optionally include a global header file which should include all needed definitions required to compile the FreeBSD USB stack. When the global USB header file is included, no other USB header files will be included by default. Add new file containing the USB stack configuration for the FreeBSD loader build. Replace some __FBSDID()'s by /* $FreeBSD$ */ comments. Now all USB files follow the same style. Use cases: - console in loader via USB - loading kernel via USB Discussed with: Hiroki Sato, hrs @ EuroBSDCon
* Add missing NULL pointer check.hselasky2013-01-301-0/+6
| | | | | Reported by: Lars Engels MFC after: 1 week
* Shave off another register write to save some morehselasky2013-01-081-12/+17
| | | | | | | | microseconds of PCI access time. Tested by: sos @ Submitted by: sos @ MFC after: 1 week
* Optimise the XHCI interrupt handling.hselasky2013-01-071-2/+6
| | | | | | | | | | | This patch will save CPU time when the XHCI interrupt is shared with other devices. Only check event rings when interrupt bits are set. Otherwise would indicate hiding possible hardware fault(s). Tested by: sos @ Submitted by: sos @ MFC after: 1 week
* - Add support for Etron EJ168 USB 3.0 Host Controllers.hselasky2012-12-012-20/+52
| | | | | | | | | | | | | This brand of controllers expects that the number of contexts specified in the input slot context points to an active endpoint context, else it refuses to operate. - Ring the correct doorbell when streams mode is used. - Wrap one or two long lines. Tested by: Markus Pfeiffer (DragonFlyBSD) MFC after: 1 week
* Fix LOW and FULL speed USB INTERRUPT endpoint support for thehselasky2012-11-093-41/+159
| | | | | | | | | DWC OTG driver. Fix a hang issue when using LOW and FULL speed BULK traffic. Make sure we don't ask for data in the last microframe. This allows using devices like USB mice and USB keyboards connected to the RPI-B. Suggested by: gonzo @
* Allow using the embedded EHCI host controller in Freescale SoCsmarcel2012-11-032-6/+12
| | | | by adding the missing bits. See ehci_fsl.c for their use.
* Add missing CTLFLAG_TUN flag to tunable sysctls in USB stack.hselasky2012-10-266-21/+17
| | | | | | | | Rearrange the tunables and belonging sysctl declarations, so that they are next to eachother. Submitted by: n_hibma @ MFC after: 1 week
* Make several timing parameters of the USB enumeration sequence tuneable.hselasky2012-10-243-4/+4
| | | | | | | | | | | Also update the port reset time from 250ms to 50ms. Some USB devices have a hard limit in hardware at 222ms for the port reset time and will not enumerate unless this delay is closer to the usb.org defined value. This patch can fix enumeration with some USB devices. Tested by: Guido van Rooij Submitted by: Nick Hibma MFC after: 1 week
* Inherit USB mode from RootHUB port where the USB device is connected.hselasky2012-10-019-36/+1
| | | | | | | Only RootHUB ports can be dual mode. Disallow OTG ports on external HUBs. This simplifies some checks in the USB controller drivers. MFC after: 1 week
* Correct NYET handling. Remove superfluous transfer complete interrupt mask.hselasky2012-09-281-34/+23
|
* Make sure the "wMaxPacketSize" limitations are respected.hselasky2012-09-271-3/+28
|
* Make sure we record NAK tokens in the TD structure for IN direction.hselasky2012-09-273-63/+43
| | | | | Improve host channel disabling. Wait two times 125us for channel to be disabled. The DWC OTG doesn't like when channels are re-used too early.
* Make sure the DWC OTG host mode channels are given enough time to disable.hselasky2012-09-262-1/+18
|
* DWC OTG host mode improvements:hselasky2012-09-241-3/+36
| | | | | - Make HSIC selection dynamic. - Make LOW speed USB devices work through HIGH speed USB HUB.
* DWC OTG host mode improvements. Add support for the 3-strikes and you arehselasky2012-09-233-458/+627
| | | | | | | | | | gone rule. Optimise use of channels so that when a channel is not ready another channel is used. Instead of using the SOF interrupt use the system timer to drive the host statemachine. This might give lower throughput and higher latency, but reduces the CPU usage significantly. The DWC OTG host mode support should not be considered for serious USB host controller applications. Some problems are still seen with LOW speed USB devices.
* DWC OTG improvements. Implement full support for SPLIT transactions, in otherhselasky2012-09-143-208/+445
| | | | | words FULL/LOW speed devices through HIGH speed HUBs. Improve support for suspend and resume in host mode.
* Fix TX FIFO sizes. Correct FIFO handling in Host mode.hselasky2012-09-122-66/+84
|
* Reduce DWC OTG polling rate by using the SOF interrupt.hselasky2012-09-122-42/+75
|
* Fix missing parts of DWC OTG host mode support. The host mode supporthselasky2012-09-112-193/+168
| | | | | | of the DWC OTG is very simple in PIO mode, and we need to re-transmit data when NAK is received among other things. We probably will need to implement some kind of rate limitation on the NAK-ing.
* Poll VBUS status every second, hence the AT91 GPIO library doesn't supporthselasky2012-09-102-51/+15
| | | | registering interrupt handlers yet for GPIO events.
* Fix for IRQ hang in DWC OTG host mode.hselasky2012-09-101-19/+27
|
* Cleanup interrupt handling in Host Mode.hselasky2012-09-102-45/+45
|
* Implement missing USB suspend and resume support for DWC OTG driver.hselasky2012-09-091-6/+60
|
* Add support for DWC OTG.hselasky2012-09-091-0/+3
|
* Add support for host mode to the DWC OTG controller driver.hselasky2012-09-093-193/+1174
| | | | | | | The DWC OTG host mode support should still be considered experimental. Isochronous support for DWC OTG is not fully implemented. Some code added derives from Aleksandr Rybalko's dotg.c driver.
* Add more DWC OTG register definitions.hselasky2012-09-031-3/+21
| | | | Submitted by: Nick Hudson
* Preparations for adding USB HOST mode to the DWC OTG driver.hselasky2012-08-303-506/+980
| | | | | | | Merge register file with external one and put all register definitions in a separate file. Submitted by: ray @
* Add tunable for XHCI port routing.hselasky2012-08-233-5/+19
| | | | MFC after: 1 week
* Style.hselasky2012-08-211-1/+1
|
* Fix USB drivers for KB920X target.hselasky2012-08-212-6/+26
| | | | | Add missing clock settings. VBUS GPIO IRQ is still missing (TODO).
* Compile fix.hselasky2012-08-121-1/+0
| | | | MFC after: 2 weeks
* Add support for the so-called streams feature of BULK endpointshselasky2012-08-128-64/+157
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in SUPER-speed mode, USB 3.0. This feature has not been tested yet, due to lack of hardware. This feature is useful when implementing protocols like UASP, USB attached SCSI which promises higher USB mass storage throughput. This patch also implements support for hardware processing of endpoints for increased performance. The switching to hardware processing of an endpoint is done via a callback to the USB controller driver. The stream feature is implemented like a variant of a hardware USB protocol. USB controller drivers implementing device mode needs to be updated to implement the new "xfer_stall" USB controller method and remove the "xfer" argument from the "set_stall" method. The API's toward existing USB drivers are preserved. To setup a USB transfer in stream mode, set the "stream_id" field of the USB config structure to the desired value. The maximum number of BULK streams is currently hardcoded and limited to 8 via a define in usb_freebsd.h. All USB drivers should be re-compiled after this change. LibUSB will be updated next week to support streams mode. A new IOCTL to setup BULK streams as already been implemented. The ugen device nodes currently only supports stream ID zero. The FreeBSD version has been bumped. MFC after: 2 weeks
* Make this compile again. Also note that it is AT91RM9200+KB9202Bimp2012-07-271-2/+2
| | | | specific still and needs some love to make it work on anything else.
* Minor style(9) nit.imp2012-07-271-0/+1
|
* For Intel Panther/Lynx Point USB 3.0 xHCI controllers enable SuperSpeed USBmav2012-07-172-0/+14
| | | | | | capability and reroute USB 2.0 ports to the xHCI controller. Reviewed by: hselasky
* Add IDs for some USB controllers I have around. Just a cosmetics.mav2012-07-023-4/+25
| | | | MFC after: 3 days
* Import EHCI attachment driver for Freescale integrated controller.raj2012-05-261-0/+423
| | | | | Obtained from: Freescale, Semihalf. Written by: Michal Dubiel
* Make the VIA workaround application somewhat more consistent with themarius2012-05-261-1/+2
| | | | ATI one.
* Make the VIA workaround actually do its intended job.marius2012-05-261-1/+1
| | | | MFC after: 3 days
* Make sure the EHCI bandwidth allocation algorithmhselasky2012-05-031-0/+18
| | | | | | for FULL speed SPLIT transactions works fully. MFC after: 1 week
* Add support for Multi-TT mode of modern USB HUBs.hselasky2012-04-292-38/+52
| | | | | | | | | | This will give you more bandwidth for isochronous FULL speed applications connected through a High Speed HUB. This patch has been tested with XHCI and EHCI. MFC after: 1 week
OpenPOWER on IntegriCloud