| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Sponsored by: The FreeBSD Foundation
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
USB stack. This is useful for non-kernel purposes, like the loader.
|
|
|
|
|
|
|
| |
device_method_t arrays
Reviewed by: cognet
Approved by: cognet
|
|
|
|
|
|
| |
splitting it makes it hard to grep.
Submitted by: Christoph Mallon
|
|
|
|
|
|
| |
better readability.
Submitted by: Christoph Mallon
|
|
|
|
|
|
|
| |
american english instead of giving each module its
own.
Submitted by: Christoph Mallon
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Reported by: Lars Engels
MFC after: 1 week
|
|
|
|
|
|
|
|
| |
microseconds of PCI access time.
Tested by: sos @
Submitted by: sos @
MFC after: 1 week
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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 @
|
|
|
|
| |
by adding the missing bits. See ehci_fsl.c for their use.
|
|
|
|
|
|
|
|
| |
Rearrange the tunables and belonging sysctl declarations, so
that they are next to eachother.
Submitted by: n_hibma @
MFC after: 1 week
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
| |
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 HSIC selection dynamic.
- Make LOW speed USB devices work through HIGH speed USB HUB.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
words FULL/LOW speed devices through HIGH speed HUBs. Improve support for
suspend and resume in host mode.
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
registering interrupt handlers yet for GPIO events.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Submitted by: Nick Hudson
|
|
|
|
|
|
|
| |
Merge register file with external one and put all register
definitions in a separate file.
Submitted by: ray @
|
|
|
|
| |
MFC after: 1 week
|
| |
|
|
|
|
|
| |
Add missing clock settings.
VBUS GPIO IRQ is still missing (TODO).
|
|
|
|
| |
MFC after: 2 weeks
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
specific still and needs some love to make it work on anything else.
|
| |
|
|
|
|
|
|
| |
capability and reroute USB 2.0 ports to the xHCI controller.
Reviewed by: hselasky
|
|
|
|
| |
MFC after: 3 days
|
|
|
|
|
| |
Obtained from: Freescale, Semihalf.
Written by: Michal Dubiel
|
|
|
|
| |
ATI one.
|
|
|
|
| |
MFC after: 3 days
|
|
|
|
|
|
| |
for FULL speed SPLIT transactions works fully.
MFC after: 1 week
|
|
|
|
|
|
|
|
|
|
| |
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
|