summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb
Commit message (Collapse)AuthorAgeFilesLines
* Fix a > 1 year old typo that caused the ulpt driver to try readingiedowse2005-11-121-1/+1
| | | | | | | | | | from the printer and discarding the data even if the ulpt device was opened for reading. This resulted in crashes because two conconcurrent read transfers were using the same transfer structure. PR: usb/88886 Reported By: Alex Pivovarov MFC after: 1 week
* - Store pointer to the link-level address right in "struct ifnet"ru2005-11-116-6/+6
| | | | | | | | | | rather than in ifindex_table[]; all (except one) accesses are through ifp anyway. IF_LLADDR() works faster, and all (except one) ifaddr_byindex() users were converted to use ifp->if_addr. - Stop storing a (pointer to) Ethernet address in "struct arpcom", and drop the IFP2ENADDR() macro; all users have been converted to use IF_LLADDR() instead.
* Remove spl.ticso2005-11-051-28/+16
| | | | | | Restart request on USBD_IOERROR. MFC after: 2 weeks
* Replace FreeBSD 3.x syntax (controller miibus0) with 4.x syntaximp2005-10-224-4/+4
| | | | (device miibus) in time for 7.0 :-)
* Eliminate two unused arguments to ttycreate().phk2005-10-163-3/+3
|
* add product ID for Linux Ethernet/RNDIS gadget on pxa210/25x/26x.ume2005-09-282-0/+2
| | | | | Submitted by: Keiichi SHIMA <keiichi__at__iijlab.net> MFC after: 2 days
* Add dummy support for ifmedia subsystem. This allows devd to see cdce as ansobomax2005-09-262-0/+32
| | | | | | ethernet device and configure IP etc. Submitted by: Craig Boston <craig@tobuj.gank.org>
* This part of the struct isn't needed on FreeBSD:netchild2005-09-241-0/+2
| | | | | | | | | | ---snip--- FYI this bit isn't needed for FreeBSD - I think it came from either OpenBSD or NetBSD where arc4random() wasn't available during cold boot. ---snip--- Explained by: iedowse
* 'PC Card' instead of other variantsimp2005-09-221-2/+2
|
* Remove OLDCARD shimsimp2005-09-221-33/+17
|
* The "SMC EZ Connect SMC2862W-G" product is not based on the Ralink RT2500USBdamien2005-09-191-1/+0
| | | | | | chipset. MFC after: 5 days
* ehcivar.h:netchild2005-09-184-12/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | Synchronise with NetBSD upto rev 1.19: - Allow 32 chars in the saved vendor string. - Some NetBSD-only changes. - Some missing parts (define, variable). ehci_pci.c: Add vendor ids for ATI and Philips. Add identification strings for the following: o ALi's M5239 o AMD 8111 o ATI SB200, SB400 o Intel 6300ESB, ICH4, ICH5, ICH7 o NVIDIA nForce 2, nForce 3, nForce 4 o Philips ISP156x ehcireg.h: We're at the same level as rev 1.18 from NetBSD. usb_port.h: NetBSD/OpenBSD specific things Obtained from: NetBSD via DragonFly No comment from: usb@
* Add missing mtx_destroy() when if_alloc() fails.ru2005-09-166-4/+27
| | | | | Add missing if_free() when mii_phy_probe() fails. Put if_free() into the correct #ifdef in detach().
* Add missing if_free() in rue_detach().ru2005-09-161-0/+1
|
* Note that Keyspan is also InnoSys Inc.obrien2005-09-121-1/+1
|
* Provide the USB device release number along with other parametersiedowse2005-08-231-4/+4
| | | | | | | | so that devd can match on it. This field was already available to usbd and is used by a number of usbd.conf entries, so now it is possible to transfer those entries to devd.conf. Submitted by: Anish Mistry
* Fix basic rates set for 802.11a/g operating modes. This can significantlydamien2005-08-211-6/+18
| | | | | | improve transfer rates in 802.11a/g. Fix IFS settings in ral(4) too. MFC after: 6 days
* Don't automatically start scanning in if_init() if IEEE80211_ROAMING_MANUALdamien2005-08-201-4/+6
| | | | | | flag is set. MFC after: 1 week
* Clarify/fix handling of the current channel:sam2005-08-101-6/+7
| | | | | | | | | | | | | | | | | | | o add ic_curchan and use it uniformly for specifying the current channel instead of overloading ic->ic_bss->ni_chan (or in some drivers ic_ibss_chan) o add ieee80211_scanparams structure to encapsulate scanning-related state captured for rx frames o move rx beacon+probe response frame handling into separate routines o change beacon+probe response handling to treat the scan table more like a scan cache--look for an existing entry before adding a new one; this combined with ic_curchan use corrects handling of stations that were previously found at a different channel o move adhoc neighbor discovery by beacon+probe response frames to a new ieee80211_add_neighbor routine Reviewed by: avatar Tested by: avatar, Michal Mertl MFC after: 2 weeks
* Add proper copyright attribution.obrien2005-08-101-0/+1
|
* Propagate rename of IFF_OACTIVE and IFF_RUNNING to IFF_DRV_OACTIVE andrwatson2005-08-098-98/+130
| | | | | | | | | | | | | | IFF_DRV_RUNNING, as well as the move from ifnet.if_flags to ifnet.if_drv_flags. Device drivers are now responsible for synchronizing access to these flags, as they are in if_drv_flags. This helps prevent races between the network stack and device driver in maintaining the interface flags field. Many __FreeBSD__ and __FreeBSD_version checks maintained and continued; some less so. Reviewed by: pjd, bz MFC after: 7 days
* Fix two bugs that interacted to cause page faults in softclock()iedowse2005-08-041-1/+2
| | | | | | | | | when using mice containing a tilt movement: there was a missing usb_callout_init() for the UMS_SPUR_BUT_UP quirk code, and UMS_T was defined to the same flag value as UMS_SPUR_BUT_UP. Reported by: flz MFC after: 3 days
* Modify device drivers supporting multicast addresses to lock if_addr_mtxrwatson2005-08-036-0/+12
| | | | | | | | over iteration of their multicast address lists when synchronizing the hardware address filter with the network stack-maintained list. Problem reported by: Ed Maste (emaste at phaedrus dot sandvine dot ca> MFC after: 1 week
* diff reduction against p4: define IEEE80211_FIXED_RATE_NONE and usesam2005-07-221-1/+1
| | | | it instead of -1
* PLAY_MSF, PLAY_TRACK, PLAY_TRACK_REL, PAUSE, PLAY_12 commands to passdelphij2005-07-191-0/+5
| | | | | | | | | | | | | through umass(4), in order to make cdcontrol(1) to issue commands to a USB CD driver. The command IDs were obtained from the CAM subsystem. This was tested on half dozen of USB CD drivers from different vendors. Suggested by: "intron" <intron at intron dot ac> PR: usb/83439 Reviewed by: sanpei MFC After: 1 week
* Don't wait for the printer to become ready before allowing the open toimp2005-07-151-23/+1
| | | | | | | | | | | | | | | | succeed. There are many printers that return status over the read channel, and if we wait for the status to become ready, then we can't find the status automatically. Linux doesn't wait, nor does it ever seem to really check the status in any meaningful way... If there really is a problem, the writes to the bulk out endpoint will still fail (like they would if the printer was ready and then ran out of paper or became unready). In addition, there are a number of printers being made that emulate the 'status' byte by returning '0' always rather than '0x18'. This fixes the EBUSY on open timeouts on those printer as well. Reviewed by: the defining silence on usb@
* Add SL811 based host controller driver for CF usb host controller.takawata2005-07-144-0/+2106
| | | | | | This is based on NetBSD slhci(4) driver for X68k amateur hardware. For now, it will not work properly, but it can detect usb device insertion.
* Prepare to commit SL811 based Host controller driver.takawata2005-07-141-0/+1
|
* remove driver-private key allocators; use the default one insteadsam2005-07-101-12/+0
| | | | | | | so wpa keys are handled properly Reviewed by: avatar Approved by: re (scottl)
* 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>
OpenPOWER on IntegriCloud