aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/usb
Commit message (Collapse)AuthorAgeFilesLines
* [urtwn] migrate urtwn out into sys/dev/urtwn/ .Adrian Chadd2016-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 Notes: svn path=/head/; revision=297058
* urtwn: add an option to compile the driver without firmware specific codeAndriy Voskoboinyk2016-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 Notes: svn path=/head/; revision=295871
* Disable the firwmare licence check for rsu and urtwn.Adrian Chadd2015-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. Notes: svn path=/head/; revision=292756
* Add initial support for RTL8152 USB Fast Ethernet. RTL8152 supportsKevin Lo2015-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. Notes: svn path=/head/; revision=291557
* Build all of sys/modules with SUBDIR_PARALLEL.Bryan Drewery2015-11-101-5/+0
| | | | | | | | Sponsored by: EMC / Isilon Storage Division MFC after: 3 weeks Notes: svn path=/head/; revision=290665
* Finish process of moving the LinuxKPI module into the default kernel build.Hans Petter Selasky2015-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 Notes: svn path=/head/; revision=290135
* urtwn(4): split *reg and *var parts (no functional change).Adrian Chadd2015-10-121-1/+1
| | | | | | | | Submitted by: <s3erios@gmail.com> Differential Revision: https://reviews.freebsd.org/D3775 Notes: svn path=/head/; revision=289167
* Add opt_wlan.h as requirements for the two drivers I'm currently working on.Adrian Chadd2015-09-292-2/+2
| | | | Notes: svn path=/head/; revision=288352
* Add USB gold driver to default kernel build.Hans Petter Selasky2015-06-191-1/+1
| | | | Notes: svn path=/head/; revision=284592
* Import ugold driver from OpenBSD supporting digital USB temperatureHans Petter Selasky2015-06-111-0/+13
| | | | | | | | | | meters. The driver is currently not part of the default kernel build. Obtained from: OpenBSD MFC after: 2 weeks Notes: svn path=/head/; revision=284272
* Add USB MIDI template for USB device side mode.Hans Petter Selasky2015-06-011-1/+2
| | | | Notes: svn path=/head/; revision=283879
* Build the USB DisplayLink driver by default.Hans Petter Selasky2015-04-171-0/+1
| | | | Notes: svn path=/head/; revision=281645
* Allow USB modules to be built in parallel.Hans Petter Selasky2015-03-041-0/+5
| | | | Notes: svn path=/head/; revision=279582
* Import USB display link driver from OpenBSD. Support for compressionHans Petter Selasky2015-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> Notes: svn path=/head/; revision=278799
* Add new USB template to the USB template module.Hans Petter Selasky2015-01-131-1/+2
| | | | Notes: svn path=/head/; revision=277131
* The USB LED driver for the Dream Cheeky WebMail Notifier.Kevin Lo2014-09-052-1/+37
| | | | | | | Reviewed by: hselasky Notes: svn path=/head/; revision=271159
* Remove dependence on source tree options. Move all kernel moduleWarner Losh2014-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 Notes: svn path=/head/; revision=269812
* Add new USB phone descriptor template for USB device side mode.Hans Petter Selasky2014-08-051-1/+2
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=269567
* Hook the ISP/SAF1761 driver into MIPS kernel builds.Hans Petter Selasky2014-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 Notes: svn path=/head/; revision=266832
* - Remove no longer used file. FDT is used to attach device drivers.Hans Petter Selasky2014-05-181-4/+0
| | | | Notes: svn path=/head/; revision=266395
* Rename "saf1761_dci_xxx" into "saf1761_otg_xxx" to reflect that thisHans Petter Selasky2014-05-161-1/+1
| | | | | | | | | driver supports both host and device side mode. Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=266244
* Create driver file templates, kernel module Makefile and add initialHans Petter Selasky2014-05-121-0/+42
| | | | | | | | | | version of register definitions for ISP1761 and SAF1761 compatible chips. Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=265908
* Use src.opts.mk in preference to bsd.own.mk except where we need stuffWarner Losh2014-05-061-1/+1
| | | | | | | from the latter. Notes: svn path=/head/; revision=265420
* Add preliminary support for the Realtek RTL8188EUS and RTL8188ETV chipsets.Kevin Lo2014-04-252-1/+7
| | | | | | | Committed over the TP-LINK TL-WN725N v2 (RTL8188EUS) on amd64 with WPA. Notes: svn path=/head/; revision=264912
* Add support for specifying USB controller mode via FDT.Hans Petter Selasky2014-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 Notes: svn path=/head/; revision=264642
* Import USB RNDIS driver to FreeBSD from OpenBSD.Hans Petter Selasky2014-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 Notes: svn path=/head/; revision=261541
* Add support for trackpads found in Apple MacBook products. While at itHans Petter Selasky2014-01-292-1/+37
| | | | | | | | | | add some missing devd entries. Submitted by: Huang Wen Hui <huanghwh@gmail.com> MFC after: 1 week Notes: svn path=/head/; revision=261260
* Make it easier to test build the USB code having the debug flags setHans Petter Selasky2013-12-091-0/+12
| | | | | | | | | without having to build the complete kernel. MFC after: 2 weeks Notes: svn path=/head/; revision=259123
* Import the axge(4) driver for the ASIX AX88178A and AX88179 USB EthernetMark Johnston2013-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 Notes: svn path=/head/; revision=258331
* Fix up paths after r253790.Sergey Kandaurov2013-07-301-2/+2
| | | | | | | | | While here, use $? contraction. Reported by: O. Hartmann Notes: svn path=/head/; revision=253795
* Move runfw to modules/usb.Rui Paulo2013-07-302-2/+20
| | | | | | | | | While there, respect MK_SOURCELESS_UCODE. Discussed with: kevlo Notes: svn path=/head/; revision=253790
* Import OpenBSD's rsu(4) WLAN driver.Rui Paulo2013-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> Notes: svn path=/head/; revision=253789
* Fix a debugging hack that snuck in.Rui Paulo2013-07-291-3/+1
| | | | Notes: svn path=/head/; revision=253761
* Firmware module for the upcoming rsu(4) driver.Rui Paulo2013-07-293-0/+28
| | | | Notes: svn path=/head/; revision=253760
* Add some USB gadget example drivers for USB audio, USB keyboard,Hans Petter Selasky2013-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. Notes: svn path=/head/; revision=253544
* Add urtwnfw.Rui Paulo2013-07-161-1/+1
| | | | Notes: svn path=/head/; revision=253378
* Adding urtwn(4) firmware and related changes.Hiren Panchasara2013-07-104-0/+32
| | | | | | | | Reviewed by: rpaulo Approved by: sbruno (mentor) Notes: svn path=/head/; revision=253139
* Import Kevin Lo's port of urtwn(4) from OpenBSD. urtwn(4) is a driver for theRui Paulo2013-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 Notes: svn path=/head/; revision=251538
* - With the demise of !ATA_CAM, ATA_STATIC_ID is the only ata(4) relatedMarius Strobl2013-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. Notes: svn path=/head/; revision=249213
* Fix LINT build for ARM.Xin LI2013-02-091-0/+1
| | | | Notes: svn path=/head/; revision=246585
* Include SMSC driver into default kernel build.Hans Petter Selasky2013-02-012-2/+2
| | | | Notes: svn path=/head/; revision=246195
* Merging of projects/armv6, part 5Oleksandr Tymoshenko2012-08-151-0/+37
| | | | | | | | | | - Driver for SMSC LAN95XX and LAN8710A ethernet controllers - Driver for LAN8710A PHY Submitted by: Ben Gray, Damjan Marion, Tim Kientzle Notes: svn path=/head/; revision=239275
* Add DWC OTG module to ARM builds.Hans Petter Selasky2012-03-052-1/+46
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=232540
* Add MK_SOURCELESS build option. Setting MK_SOURCELESS to "no" will disableRobert Millan2012-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 Notes: svn path=/head/; revision=230972
* Implement better support for USB controller suspend and resume.Hans Petter Selasky2011-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 Notes: svn path=/head/; revision=228483
* - Follow the lead of dcphy(4) and pnphy(4) and move the reminder of the PHYMarius Strobl2011-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. Notes: svn path=/head/; revision=226154
* Add new USB 3G driver.Hans Petter Selasky2011-07-082-1/+36
| | | | | | | | Submitted by: PseudoCylon <moonlightakkiy@yahoo.ca> MFC after: 14 days Notes: svn path=/head/; revision=223864
* - Add more USB templates for various USB device classesHans Petter Selasky2011-06-231-1/+8
| | | | | | | | | | - Add basic template support for USB 3.0 - Export definition of template sysctl numbers through usb_ioctl.h MFC after: 7 days Notes: svn path=/head/; revision=223467
* Rename recently added USB serial driver.Hans Petter Selasky2011-06-042-3/+3
| | | | | | | | Suggested by: YongHyeon PYUN MFC after: 7 days Notes: svn path=/head/; revision=222696
* Add support for new USB serial driver.Hans Petter Selasky2011-06-012-1/+37
| | | | | | | | Submitted by: Lev Serebryakov, lev @ MFC after: 14 days Notes: svn path=/head/; revision=222578