kernel: Import the apple-gmux driver from Linux 4.8
commit47f34b1f6d3d3846daec90970eeb3745bf2c74c7
authorPeeter Must <karu.pruun@gmail.com>
Thu, 13 Apr 2017 07:17:43 +0000 (13 10:17 +0300)
committerFrançois Tigeot <ftigeot@wolfpond.org>
Fri, 28 Apr 2017 14:23:29 +0000 (28 16:23 +0200)
tree64a93bc0519147cc1949b42cfdc3e531a93556bf
parent5026ce2f738a93185321a31ea486c7a9a6f4beda
kernel: Import the apple-gmux driver from Linux 4.8

Some Apple laptop models with dual GPUs use a special gmux device
in order to connect video outputs to a particular GPU or the other
one.
This driver allows the use of Intel graphics on Macbooks having an
on-board additional Nvidia GPU.

Rename the driver to "apple_gmux" since hyphens are not welcome in
DragonFly's kernel module names.
sys/dev/drm/include/linux/apple-gmux.h [new file with mode: 0755]
sys/gnu/Makefile
sys/gnu/dev/Makefile [copied from sys/gnu/Makefile with 57% similarity]
sys/gnu/dev/apple_gmux/Makefile [new file with mode: 0644]
sys/gnu/dev/apple_gmux/apple-gmux.c [new file with mode: 0644]