summaryrefslogtreecommitdiffstats
path: root/sys/dev
AgeCommit message (Collapse)AuthorFilesLines
2015-06-26Completely skip entries for disabled LAPICs so they don't overwriteguenther1-4/+4
legit enabled ones problem reported by Pedro Caetano (pedrocaetano (at) binaryflows.com) ok kettenis@
2015-06-26Add Linux completion API and use it.kettenis5-34/+65
ok jsg@
2015-06-26There is no excuse for using dma_alloc(9) when a bus_dma_tag_t is available.kettenis2-15/+9
deraadt@ thinks this isn't worth it, but reyk@ and mlarkin@ tested it anyway
2015-06-26Revert previous. uvideo checks the transfered length of every frame andmpi4-11/+21
this break some devices. As found the hardway by Hugo Sastre via sobrado@
2015-06-26Adapt to the removal of the symbolic input and output port names frommiod1-6/+5
<sys/audioio.h>
2015-06-25Cards with revision < 10 (qemu rev is 0), have no ad1848 chip andratchov2-13/+44
don't attach the ad1848 driver. But the "malloc" method of gus_hw_if is ad1848_malloc() which assumes a ad1848 is attached (and expect the softc pointer to be a struct ad1848_softc, but get a gus_softc pointer instead). Implement, the missing gus_{malloc,free,mappage,...} routines. Add the missing mtx_{enter,leave} calls, as we're at it. Found by mlarkin. ok mlarkin
2015-06-25Ensure the setup block is DMA reachable.deraadt2-11/+13
tested by reyk, mlarkin, others
2015-06-25Reimplement the audio driver in a simpler way, removing unused/unusableratchov8-3196/+1523
functionality. Same API and ABI except for the removed bits and no behaviour change for programs using libsndio. With help from armani@ and mpi@, thanks.
2015-06-24Allow uvideo_mmap_queue() to fail gracefully when the mmap queue is full;miod1-8/+16
found the hard way by sebastia@ four years ago, and I'd been sitting on that diff since. The initial diff was more aggressive and would free the mmap queue upon error, but jakemsr@ had objections against this behaviour; this diff only fails gracefully instead of panic'ing.
2015-06-24#undef HZ before defining it such that compiling a kernel with -DHZ=xxx works.kettenis1-1/+2
2015-06-24Linux jiffies and OpenBSD ticks are the same thing.kettenis6-23/+19
ok jsg@
2015-06-24Quirk needed for SuperTop IDE bridge from frantisek holop.mpi1-1/+9
2015-06-24regenmpi2-4/+16
2015-06-24SuperTop IDE bridge from frantisek holop.mpi1-1/+5
2015-06-24Increment if_ipackets in if_input().mpi81-219/+97
Note that pseudo-drivers not using if_input() are not affected by this conversion. ok mikeb@, kettenis@, claudio@, dlg@
2015-06-24Introduce Linux work queue APIs and use them. As a side-effect, this willkettenis9-123/+193
move some of the work from the system task queue to the driver-specific task queue. ok jsg@
2015-06-22Flush out another small diff to reduce the diffs with Linux.kettenis1-2/+2
2015-06-22Do not update frame lengths to reflect what has really been transferedmpi4-21/+11
when an isochronous transfer is done. Frame lengths are just input values and no driver mess with them. ok ratchov@, jmatthew@
2015-06-22Make xhci(4)'s root hub report the same status bits as physical USB3 hubs.mpi3-17/+24
There's not bit to indicate the speed of a USB3.0 device attached to a hub port so do not abuse the PORT_TEST bit. Instead make the xhci(4) root hub report the PORT_POWER_SS bit when appropriate and use it to determin the speed of a new device. While here make the root hub report the link state and config error, from FreeBSD.
2015-06-22Apparently some BIOSes not supporting xHCI natively switch USB portsmpi1-15/+28
back to EHCI at suspend. So route the ports back to xHCI at resume. Problem reported by Adam Wolk, thanks!
2015-06-21Don't use uninitialized data as a return value.krw1-5/+5
From Brainy via Maxime Villard via tech@. ok kettenis@
2015-06-21Don't leak mem if wsfont_rotate() fails.jca1-4/+2
Problem reported by Maxime Villard, ok miod@
2015-06-21memory leak on failure; from Maxime Villardderaadt1-2/+4
2015-06-20Only match devices with a valid configuration.mpi1-22/+4
ok uaa@
2015-06-19Only match devices with a valid configuration.uaa2-22/+5
ok by mpi@
2015-06-19remove isp(4) now that the ql* family have replaced itjmatthew18-18602/+6
2015-06-18For unsupported sample formats, don't return EINVAL but set the closestnaddy1-15/+7
available format. ok ratchov@
2015-06-18CP2110 is handled by uslhcom not uslcomjsg1-2/+1
2015-06-18Only match devices with a valid configuration.mpi2-23/+5
Tested by jsg@
2015-06-18Only match devices with a valid configuration.mpi1-60/+12
2015-06-18Only match devices with a valid configuration.mpi2-19/+7
Most of the WiFi/Ethernet USB adapter only have one configuration and always use its first interface. In order to improve USB descriptors parsing start by reducing the number of places where a configuration is set. Tested by jsg@
2015-06-17when no fingers are down, send 0 for zjcs1-2/+3
fixes tap-to-click
2015-06-17fix compilation with UBCMTP_DEBUGjcs1-2/+2
2015-06-17Four new sensors, from David Higgs.mpi2-5/+19
2015-06-16Add a uslcom id for the Netgear M7100 console from Andrew Daugherity.jsg1-1/+43
Add some additional uslcom ids found in the Linux driver while here.
2015-06-16regenjsg2-7/+273
2015-06-16Add a uslcom id for the Netgear M7100 console from Andrew Daugherity.jsg1-3/+69
Add some additional uslcom ids found in the Linux driver while here.
2015-06-15Bring back r1.78 and r1.79, now that ajactouto@'s regression hasmpi1-14/+33
been found: it was a hardware failure. When a bus is explored, do not probe the ports which status hasn't changed. This saves a lot of I/O when attaching/detaching devices and might help with some timing related problems.
2015-06-15Set the length of isochronous transfers as the sum of the frames lengths.mpi3-27/+23
This reduces differences between non-isoch and isoch transfers submissions, makes the generic DMA buffer overrun check work with isoch transfers and will allow some code simplifications in HC drivers. Since short-transfers were never checked for isoch transfers, we now need to pass the USBD_SHORT_XFER_OK flag to not change this behavior. This might be revisited later. ok ratchov@
2015-06-15Remove comments referring to Linux iwlwifi source filenames from iwm(4).stsp3-215/+4
Linux is a moving target so these comments provide little value. Discussed with kettenis and deraadt.
2015-06-15Make the wifi LED work with iwm(4).stsp2-3/+69
The bad news: Many laptops sold with iwm(4) cards don't have a wifi LED :-( The good news: Laptops with LEDs and no wifi device white-list in BIOS actually exist! Tested in one such machine. ok kettenis@ deraadt@
2015-06-14Implement IQ calibration support for rtwn(4). Lots of black magic involved.stsp2-11/+291
2015-06-13Parse _CST objects and use the C-states they describe when they're sane.guenther2-88/+514
testing by many, particularly krw@ and jcs@ tweaks by kettenis@ ok deraadt@
2015-06-13Busy-wait a short while after sending a command to rtwn(4) firmware.stsp1-1/+5
Fixes selection of initial TX rate. We're not stuck at 1Mbit/s anymore.
2015-06-12Only match devices with a valid configuration.mpi13-185/+45
Most of the WiFi/Ethernet USB adapter only have one configuration and always use its first interface. In order to improve USB descriptors parsing start by reducing the number of places where a configuration is set. Tests & ok stsp@
2015-06-12Actually trigger iwm_init_task() from iwm_watchdog() as intended to givestsp1-3/+2
recovery after device timeout a chance. Don't mess with the IFF_UP flag in the watchdog since this isn't done anywhere except intel wifi drivers which probably copied this pattern amongst each other. ok kettenis@
2015-06-12Fix rtwn(4) wifi LED support. Tested with rtwn(4) device in Thinkpad X220.stsp2-5/+11
2015-06-11remove uneeded pci includesjsg3-10/+4
2015-06-10Typos: equalivant, fucntion, libary.miod1-2/+2
2015-06-10Don't claim the autri(4) driver supports big-ending, signed 8-bit,ratchov1-32/+6
or unsigned 16-bit samples. Fixes sound on big endian machines.