summaryrefslogtreecommitdiff
path: root/sys/dev/usb
AgeCommit message (Collapse)Author
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
2017-10-19Add bwfmjmcneill
2017-10-19Add driver for Broadcom 802.11a/b/g/n/ac USB wireless devices, based onjmcneill
the OpenBSD bwfm(4) driver.
2017-10-19regenjmcneill
2017-10-19Add USB IDs for Broadcom BCM43236, BCM43143, BCM43242, and BCM43569 USBjmcneill
wireless devices.
2017-10-19KASSERT -> KASSERTMSG and while I'm here update a commentskrll
2017-10-18Match BUFFALO CEWL-1 (Sony UWA-BR100 WLAN)jmcneill
2017-10-18regenjmcneill
2017-10-18Add Sony UWA-BR100 WLAN adapterjmcneill
2017-10-10make compile with UISDATA_DEBUGjdolecek
2017-10-10Reorder to test for null before null deref in debug codemaya
2017-10-10Reorder to test for null before null deref in debug codemaya
2017-10-07Merge support for SATA NCQ (Native Command Queueing) from jdolecek-ncq branchjdolecek
ATA subsystem was changed to support several outstanding commands, and use NCQ xfers if supported by both the controller and the disk, including NCQ error recovery. Set NCQ high priority for BPRIO_TIMECRITICAL xfers if supported. Added FUA support. Done some work towards MP-safe, all ATA code tsleep()/wakeup() replaced by condvars, and switched most code from spl* to mutexes (separate wd(4) and ata channel lock). Introduced new option WD_CHAOS_MONKEY to facilitate testing of error handling, fixed several uncovered issues. Also fixed several problems with kernel dump to wd(4) disk. Tested with ahcisata(4), mvsata(4), siisata(4), piixide(4) on amd64, with and without port multiplier, both disk and ATAPI devices; other drivers and archs mechanically adjusted and compile-tested. NCQ is supported for ahcisata(4) and siisata(4) for any controller, for mvsata(4) only Gen IIe ones for now. Also enabled ATAPI support in mvsata(4). Thanks to Matt Thomas for initial ATA infrastructure patch, and Jonathan A.Kollasch for siisata(4) NCQ changes and general testing. Also fixes PR kern/43169 (wd(4)); and PR kern/11811, PR kern/47041, PR kern/51979 (kernel dump)
2017-09-30Remove comment about BlackBerry devices which are not relevant here.sevan
2017-09-29Add ELAN keyboardscole
2017-09-25If the bus glue calls xhci_init with interrupts enabled, there is a windowjmcneill
between when xhci interrupts are enabled and the usb bus driver is attached. If an irq occurs in this window, xhci will attempt to schedule a softint with an invalid softint handle. Add a quirk flag, XHCI_DEFERRED_START, that when set skips starting the controller at the end of xhci_init. Bus glue that sets this is responsible to call xhci_start after attaching the child usb devices.
2017-09-23PR/52553 Panic on "ifconfig athn0 up"skrll
Don't race for a transfer in athn_usb_init on the free list for beacons. Instead pre-assign a transfer to beacons in athn_usb_alloc_tx_list
2017-09-05remove redundant checks against sc and sc->sc_dying.mrg
check sc_dying in more places.
2017-09-02Support some Wacom pen tablets:ryoon
* Graphire (pen) * Graphire2 (pen) * Intuos2 A4 (pen) * Intuos Art (pen, no finger touch) Remove report descriptor override workaround for Graphire and Graphire2.
2017-09-01Add a missing break that should have been included in revision 1.163.skrll
Spotted by "sc dying" and reported on current-users
2017-08-31Instead of a Linux keymap, convert Linux event codes to USB scan codes andjmcneill
use the ukbd keymaps instead.
2017-08-29Regen.ryoon
2017-08-29Add Wacom Intuos2 A4 and Intuos Art pen tabletsryoon
2017-08-22Check both buses for ub_usepolling and schedule the soft interrupt handlerskrll
or call it directly. Fixes usb keyboard in ddb when attached to xhci.
2017-08-13Always try to set USB HID devices into Report Protocol. (Unless thejakllsch
device is known to be quirky.) Some of the most-widely-compatible methods of implementing USB Keyboard NKRO depend on this Request to function as designed. Issuing this Request is recommended by the HID 1.11 spec (7.2.6): ... "the host should not make any assumptions about the device's state and should set the desired protocol whenever initializing a device."
2017-08-13Support more varieties of USB keyboard reports.jakllsch
The previous code asssumed reports would closely match the Bootstrap Keyboard Protocol. This is no longer always the case, particularly with higher-end keyboards.
2017-08-13Fix memory leak in report parsing error paths.jakllsch
2017-08-06Regen from previous changes of usbdevs to fix kernel buildryoon
2017-08-05Automatically eject RALINK RT73 deviceskhorben
This lets the MW-P54SS USB Wireless Broadband Router from Synet attach as rum(4).
2017-08-05Sort the matching vendor list alphabeticallykhorben
NFC.
2017-07-28Free the RX list if ural_alloc_rx_list fails part way through.skrll
Reported by Ilja Van Sprundel.
2017-07-26uaudio: don't block suspend.maya
audio after resume hasn't been fully tested due to other issues, but the problem machine resumes. tested by Ricardo Mottola
2017-07-18don't subtract uninitialized pktsize in error path.christos
2017-07-15Tidy up a bit. Fulfil requests completely.riastradh
2017-07-14Only call uhci_free_stds if there are TDs to free.skrll
In uhci_alloc_std_chain ensure we fill the TD array correctly and note the number of allocated TDs so that uhci_free_stds will do the right thing Fixes a problem seen by anon
2017-07-09PR/52385: Shinichi Doyashiki: some classic Roland product-ids for usbdevschristos
While here, add a Ralink that I had uncommitted and fix some caps hex to small for consistency
2017-07-08Remove the requirement for ehci to attach after companion devices.jmcneill
"go for it" - skrll@
2017-06-27regen (comment change only)wiz
2017-06-27It appears that some experimental version of these got committed somehow.kre
Re-gen again...