summaryrefslogtreecommitdiffstats
path: root/sys/modules/usb
Commit message (Collapse)AuthorAgeFilesLines
* MFC r314651,r318439,r318440:ngie2017-05-3080-80/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | r314651: sys/modules: normalize .CURDIR-relative paths to SRCTOP This simplifies make output/logic Tested with: `cd sys/modules; make ALL_MODULES=` on amd64 r318439: Normalize .PATH on SRCTOP This will help Jenkins dedupe 9 warnings between the static build and the module build of ipsec(4). Missed in SRCTOP conversion in r314651. MFC with: r314651 r318440: Normalize SYSDIR on SRCTOP instead of .CURDIR This is being done to simplify pathing for CFLAGS and source files.
* MFC r313959:trasz2017-04-092-1/+10
| | | | | | | | | | | | | | | | | | Add USB Mass Storage CTL frontend. This makes it possible for USB OTG-capable hardware to implement device side of USB Mass Storage, ie pretend it's a flash drive. It's configured in the same way as other CTL frontends, using ctladm(8) or ctld(8). Differently from usfs(4), all the configuration can be done without rebuilding the kernel. Testing and review is welcome. Right now I'm still moving, and I don't have access to my test environment, so I'm somewhat reluctant to making larger changes to this code; on the other hand I don't want to let it sit on Phab until my testing setup is back, because I want to get it into 11.1-RELEASE. Relnotes: yes Sponsored by: The FreeBSD Foundation
* MFC r306134:gonzo2016-10-221-2/+2
| | | | | | | | | | | | Add evdev support to ums(4) event generation is disabled by default in favour of sysmouse. This behavoiur is controlled by kern.evdev.rcpt_mask sysctl, bit 2 should be set to give priority to hw over sysmouse Submitted by: Vladimir Kondratiev <wulf@cicgroup.ru> Reviewed by: hans Differential Revision: https://reviews.freebsd.org/D7863
* MFC r306132, r306275:gonzo2016-10-221-1/+1
| | | | | | | | | | | | | | | | | | r306132: Add evdev support to ukbd driver event generation is disabled by default in favour of kbdmux. This behavoiur is controlled by kern.evdev.rcpt_mask sysctl, bit 3 should be set to give priority to hw over mux Submitted by: Vladimir Kondratiev <wulf@cicgroup.ru> Reviewed by: hans Differential Revision: https://reviews.freebsd.org/D7957 r306275: Do not perform extra check for NULL, evdev_free can handle NULL value Submitted by: Vladimir Kondratiev <wulf@cicgroup.ru>
* [urtwn] migrate urtwn out into sys/dev/urtwn/ .adrian2016-03-207-57/+0
| | | | | | | | | | | | | | | | There's some upcoming work to add new chipset support here and I'd like to only add 802.11n support to one driver, instead of both urtwn and rtwn. There's also missing support for things like 802.11n, some powersave work, bluetooth integration/coexistence, etc, and also newer parts (like 8192EU, maybe some 11ac parts, not sure yet.) So, this is hopefully the first step in a longer set of steps to unify rtwn/urtwn and extend it with more interesting chipset and functionality support. Reviewed by: kevlo
* urtwn: add an option to compile the driver without firmware specific codeavos2016-02-222-3/+9
| | | | | | | | | | | | | | | | - Add URTWN_WITHOUT_UCODE option (will disable any firmware specific code when set). - Do not exclude the driver from build when MK_SOURCELESS_UCODE is set (URTWN_WITHOUT_UCODE will be enforced unconditionally). - Do not abort initialization when firmware cannot be loaded; behave like the URTWN_WITHOUT_UCODE option was set. - Drop some unused variables from urtwn_softc structure. Tested with RTL8188EU and RTL8188CUS in HOSTAP and STA modes. Reviewed by: kevlo Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D4849
* Disable the firwmare licence check for rsu and urtwn.adrian2015-12-262-2/+2
| | | | | | | | | | | | The licence grant says something exactly the same as the atheros patent grant, which is "As long as you use this firmware on our chips, everything is totally okay." Now, I'm pretty sure if that we /have/ to have this, we're going to have to have it for every other firmware for every other device in the tree. So, I'll flip this off in -HEAD for now so people stop asking about why rsu/urtwn don't work out of the box, and I'll kick off a larger discussion about this in the new year.
* Add initial support for RTL8152 USB Fast Ethernet. RTL8152 supportskevlo2015-12-012-1/+11
| | | | | | | | | | IPv4/IPv6 checksum offloading and VLAN tag insertion/stripping. Since uether doesn't provide a way to announce driver specific offload capabilities to upper stack, checksum offloading support needs more work and will be done in the future. Special thanks to Hayes Wang from RealTek who gave input.
* Build all of sys/modules with SUBDIR_PARALLEL.bdrewery2015-11-101-5/+0
| | | | | Sponsored by: EMC / Isilon Storage Division MFC after: 3 weeks
* Finish process of moving the LinuxKPI module into the default kernel build.hselasky2015-10-291-1/+1
| | | | | | | | | | | | | | | | | | | - Move all files related to the LinuxKPI into sys/compat/linuxkpi and its subfolders. - Update sys/conf/files and some Makefiles to use new file locations. - Added description of COMPAT_LINUXKPI to sys/conf/NOTES which in turn adds the LinuxKPI to all LINT builds. - The LinuxKPI can be added to the kernel by setting the COMPAT_LINUXKPI option. The OFED kernel option no longer builds the LinuxKPI into the kernel. This was done to keep the build rules for the LinuxKPI in sys/conf/files simple. - Extend the LinuxKPI module to include support for USB by moving the Linux USB compat from usb.ko to linuxkpi.ko. - Bump the FreeBSD_version. - A universe kernel build has been done. Reviewed by: np @ (cxgb and cxgbe related changes only) Sponsored by: Mellanox Technologies
* urtwn(4): split *reg and *var parts (no functional change).adrian2015-10-121-1/+1
| | | | | Submitted by: <s3erios@gmail.com> Differential Revision: https://reviews.freebsd.org/D3775
* Add opt_wlan.h as requirements for the two drivers I'm currently working on.adrian2015-09-292-2/+2
|
* Add USB gold driver to default kernel build.hselasky2015-06-191-1/+1
|
* Import ugold driver from OpenBSD supporting digital USB temperaturehselasky2015-06-111-0/+13
| | | | | | | meters. The driver is currently not part of the default kernel build. Obtained from: OpenBSD MFC after: 2 weeks
* Add USB MIDI template for USB device side mode.hselasky2015-06-011-1/+2
|
* Build the USB DisplayLink driver by default.hselasky2015-04-171-0/+1
|
* Allow USB modules to be built in parallel.hselasky2015-03-041-0/+5
|
* Import USB display link driver from OpenBSD. Support for compressionhselasky2015-02-151-0/+12
| | | | | | | 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>
* Add new USB template to the USB template module.hselasky2015-01-131-1/+2
|
* The USB LED driver for the Dream Cheeky WebMail Notifier.kevlo2014-09-052-1/+37
| | | | Reviewed by: hselasky
* Remove dependence on source tree options. Move all kernel moduleimp2014-08-111-1/+2
| | | | | | | | | | | | | | | | | | options into kern.opts.mk and change all the places where we use src.opts.mk to pull in the options. Conditionally define SYSDIR and use SYSDIR/conf/kern.opts.mk instead of a CURDIR path. Replace all instances of CURDIR/../../etc with STSDIR, but only in the affected files. As a special compatibility hack, include bsd.owm.mk at the top of kern.opts.mk to allow the bare build of sys/modules to work on older systems. If the defaults ever change between 9.x, 10.x and current for these options, however, you'll wind up with the host OS' defaults rather than the -current defaults. This hack will be removed when we no longer need to support this build scenario. Reviewed by: jhb Differential Revision: https://phabric.freebsd.org/D529
* Add new USB phone descriptor template for USB device side mode.hselasky2014-08-051-1/+2
| | | | MFC after: 3 days
* Hook the ISP/SAF1761 driver into MIPS kernel builds.hselasky2014-05-292-2/+6
| | | | | | | | | - Update FDT file for BERI DE4 boards. - Add needed kernel configuration keywords. - Rename module to saf1761otg so that the device unit number does not interfere with the hardware ID in dmesg. Sponsored by: DARPA, AFRL
* - Remove no longer used file. FDT is used to attach device drivers.hselasky2014-05-181-4/+0
|
* Rename "saf1761_dci_xxx" into "saf1761_otg_xxx" to reflect that thishselasky2014-05-161-1/+1
| | | | | | driver supports both host and device side mode. Sponsored by: DARPA, AFRL
* Create driver file templates, kernel module Makefile and add initialhselasky2014-05-121-0/+42
| | | | | | | version of register definitions for ISP1761 and SAF1761 compatible chips. Sponsored by: DARPA, AFRL
* Use src.opts.mk in preference to bsd.own.mk except where we need stuffimp2014-05-061-1/+1
| | | | from the latter.
* Add preliminary support for the Realtek RTL8188EUS and RTL8188ETV chipsets.kevlo2014-04-252-1/+7
| | | | Committed over the TP-LINK TL-WN725N v2 (RTL8188EUS) on amd64 with WPA.
* Add support for specifying USB controller mode via FDT.hselasky2014-04-181-2/+2
| | | | | | | | Add FDT support to the DWC OTG kernel module. Submitted by: John Wehle <john@feith.com> PR: usb/188683 MFC after: 1 week
* Import USB RNDIS driver to FreeBSD from OpenBSD.hselasky2014-02-062-0/+38
| | | | | | | | | | | | | | Useful for so-called USB tethering. - Imported code from OpenBSD - Adapted code to FreeBSD - Removed some unused functions - Fixed some buffer encoding and decoding issues - Optimised data transport path a bit, by sending multiple packets at a time - Increased receive buffer to 16K Obtained from: OpenBSD Requested by: eadler @ MFC after: 2 weeks
* Add support for trackpads found in Apple MacBook products. While at ithselasky2014-01-292-1/+37
| | | | | | | add some missing devd entries. Submitted by: Huang Wen Hui <huanghwh@gmail.com> MFC after: 1 week
* Make it easier to test build the USB code having the debug flags sethselasky2013-12-091-0/+12
| | | | | | without having to build the complete kernel. MFC after: 2 weeks
* Import the axge(4) driver for the ASIX AX88178A and AX88179 USB Ethernetmarkj2013-11-192-1/+11
| | | | | | | | adapters. Both devices support Gigabit Ethernet and USB 2.0, and the AX88179 supports USB 3.0. The driver was written by kevlo@ and lwhsu@, with a few bug fixes from me. MFC after: 2 months
* Fix up paths after r253790.pluknet2013-07-301-2/+2
| | | | | | While here, use $? contraction. Reported by: O. Hartmann
* Move runfw to modules/usb.rpaulo2013-07-302-2/+20
| | | | | | While there, respect MK_SOURCELESS_UCODE. Discussed with: kevlo
* Import OpenBSD's rsu(4) WLAN driver.rpaulo2013-07-302-1/+12
| | | | | | | | | | | Support chipsets are the Realtek RTL8188SU, RTL8191SU, and RTL8192SU. Many thanks to Idwer Vollering for porting/writing the man page and for testing. Reviewed by: adrian, hselasky Obtained from: OpenBSD Tested by: kevlo, Idwer Vollering <vidwer at gmail.com>
* Fix a debugging hack that snuck in.rpaulo2013-07-291-3/+1
|
* Firmware module for the upcoming rsu(4) driver.rpaulo2013-07-293-0/+28
|
* Add some USB gadget example drivers for USB audio, USB keyboard,hselasky2013-07-225-0/+148
| | | | | | USB mouse and USB modem classes. Hopefully someone will find these examples useful when implementing USB device side drivers using the FreeBSD USB stack.
* Add urtwnfw.rpaulo2013-07-161-1/+1
|
* Adding urtwn(4) firmware and related changes.hiren2013-07-104-0/+32
| | | | | Reviewed by: rpaulo Approved by: sbruno (mentor)
* Import Kevin Lo's port of urtwn(4) from OpenBSD. urtwn(4) is a driver for therpaulo2013-06-082-1/+11
| | | | | | | | | | | | | | | | | | Realtek RTL8188CU/RTL8192CU USB IEEE 802.11b/g/n wireless cards. This driver requires microcode which is available in FreeBSD ports: net/urtwn-firmware-kmod. Hiren ported the urtwn(4) man page from OpenBSD and Glen just commited a port for the firmware. TODO: - 802.11n support - Stability fixes - the driver can sustain lots of traffic but has trouble coping with simultaneous iperf sessions. - fix debugging MFC after: 2 months Tested by: kevlo, hiren, gjb
* - With the demise of !ATA_CAM, ATA_STATIC_ID is the only ata(4) relatedmarius2013-04-063-8/+4
| | | | | | | | | option left but actually consumed by ada(4), so move it to opt_ada.h and get rid of opt_ata.h. - Fix stand-alone build of atacore(4) by adding opt_cam.h. - Use __FBSDID. - Use DEVMETHOD_END. - Use NULL instead of 0 for pointers.
* Fix LINT build for ARM.delphij2013-02-091-0/+1
|
* Include SMSC driver into default kernel build.hselasky2013-02-012-2/+2
|
* Merging of projects/armv6, part 5gonzo2012-08-151-0/+37
| | | | | | | - Driver for SMSC LAN95XX and LAN8710A ethernet controllers - Driver for LAN8710A PHY Submitted by: Ben Gray, Damjan Marion, Tim Kientzle
* Add DWC OTG module to ARM builds.hselasky2012-03-052-1/+46
| | | | MFC after: 1 week
* Add MK_SOURCELESS build option. Setting MK_SOURCELESS to "no" will disablermh2012-02-041-2/+14
| | | | | | | | | | | kernel modules that include binary-only code. More fine-grained control is provided via MK_SOURCELESS_HOST (for native code that runs on host CPU) and MK_SOURCELESS_UCODE (for microcode). Reviewed by: julian, delphij, freebsd-arch Approved by: kib (mentor) MFC after: 2 weeks
* Implement better support for USB controller suspend and resume.hselasky2011-12-142-1/+43
| | | | | | | | | | This patch should remove the need for kldunload of USB controller drivers at suspend and kldload of USB controller drivers at resume. This patch also fixes some build issues in avr32dci.c MFC after: 2 weeks
* - Follow the lead of dcphy(4) and pnphy(4) and move the reminder of the PHYmarius2011-10-081-3/+2
| | | | | | | | | | | | | | drivers that only ever attach to a particular MAC driver, i.e. inphy(4), ruephy(4) and xlphy(4), to the directory where the respective MAC driver lives and only compile it into the kernel when the latter is also there, also removing it from miibus.ko and moving it into the module of the respective MAC driver. - While at it, rename exphy.c, which comes from NetBSD where the MAC driver it corresponds to also is named ex(4) instead of xl(4) but that in FreeBSD actually identifies itself as xlphy(4), and its function names accordingly for consistency. - Additionally while at it, fix some minor style issues like whitespace in the register headers and add multi-inclusion protection to inphyreg.h.
OpenPOWER on IntegriCloud