summaryrefslogtreecommitdiffstats
path: root/sys/dev
AgeCommit message (Collapse)AuthorFilesLines
2013-08-16Hook up the framebuffer colormap helper code on sparc64.kettenis1-1/+28
2013-08-16Pass cursor position in wsdisplay_cnattach() call. Preparation for seamlesskettenis1-2/+2
console transation on sparc64 (and eventually macppc).
2013-08-15Blast uhts(4). This code was merged into ums(4) last week.edd3-457/+4
OK mpi@
2013-08-15Include files.agp and files.drm from files.pci. Makes sure "drm.h" getskettenis1-1/+4
generated on all architectures that support pci, making alpha and loongson compile again. ok todd@, miod@ seemed to agree with the idea
2013-08-14drm_heap.c is no longer neededjsg3-224/+2
2013-08-14remove references to ati_pcigartjsg1-25/+1
2013-08-13ati_pcigart.c is no longer neededjsg2-162/+1
ok kettenis@
2013-08-13Call drm_mtrr_add() directly instead adding a map.kettenis1-4/+2
ok jsg@
2013-08-13Let ray(4) rot in the attic. OK mpi, jsg, kettenis, henning, millert.mikeb3-3861/+1
Mickey approves these changes.
2013-08-13add static back to functions that originally had itjsg32-3243/+1228
reduces the diff to linux and makes ddb hangman a little easier
2013-08-13Remove bogus and useless refcounting of usbd pipes that could lead tompi3-9/+6
memory leaks and abort the pipe if requests are still pending because most of our drivers don't do anything if usbd_close_pipe() fails. ok miod@
2013-08-12Add a port of the TTM and Radeon DRM code from Linux 3.8.13.jsg184-39369/+126226
Includes kernel modesetting, framebuffer console and support for newer hardware. Firmware needs to be present for acceleration and in some cases modesetting to work. It can be installed via fw_update or manually via pkg_add. With lots of help from kettenis@ some macppc bits from mpi@ and some ttm refcount/queue bits from FreeBSD. Thanks to M:Tier and the OpenBSD Foundation for sponsoring this work.
2013-08-09Merge uhts(1) into ums(1). The code is amost the same, so no need to duplicate.edd3-15/+67
A part of ongoing work to improve touchscreen/digitiser support. A diff will follow shortly to remove uhts(1). OK matthieu@, with input from mpi@
2013-08-09match linux and only allow multiple contexts on the render ringjsg1-1/+11
2013-08-09add commented out versions of unused functions present in the originaljsg4-32/+2072
files to reduce the diff to linux.
2013-08-08Add support for Intel Wifi Link 130.syl1-7/+5
ok kettenis@, mpi@
2013-08-08Fix sign of errno values to match Linux.kettenis1-5/+5
2013-08-08Make it possible for graphics drivers to opt-out of VGA arbitration.kettenis2-38/+58
The idea is that as soon the kernel driver switches out of vga text mode, it can disable decoding of legacy vga io and mmio and call pci_disable_legacy_vga() to take itself out of arbitration. The PCIGETVGA ioctl is extended such that it returns the legacy decoding state of a device. The X server can then query this state for all graphics devices in the system (through libpciaccess) and decide whether it needs to do arbitration. ok jsg@
2013-08-08Turns out neither the flow control diff nor the RX checksum offload diffkettenis1-8/+121
is responsible for the hangs seen by Henning. So put them back.
2013-08-08These functions should only used in the usb-autoconf glue, do not exposempi2-4/+5
them.
2013-08-08Use the same functions to abort and close the control pipe of a devicempi2-16/+9
as for every other pipes instead of having another function calling the host controller method.
2013-08-07Another major overhaul of the inteldrm(4) GEM code, bringing us considerablykettenis10-473/+607
closer to the Linux 3.8.13 codebase. Almost certainly squashes a few more bugs. ok jsg@
2013-08-07needs timeout.h to compile. from Rafael Nevestedu1-1/+2
2013-08-07Mimic what's done on sparc64 and parse the OpenFirmware device tree tompi1-3/+1
enumerate the pci devices. This allow us to not store the interrupt vector in the interrupt line register and to not try to attach pci devices disabled by firmware. With inputs from and ok kettenis@
2013-08-07Most network drivers include netinet/in_var.h, but apparently theybluhm134-268/+134
don't have to. Just remove these include lines. Compiled on amd64 i386 sparc64; OK henning@ mikeb@
2013-08-07add support for hardware contexts on recent intel hardwarejsg7-10/+628
based on the code in linux 3.8.13 ok kettenis@
2013-08-06set ai_devid in struct agp_info so drm_agp_info() will work as intendedjsg1-3/+4
ok kettenis@
2013-08-05First stab at updating this monster to the Intel/FreeBSD current version.mikeb9-3679/+4897
This syncs PHY and chip dependent parts as well as brings support for the flow control and additional (untested) bits for 1G fiber versions. Tested by Hrvoje Popovski <hrvoje at srce ! hr> on 82599/SFP+DA, florian@ and benno@ on 82599/SFP+SR and on 82598/CX4-BP, 82599/SFP+DA and X540/RJ45 by me.
2013-08-03Enable MSI on RT810xE.kettenis1-2/+7
ok jsg@
2013-08-02regenmikeb2-4/+9
2013-08-02add Sierra Wireless MC8355 (Gobi 3000)mikeb2-2/+4
2013-08-01Add support for the Ralink RT3060, which uses the RT3572 MAC/BBP.kettenis1-1/+2
2013-08-01regenkettenis2-2/+7
2013-08-01Ralink RT3060.kettenis1-1/+2
2013-08-01Add support for the RT3572 MAC/BBP. Crucial bits from Nathan Goings.kettenis1-10/+29
ok mpi@
2013-07-29Fix typo/thinko; checking whether an address is bigger than 0 makes no sense.kettenis1-2/+2
2013-07-25Backout flow control support (rev 1.97) and RX TCP/UDP checksum offloadkettenis1-121/+8
support (rev 1.98). There is strong evidence that one of these causes hangs on the Sun ERI as found on a v120. ok henning@, deraadt@
2013-07-21regenmartin2-3/+8
2013-07-21add another ATI RS690 PCIE bridgemartin1-2/+3
ok deraadt
2013-07-21Belkin N300 XR; Daryl Turnerderaadt4-6/+13
2013-07-19Don't use uninitialized variable when a simple 0 will do.krw1-2/+2
Found by Maxime Villard. ok jsing@
2013-07-16Correctly initialized the width value to 0 instead of passing garbagempi1-1/+3
to wsmouse_input() when no finger are reported. Pointed out by Maxime Villard.
2013-07-15When a ucom(4) device is detached do not only abort its pipes but alsompi1-5/+30
free them and makes sure to close the attached tty before freeing its descriptor. This plugs a memleak and fixes a panic introduce in r1.59. Found the hard way and tested by otto@
2013-07-14The "probe" interrupt handler is mpsafe; mark it as such.kettenis1-3/+4
ok matthew@
2013-07-12Expunge debug code that uses an uninitialized variable. Without thekrw1-6/+1
variable the message doesn't make much sense. Reported by Maxime Villard.
2013-07-11use fls as initially intendedmikeb1-3/+3
2013-07-10Remove unsigned comparison < 0.brad1-2/+2
Pointed out by LLVM. ok jsg@
2013-07-10Remove unsigned comparison < 0.brad1-2/+1
Pointed out by LLVM. ok fgsch@
2013-07-10match linux and call i915_gem_object_wait_rendering__nonblockingjsg1-6/+46
in the set domain ioctl. ok kettenis@
2013-07-09pay attention to the #ifdefderaadt1-12/+9