summaryrefslogtreecommitdiff
path: root/sys/dev/usb
AgeCommit message (Collapse)Author
2018-02-20Attach uftdi to each interface found in the device separately.ws
This allows for other drivers (e.g. ugen) to attach to some of the other interfaces. Allow ugen to attach only to some of the interfaces found in a device.
2018-02-08Typos.dholland
2018-02-07xhci.c: avoid unused variable in non-DIAGNOSTIC buildprlw1
2018-02-03Fix non-DIAGNOSTIC buildskrll
2018-02-01Replace ovbcopy -> memmove, same.maxv
2018-02-01 Fix KASSERT panic. When detaching USB host controoler, the following panicmsaitoh
occured: kernel diagnostic assertion "sc->sc_intrxfer == xfer" failed: file "../../../../dev/usb/ohci.c", line 1720 Clear sc_intrxfer correctly. Adviced by Nick and tested by me.
2018-02-01 Mark DVF_DETACH_SHUTDOWN to USB root HUB. This change makes USB hostmsaitoh
controller drivers detachable. OK'd by Nick.
2018-02-01- Fix panic on shutdown reported by ozaki-r in PR kern/52961. Use callot_halt()msaitoh
correctly. Tested by me and OK'd by Nick. - Disable interrupt in och_shutdown() to prevent hangup. OK'd by Nick.
2018-01-30 Avoid panic while detaching xhci. The xhci driver has both sc_child andmsaitoh
sc_child2 but xhci_childdet() only supported sc_child. OK'd by Nick.
2018-01-21PR kern/52931 Kernel panics with Atheros usb wireless interfaceskrll
Audit the flags to usbd_create_xfer so that USBD_FORCE_SHORT_XFER is supplied wherever such a transfer is setup. We can drop USBD_SHORT_XFER_OK as it has not bearing on number of TDs
2018-01-09tidy up debugging (make it compile with the 'ALL' kernel)christos
2017-12-26Fix typo in a commentkhorben
2017-12-22missing comma 🙄jakllsch
2017-12-22Add RT Systems RTS-03jakllsch
2017-12-22Add West Mountain Radio RIGblaster. From OpenBSD uslcom(4).jakllsch
2017-12-22regenjakllsch
2017-12-22Add West Mountain Radio IDs from OpenBSDjakllsch
2017-12-22Add RT Systems RTS-03 USB to Serial Adapterjakllsch
2017-12-20Fix the logic around TT Hub Slot ID, TT Port Number and Multi-TT inskrll
xhci_setup_tthub. TT Hub/Port need to reference the upstream HS hub and Multi-TT needs to reflect the capabilities of a HS hub itself or the same upstream HS hub.
2017-12-19Trailing whitespaceskrll
2017-12-19 Add missing if_free() in the detach path.msaitoh
2017-12-18Whitespaceskrll
2017-12-18Use lowercase for hex constant. NFC.skrll
2017-12-18ukbd_cngetc: poll once for data in the buffer, otherwise return type 0 (no data)jmcneill
2017-12-10Use USB_DEBUG, not XHCI_DEBUG to protect `dci', DPRINTFN() always uses it.hannken
2017-12-10Factor out bus-independant HID code so that it can be shared by USB, bluetoothbouyer
and i2c. dev/usb/ukbdmap.c is renamed to dev/hid/hidkbdmap.c dev/usb/hid.[ch] moved to dev/hid/ usage pages moved from dev/usb/usbhid.h moved to dev/hid/hid.h, and updated with OpenBSD entries. bus-independant code moved from dev/usb/ums.c to dev/hid/hidms.c (the same should be done for keyboard and touchpad drivers) Needed for the upcoming HID over I2C support, proposed on tech-kern@ on Dec, 1.
2017-12-09adjust for hexdump signaturechristos
2017-12-08coalesce the two copies of hexdump into libkernchristos
2017-12-08Be more defensive towards malicious USB deviceskhorben
This avoids potential panics due to 0-sized memory allocation attempts, which could be triggered by malicious USB devices. Tested on NetBSD/amd64 with a Sony Xperia X (SailfishOS). Based on an initial patch by Nick Hudson <skrll@NetBSD.org>, thanks! Fixes PR kern/52383. XXX pull-up to netbsd-7, netbsd-8 LGTM xtos@
2017-12-07PR/52791: Robert Sprowson: avoid duplicate tests (use accessor variables)christos
2017-11-28Some USB3 support from nick-nhusbskrll
2017-11-17PR/52702 Malicious USB devices attaching as urtwn(4) can corrupt kernel memoryskrll
Patch from PR slighly updated by me
2017-11-17Use a #define instead of a magic numberskrll
2017-11-17Trailing whitespaceskrll
2017-11-17s/PR_NOWAIT/PR_WAITOK/ in HCD allocx (allocate xfer) methodskrll
2017-11-16don't lock if we are polling because we are already holding a spin lockchristos
from uhci_poll().
2017-11-09 Wait 1ms first. Existing Intel xHCI requies 1ms delay to prevent system hangmsaitoh
(Errata). XXX pullup-[78]
2017-10-31Also attach the RTL8192EU from TP-LINKkhorben
2017-10-31Re-generatekhorben
2017-10-31Add the TP-LINK TL-WN823N (version 2)khorben
2017-10-28And yet another one. :(pgoyette
2017-10-28Misssed one cast of pointer --> uintptr_t in previous kernhist(9) commitpgoyette
2017-10-28Update format to report sCskrll
2017-10-28Update the kernhist(9) kernel history code to address issues identifiedpgoyette
in PR kern/52639, as well as some general cleaning-up... (As proposed on tech-kern@ with additional changes and enhancements.) Details of changes: * All history arguments are now stored as uintmax_t values[1], both in the kernel and in the structures used for exporting the history data to userland via sysctl(9). This avoids problems on some architectures where passing a 64-bit (or larger) value to printf(3) can cause it to process the value as multiple arguments. (This can be particularly problematic when printf()'s format string is not a literal, since in that case the compiler cannot know how large each argument should be.) * Update the data structures used for exporting kernel history data to include a version number as well as the length of history arguments. * All [2] existing users of kernhist(9) have had their format strings updated. Each format specifier now includes an explicit length modifier 'j' to refer to numeric values of the size of uintmax_t. * All [2] existing users of kernhist(9) have had their format strings updated to replace uses of "%p" with "%#jx", and the pointer arguments are now cast to (uintptr_t) before being subsequently cast to (uintmax_t). This is needed to avoid compiler warnings about casting "pointer to integer of a different size." * All [2] existing users of kernhist(9) have had instances of "%s" or "%c" format strings replaced with numeric formats; several instances of mis-match between format string and argument list have been fixed. * vmstat(1) has been modified to handle the new size of arguments in the history data as exported by sysctl(9). * vmstat(1) now provides a warning message if the history requested with the -u option does not exist (previously, this condition was silently ignored, with only a single blank line being printed). * vmstat(1) now checks the version and argument length included in the data exported via sysctl(9) and exits if they do not match the values with which vmstat was built. * The kernhist(9) man-page has been updated to note the additional requirements imposed on the format strings, along with several other minor changes and enhancements. [1] It would have been possible to use an explicit length (for example, uint64_t) for the history arguments. But that would require another "rototill" of all the users in the future when we add support for an architecture that supports a larger size. Also, the printf(3) format specifiers for explicitly-sized values, such as "%"PRIu64, are much more verbose (and less aesthetically appealing, IMHO) than simply using "%ju". [2] I've tried very hard to find "all [the] existing users of kernhist(9)" but it is possible that I've missed some of them. I would be glad to update any stragglers that anyone identifies.
2017-10-25Use C99 initializer for filteropsmaya
Mostly done with spatch with touchups for indentation @@ expression a; identifier b,c,d; identifier p; @@ const struct filterops p = - { a, b, c, d + { + .f_isfd = a, + .f_attach = b, + .f_detach = c, + .f_event = d, };
2017-10-23 If if_initialize() failed in the attach function, return.msaitoh
2017-10-22KNFskrll
2017-10-21Pass WME access classification to bcdc headerjmcneill
2017-10-21Initialize all fields in bcdc header.jmcneill
2017-10-20move ata_queue_alloc(1) and ata_queue_free() calls to ata_channel_init()jdolecek
and ata_channel_destroy() respectively, to make attachment code simpler, and to make it easier to spot special queue manipulation like cmdide(4) on topic of PR kern/52606