summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb
Commit message (Collapse)AuthorAgeFilesLines
* Make sure that all the necessary USB endpoints are found during devicedamien2005-07-082-2/+7
| | | | | | | attachment. Reviewed by: silby (mentor) Approved by: re (scottl)
* ral_init() takes a struct ral_softc as parameter not a struct ifnet.damien2005-07-081-1/+1
| | | | | | | Fixes a panic that occured when setting the interface parameters while the interface was associated. Approved by: re (scottl)
* reclaim node reference when ieee80211_encap failssam2005-07-081-1/+3
| | | | | Reviewed by: avatar Approved by: re (scottl)
* update ural idssam2005-07-082-2/+34
| | | | | | Reviewed by: damien Approved by: re (scottl) Obtained from: openbsd
* reclaim mbuf when ieee80211_crypto_encap failssam2005-07-071-1/+3
| | | | | Approved by: re (scottl) Obtained from: netbsd
* Add support for IODATA USB-RSAQ3 USB-Serial Adapter.hrs2005-07-032-0/+3
| | | | | | Reported by: Tomokazu Hirai Approved by: re (scottl) MFC after: 3 days
* o Add new ids for the Belkin F5D7050damien2005-07-031-3/+10
| | | | | | | | | o Indent usb ids properly o Check the return value of if_alloc() o Call if_free() in ural_detach() Reviewed by: silby (mentor) Approved by: re (scottl)
* Add another ural(4) device (Belkin F5D7050)damien2005-07-031-0/+1
| | | | | Reviewed by: silby (mentor) Approved by: re (scottl)
* Stop embedding struct ifnet at the top of driver softcs. Instead thebrooks2005-06-1016-83/+120
| | | | | | | | | | | | | | | | | | | | struct ifnet or the layer 2 common structure it was embedded in have been replaced with a struct ifnet pointer to be filled by a call to the new function, if_alloc(). The layer 2 common structure is also allocated via if_alloc() based on the interface type. It is hung off the new struct ifnet member, if_l2com. This change removes the size of these structures from the kernel ABI and will allow us to better manage them as interfaces come and go. Other changes of note: - Struct arpcom is no longer referenced in normal interface code. Instead the Ethernet address is accessed via the IFP2ENADDR() macro. To enforce this ac_enaddr has been renamed to _ac_enaddr. - The second argument to ether_ifattach is now always the mac address from driver private storage rather than sometimes being ac_enaddr. Reviewed by: sobomax, sam
* Identify the Intel ICH4 EHCI controller.benno2005-06-101-0/+5
|
* Power state management now done in PCI bus codeimp2005-06-051-11/+0
|
* Remove bus_{mem,p}io.h and related code for a micro-optimization on i386nyan2005-05-293-5/+0
| | | | | | and amd64. The optimization is a trivial on recent machines. Reviewed by: -arch (imp, marcel, dfr)
* Fix WPA (802.11i) support.damien2005-05-221-0/+12
| | | | Approved by: silby (mentor)
* Recognize the integrated USB controllers of Sun PCIO-2 chips whichmarius2005-05-191-0/+14
| | | | | | | | | | | | | | | | | | | | are used onboard in most of the newer PCI-based sun4u machines (cosmetic change as they were also already probed as generic OHCI without this). Detect whether their intpin register is valid and correct it if necessary, i.e. set the respective IVAR to the right value for allocating the IRQ resource, as some of them come up having it set to 0 (mainly those used in Blade 100 and the first one on AX1105 boards). This fixes attaching affected controllers. Correcting the intpin value might be better off in the PCI code via a quirk table but on the other hand gem(4) and hem(4) also correct it themselves and at least for the USB controller part the intpin register is truely hardwired to 0 and can't be changed. This means that we would have to hook up the quirk information in a lot of places in the PCI code (i.e. whenever the value of the intpin register is read from or written to the pci_devinfo of the respective device) in order to do it the right way. MFC after: 1 month
* Add convenience functions to get port and interface.imp2005-05-161-0/+15
|
* Plug a potential memory leak.kan2005-05-111-1/+3
| | | | Noticed by: Coverity Prevent analysis tool.
* Take out Giant in uhub_child_* in giant. There's one place where weimp2005-05-111-9/+16
| | | | | | | could sleep which I think can lead to races. However, there are fewer with this code than without it. Submitted by: Hans Petter Selasky
* A patch to support Palm Tungsten T via USB-Cradle.julian2005-05-041-17/+76
| | | | | | not suer where it comes from but suspect kimoto at ohnolab.org MFC after: 1 week
* Initial import of ipw, iwi, ral and ural drivers:damien2005-04-184-0/+2419
| | | | | | | | | ipw - Intel PRO/Wireless 2100 iwi - Intel PRO/Wireless 2200BG/2225BG/2915ABG ral - Ralink Technology RT2500 ural - Ralink Technology RT2500USB Approved by: silby (mentor)
* Fix the handling of the UCS_RXSTOP flag so that it always tracksiedowse2005-04-121-5/+8
| | | | | | | | | | whether or not the receive pipe is stopped. This ensures that we do not attempt to start the same transfer twice, and it allows ucomstop() to skip the restarting of the read pipe if it was not originally running, such as when called indirectly from ucomreadcb(). PR: kern/79420 MFC after: 1 day
* Add support for Sitecom USB to serial cable (v2)le2005-04-082-0/+3
| | | | | PR: usb/79230 Submitted by: Rick van der Zwet <rick@wzoeterwoude.net>
* Add support for FTDI's FT2232C twin channel chip.ticso2005-04-052-14/+27
| | | | Tested by: Mike Tancsa <mike@sentex.net>
* remove usbd_errstr(err) from printf.ticso2005-04-051-2/+2
| | | | err has nothing to say about this specific error.
* Use the usb_callout_* API instead of timeout()/untimeout() in orderiedowse2005-03-301-6/+5
| | | | | | | to avoid a race condition that can cause the ukbd timeout routine to run after the keyboard has detached. Reported and tested by: wpaul
* Don't defer the boot-time exploration of high-speed USB busses.iedowse2005-03-271-3/+9
| | | | | | | This ensures that we explore EHCI busses before their companion controllers' busses, so that ports connected to full/low speed devices will be properly routed to the companion controllers by the time the OHCI/UHCI exploration occurs.
* Comment out rue_miibus_statchg() function. Using trial-and-error approach Isobomax2005-03-251-0/+12
| | | | | | | | | | | | | | found it guilty in putting the card into unusable state after UP->DOWN->UP media status change. Looks like some of register writes in this functions mess up PHY interface. No visible regressions has been found after commenting this code out - the card properly handles forceful local mode changes and auto-detects changes made remotely (tested with Auto, 10HD, 10FD, 100HD, 100FD). Sponsored by: PBXpress Inc. MFC after: 3 days
* Add /* _FOO_H_ */ after the final #endif to make danfe happy.sobomax2005-03-253-3/+3
|
* Fix identation.sobomax2005-03-251-1/+1
|
* Add missed KUE_UNLOCK(). This is NOOP yet, but may be handy later on.sobomax2005-03-251-0/+1
|
* Fix breakage in the previous commit caused by the last-minute change.sobomax2005-03-257-21/+14
|
* Protect against multiple inclusions.sobomax2005-03-251-0/+5
|
* Move Rx/Tx lists management routines into central location.sobomax2005-03-2516-1040/+462
|
* GC unused fields.sobomax2005-03-252-2/+0
|
* GC unused field.sobomax2005-03-251-1/+0
|
* Fix an incorrect NULL argument to usbd_set_interface() associatediedowse2005-03-251-1/+1
| | | | | | | with the ALT_IFACE_1 quirk. PR: usb/79190 Submitted by: Hans Petter Selasky <hselasky@c2i.net>
* Use usbd_get_string() instead of calling usbd_get_string_desc()iedowse2005-03-251-15/+3
| | | | | | | | | with the wrong language parameter when retrieving the device serial number. This invalid request caused some devices not to work at all. PR: usb/79190 Submitted by: Hans Petter Selasky <hselasky@c2i.net>
* Move xxx_newbuf() function, which was the same in all drivers into centralsobomax2005-03-2513-254/+56
| | | | location.
* Use M_NOWAIT when allocating from a callout routine.iedowse2005-03-251-3/+4
| | | | PR: kern/73295
* Zaurus expecrs CRC to be in little-endian order, so that convert it into LEsobomax2005-03-221-1/+2
| | | | | | on BE arches. Obtained from: OpenBSD
* Add USB Communication Device Class Ethernet driver. Originally written forsobomax2005-03-222-0/+912
| | | | | | | | | | FreeBSD based on aue(4) it was picked by OpenBSD, then from OpenBSD ported to NetBSD and finally NetBSD version merged with original one goes into FreeBSD. Obtained from: http://www.gank.org/freebsd/cdce/ NetBSD OpenBSD
* Add the following products in preparation for addition of CDCE driver:sobomax2005-03-211-0/+12
| | | | | | | | - G.Mate, Inc's YP3X00 PDA; - Prolific's PL2501 Host-Host interface; - Numver of Sharp's Zaurus PDAs.
* Root hubs don't have transaction translators, so skip printing theiedowse2005-03-201-1/+1
| | | | message about them if the hub depth is zero.
* Don't display the redundant `ehci_pci_attach: companion usbX'iedowse2005-03-201-2/+9
| | | | | | messages unless EHCI debugging is enabled. Suggested by: scottl
* Remove trailing whitespace as per NetBSD's revision 1.91. Alsoiedowse2005-03-201-20/+14
| | | | update the TODO comments to more closely match current reality.
* Now that all architectures allow hooks to be inserted beforeiedowse2005-03-191-6/+2
| | | | | | | configure_final(), assert that "cold" is true in usb_cold_explore() when there are busses to explore. When USB is kldloaded after boot, usb_cold_explore() will still get invoked but the list of busses to explore in that case should always be empty.
* It was possible to have two threads concurrently aborting the sameiedowse2005-03-196-1/+92
| | | | | | | | | | | | | | | | | | transfer, which lead to panics or page faults. For example if a transfer timed out, another thread could come along and attempt to abort the same transfer while the timeout task was sleeping in the *_abort_xfer() function. Add an "aborting" flag to the private transfer state in each host controller driver and use this to ensure that the abort is only executed once. Also prioritise normal abort requests over timeouts so that the callback is always given a status of USB_CANCELLED even if the timeout-initiated abort began first. The crashes caused by this bug were mainly reported in connection with lpd printing to a USB printer. PR: usb/78208, usb/78986
* initialize pp->p_sc so it can be referenced later.ticso2005-03-172-20/+34
| | | | | | dynamicaly allocate the per port array. allow up to 32 serials per USB device. ask the device for correct pipe sizes.
* Defer boot-time exploration of USB busses until all devices in theiedowse2005-03-171-1/+30
| | | | | | | | | | | | | system have been attached, but no later. This ensures that we do not explore ohci or uhci busses before the companion echi controller has been initialised, so it should fix the problem of multi-speed USB devices getting attached as USB 1 devices first and then re-attached as USB 2. Some further changes are needed on architectures that do not currently allow hooks to be inserted before configure_final() - alpha, ia64, powerpc and sparc64. On these architectures the exploration will now be delayed until the usb kthread runs.
* Add support for the ethernet port in the JVC MP-PRX1 port replicator.iedowse2005-03-142-0/+2
|
* Set the split transaction interrupt C-mask correctly. This is theiedowse2005-03-141-1/+1
| | | | | final piece needed to make split transaction interrupt pipes work, which I thought I had already committed.
OpenPOWER on IntegriCloud