summaryrefslogtreecommitdiffstats
path: root/sys/dev
AgeCommit message (Collapse)AuthorFilesLines
2015-04-06drm_calloc -> kcallocjsg1-5/+5
2015-04-06add/use some more errno remappingjsg5-19/+23
2015-04-06Now we have dev_priv->mm.gtt_base_addr we can set fb_base and removejsg1-5/+2
an ifdef. The code that uses fb_base itself remains #if 0'd out.
2015-04-06Add an empty drm_sysfs_hotplug_event() function and use itjsg4-15/+10
and the existing drm_sysfs* functions to remove some ifdefs.
2015-04-06Convert to if_input(); ok mpi@miod1-36/+23
2015-04-06Add get_user() and put_user() compatibility interfaces and use them.kettenis2-45/+31
ok jsg@
2015-04-06add back some more static use to reduce the diff to linuxjsg18-272/+99
2015-04-06No need to use a temporary pointer variable after the drm struct namejsg3-21/+17
in the softc changed a while back.
2015-04-06add and use macros for wake_up/wake_up_all/wake_up_all_lockedjsg13-51/+54
2015-04-06Convert some udelay() calls back to DRM_UDELAY() wherejsg6-20/+20
the wrapper is still used in the original linux code.
2015-04-05Work-in-progress support for non-accelerated X11 on *some* sti(4) frame buffers;miod3-62/+445
based upon the old HP ngle X11 driver. Currently limited to CRX (720/735/750), Timber (710, old 715), Artist (712, 715) and EG (B-series), however the colormap isn't set up correctly on Timber and EG yet. Joint work with Artem Falcon, now in good enough shape to be worked further in the tree.
2015-04-05Consistently use #if 0/#endif to handle our lack of DRM_MINOR_CONTROL.kettenis1-8/+9
Change an #ifdef notyet into #ifdef __linux__ as we'll never have sysfs. Remove #ifdef notyet around WARN macro since we have it now.
2015-04-05whitespacekettenis2-4/+4
2015-04-05Another round of reducing diffs with Linux. This one moves the variouskettenis8-150/+175
copy_to_user and copy_from_user functions into drm_linux.h and uses them instead of copyin/copyout and DRM_COPY_*. Also move the timespec functions, and put i915_gem_object_is_purgable() where it belongs. Uncovered a bug where the arguments to copyout() were in the wrong order. ok jsg@
2015-04-04Use config_suspend() instead of dereferencing ca_activate directly tompi1-6/+2
support drivers that do not need any specific suspend/resume magic and do not have an activate function. config_suspend() will automagically propagate the event to the children of the driver. Needed at least by kauaiata(4/macppc). ok deraadt@, mlarkin@
2015-04-03Fix unsigned vs signed comparison in for() loop condition causing an infinitemiod1-2/+2
loop for WSDISPLAYIO_PUTCMAP ioctl with idx == 0; reported by Artem Falcon. [according to my investigation, none of the other for() loops in the kernel are affected by a similar issue]
2015-04-03resync i915_drv.h to make it diffable to linuxjsg7-671/+906
ok kettenis@
2015-04-03change types/macros to reduce the diff to linuxjsg1-9/+10
2015-04-03Translate PAGE_MASK usage for the way it is defined in our kernel.jsg1-3/+3
This code is not called.
2015-04-02use correct capitalization of 'BlackBerry'jasper4-11/+11
"sure" deraadt@
2015-04-01fix typo in comment; OK mpi@gsoares1-2/+2
2015-04-01Correct comments.uebayasi1-3/+3
2015-04-01Kill useless comments talking about ether_input().mpi2-18/+7
2015-04-01Remove annoying comment mentionning ether_output().mpi1-4/+1
2015-04-01Small cleanups when attaching sensors, from David Higgs.mpi1-6/+5
2015-03-31Upon finding an AUX slot that has no driver for it (such as thejcs1-3/+14
ramdisks that don't have the pms driver), setup a dummy interrupt handler to receive and discard data from the slot. This is a less invasive way of fixing the repeating keys/delay problem that occurs on newer ThinkPads when touching the trackpad/trackstick while typing during the installer. This has been in snapshots for a bit.
2015-03-30Convert, convert, convert 'em all to if_input(), tralalalala...mpi2-32/+19
Tested by sebastia@
2015-03-30Convert to if_input().mpi1-9/+5
Tested by sebastia@
2015-03-30Convert to if_input(), tested by sebastia@.mpi1-8/+5
2015-03-29Restore user-loaded vga fonts upon X11->VT switch and upon resume; frommiod3-10/+30
dan mclaughlin, thanks!
2015-03-29In vga_load_font(), keep track of the font bits being passed by the caller,miod1-8/+15
should the need to free them arise; and only perform the `use font' logic if we are in the `use font' case (i.e. font->data == NULL). Prompted by a discussion with dan mclaughlin on tech@
2015-03-28match on the RTS5249 found on the dell xps 13, treat it as a 5229jcs1-1/+3
ok stsp
2015-03-27Convert to if_input().mpi1-19/+6
Tested by and ok uaa@
2015-03-27simply do if_input() between splnet() and splx(), like other driversuaa1-6/+4
(such as if_udav.c). ok by mpi@
2015-03-26additional params from libdrm 2.4.60jsg1-1/+7
2015-03-26Use the 0x10 extended capability to determine if the trackstickjsg3-7/+44
buttons are wired to the trackpad and need to be re-routed to the trackstick. Without this change the buttons on 2015 thinkpads get picked up as extended buttons that show up as scroll up/down. Remove the X1 Carbon 2015 (LEN0048) and X250 (LEN0046) from the top button area/soft buttons quirks list. Also avoid using the quirk list entirely if the capability bit is set. Based on work from jcs@ with feedback from mpi@ ok mpi@ jcs@
2015-03-25Expand ehci_{add,del}_intr_list() macros.mpi1-17/+12
ehci(4) is using a TAILQ_* to keep track of the pending transfers. In this context "pending" means submitted to the hardware. Now that we are no longer fiddling with the internal of the TAILQ_* there's no good reason to keep these macro, but more importantly this will let us reuse the 'inext' field to get rid of the other hand-rolled lists of xfers. No functional change.
2015-03-25Merge ehci_device_request() into ehci_device_ctrl_start() to matchmpi1-52/+35
what's done with other transfer types. No functional change.
2015-03-25Remove more DPRINTFs, this file is almost in a readable state now.mpi1-53/+3
2015-03-25Use KASSERT() to check when/if URQ_REQUEST is correctly set just likempi1-31/+9
xhci(4) does.
2015-03-25Remove EHCI_DEBUG chunks that make things harder to understand.mpi1-159/+2
Over the years I understood that debugging USB HCD problems without hardware access do not work and even in this case it's easier to write a specific debug/prinf diff.
2015-03-24Convert to if_input().mpi1-11/+5
Apparently krw@ test diffs faster than I can commit them!
2015-03-24Convert to if_input() but I won't tell your the story of krw@mpi1-9/+5
fighting trolls and daemons with old wireless cards to be able to find the correct hardware to test this diff.
2015-03-24Convert to if_input(). Tested by jsg@ who found that at least one hismpi1-22/+6
(newer) machine can't set the device in a configurated state. But this is a USB-related problem.
2015-03-24Convert to if_input(), untested but kettenis@ will mop up later ifmpi1-9/+5
necessary. ok kettenis@, dlg@
2015-03-23unlock MII on smsc_miibus_writereg errorjsg1-1/+2
from Patrick Wildt
2015-03-23Return an error if getting the config descriptor failed.jsg1-1/+3
Avoids a NULL dereference encountered with a device I have. ok mpi@
2015-03-23Convert to if_input(), tested by jsg@, thanks!mpi2-27/+12
2015-03-23Not all iwm hardware supports the 5GHz band. Make setting 11a ratesjsg1-2/+8
and scanning conditional on the 5GHz support bit in the nvm. Problem reported and fix tested by Mattieu Baptiste. ok stsp@ kettenis@
2015-03-21Print speeds consistently.mpi2-18/+18
ok brynet@, miod@