summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2017-01-08Make aml_rdpciaddr() work for for devices behind bridges. The code nowMark Kettenis
uses the mapping between AML nodes and PCI devices that we establish. Because _INIT methods may end up calling aml_rdpciaddr(), make sure we create that mapping early. Also handle devices that aren't actually present. These devices are now included in the mapping and reads will return an all-ones patterm whereas writes are a no-op.. ok mlarkin@
2017-01-08Display color depth alongside resolution when attaching inteldrm andFrederic Cambus
radeondrm, using the same scheme as efifb(4). OK mpi@, visa@, kettenis@
2017-01-08Make urtwn(4) use AMRR instead of letting the firmware handle rate scaling.Stefan Sperling
For now this only affects RTL8188EU chips, perhaps because the author of this patch does not own any devices containing any of the other chips (hint hint). Patch by misha aka Mikhail / mp39590 at gmail ok mpi@
2017-01-07regenMike Larkin
2017-01-07Some newer Intel Xeon E5v4 PCI ids, from Hrvoje PopovskiMike Larkin
ok deraadt
2017-01-07Remove unused MIX_CN_CIN macro, make umidi_evlen[] static, style(9).Alexandre Ratchov
From Michael W. Bombardieri. Thanks.
2017-01-05Checking whether mbuf list is empty is done by the if_input nowMike Belopuhov
2017-01-05Microsoft has allocated us a SubID that we can use to identify OpenBSDMike Belopuhov
2017-01-05Don't let producer index become equal with the consumer when writingMike Belopuhov
A nod to the re.c commit by dlg@, perhaps pure paranoia, but works nevertheless. While here replace a more expensive modulo operation with a subtraction.
2017-01-04In the set_params() routine, remove the AUDIO_ENCODING_ULINEAR caseAlexandre Ratchov
as upper layers calls it with AUDIO_ENCODING_ULINEAR_{LE,BE} only.
2017-01-04better handle empty or full rx rings.David Gwynne
currently re appears to end up spinning on landisk. the most obvious cause of this would be an inability to add entries on the rx ring when we run out of mbufs. cope with this by calling rxeof from the isr when the FIFO_OVERFLOW status bit is set. rxeof in turn unconditionally tries to fill the rx ring, even if it doesnt dequeue any packets off the ring. while here limit the number of entries that can go on the rx ring to 1 less than the size of the ring. a full ring looks the same as an empty ring (cos the producer and consumer are the same in both cases), so avoid letting this happen. ok deraadt@ who hit problems on his landisk and tested this diff
2017-01-03Add simplefb(4), a driver to support the framebuffer set up by the firmwareMark Kettenis
on some platforms that use device trees. Works on Allwinner (sunxi) and should also work on Raspberry Pi (broadcom) armv7 platforms. ok jsg@, visa@
2017-01-03No need to set use_maxpkt twice. From Michael W. Bombardieri. Thanks.Alexandre Ratchov
2017-01-03If gain is above MAX, no need to check whether it's below MIN.Alexandre Ratchov
From Michael W. Bombardieri. Thanks.
2017-01-03No need to include sys/malloc.h. From Michael W. Bombardieri. Thanks.Alexandre Ratchov
2016-12-29Eliminate 68 unused static variables that gcc complains about.Kenneth R Westerback
ok deraadt@
2016-12-27Add cast to silence warnings generated by clang.Mark Kettenis
ok mpi@
2016-12-26Fix typo, happend -> happenedJeremie Courreges-Anglas
2016-12-24Make the boot programs support booting from softraid on 4K byte sectorYASUOKA Masahiko
disks. test gonzalo ok tom krw jsing
2016-12-24Remove some unused variables that have been removed upstream as well.Mark Kettenis
Fixes some clang warnings. ok jsg@
2016-12-24Put a bit more unused code under #ifdef notyet to prevent a clang warning.Mark Kettenis
2016-12-23Define HAL_OPCODE using enum ieee80211_opmode to prevent clang from warningMark Kettenis
about an implicit enum conversion. ok stsp@
2016-12-23Add missing sentinel.Mark Kettenis
ok deraadt@
2016-12-23Hide static inline functions that are only used in debug code behind the sameMark Kettenis
#ifdef as the debug code itself. Prevents clang from warning about these functions being unused. ok stsp@, deraadt@
2016-12-23Implement disk detachingMike Belopuhov
2016-12-21Remove the rwlock paranoia since we're under KERNEL_LOCK anywayMike Belopuhov
2016-12-20Fix compiler warnings generated by clang. This matches upstream commitMark Kettenis
1cd73ff70d13a22faa95db8323382dd6d036554e by Alex Deucher, whose commit message makes me suspect that Brad Smith mailed us a diff back in 2013 that we ignored. ok jsg@
2016-12-20In midiread() and midiwrite(), add a second goto label toAlexandre Ratchov
factor calls to mtx_leave() before returning. From Michael W. Bombardieri <mb at ii.net>. Thanks!
2016-12-20Fix many typos. From Michael W. Bombardieri <mb at ii.net>. ThanksAlexandre Ratchov
2016-12-20Simplify the activate() functions of auglx(4), autri(4), andAlexandre Ratchov
auvia(4). From Michael W. Bombardieri <mb at ii.net>. Thanks.
2016-12-20Group identical close_in_jack() and close_out_jack() into a singleAlexandre Ratchov
routine. From Michael W. Bombardieri <mb at ii.net>. Thanks!
2016-12-20Set free(9) size argument. From Michael W. Bombardieri <mb at ii.net>.Alexandre Ratchov
Thanks.
2016-12-19Implement interface detachingMike Belopuhov
2016-12-19Add experimental support for device hot-pluggingMike Belopuhov
We're installing watches on all nodes under "device/" and re-scan the subtree every time the watch is triggered looking for changes in the output. Tested with xnf(4) and xbf(4), helpful hints from Roger Pau Monne, thanks!
2016-12-18Use %zu/%d to print size_t/ssize_t. Cast recno_t (a.k.a. u_int32_t)Kenneth R Westerback
to (unsigned long) to match %lu formats. Makes gcc happier and quieter. ok deraadt@
2016-12-18Remove comparison of array which is always non-NULL. Fixes clang warning.Mark Kettenis
ok jca@ (a while back)
2016-12-18Add cast to mask and shift macros to silence warnings generated by clang.Mark Kettenis
ok millert@
2016-12-18While copying out channel flags to userspace, omit the HT channel flag ifStefan Sperling
we're not in 11n mode. This will allow tcpdump to show the mode correctly. ok mpi@
2016-12-16When running on Azure, the initial timesync "sync" message is not correct,Reyk Floeter
ignore it and only use the timesync "sample" messages. OK mikeb@
2016-12-15Remove rasops2 (2-bit color depth) functions, they are unused.Frederic Cambus
It seems unlikely that any future new platform will ever need them. OK mpi@
2016-12-15Regen usbdevsPaul Irofti
2016-12-15Add Intel Bluetooth devices found on x250 and x260 Thinkpads.Paul Irofti
2016-12-15fix build when DIAGNOSTIC is not definedJonathan Gray
ok mikeb@
2016-12-14Kill compat for old VNDIOCSET; ok deraadt@Jeremie Courreges-Anglas
2016-12-14Various typos and minor cleanupMike Belopuhov
2016-12-13Use new xs_{get,set}num functions instead of hand-rolled weirdnessMike Belopuhov
2016-12-13Fix up tsleep priorities and make them interruptibleMike Belopuhov
With help from and OK sf, OK mpi on the previous version.
2016-12-13Bounce unaligned transfer data through a scratch bufferMike Belopuhov
Thanks to the detailed report from Nathanael Rensen, the issue with unaligned transfer data became apparent: the backend expects buffers be multiple of 512 bytes and to be 512 byte aligned, which is not always satisfied. This isn't an issue when requests are coming from the buffer cache, but can happen with raw device access since physio(9) ensures the former requirement is met by disallowing non-block sized reads, but doesn't enforce the latter. It remaps userland buffers into the kernel virtual space which preserves the data offset within the memory page and thus the original alignment. Buffers with offsets under the block size can't be referenced by Blkfront ring descriptors that measure data in blocks and must be substituted with temporary buffers for the duration of the I/O operation.
2016-12-13Poll until the ITSDONE flag is set on the transferMike Belopuhov
2016-12-12Use DPRINTF instead of printf() in #ifdef UAUDIO_DEBUG section. FromAlexandre Ratchov
Michael W. Bombardieri <mb at ii.net>