summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/vboxvideo/hgsmi_ch_setup.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2019-03-04 17:47:24 +0100
committerHans de Goede <hdegoede@redhat.com>2019-03-11 17:31:15 +0100
commit131abc56e1bacef23cb7b340519d36e2f5adb2a9 (patch)
treea4c76ff780a891f0450807dfd50f12fa5062ec46 /drivers/gpu/drm/vboxvideo/hgsmi_ch_setup.h
parente5361b4b2b654ae7f0779de331ccd68e4970e401 (diff)
drm/vboxvideo: Move the vboxvideo driver out of staging
The vboxvideo driver has been converted to the atomic modesetting API and all FIXME and TODO items have been fixed, so it is time to move it out of staging. Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190304164724.10210-4-hdegoede@redhat.com
Diffstat (limited to 'drivers/gpu/drm/vboxvideo/hgsmi_ch_setup.h')
-rw-r--r--drivers/gpu/drm/vboxvideo/hgsmi_ch_setup.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vboxvideo/hgsmi_ch_setup.h b/drivers/gpu/drm/vboxvideo/hgsmi_ch_setup.h
new file mode 100644
index 000000000000..4e93418d6a13
--- /dev/null
+++ b/drivers/gpu/drm/vboxvideo/hgsmi_ch_setup.h
@@ -0,0 +1,32 @@
+/* SPDX-License-Identifier: MIT */
+/* Copyright (C) 2006-2017 Oracle Corporation */
+
+#ifndef __HGSMI_CH_SETUP_H__
+#define __HGSMI_CH_SETUP_H__
+
+/*
+ * Tell the host the location of hgsmi_host_flags structure, where the host
+ * can write information about pending buffers, etc, and which can be quickly
+ * polled by the guest without a need to port IO.
+ */
+#define HGSMI_CC_HOST_FLAGS_LOCATION 0
+
+struct hgsmi_buffer_location {
+ u32 buf_location;
+ u32 buf_len;
+} __packed;
+
+/* HGSMI setup and configuration data structures. */
+
+#define HGSMIHOSTFLAGS_COMMANDS_PENDING 0x01u
+#define HGSMIHOSTFLAGS_IRQ 0x02u
+#define HGSMIHOSTFLAGS_VSYNC 0x10u
+#define HGSMIHOSTFLAGS_HOTPLUG 0x20u
+#define HGSMIHOSTFLAGS_CURSOR_CAPABILITIES 0x40u
+
+struct hgsmi_host_flags {
+ u32 host_flags;
+ u32 reserved[3];
+} __packed;
+
+#endif