summaryrefslogtreecommitdiff
path: root/hw/xfree86/common/xf86Priv.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2018-01-18 18:07:29 -0800
committerKeith Packard <keithp@keithp.com>2018-06-28 22:54:22 -0700
commit38ff29ec8ead0a293f50ac52146199babe4205ca (patch)
tree17a13e35eee55b1aaf00d766bf62dff151ceac09 /hw/xfree86/common/xf86Priv.h
parent2f39b2a07805194fdd7def30d941666963d6e670 (diff)
modesetting: Allow a DRM fd to be passed on command line with -masterfd [v2]
This lets an application open a suitable DRM device and pass the file descriptor to the mode setting driver through an X server command line option, '-masterfd'. There's a companion application, xlease, which creates a DRM master by leasing an output from another X server. That is available at git clone git://people.freedesktop.org/~keithp/xlease v2: Always print usage, but note that it can't be used if setuid/gid Suggested-by: Lyude Paul <lyude@redhat.com> Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Lyude Paul <lyude@redhat.com>
Diffstat (limited to 'hw/xfree86/common/xf86Priv.h')
-rw-r--r--hw/xfree86/common/xf86Priv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/xfree86/common/xf86Priv.h b/hw/xfree86/common/xf86Priv.h
index 4fe2b5f33..393af3900 100644
--- a/hw/xfree86/common/xf86Priv.h
+++ b/hw/xfree86/common/xf86Priv.h
@@ -93,6 +93,7 @@ extern _X_EXPORT int xf86LogVerbose; /* log file verbosity level */
extern ScrnInfoPtr *xf86GPUScreens; /* List of pointers to ScrnInfoRecs */
extern int xf86NumGPUScreens;
+extern _X_EXPORT int xf86DRMMasterFd; /* Command line argument for DRM master file descriptor */
#ifndef DEFAULT_VERBOSE
#define DEFAULT_VERBOSE 0
#endif