summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb
Commit message (Collapse)AuthorAgeFilesLines
* - Add a new urtwn(4) devicekevlo2015-04-282-1/+2
| | | | - Remove duplicate REALTEK RTL8188CU_0 entry.
* - Fix the length of efuse content.kevlo2015-04-241-16/+29
| | | | - Replace the magic numbers with something more readable.
* Disable multi process interrupts, because the current code doesn't usehselasky2015-04-231-9/+7
| | | | | | | them. Else we can end up in an infinite interrupt loop in USB device mode. MFC after: 3 days
* Don't print uninitialized variables.hselasky2015-04-211-2/+1
| | | | CID: 1295242
* Add new USB ID.kevlo2015-04-192-2/+4
| | | | PR: 199522
* Buffers which can be memory mapped into userspace should never behselasky2015-04-172-8/+74
| | | | | freed. Recycle the buffers instead. This patch also fixes a panic at reboot issue when an UDL adapter is attached to the system.
* Enable LDO to 2.5V before efuse r/w action in order to preventkevlo2015-04-161-1/+12
| | | | | | | incorrect mac address read from efuse. Reported by: swills Tested by: rpaulo and myself on RPi
* Modify the return value of the uhci/ehci/xhci PCI probe routines toneel2015-04-133-3/+3
| | | | | | | | | | | 'BUS_PROBE_DEFAULT'. This allows bhyve's 'ppt' driver to claim ownership of the device and pass it through to the guest. In the common case where there are no competing drivers for USB controllers this change is a no-op. Reviewed by: hselasky MFC after: 2 weeks
* The "get latency" and "get bitmode" device commands are read operations,ian2015-04-101-2/+2
| | | | not writes.
* Add Lenovo ThinkPad OneLink GigaLAN.kevlo2015-04-072-0/+2
| | | | | PR: 199184 Submitted by: Robin Karlsson
* urtwn: blink the LED when scanning.rpaulo2015-04-041-5/+5
| | | | | | | | | | | Previously, the driver was trying to blink the LED in the newstate function, but that only gets called once (unlike OpenBSD's net80211 stack). Move the LED blinking to set_channel(). While there, don't try to set the channel when we switch to the SCAN state. This is already accomplished by the set_channel() function. MFC after: 1 week
* Remove whitespace.rpaulo2015-04-041-31/+31
|
* Add definition of the ISOCHRONOUS endpoint usage bits.hselasky2015-03-251-0/+5
| | | | | | Refer to the USB v2.0 specification for more information. MFC after: 1 week
* Remove no longer used allocation type.hselasky2015-03-172-2/+0
| | | | Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
* Use define instead of constant.hselasky2015-03-171-2/+1
| | | | Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
* Use SYSCTL_OUT_STR() to return strings.ian2015-03-141-1/+1
| | | | PR: 195668
* Lock softc before clearing bits.hselasky2015-03-101-0/+2
| | | | | Found by: Dmitry Luhtionov <dmitryluhtionov@gmail.com> MFC after: 1 week
* Add support for enabling the USB on the Raspberry Pi boards when it hasn'tandrew2015-03-082-11/+46
| | | | | | | | | | | | | been done by U-Boot. This allows the USB to work when we load the kernel directly. No dma sync is performed after these operations as the data we read/write is not used by the cpu after the calls to the maimbox driver. Differential Revision: https://reviews.freebsd.org/D1940 Reviewed by: imp, Michal Meloun (meloun AT miracle.cz) MFC after: 1 Week Sponsored by: ABT Systems Ltd
* Switch polarity of PPS events.hselasky2015-03-081-3/+8
| | | | | | PR: 196897 Submitted by: ian @ MFC after: 1 week
* Use correct mode variable for PPS support.hselasky2015-03-071-2/+2
| | | | | | PR: 196897 Submitted by: ian @ MFC after: 1 week
* Allow the UDL screen refresh rate to be runtime configurable through ahselasky2015-03-071-3/+25
| | | | | sysctl. Increase the default frame rate to 25 FPS. Add a comment about memory constraints.
* Add PPS support to USB serial drivers.hselasky2015-03-072-4/+40
| | | | | | | Bump kernel version to reflect structure change. PR: 196897 MFC after: 1 week
* Add more USB IDs.hselasky2015-03-073-1/+5
| | | | | PR: 197753 MFC after: 1 week
* Sort and remove unnecessary headers.loos2015-03-031-14/+4
|
* Add quirk for USB 3.0 controllers which don't support 64-bit DMA.hselasky2015-03-031-1/+12
| | | | | MFC after: 3 days Submitted by: Gary Jennejohn <gljennjohn@gmail.com>
* Add quirk to disable 64-bit XHCI DMA after r276717.hselasky2015-03-023-6/+11
| | | | | Requested by: Gary Jennejohn <gljennjohn@gmail.com> MFC after: 3 days
* Add ugen keyword to USB pnpinfo. Remove extra space from existing pnpinfo.hselasky2015-02-251-6/+14
| | | | | | | PR: 198015 PR: 198019 PR: 198026 MFC after: 1 week
* Ensure that the XHCI driver will refresh the control endpoint settingshselasky2015-02-241-0/+7
| | | | | | | when re-enumerating a FULL speed device. Else the wrong max packet setting might be used when trying to re-enumerate a FULL speed device. MFC after: 3 days
* Add support for the DWC OTG v2 chipset found in the STM32F4 series ofhselasky2015-02-232-11/+48
| | | | | | | processors. Make sure we pullup the data lines in device mode when we power on the port. MFC after: 1 week
* Try to resolve infinite interrupts by clearing an undocumentedhselasky2015-02-171-1/+2
| | | | | | | | | interrupt status bit. According to the UHCI controller specification the host controller halted interrupt is non-maskable. PR: 156596 Tested by: adrian @ MFC after: 1 week
* Reduce number of memory buffers a bit.hselasky2015-02-161-1/+1
|
* Avoid recursive locking.hselasky2015-02-161-5/+14
|
* Swap screen dimensions back to normal.hselasky2015-02-161-2/+2
|
* Handle VBUS error interrupts.hselasky2015-02-161-1/+8
| | | | | | Submitted by: SAITOU Toshihide <toshi@ruby.ocn.ne.jp> PR: 190471 MFC after: 1 week
* Allow the display port to be powered off.hselasky2015-02-161-14/+5
|
* Add new device ID.hselasky2015-02-152-0/+2
|
* Bugfixes. Check if a framebuffer is present before using it. Dequeuehselasky2015-02-151-4/+10
| | | | | element from correct head structure. No need to multiply framebuffer offset by two. It is already given in bytes.
* Import USB display link driver from OpenBSD. Support for compressionhselasky2015-02-153-0/+1401
| | | | | | | has been removed and the driver has been greatly simplified and optimised for FreeBSD. The driver is currently not built by default. Requested by: Bruce Simpson <bms@fastmail.net>
* Fix DMA address casts. Regression issue after r278279.hselasky2015-02-091-2/+2
| | | | MFC after: 3 days
* Add Neoway WM620 module ID.dchagin2015-02-082-0/+2
| | | | MFC after: 1 Week
* Separate out detection of prevent and allow medium removal quirk.hselasky2015-02-021-7/+22
| | | | | PR: 185747 MFC after: 1 week
* Optimise allocation of USB DMA structures. By default don't double maphselasky2015-02-021-4/+27
| | | | | | | | | allocations if only one element should be allocated per page cache. Make one allocation per element compile time configurable. Fix a comment while at it. Suggested by: ian @ MFC after: 1 week
* Section 3.2.9 in the XHCI specification about control transfers sayshselasky2015-02-023-1/+40
| | | | | | | | | that we should use a normal-TRB if there are more TRBs extending the data-stage TRB. Add a dedicated state bit to the internal USB transfer flags to handle this case. Reported by: Kohji Okuno <okuno.kohji@jp.panasonic.com> MFC after: 1 week
* Fix a bunch of -Wcast-qual warnings in sys/dev/usb/input/uhid.c, bydim2015-01-311-3/+3
| | | | | | | using __DECONST. No functional change. Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D1743
* Revise the arm bus_space implementation to avoid dereferencing the tag onian2015-01-211-17/+17
| | | | | | | | | | | | | | | | | every operation to retrieve the bs_cookie value almost nothing actually uses. The bus_space struct contains a private data pointer (poorly named bs_cookie, now renamed to bs_privdata) which is used only by a few old armv4 xscale implementations. The bus_space functions were all defined to take this value as the first parameter instead of the bus_space_tag_t, requiring all the inline macro and function expansions to dereference the tag to pass it to another function, which never uses it. Now all the functions take the tag as the first parameter and retrieve the privdata if they need it. Also fix a couple bus_space_unmap() implementations that were calling kva_free() instead of pmap_unmapdev(). Discussed with: cognet
* o Restore 'goto tr_setup;' when operating in host mode mistakenlybr2015-01-201-8/+5
| | | | | removed in r277414. o Remove extra parentheses around cases.
* o Do notify USB host each time we receive 'set packet filter' request.br2015-01-201-24/+69
| | | | | | | | | | This makes Mac OS X happy when it returns back from suspending. o Switch notify state after data is transferred, but not before. o Consider there is also Super Speed mode. o Do not set stall bit on any pipes in device mode as Mac OS X seems don't support it. In collaboration with: hselasky@
* Fix returned data for the USB_GET_DEV_PORT_PATH IOCTL in particularhselasky2015-01-201-5/+4
| | | | | | | the value returned in the "udp_port_level" field. Reported by: Uffe Jakobsen <uffe@uffe.org> MFC after: 1 week
* o Notify USB host about connection when operating in device mode.br2015-01-172-6/+60
| | | | | | | | Required when communicating to Mac OS X USB host stack. o Also don't set stall bit to TX pipe in device mode as seems Mac OS X don't clears it as it should. Discussed with: hselasky@
* Add more USB device IDs.hselasky2015-01-162-0/+4
| | | | | | Submitted by: max.n.boyarov@gmail.com PR: 196362 MFC after: 1 week
OpenPOWER on IntegriCloud