summaryrefslogtreecommitdiffstats
path: root/sys/dev
AgeCommit message (Collapse)AuthorFilesLines
2013-07-09move AHCI_DEBUG stuff into ahci.c so we can build with it enabled againjmatthew2-14/+16
ok dlg@
2013-07-09Add basic support for digitisers with pens in uhts(4).edd1-41/+73
With help from matthieu@ and mpi@. OK mpi@
2013-07-09Fix a pair of aesthetic nits in dev/rnd.c:blambert1-3/+3
fix language (feed -> fed) in a comment 16 -> MD5_DIGEST_LENGTH for legibility No change to resulting object file. ok djm@
2013-07-08make use of udelay to reduce the diff to linuxjsg7-77/+77
2013-07-08add inline versions of udelay/mdelayjsg1-1/+15
2013-07-08add DRM_IOCTL_MODE_CURSOR2 definition from libdrm 2.4.46jsg2-2/+16
2013-07-06Remove unsigned comparison < 0.brad1-2/+2
Pointed out by LLVM. ok kettenis@
2013-07-06Advertise utpms(4) as being a WSMOUSE_TYPE_USB because even if it couldmpi1-2/+2
be declared as PANEL or SYNAPTICS it doesn't implement GCALIBCOORDS for the moment. This makes ws(4) happier as it can now uses the touchpad directly wich in turn makes my touchpad usable if the bluetooth HID mouse is not detected or ums(4) is disable.
2013-07-06Use wsemuldisplaydevsubmatch.kettenis1-16/+3
2013-07-06s/wsemuldisplaysubmatch/wsemuldisplaydevsubmatch/gkettenis2-4/+4
2013-07-05Add submatch function for use with config_found_sm(9).kettenis2-2/+17
ok miod@
2013-07-05Provide a forward declaration of struct device.kettenis1-1/+3
ok deraadt@
2013-07-05Correctly abort and free the pipe when detaching the device. Found thempi1-1/+7
hard way by otto@
2013-07-05make use of the drm_i915_private macro to reduce the diff to linuxjsg26-572/+571
2013-07-05Use tmp_int to be able to pass back the -1 upon error and check for it properlybrad1-11/+11
but the value passed forward throughout the ioctl handler otherwise is an unsigned value. Pointed out by LLVM. bktr_core.c:1737:13: error: comparison of unsigned expression < 0 is always false bktr_core.c:1779:13: error: comparison of unsigned expression < 0 is always false bktr_core.c:2063:16: error: comparison of unsigned expression < 0 is always false ok krw@
2013-07-04Format string fix: %x instead of %p for intsf1-2/+2
ok deraadt@
2013-07-04Fall back to bit banging mode for DVO transmitter detectionjsg1-2/+13
from linux 3.8.13
2013-07-04Fixup Oops in the pipe config computationjsg1-11/+14
from linux 3.8.13
2013-07-04ensure single initialization and cleanup of backlight devicejsg4-10/+14
from linux 3.8.13
2013-07-04set CPT FDI RX polarity bits based on VBTjsg5-11/+21
from linux 3.8.13
2013-07-04Workaround incoherence between fences and LLC across multiple CPUsjsg1-5/+30
from linux 3.8.13 this does not currently do the ipi to run wbinvd() on all processors
2013-07-04Fix SDVO connector and encoder get_hw_state functionsjsg1-7/+4
from linux 3.8.13
2013-07-04Add no-lvds quirk for Fujitsu Esprimo Q900jsg1-1/+9
from linux 3.8.13
2013-07-04Fix sdvo connector get_hw_state functionjsg1-1/+5
from linux 3.8.13
2013-07-03fix: cast void * to char *, fix format args for (u)int64_t,sf2-4/+4
tc_frequency is unsigned ok kettenis@
2013-07-03cast time_t to long long, time_t is signed, tv_nsec is longsf1-3/+3
ok deraadt@
2013-07-03The ipmi threshold value may be negative. Respect the sign bitbluhm1-7/+13
when checking wether an ipmi sensor is critial. From Matthias Pitzl; OK deraadt@
2013-07-02Rearrange the inequalities.brad2-4/+4
Pointed out by LLVM. if_axe.c:1059:29: error: comparison of unsigned expression < 0 is always false if_smsc.c:1250:28: error: comparison of unsigned expression < 0 is always false ok jsg@ mikeb@
2013-07-02If after processing an SCI event the SCI_EVT is no longer sent, we're donekettenis1-1/+3
and shouldn't do another SCI query. Such a spurious SCI query blocks on certain HP laptops, which in turn blocks the acpi thread. tested by many ok mlarkin@
2013-07-02change splvm to splbio, missed in r1.4sf1-2/+2
noticed by Alexey Suslikov
2013-07-02some trivial format string fixessf1-4/+4
2013-07-02Lower IPL to IPL_BIO for the interrupt.sf1-3/+3
There is no reason to use IPL_VM and it breaks with the recent IPL_MPSAFE changes. discussed with kettenis@
2013-07-01Pass ioctl() calls to parent uhidev() device first, to be able tomatthieu1-2/+6
get the HID descriptor with usbhidctl -r, among others. ok mpi@
2013-07-01The fast scrolling code causes random page table errors on older hardware.kettenis1-1/+11
Disable that code and use the write-only rasops code instead on the affected chips.
2013-07-01When an I/O error occurs on a softraid chunk, only take it offline if thejsing1-3/+5
discipline supports redundancy. In the non-redundant case, there is little to gain my failing the chunk, in fact it just makes any form of data recovery significantly harder. ok krw@ todd@
2013-07-01Remove vaddr_t casts in bktr_mmap().brad1-4/+4
Pointed out by LLVM. bktr_os.c:478:22: error: comparison of unsigned expression < 0 is always false ok krw@ kettenis@
2013-07-01Within ns_to_timeval() change the rem field type from unsigned to signed.brad1-2/+2
Pointed out by LLVM. drm_irq.c:154:10: error: comparison of unsigned expression < 0 is always false kettenis@ says it should be signed and this is what the equivalent Linux code does. ok jsg@
2013-06-28Add support for write-only framebuffers. This makes the code that copieskettenis2-5/+36
rows and columns redraw the destination area instead of reading pixel values from the framebuffer. This can be a considerable performance win. Only works together with RI_VCONS. ok miod@
2013-06-28send proper z value to elantech_send_input in previous v4 commitjcs1-6/+6
pointed out by Owain G. Ainsworth
2013-06-28Turns out that BGE_STATFLAG_UPDATED bit in the status block doesn't getmikeb2-53/+68
properly updated by the newer hardware (seen in the TX completion case). This leads to very poor transmit performance in the beginning of a TCP connection. Linux and FreeBSD don't rely on BGE_STATFLAG_UPDATED bit since they enable MSI and tagged status for 5717+. Doing the same does indeed fix an issue. Change was tested by David Imhoff on 5719, 5720 and 5721/5750, Hrvoje Popovski on 5704 B0, sthen@ on 5723/5784, benno@ on 5704 A3, and me on 5719, 5720 adn 5714/5715. No objections from kettenis@ and dlg@.
2013-06-28Rewrite the media / link state handling and have itbrad1-66/+90
handled within sis_miibus_statchg() instead of calling sis_init(). Based on the FreeBSD sis(4) driver. ok mikeb@ sthen@
2013-06-26Remove some lies in comments.kettenis1-19/+16
2013-06-26Flash the LEDs only if the output report size is non null.mpi1-2/+4
This prevent some Logitech Mice, at least G500 and G9x, that contain various HID devices including a keyboard without LEDs to keep disconnecting right after being attached. Problem reported by abieber@ and Damien Couderc, ok miod@
2013-06-25Do not dereference sc before checking if it exists, pointed by otto@.mpi1-2/+2
2013-06-25Repair flow control broken in the rev1.329 and make sure that a simplemikeb1-6/+3
ifconfig done by a user won't alter our negotiated flow control settings. Both problems were identified by David Imhoff <dimhoff_devel @ xs4all !nl> Tested by David on 5719, 5720, 5721, Hrvoje Popovski on 5704 B0, sthen@ on 5723/5784, naddy@ and jmatthew@ on 5702/5703, benno@ on 5704 A3 and me on 5715 and 5719.
2013-06-25Bring ohci(4) and uhci(4) in sync with ehci(4) by ensuring that ampi2-14/+12
transfer is submitted when a zero-length bulk or interrupt transfer is requested. This is the missing part of FreeBSD's svn r159024 that should have been committed with ehci's r1.57. ok uebayasi@
2013-06-25Remove unsigned comparison < 0.brad1-2/+2
Pointed out by LLVM. ok mikeb@
2013-06-23Remove unsigned comparison < 0.brad1-2/+2
Pointed out by LLVM. ok ratchov@
2013-06-22Prefix all functions. Pointed out by brad@.uebayasi1-10/+10
2013-06-21De-static.uebayasi1-7/+12