aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/drm/vmwgfx_drm.h
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@vmware.com>2019-11-21 17:44:56 +0100
committerThomas Hellstrom <thellstrom@vmware.com>2020-01-15 11:54:16 +0100
commitcb92a3235956442c5ff211291865e219dc4cf4a0 (patch)
tree4bff7a1f95f87be485bb7d045781486ad332677e /include/uapi/drm/vmwgfx_drm.h
parentdrm/vmwgfx: prevent memory leak in vmw_cmdbuf_res_add (diff)
downloadlinux-dev-cb92a3235956442c5ff211291865e219dc4cf4a0.tar.xz
linux-dev-cb92a3235956442c5ff211291865e219dc4cf4a0.zip
drm/vmwgfx: add ioctl for messaging from/to guest userspace to/from host
Up to now, guest userspace does logging directly to host using essentially the same rather complex port assembly stuff as the kernel. We'd rather use the same mechanism than duplicate it (it may also change in the future), hence add a new ioctl for relaying guest/host messaging (logging is just one application of it). Signed-off-by: Roland Scheidegger <sroland@vmware.com> Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Diffstat (limited to 'include/uapi/drm/vmwgfx_drm.h')
-rw-r--r--include/uapi/drm/vmwgfx_drm.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/uapi/drm/vmwgfx_drm.h b/include/uapi/drm/vmwgfx_drm.h
index 02cab33f2f25..fcb741e3068f 100644
--- a/include/uapi/drm/vmwgfx_drm.h
+++ b/include/uapi/drm/vmwgfx_drm.h
@@ -71,6 +71,7 @@ extern "C" {
#define DRM_VMW_CREATE_EXTENDED_CONTEXT 26
#define DRM_VMW_GB_SURFACE_CREATE_EXT 27
#define DRM_VMW_GB_SURFACE_REF_EXT 28
+#define DRM_VMW_MSG 29
/*************************************************************************/
/**
@@ -1213,6 +1214,22 @@ union drm_vmw_gb_surface_reference_ext_arg {
struct drm_vmw_surface_arg req;
};
+/**
+ * struct drm_vmw_msg_arg
+ *
+ * @send: Pointer to user-space msg string (null terminated).
+ * @receive: Pointer to user-space receive buffer.
+ * @send_only: Boolean whether this is only sending or receiving too.
+ *
+ * Argument to the DRM_VMW_MSG ioctl.
+ */
+struct drm_vmw_msg_arg {
+ __u64 send;
+ __u64 receive;
+ __s32 send_only;
+ __u32 receive_len;
+};
+
#if defined(__cplusplus)
}
#endif