summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb_quirks.c
Commit message (Collapse)AuthorAgeFilesLines
* Start each of the license/copyright comments with /*-, minor shuffle of linesimp2005-01-061-1/+1
|
* Add support Qualcomm CDMA modemsanpei2004-09-031-0/+2
| | | | | | PR: kern/71043 Submitted by: Tomas Krivanek <tom@atack.cz> MFC after: 1 week
* 86 new vendor ID's from USB.org, and 3 corrections of existing vendor ID's.obrien2004-08-191-1/+1
|
* MFp4: First batch of dev/usb/usbdevs.h -> usbdevs.h changes.imp2004-06-271-1/+1
|
* MFNetBSD.le2004-06-261-11/+3
| | | | | | | | | | | | | | | | | | | | | | uhid.c (1.61), author: jdolecek add support for USB_GET_DEVICEINFO and USB_GET_STRING_DESC ioctls, with same meaning as for ugen(4) usbdi_util.h (1.29), usb_quirks.c (1.50), uhid.c (1.62), ugen.c (1.68), usb_subr.c (1.114) author: mycroft Yes, some devices return incorrect lengths in their string descriptors. Rather than losing, do what Windows does: just request the maximum size, and allow a shorter response. Obsoletes the need for UQ_NO_STRINGS, and therefore these "quirks" are removed. usb_subr.c (1.116), author: mycroft In the "seemed like a good idea until I found the fatal flaw" department... Attempting to read a maximum-size string descriptor causes my kue device to go completely apeshit. So, go back to the original method, but allow the device to return a shorter string than it claimed. Obtained from: NetBSD
* Add support SUNTAC U-Cable type A3(AS64LX)sanpei2004-01-161-0/+2
| | | | | | Submitted by: TAKAHASHI Daisuke <takaha@mue.biglobe.ne.jp> [FreeBSD-users-jp 72475] and MIZUTANI Masaki <m-saki@rr.iij4u.or.jp> MFC after: 1 week
* Add the Qualcomm CDMA Technologies MSM phone (umodem) device.green2004-01-131-1/+2
| | | | | Submitted by: Sean Welch <welchsm@earthlink.net> MFC after: 1 week
* Use __FBSDID().obrien2003-08-241-1/+3
| | | | Also some minor style cleanups.
* Add quirk for LOGITECH WMRPAD.mdodd2003-04-101-0/+1
| | | | Submitted by: Mathew Kanner <mat@cnd.mcgill.ca>
* Add support YAMAHA NetVolante Routerssanpei2003-02-121-0/+9
| | | | | | | | | | NetVolante RTA54i Broadband&ISDN Router NetVolante RTA55i Broadband VoIP Router NetVolante RTW65b Broadband Wireless Router NetVolante RTW65i Broadband&ISDN Wireless Router PR: bin/42574 Submitted by: Yoshihiko Sarumaru <mistral@imasy.or.jp>
* Update to correct NetBSD Idimp2003-01-021-1/+1
|
* MFNetBSD through 1.42 (to be committed in a moment by me).imp2003-01-021-3/+4
| | | | | o Whitespace nits o NEODIO added
* It appears that the SANYO SCP-4900 needs similar quirks to theimp2003-01-011-0/+2
| | | | | | | Metricom Ricochet GS modem. Add them here. # A new umodem appears to be needed to make the sanyo phone work, but that's # more extensive and will come after coordination.
* Fix a typo in the definition of HP1220C and add a quick entry forphk2002-04-061-0/+1
| | | | broken bidir mode for at as well.
* Pull in the most recent version of usb_quirks.h and propagate the necessaryn_hibma2001-07-051-11/+27
| | | | | | changes to the various files. Also, pull in most of the current usb_subr.c file.
* AcerScan 320U's are braindead. Sometimes they do not return stringsn_hibma2000-11-021-0/+2
| | | | descriptors and if they do the strings are nonsense.
* Make the Ricochet modems work through the USB interface.n_hibma2000-11-011-3/+6
| | | | | Tested by: jim Obtained from: NetBSD
* Sync with NetBSD:n_hibma2000-05-141-1/+5
| | | | Add quirks for self-powered hubs that are not.
* Change Lennart's e-mail address.n_hibma2000-05-141-1/+1
|
* OpenBSD has a broken debugger that does not grok static. Use an_hibma2000-04-031-1/+1
| | | | | | #define Static static that the OpenBSD folks can define it to be empty if they like.
* More USB ethernet tweaks:wpaul2000-01-201-34/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Sync ohci, uhci and usbdi modules with NetBSD in order to obtain the following improvements: o New USBD_NO_TSLEEP flag can be used in place of UQ_NO_TSLEEP quirk. This allows drivers to specify busy waiting only for certain transfers (namely control transfers for reading/writing registers and stuff). o New USBD_FORCE_SHORT_XFER flag can be used to deal with devices like the ADMtek Pegasus that sense the end of bulk OUT transfers in a special way (if a transfer is exactly a multiple of 64 bytes in size, you need to send an extra empty packet to terminate the transfer). o usbd_open_pipe_intr() now accepts an interval argument which can be used to change the rate at which the interrupt callback routine is invoked. Specifying USBD_DEFAULT_INTERVAL uses the value specified in the device's config data, but drivers can override it if needed. - Change if_aue to use USBD_FORCE_SHORT_XFER for packet transmissions. - Change if_aue, if_kue and if_cue to use USBD_NO_TSLEEP for all control transfers. We no longer force the non-tsleep hack for bulk transfers since these are done asynchronously anyway. - Removed quirk entry fiddling from if_aue and if_kue since we don't need it anymore now that we have the USBD_NO_TSLEEP flag. - Tweak ulpt, uhid, ums and ukbd drivers to use the new arg to usbd_open_pipe_intr(). - Add a flag to the softc struct in the ethernet drivers to indicate when a device has been detached, and use this flag to perform tests to prevent the drivers from trying to do control transfers if this is the case. This is necessary because calling if_detach() with INET6 enabled will eventually result in a call to the driver's ioctl() routine to delete the multicast groups on the interface, which will result in attempts to perform control transfers. (It's possible this also happens even without INET6 support enabled.) This is pointless since we know that if the detach method has been called, the hardware has been unplugged. - Changed watchdog timeout routines to just call the driver init routines to initialize the device states without trying to close and re-open the pipes. This is partly because we don't want to frob things at interrupt context, but also because this doesn't seem to work right and I don't want to panic the system just because a USB device may have stopped responding. - Fix aue_rxeof() to be a little smarter about detecting when a double transfer is needed. Unfortunately, the design of the chip makes it hard to get this exactly right. Hopefully, this will go away once either Nick or Lennart finds the bug in the uhci driver that makes this ugly hack necessary. - Also sync usbdevs with NetBSD.
* Bunch of updates:wpaul2000-01-131-0/+4
| | | | | | | | | | | | | | | - Add vendor/device ID for Corega USB-T ethernet adapter to necessary places so that it will work with the kue driver. - Add vendor/device ID for CATC Netmate devices for driver to be added soon. - Get really crazy about netisr stuff: avoid doing any mbuf allocations or deallocations at splbio/splusb. - Fix if_aue driver so that it works with LinkSys USB100TX: you need to flip the GPIO bits just the right way to put the PHY in the right mode.
* Add the vendor/device IDs for the LinkSys USB100TX.wpaul2000-01-081-0/+1
| | | | | | | | | | Note: the .INF file for LinkSys's driver says the vendor ID is 0x66b, however this does not agree with the vendor ID listed for LinkSys in the company list from www.usb.org. In fact, 0x66b doesn't seem to appear in the company list at all. Furthermore, this same vendor ID crops up in some of the D-Link .INF files. Frankly I don't know what the heck is going on here, but I need to add 0x66b to usbdevs and call it something, so here we are.
* Add the vendor and device IDs for a whole bunch of additional USBwpaul2000-01-071-0/+11
| | | | | | | | | | | | | | | | | ethernet adapters that are supported by the aue and kue drivers. There are actually a couple more out there from Accton, Asante and EXP Computer, however I was not able to find any Windows device drivers for these on their servers, and hence could not harvest their vendor/device ID info. If somebody has one of these things and can look in the .inf file that comes with the Windows driver, I'd appreciate knowing what it says for 'VID' and 'PID.' Additional adapters include: the D-Link DSB-650 and DSB-650TX, the SMC 2102USB, 2104USB and 2202USB, the ATen UC10T, and the Netgear EA101. These are all mentioned in the man pages, relnotes and LINT. Also correct the date in the kue(4) man page. I wrote this thing on Jan, 4 2000, not 1999.
* Correct the vendor ID for KLSI: it's actually 0x5e9. 0x3e8 is thewpaul2000-01-051-1/+1
| | | | | vendor ID for Aox Inc, which makes the controller engine and/or firmware for the KLSI chip.
* Add device driver support for USB ethernet adapters based on thewpaul2000-01-051-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | Kawasaki LSI KL5KUSB101B chip, including the LinkSys USB10T, the Entrega NET-USB-E45, the Peracom USB Ethernet Adapter, the 3Com 3c19250 and the ADS Technologies USB-10BT. This device is 10mbs half-duplex only, so there's miibus or ifmedia support. This device also requires firmware to be loaded into it, however KLSI allows redistribution of the firmware images (I specifically asked about this; they said it was ok). Special thanks to Annelise Anderson for getting me in touch with KLSI (eventually) and thanks to KLSI for providing the necessary programming info. Highlights: - Add driver files to /sys/dev/usb - update usbdevs and regenerate attendate files - update usb_quirks.c - Update HARDWARE.TXT and RELNOTES.TXT for i386 and alpha - Update LINT, GENERIC and others for i386, alpha and pc98 - Add man page - Add module - Update sysinstall and userconfig.c
* This commit adds device driver support for the ADMtek AN986 Pegasuswpaul1999-12-281-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | USB ethernet chip. Adapters that use this chip include the LinkSys USB100TX. There are a few others, but I'm not certain of their availability in the U.S. I used an ADMtek eval board for development. Note that while the ADMtek chip is a 100Mbps device, you can't really get 100Mbps speeds over USB. Regardless, this driver uses miibus to allow speed and duplex mode selection as well as autonegotiation. Building and kldloading the driver as a module is also supported. Note that in order to make this driver work, I had to make what some may consider an ugly hack to sys/dev/usb/usbdi.c. The usbd_transfer() function will use tsleep() for synchronous transfers that don't complete right away. This is a problem since there are times when we need to do sync transfers from an interrupt context (i.e. when reading registers from the MAC via the control endpoint), where tsleep() us a no-no. My hack allows the driver to have the code poll for transfer completion subject to the xfer->timeout timeout rather that calling tsleep(). This hack is controlled by a quirk entry and is only enabled for the ADMtek device. Now, I'm sure there are a few of you out there ready to jump on me and suggest some other approach that doesn't involve a busy wait. The only solution that might work is to handle the interrupts in a kernel thread, where you may have something resembling a process context that makes it okay to tsleep(). This is lovely, except we don't have any mechanism like that now, and I'm not about to implement such a thing myself since it's beyond the scope of driver development. (Translation: I'll be damned if I know how to do it.) If FreeBSD ever aquires such a mechanism, I'll be glad to revisit the driver to take advantage of it. In the meantime, I settled for what I perceived to be the solution that involved the least amount of code changes. In general, the hit is pretty light. Also note that my only USB test box has a UHCI controller: I haven't I don't have a machine with an OHCI controller available. Highlights: - Updated usb_quirks.* to add UQ_NO_TSLEEP quirk for ADMtek part. - Updated usbdevs and regenerated generated files - Updated HARDWARE.TXT and RELNOTES.TXT files - Updated sysinstall/device.c and userconfig.c - Updated kernel configs -- device aue0 is commented out by default - Updated /sys/conf/files - Added new kld module directory
* Add a quirk for the Altec ASC495 speakers. They pretend to support then_hibma1999-11-281-1/+2
| | | | audio class, but they don't
* Synchronisation with NetBSD as of 1999/11/16:n_hibma1999-11-171-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cleaning up the code: - Declare many functions static - Change variable names to make them more self explanatory - Change usbd_request_handle -> usbd_xfer_handle - Syntactical changes - Remove some unused code - Other KNF changes Interrupt context handling - Change delay to usbd_delay_ms were possible (takes polling mode into account) - Change detection mechanism for interrupt context Add support for pre-allocation DMA-able memory by device driver Add preliminary support for isochronous to the UHCI driver (not for OHCI yet). usb.c, uhci.c, ohci.c - Initial attempt at detachable USB host controllers - Handle the use_polling flag with a lttle more care and only set it if we are cold booting. usb.c, uhci.c ohci.c, usbdi.c usbdi_util.c usb_subr.c - Make sure an aborted pipe is marked as not running. - Start queued request in the right order. - Insert some more DIAGNOSTIC sanity checks. - Remove (almost) unused definitions USBD_XFER_OUT and USBD_XFER_IN. usb.c, usb_subr.c - Add an event mechanism so that a userland process can watch devices come and go. ohci.c - Handle the case when a USB transfer is so long that it crosses two page (4K) boundaries. OHCI cannot do that with a single TD so we make a chain. ulpt.c - Use a bigger buffer when transferring data. - Pre-allocate the DMA buffer. This makes the driver slightly more efficient. - Comment out the GET_DEVICE_ID code, because for some unknown reason it causes printing to fail sometimes. usb.h - Add a macro to extract the isoc type. - Add a macro to check whether the routine has been entered after splusb and if not, complain. usbdi.c - Fix a glitch in dequeueing and aborting requests on interrupt pipes. - Add a flag in the request to determine if the data copying is done by the driver or the usbdi layer.
* Add many new devicelabelsn_hibma1999-11-121-5/+5
| | | | | | | Rename a few (I wish companies would stop buying each other) Add a quirk entry for hubs that say they are self powered but are in fact bus powered (usage in uhub follows shortly).
* The Qtronix keyboard has a built in PS/2 port for a mouse.n_hibma1999-11-081-0/+1
| | | | | | | | | | | | It however posts a bogus button up event once in a while. Whenever we receive dx=dy=dz=buttons=0 we postpone adding it to the queue for 50msecs with a timeout. If in the meantime something else is posted the event is ignored. This avoids the problem Nik Sayer reported. He noticed that X windows would drop and pick up a window once in a while. Thanks, Nik, for supplying me with the keyboard to fix the problem!
* Remove superfluous header file includes.n_hibma1999-11-081-3/+0
| | | | Pushed-By: phk
* Major synchronisation with the NetBSD USB stack:n_hibma1999-10-071-6/+6
| | | | | | | | | | | - Some cleanup and improvements in the uhci and ohci drivers - Support for plugging and unplugging devices improved - Now available is bulk transport over OHCI controllers - Resume and suspend have been temporarily been disabled again. Proper support for it is available in the uhci.c and ohci.c files but I have not yet spent the brain cycles to use it. - OpenBSD now uses the USB stack as well - Add FreeBSD tags
* Update the list of devices from NetBSDn_hibma1999-08-281-1/+1
|
* Textual changesn_hibma1999-01-221-1/+1
|
* Sync with NetBSD sources. Almost there. Mostly style fixes.n_hibma1999-01-101-5/+6
|
* Major synchronisation with NetBSD USB coden_hibma1999-01-071-9/+11
|
* Added Id to all filesn_hibma1998-12-141-0/+1
|
* Updated USB kernel sources to NetBSD sources of 1998-12-09.n_hibma1998-12-131-0/+1
| | | | | 1 bug fix and several textual changes. Preparing to feed back changes for port into NetBSD to create one source base.
* Initial commit of ported NetBSD USB stackn_hibma1998-11-261-0/+89
OpenPOWER on IntegriCloud