summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb
Commit message (Collapse)AuthorAgeFilesLines
* Remove the uscanner(4) driver, this follows the removal of the kernel scannerthompsa2009-03-191-641/+0
| | | | | | | driver in Linux 2.6. uscanner was just a simple wrapper around a fifo and contained no logic, the default interface is now libusb (supported by sane). Reviewed by: HPS
* - Add Sun Type 7 keyboardgarga2009-03-191-1/+3
| | | | | | | | | - Rename Type 6 entry (following NetBSD) - Add Sun Type 7 Keyboard USB Hub PR: usb/132811 Reviewed by: thompsa Approved by: thompsa
* MFp4 //depot/projects/usb 159225,159241,159292thompsa2009-03-175-60/+70
| | | | | | | | | | | Fix regression issue in the USB file system interface. - Use cdev_privdata pointer as indicator of correct file handle. - Remove redundant FIFO opened flags. Don't send ZLP at close for ulpt and uscanner devices as this causes some models to stop working. This reverts back to the USB1 behaviour. Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb 159238,159275thompsa2009-03-171-2/+6
| | | | | | Add umass quirks. Submitted by: Michael Gmelin
* Add Supertop IDE adapter and Quickcam entries.thompsa2009-03-171-0/+5
|
* HID usage minimum can be equal to the maximum.thompsa2009-03-131-1/+1
| | | | | Submitted by: Hans Petter Selasky Tested by: Andreas Tobler
* MFp4 //depot/projects/usb 159004,159053,159091thompsa2009-03-121-18/+38
| | | | | | | | | | More HID parsing fixes for usb mice. - be less strict on the last HID item usage. - preserve item size and count accross items - improve default HID usage selection. Tested by: ache Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb 158981,159016,159024thompsa2009-03-113-23/+253
| | | | | | Sync support for ATMEGA DCI parts. Submitted by: Hans Petter Selasky
* Fix a possible NULL pointer access at controller attach.thompsa2009-03-111-1/+2
| | | | Submitted by: Hans Petter Selasky
* Make sure HID has a default usage, this fixes recent mouse problems.thompsa2009-03-101-6/+7
| | | | | | Tested by: Renato Botelho Tested by: beech (earlier version) Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb 158942,158948thompsa2009-03-093-21/+40
| | | | | | Allow USB to be compiled without ugen support. Submitted by: Hans Petter Selasky
* Fix musb_otg.h include filename.thompsa2009-03-091-1/+1
| | | | Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb@158916thompsa2009-03-091-58/+61
| | | | | | | USB mouse patch to address complicated data reporting descriptors. Reported by: Boris Kotzev Submitted by: Hans Petter Selasky
* remove now-redunant cardbus attachment.imp2009-03-093-3/+0
|
* MFp4 //depot/projects/usb@158868thompsa2009-03-082-123/+203
| | | | | | | | | | | Fix bugs and improve HID parsing. - fix possible memory leak found - fix possible NULL pointer access - fix possible invalid memory read - parsing improvements - reset item data position when a new report ID is detected. Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb@158869thompsa2009-03-081-11/+15
| | | | | | | Fix sael init code. Reported by: Alberto Mijares Submitted by: Hans Petter Selasky
* Move m_getcl() into its own function. This also fixes a bug where the m_adj forthompsa2009-03-083-7/+18
| | | | ETHER_ALIGN was having no effect since m_len had not been set.
* Fix endian conversion from htole16 to htole32.thompsa2009-03-081-1/+1
| | | | Tested with: ARM xscale
* (re)merge r186415,186416 from the old usb stack;thompsa2009-03-073-200/+255
| | | | | | | | | | | | | | | o add Transaction Translator support (still missing ISOC xfers) o add EHCI_SCFLG_BIGEMMIO flag to force big-endian byte-select to be set in USBMODE o split reset work into new public routine ehci_reset so bus shim drivers can force big-endian byte-select before ehci_init o enable TT and big-endian MMIO o force a reset before ehci_init to get byte-select setup Also go back to using USB_EHCI_BIG_ENDIAN_DESC at compile time to enable the byteswapping and reduce diffs to the original commits. This fixes the new USB stack on the Cambria board.
* Fix some missed htole32 conversions to htoehci32.thompsa2009-03-071-8/+8
| | | | Reviewed by: hps
* MFp4 //depot/projects/usb@158692thompsa2009-03-061-0/+9
| | | | | | | Workaround a EHCI performance problem by issuing a doorbell after queueing a bulk xfer. Submitted by: Hans Petter Selasky
* Ensure the cached rq pointer is still valid before waking up the address, thethompsa2009-03-061-4/+8
| | | | | | | zyd_cmd function may have timed out. It wouldnt cause a panic but could wakeup someone. Spotted by: HPS
* Add a couple of more things to the FTDI driver I came across:joerg2009-03-062-0/+4
| | | | | | | . Dresden Elektronik "Wireless Handheld Terminal" . Atmel STK541 "Zigbee Controller" MFC after: 1 week
* Fix usb2_poll not to return an error number as the function return value is athompsa2009-03-051-9/+5
| | | | | | bitmask of events. Pointed out by: HPS
* Add support for the UNION interface descriptor, used by Nokia phones.thompsa2009-03-051-27/+22
| | | | PR: usb/117185
* Add Mobile Action MA-620 Infrared Adapter.thompsa2009-03-042-0/+6
| | | | | | PR: usb/125072 Submitted by: Alexander Logvinov MFC after: 1 week
* Rename the ushub device class back to uhub as it was in the old usb stack,thompsa2009-03-0241-43/+43
| | | | | | moused(8) looks for "uhub/ums" to decide if needs to load the module. Reported by: Garrett Cooper
* Move the serial drivers from Giant to using their own mutexs.thompsa2009-03-0218-65/+119
| | | | Tested with: u3g, ubser, uplcom
* A couple of style nits in the last committhompsa2009-02-282-9/+6
| | | | | - unwrap short lines - move variable initialisation out of the declaration.
* - Remove the usb interface number from the device nodes as it is not needed.thompsa2009-02-284-89/+55
| | | | | | | - Do not recreate the device nodes in set_alt_interface as the endpoints do not change. Submitted by: Hans Petter Selasky
* Change the last references to PRIV_ROOT. /dev/usb used to be world writable sothompsa2009-02-272-3/+3
| | | | | | | further root checks were needed, this isnt the case anymore but just change it to PRIV_DRIVER until it can be investigated later. Spotted by: rwatson
* Remove ic_update_mcast calls that are not implemented.thompsa2009-02-272-16/+0
| | | | | Spotted by: sam Pointy hat: me
* Partial sync to //depot/projects/usbthompsa2009-02-276-69/+358
| | | | | | | | - Reissue the ctrl request on failure - Ensure Tx and ctrl requests are not interleaved - Add promisc callbacks Obtained from: Hans Petter Selasky
* Change USB over to make_dev() for all device nodes, previously it hooked intothompsa2009-02-2715-1160/+622
| | | | | | | | | | | | | | | the devfs clone handler to open the (invisible) devices on the fly. The /dev entries are layed out as follows, /dev/usbctl = master device /dev/usb/0.1.0.5 = usb device, (<bus>.<dev>.<iface>.<endpoint>) /dev/ugen0.1 -> usb/0.1.0.0 = ugen link to ctrl endpoint This also removes the custom permissions model from USB. Bump __FreeBSD_version to 800066. Submitted by: rink (earlier version)
* Also use proper capitalisation of FreeBSD in other source files.ed2009-02-2417-19/+19
| | | | Approved by: thompsa
* Use my address of the FreeBSD project in the copyright statement in USB2.ed2009-02-241-2/+2
| | | | | | If I remember correctly, our policy was to use FreeBSD with proper capitalisation in our email addresses. Fix this in Nick Hibma's address as well.
* MFp4 //depot/projects/usb@158015thompsa2009-02-242-90/+147
| | | | | | Add support for the Sael M460 3G modem. Submitted by: Hans Petter Selasky
* Fix compiler warning.thompsa2009-02-241-0/+1
|
* MFp4 //depot/projects/usb@157974thompsa2009-02-243-0/+15
| | | | | | | Add support for setting and getting the USB template value through libusb20 and usbconfig. Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb@157958thompsa2009-02-244-41/+55
| | | | | | | | | | - We don't need to exit the Giant mutex when sleeping. This is done automatically. Replace Giant by NULL mutex for all control requests in the enumeration path. - Optimise away duplicate alternate interface selection requests in USB Host mode. Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb@157909thompsa2009-02-244-17/+66
| | | | | | Changes to make implementing USB NDIS easier. Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb@157853thompsa2009-02-2412-246/+33
| | | | | | | Clean up old way of polling the USB hardware. The existing polling support was a bit hackish. Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb@157847thompsa2009-02-241-70/+68
| | | | | | | | Improvements to "usb2_transfer_setup()" and "usb2_transfer_unsetup()". Set "ppxfer[n]" when the transfer setup is complete to prevent races. Remove redundant NULL-checks from "usb2_transfer_unsetup()". Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb; 157814, 157863, 157868thompsa2009-02-244-148/+149
| | | | | | | | | | | | | - The software computed HID size is not always correct, because the algoritm does not handle unsorted HID descriptors. - Change the way we obtain the report ID. - Use the X/Y/Z+button locations instead for report ID source for ums. - Add more range checks. - Remove Microsoft Mouse quirks. If the positions are moduloed the report length multiplied by 8, the values seem correct. - Some minor style changes. Submitted by: Hans Petter Selasky
* Make sure at least two tx slots are free before sending the mbuf since anthompsa2009-02-234-20/+22
| | | | additional frame may be sent for 80211 protection.
* Move the uaudio and ata-usb drivers into their correct locations.thompsa2009-02-235-5555/+0
|
* Reintroduce r188878, provide compat typedefs for usb1.thompsa2009-02-231-0/+24
|
* Move the new USB stack into its new home.thompsa2009-02-23159-0/+110593
|
* Move usb to a graveyard location under sys/legacy/dev, it is intended that thethompsa2009-02-23106-82919/+0
| | | | | | | new USB2 stack will fully replace this for 8.0. Remove kernel modules, a subsequent commit will update conf/files. Unhook usbdevs from the build.
* Add support for CMOTECH devices (not sure whether this is the correctn_hibma2009-02-132-37/+173
| | | | | | | | | | name) (not sure whether this works correctly, but should be close). Fix the stub attach phase for some Novatel cards. They expect the CSW (repsonse to CBW, SCSI eject command) to be fetched before switching to modem mode. MFC after: 2 weeks
OpenPOWER on IntegriCloud