diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2014-12-18 10:46:42 +0100 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2016-02-01 15:06:44 +0100 |
commit | 755e38f373a511bd774a61c9420a67f630f71037 (patch) | |
tree | 2e0ff98b85de2ca4e49a676d83dc708acb8f88a0 /vmwgfx/vmwgfx_driver.h | |
parent | 1e443c4717a8b107c0c9283e222482703ac0f358 (diff) |
vmware/vmwgfx: Expose kernel connector attributes and react to hotplug events
Much of this code is borrowed from the xf86-video-modesetting driver.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Diffstat (limited to 'vmwgfx/vmwgfx_driver.h')
-rw-r--r-- | vmwgfx/vmwgfx_driver.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/vmwgfx/vmwgfx_driver.h b/vmwgfx/vmwgfx_driver.h index b57d523..080ec8c 100644 --- a/vmwgfx/vmwgfx_driver.h +++ b/vmwgfx/vmwgfx_driver.h @@ -54,6 +54,10 @@ #endif #endif +#ifdef HAVE_LIBUDEV +#include <libudev.h> +#endif + #if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 12 #define _swapl(x, n) swapl(x,n) #define _swaps(x, n) swaps(x,n) @@ -142,6 +146,10 @@ typedef struct _modesettingRec Bool dri2_available; char dri2_device_name[VMWGFX_DRI_DEVICE_LEN]; #endif +#ifdef HAVE_LIBUDEV + struct udev_monitor *uevent_monitor; + InputHandlerProc uevent_handler; +#endif } modesettingRec, *modesettingPtr; #define modesettingPTR(p) ((modesettingPtr)((p)->driverPrivate)) @@ -184,7 +192,10 @@ xorg_output_get_id(xf86OutputPtr output); Bool vmwgfx_output_explicit_overlap(ScrnInfoPtr pScrn); - +void +vmwgfx_uevent_init(ScrnInfoPtr scrn, modesettingPtr ms); +void +vmwgfx_uevent_fini(ScrnInfoPtr scrn, modesettingPtr ms); /*********************************************************************** * xorg_xv.c |