Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | place types needed by usbdevs_data.h, directly into that file so that it | 2007-02-28 | 1 | -18/+1 | ||
| | | | | is consumable by anyone who includes it (matches idea in pcidevs) | |||||
* | Prefer malloc over the stack for an array of 256 pointers. ok dlg@ | 2006-07-17 | 1 | -3/+9 | ||
| | ||||||
* | some knf, no binary change | 2006-07-16 | 1 | -68/+66 | ||
| | ||||||
* | get rid of ifdef __OtherBSD__ cruft | 2006-07-16 | 1 | -63/+1 | ||
| | ||||||
* | fix typos in debug messages | 2006-06-26 | 1 | -2/+2 | ||
| | | | | ok pascoe@ | |||||
* | Save and restore the data toggle value when a pipe to an endpoint | 2006-05-31 | 1 | -1/+2 | ||
| | | | | | | | | | | | | | | is closed and then reopened. This may be necessary now that we no longer clear endpoint stalls every time a pipe is opened. Previously we could assume an initial toggle value of zero because a clear-stall operation resets the device's toggle state. Derived from work in FreeBSD. This is most likely to affect devices like printers, which open pipes for short periods of time and close them again. ok dlg@ | |||||
* | Zero the memory allocated for subdevs[], preventing a quick trip to | 2006-05-01 | 1 | -4/+5 | ||
| | | | | | | | ddb>. Discovered by trying 'usbdevs -v' while a broken card reader was trying to attach. Broken device provided by Manuel Pata. ok pedro@ deraadt@ | |||||
* | Move contents of sys/select.h to sys/selinfo.h in preparation for a | 2005-11-21 | 1 | -2/+2 | ||
| | | | | | userland-visible sys/select.h. Consistent with what Net and Free do. OK deraadt@, tested with full ports build by naddy@. | |||||
* | Store the usb device names and vendors in more compact structures. | 2005-10-17 | 1 | -18/+26 | ||
| | | | | | Originally committed in 2001, backed out in a sync, now back in. saves close to 12k of kernel size. commit deraadt@ | |||||
* | Don't clear possibly non-existant stall condition while setting up the | 2005-10-10 | 1 | -4/+1 | ||
| | | | | | | | | pipe. Some devices such as some iPods react badly. Normal devices don't need it. From nathanw via NetBSD. Fixes the 2nd generation iPod mini donated by Ed Wandasiewicz. ok pascoe@ | |||||
* | Don't keep the devinfo string on the stack, instead use malloc/free. | 2005-08-01 | 1 | -2/+19 | ||
| | | | | | | | | This should cure some rare stack overflows. From augustss NetBSD ok dlg@ pascoe@ | |||||
* | remove trailing newline in panic(9); ok millert@ and deraadt@ | 2005-07-18 | 1 | -2/+2 | ||
| | ||||||
* | Relocate debugging printf so it describes the right thing. | 2005-04-21 | 1 | -2/+2 | ||
| | ||||||
* | use snprintf to avoid crossing the overflow point; ok otto | 2005-04-16 | 1 | -3/+4 | ||
| | ||||||
* | change usbd_printBCD() to return number of bytes really placed or 0, not | 2005-04-16 | 1 | -2/+9 | ||
| | | | | snprintf() style semantics [which people fail to grok]; ok otto | |||||
* | Merge support for USB1 devices located beyond USB2 hubs, mostly from netbsd. | 2005-03-13 | 1 | -8/+25 | ||
| | | | | | | | Supports bulk, control and interrupt pipes, letting USB1 keyboards and most network interfaces work when connected to a USB2 hub. ok dlg@ | |||||
* | backout the original method of reattaching a usb device now that we have | 2004-12-12 | 1 | -37/+2 | ||
| | | | | something better and more flexible to use. | |||||
* | ugly ugly hack to allow a usb device to do a full reset of the port during | 2004-11-08 | 1 | -2/+38 | ||
| | | | | | | | | | attach. this is required by atu (atmel based usb wireless) devices. something better will be done, but we need it for now to work on atu. ok deraadt@ | |||||
* | fix getting strings off a device which broke with the removal of the | 2004-11-02 | 1 | -2/+2 | ||
| | | | | UQ_NO_STRINGS quirk. | |||||
* | from netbsd via freebsd via jsg@ | 2004-10-31 | 1 | -8/+21 | ||
| | | | | | | | | | | | | | | | usbdi_util.h (1.29), uhid.c (1.62), ugen.c (1.68), usb_subr.c (1.114) 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) 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. | |||||
* | Remove 'usb_'realloc() usage because it doesn't know the size of the old | 2004-08-30 | 1 | -15/+1 | ||
| | | | | | buffer, thus may copy too much, causing a memory fault. ok millert, dlg, henning, tdeval, otto | |||||
* | put "do { } while (0)" wrappers on all the debug maroc functions | 2004-07-08 | 1 | -3/+3 | ||
| | ||||||
* | Sync USB code with NetBSD. | 2003-07-08 | 1 | -24/+74 | ||
| | | | | This includes numerous fixes and paves the way for usb 2.0 support. | |||||
* | try a little harder to attach devices that are really slow | 2003-05-18 | 1 | -3/+4 | ||
| | ||||||
* | string cleanup; nate ok | 2003-05-07 | 1 | -14/+23 | ||
| | ||||||
* | strcpy/sprintf cleanup of sys/dev. miod@, deraadt@ says to commit. | 2003-04-27 | 1 | -5/+7 | ||
| | ||||||
* | get rid of trailing whitespace | 2002-07-25 | 1 | -22/+22 | ||
| | ||||||
* | Meant to commit only ulpt and committed everything. Most things weren't ready | 2002-05-07 | 1 | -59/+21 | ||
| | ||||||
* | Sync ulpt driver with NetBSD | 2002-05-07 | 1 | -21/+59 | ||
| | ||||||
* | prefix structure members to avoid name clashes. | 2002-05-02 | 1 | -22/+22 | ||
| | | | | From NetBSD | |||||
* | Synchronize usb code with NetBSD. | 2001-10-31 | 1 | -43/+48 | ||
| | ||||||
* | contify usbdevs a little | 2001-03-22 | 1 | -11/+13 | ||
| | ||||||
* | Another USB sync with NetBSD. We are still lacking an up-to-date umass(4) | 2001-01-28 | 1 | -11/+32 | ||
| | | | | | | driver. I would appreciate it if someone with the hardware looked into it. I also have to take a closer look at changes to the USB Ethernet drivers, as well as import some drivers we are missing (uftdi, if_upl, yap, etc.) | |||||
* | re-arrange tables as pcidevs was changed; huge space savings | 2001-01-27 | 1 | -18/+26 | ||
| | ||||||
* | Sync with NetBSD. Too many changes to mention. For now I have skipped | 2000-11-08 | 1 | -132/+84 | ||
| | | | | umass.c and ukbd.c as the diffs are a bit hairier. | |||||
* | Put back a fix that fgsch@ whacked during the last NetBSD USB sync: | 2000-09-07 | 1 | -2/+2 | ||
| | | | | If the vendor name is NULL, do not output a leading space; reported by deraadt@ | |||||
* | sync with NetBSD... well almost. someone w/ the hw should check umass. | 2000-07-04 | 1 | -19/+38 | ||
| | ||||||
* | Sync with NetBSD. | 2000-04-14 | 1 | -28/+35 | ||
| | ||||||
* | If the vendor name is NULL, do not output a leading space; reported by deraadt@ | 2000-04-08 | 1 | -2/+2 | ||
| | ||||||
* | Sync with NetBSD. USB Ethernet drivers should work now. | 2000-03-30 | 1 | -15/+16 | ||
| | ||||||
* | Much cleaner sync with NetBSD. Some #if defined() magic has been sent in the | 2000-03-28 | 1 | -34/+50 | ||
| | | | | | | form of a diff to augustss@netbsd.org so that future syncs will be very easy. This commit also adds support for ADMtek AN986 "Pegasus" based USB Ethernet, CATC USB-EL1210A based USB Ethernet, and USB Printers (all untested). | |||||
* | Sync with NetBSD. | 2000-03-26 | 1 | -150/+195 | ||
| | ||||||
* | sync with NetBSD. | 1999-11-07 | 1 | -33/+54 | ||
| | ||||||
* | Sync with NetBSD. | 1999-09-27 | 1 | -28/+83 | ||
| | ||||||
* | Sync with NetBSD; | 1999-08-27 | 1 | -64/+50 | ||
| | | | | | | | Make sure not to call tsleep() from suspend/resume routine. Move more of the transfer completion processing to HC independent code. Fix some problems with transfer abort & timeout. Merge the soft_{td,qh} with the real {td,qh}. This saves time and space. | |||||
* | Sync with NetBSD. | 1999-08-19 | 1 | -11/+7 | ||
| | ||||||
* | Sync with NetBSD. Mostly FreeBSD related changes. | 1999-08-16 | 1 | -3/+3 | ||
| | | | | Diffs sent to augustsson. | |||||
* | From NetBSD; USB support. | 1999-08-13 | 1 | -0/+1203 | ||