blob: 395743bd8fbf7a52640349ec19ac6cdbabd12d22 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef __VMWGFX_DRM_H__
20#define __VMWGFX_DRM_H__
Christopher Ferris106b3a82016-08-24 12:15:38 -070021#include "drm.h"
22#ifdef __cplusplus
Christopher Ferris48fe0ae2019-01-10 15:59:33 -080023extern "C" {
Christopher Ferris106b3a82016-08-24 12:15:38 -070024#endif
25#define DRM_VMW_MAX_SURFACE_FACES 6
Christopher Ferris38062f92014-07-09 15:33:25 -070026#define DRM_VMW_MAX_MIP_LEVELS 24
Ben Cheng655a7c02013-10-16 16:09:24 -070027#define DRM_VMW_GET_PARAM 0
28#define DRM_VMW_ALLOC_DMABUF 1
Christopher Ferris9ce28842018-10-25 12:11:39 -070029#define DRM_VMW_ALLOC_BO 1
Ben Cheng655a7c02013-10-16 16:09:24 -070030#define DRM_VMW_UNREF_DMABUF 2
Christopher Ferris525ce912017-07-26 13:12:53 -070031#define DRM_VMW_HANDLE_CLOSE 2
Christopher Ferris38062f92014-07-09 15:33:25 -070032#define DRM_VMW_CURSOR_BYPASS 3
Ben Cheng655a7c02013-10-16 16:09:24 -070033#define DRM_VMW_CONTROL_STREAM 4
34#define DRM_VMW_CLAIM_STREAM 5
35#define DRM_VMW_UNREF_STREAM 6
Christopher Ferris38062f92014-07-09 15:33:25 -070036#define DRM_VMW_CREATE_CONTEXT 7
Ben Cheng655a7c02013-10-16 16:09:24 -070037#define DRM_VMW_UNREF_CONTEXT 8
38#define DRM_VMW_CREATE_SURFACE 9
39#define DRM_VMW_UNREF_SURFACE 10
Christopher Ferris38062f92014-07-09 15:33:25 -070040#define DRM_VMW_REF_SURFACE 11
Ben Cheng655a7c02013-10-16 16:09:24 -070041#define DRM_VMW_EXECBUF 12
42#define DRM_VMW_GET_3D_CAP 13
43#define DRM_VMW_FENCE_WAIT 14
Christopher Ferris38062f92014-07-09 15:33:25 -070044#define DRM_VMW_FENCE_SIGNALED 15
Ben Cheng655a7c02013-10-16 16:09:24 -070045#define DRM_VMW_FENCE_UNREF 16
46#define DRM_VMW_FENCE_EVENT 17
47#define DRM_VMW_PRESENT 18
Christopher Ferris38062f92014-07-09 15:33:25 -070048#define DRM_VMW_PRESENT_READBACK 19
Ben Cheng655a7c02013-10-16 16:09:24 -070049#define DRM_VMW_UPDATE_LAYOUT 20
Christopher Ferris38062f92014-07-09 15:33:25 -070050#define DRM_VMW_CREATE_SHADER 21
51#define DRM_VMW_UNREF_SHADER 22
Christopher Ferris38062f92014-07-09 15:33:25 -070052#define DRM_VMW_GB_SURFACE_CREATE 23
53#define DRM_VMW_GB_SURFACE_REF 24
54#define DRM_VMW_SYNCCPU 25
Christopher Ferris05d08e92016-02-04 13:16:38 -080055#define DRM_VMW_CREATE_EXTENDED_CONTEXT 26
Christopher Ferris9ce28842018-10-25 12:11:39 -070056#define DRM_VMW_GB_SURFACE_CREATE_EXT 27
57#define DRM_VMW_GB_SURFACE_REF_EXT 28
Christopher Ferrisbb9fcb42020-04-06 11:38:04 -070058#define DRM_VMW_MSG 29
Christopher Ferris2abfa9e2021-11-01 16:26:06 -070059#define DRM_VMW_MKSSTAT_RESET 30
60#define DRM_VMW_MKSSTAT_ADD 31
61#define DRM_VMW_MKSSTAT_REMOVE 32
Christopher Ferris05d08e92016-02-04 13:16:38 -080062#define DRM_VMW_PARAM_NUM_STREAMS 0
Ben Cheng655a7c02013-10-16 16:09:24 -070063#define DRM_VMW_PARAM_NUM_FREE_STREAMS 1
64#define DRM_VMW_PARAM_3D 2
Ben Cheng655a7c02013-10-16 16:09:24 -070065#define DRM_VMW_PARAM_HW_CAPS 3
Christopher Ferris05d08e92016-02-04 13:16:38 -080066#define DRM_VMW_PARAM_FIFO_CAPS 4
Ben Cheng655a7c02013-10-16 16:09:24 -070067#define DRM_VMW_PARAM_MAX_FB_SIZE 5
68#define DRM_VMW_PARAM_FIFO_HW_VERSION 6
Christopher Ferris38062f92014-07-09 15:33:25 -070069#define DRM_VMW_PARAM_MAX_SURF_MEMORY 7
Christopher Ferris05d08e92016-02-04 13:16:38 -080070#define DRM_VMW_PARAM_3D_CAPS_SIZE 8
Christopher Ferris38062f92014-07-09 15:33:25 -070071#define DRM_VMW_PARAM_MAX_MOB_MEMORY 9
72#define DRM_VMW_PARAM_MAX_MOB_SIZE 10
Christopher Ferris05d08e92016-02-04 13:16:38 -080073#define DRM_VMW_PARAM_SCREEN_TARGET 11
Christopher Ferris05d08e92016-02-04 13:16:38 -080074#define DRM_VMW_PARAM_DX 12
Christopher Ferris9ce28842018-10-25 12:11:39 -070075#define DRM_VMW_PARAM_HW_CAPS2 13
76#define DRM_VMW_PARAM_SM4_1 14
Christopher Ferrisaf09c702020-06-01 20:29:29 -070077#define DRM_VMW_PARAM_SM5 15
Christopher Ferris1ed55342022-03-22 16:06:25 -070078#define DRM_VMW_PARAM_GL43 16
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070079enum drm_vmw_handle_type {
Tao Baod7db5942015-01-28 10:07:51 -080080 DRM_VMW_HANDLE_LEGACY = 0,
Tao Baod7db5942015-01-28 10:07:51 -080081 DRM_VMW_HANDLE_PRIME = 1
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070082};
Ben Cheng655a7c02013-10-16 16:09:24 -070083struct drm_vmw_getparam_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -070084 __u64 value;
85 __u32 param;
86 __u32 pad64;
Ben Cheng655a7c02013-10-16 16:09:24 -070087};
88struct drm_vmw_context_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -070089 __s32 cid;
90 __u32 pad64;
Ben Cheng655a7c02013-10-16 16:09:24 -070091};
92struct drm_vmw_surface_create_req {
Christopher Ferris106b3a82016-08-24 12:15:38 -070093 __u32 flags;
94 __u32 format;
95 __u32 mip_levels[DRM_VMW_MAX_SURFACE_FACES];
Christopher Ferris106b3a82016-08-24 12:15:38 -070096 __u64 size_addr;
97 __s32 shareable;
98 __s32 scanout;
Ben Cheng655a7c02013-10-16 16:09:24 -070099};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700100struct drm_vmw_surface_arg {
101 __s32 sid;
Tao Baod7db5942015-01-28 10:07:51 -0800102 enum drm_vmw_handle_type handle_type;
Ben Cheng655a7c02013-10-16 16:09:24 -0700103};
104struct drm_vmw_size {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700105 __u32 width;
106 __u32 height;
107 __u32 depth;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700108 __u32 pad64;
Ben Cheng655a7c02013-10-16 16:09:24 -0700109};
110union drm_vmw_surface_create_arg {
Tao Baod7db5942015-01-28 10:07:51 -0800111 struct drm_vmw_surface_arg rep;
112 struct drm_vmw_surface_create_req req;
Ben Cheng655a7c02013-10-16 16:09:24 -0700113};
114union drm_vmw_surface_reference_arg {
Tao Baod7db5942015-01-28 10:07:51 -0800115 struct drm_vmw_surface_create_req rep;
116 struct drm_vmw_surface_arg req;
Ben Cheng655a7c02013-10-16 16:09:24 -0700117};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800118#define DRM_VMW_EXECBUF_VERSION 2
Christopher Ferris1308ad32017-11-14 17:32:13 -0800119#define DRM_VMW_EXECBUF_FLAG_IMPORT_FENCE_FD (1 << 0)
120#define DRM_VMW_EXECBUF_FLAG_EXPORT_FENCE_FD (1 << 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700121struct drm_vmw_execbuf_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700122 __u64 commands;
123 __u32 command_size;
124 __u32 throttle_us;
125 __u64 fence_rep;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700126 __u32 version;
127 __u32 flags;
128 __u32 context_handle;
Christopher Ferris1308ad32017-11-14 17:32:13 -0800129 __s32 imported_fence_fd;
Ben Cheng655a7c02013-10-16 16:09:24 -0700130};
Ben Cheng655a7c02013-10-16 16:09:24 -0700131struct drm_vmw_fence_rep {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700132 __u32 handle;
133 __u32 mask;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700134 __u32 seqno;
135 __u32 passed_seqno;
Christopher Ferris1308ad32017-11-14 17:32:13 -0800136 __s32 fd;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700137 __s32 error;
Ben Cheng655a7c02013-10-16 16:09:24 -0700138};
Christopher Ferris9ce28842018-10-25 12:11:39 -0700139struct drm_vmw_alloc_bo_req {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700140 __u32 size;
141 __u32 pad64;
Ben Cheng655a7c02013-10-16 16:09:24 -0700142};
Christopher Ferris9ce28842018-10-25 12:11:39 -0700143#define drm_vmw_alloc_dmabuf_req drm_vmw_alloc_bo_req
144struct drm_vmw_bo_rep {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700145 __u64 map_handle;
146 __u32 handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700147 __u32 cur_gmr_id;
148 __u32 cur_gmr_offset;
149 __u32 pad64;
Ben Cheng655a7c02013-10-16 16:09:24 -0700150};
Christopher Ferris9ce28842018-10-25 12:11:39 -0700151#define drm_vmw_dmabuf_rep drm_vmw_bo_rep
152union drm_vmw_alloc_bo_arg {
153 struct drm_vmw_alloc_bo_req req;
154 struct drm_vmw_bo_rep rep;
Ben Cheng655a7c02013-10-16 16:09:24 -0700155};
Christopher Ferris9ce28842018-10-25 12:11:39 -0700156#define drm_vmw_alloc_dmabuf_arg drm_vmw_alloc_bo_arg
Ben Cheng655a7c02013-10-16 16:09:24 -0700157struct drm_vmw_rect {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700158 __s32 x;
159 __s32 y;
160 __u32 w;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700161 __u32 h;
Ben Cheng655a7c02013-10-16 16:09:24 -0700162};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800163struct drm_vmw_control_stream_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700164 __u32 stream_id;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700165 __u32 enabled;
166 __u32 flags;
167 __u32 color_key;
168 __u32 handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700169 __u32 offset;
170 __s32 format;
171 __u32 size;
172 __u32 width;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700173 __u32 height;
174 __u32 pitch[3];
175 __u32 pad64;
Tao Baod7db5942015-01-28 10:07:51 -0800176 struct drm_vmw_rect src;
177 struct drm_vmw_rect dst;
Ben Cheng655a7c02013-10-16 16:09:24 -0700178};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800179#define DRM_VMW_CURSOR_BYPASS_ALL (1 << 0)
Ben Cheng655a7c02013-10-16 16:09:24 -0700180#define DRM_VMW_CURSOR_BYPASS_FLAGS (1)
181struct drm_vmw_cursor_bypass_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700182 __u32 flags;
183 __u32 crtc_id;
184 __s32 xpos;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700185 __s32 ypos;
186 __s32 xhot;
187 __s32 yhot;
Ben Cheng655a7c02013-10-16 16:09:24 -0700188};
189struct drm_vmw_stream_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700190 __u32 stream_id;
191 __u32 pad64;
Ben Cheng655a7c02013-10-16 16:09:24 -0700192};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700193struct drm_vmw_get_3d_cap_arg {
194 __u64 buffer;
195 __u32 max_size;
196 __u32 pad64;
Ben Cheng655a7c02013-10-16 16:09:24 -0700197};
Ben Cheng655a7c02013-10-16 16:09:24 -0700198#define DRM_VMW_FENCE_FLAG_EXEC (1 << 0)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800199#define DRM_VMW_FENCE_FLAG_QUERY (1 << 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700200#define DRM_VMW_WAIT_OPTION_UNREF (1 << 0)
201struct drm_vmw_fence_wait_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700202 __u32 handle;
203 __s32 cookie_valid;
204 __u64 kernel_cookie;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700205 __u64 timeout_us;
206 __s32 lazy;
207 __s32 flags;
208 __s32 wait_options;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700209 __s32 pad64;
Ben Cheng655a7c02013-10-16 16:09:24 -0700210};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800211struct drm_vmw_fence_signaled_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700212 __u32 handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700213 __u32 flags;
214 __s32 signaled;
215 __u32 passed_seqno;
216 __u32 signaled_flags;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700217 __u32 pad64;
Ben Cheng655a7c02013-10-16 16:09:24 -0700218};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800219struct drm_vmw_fence_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700220 __u32 handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700221 __u32 pad64;
222};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800223#define DRM_VMW_EVENT_FENCE_SIGNALED 0x80000000
Ben Cheng655a7c02013-10-16 16:09:24 -0700224struct drm_vmw_event_fence {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700225 struct drm_event base;
226 __u64 user_data;
227 __u32 tv_sec;
228 __u32 tv_usec;
Ben Cheng655a7c02013-10-16 16:09:24 -0700229};
Ben Cheng655a7c02013-10-16 16:09:24 -0700230#define DRM_VMW_FE_FLAG_REQ_TIME (1 << 0)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800231struct drm_vmw_fence_event_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700232 __u64 fence_rep;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700233 __u64 user_data;
234 __u32 handle;
235 __u32 flags;
Ben Cheng655a7c02013-10-16 16:09:24 -0700236};
237struct drm_vmw_present_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700238 __u32 fb_id;
239 __u32 sid;
240 __s32 dest_x;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700241 __s32 dest_y;
242 __u64 clips_ptr;
243 __u32 num_clips;
244 __u32 pad64;
Ben Cheng655a7c02013-10-16 16:09:24 -0700245};
Ben Cheng655a7c02013-10-16 16:09:24 -0700246struct drm_vmw_present_readback_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700247 __u32 fb_id;
248 __u32 num_clips;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700249 __u64 clips_ptr;
250 __u64 fence_rep;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800251};
Ben Cheng655a7c02013-10-16 16:09:24 -0700252struct drm_vmw_update_layout_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700253 __u32 num_outputs;
254 __u32 pad64;
255 __u64 rects;
Christopher Ferris38062f92014-07-09 15:33:25 -0700256};
257enum drm_vmw_shader_type {
Tao Baod7db5942015-01-28 10:07:51 -0800258 drm_vmw_shader_type_vs = 0,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800259 drm_vmw_shader_type_ps,
Christopher Ferris38062f92014-07-09 15:33:25 -0700260};
261struct drm_vmw_shader_create_arg {
Tao Baod7db5942015-01-28 10:07:51 -0800262 enum drm_vmw_shader_type shader_type;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700263 __u32 size;
264 __u32 buffer_handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700265 __u32 shader_handle;
266 __u64 offset;
Christopher Ferris38062f92014-07-09 15:33:25 -0700267};
268struct drm_vmw_shader_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700269 __u32 handle;
270 __u32 pad64;
Christopher Ferris38062f92014-07-09 15:33:25 -0700271};
272enum drm_vmw_surface_flags {
Tao Baod7db5942015-01-28 10:07:51 -0800273 drm_vmw_surface_flag_shareable = (1 << 0),
274 drm_vmw_surface_flag_scanout = (1 << 1),
Christopher Ferrisd32ca142020-02-04 16:16:51 -0800275 drm_vmw_surface_flag_create_buffer = (1 << 2),
276 drm_vmw_surface_flag_coherent = (1 << 3),
Christopher Ferris38062f92014-07-09 15:33:25 -0700277};
278struct drm_vmw_gb_surface_create_req {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700279 __u32 svga3d_flags;
280 __u32 format;
281 __u32 mip_levels;
Tao Baod7db5942015-01-28 10:07:51 -0800282 enum drm_vmw_surface_flags drm_surface_flags;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700283 __u32 multisample_count;
284 __u32 autogen_filter;
285 __u32 buffer_handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700286 __u32 array_size;
Tao Baod7db5942015-01-28 10:07:51 -0800287 struct drm_vmw_size base_size;
Christopher Ferris38062f92014-07-09 15:33:25 -0700288};
289struct drm_vmw_gb_surface_create_rep {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700290 __u32 handle;
291 __u32 backup_size;
292 __u32 buffer_handle;
293 __u32 buffer_size;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700294 __u64 buffer_map_handle;
Christopher Ferris38062f92014-07-09 15:33:25 -0700295};
Christopher Ferris38062f92014-07-09 15:33:25 -0700296union drm_vmw_gb_surface_create_arg {
Tao Baod7db5942015-01-28 10:07:51 -0800297 struct drm_vmw_gb_surface_create_rep rep;
298 struct drm_vmw_gb_surface_create_req req;
Christopher Ferris38062f92014-07-09 15:33:25 -0700299};
Christopher Ferris38062f92014-07-09 15:33:25 -0700300struct drm_vmw_gb_surface_ref_rep {
Tao Baod7db5942015-01-28 10:07:51 -0800301 struct drm_vmw_gb_surface_create_req creq;
302 struct drm_vmw_gb_surface_create_rep crep;
Christopher Ferris38062f92014-07-09 15:33:25 -0700303};
Christopher Ferris38062f92014-07-09 15:33:25 -0700304union drm_vmw_gb_surface_reference_arg {
Tao Baod7db5942015-01-28 10:07:51 -0800305 struct drm_vmw_gb_surface_ref_rep rep;
306 struct drm_vmw_surface_arg req;
Christopher Ferris38062f92014-07-09 15:33:25 -0700307};
Christopher Ferris38062f92014-07-09 15:33:25 -0700308enum drm_vmw_synccpu_flags {
Tao Baod7db5942015-01-28 10:07:51 -0800309 drm_vmw_synccpu_read = (1 << 0),
310 drm_vmw_synccpu_write = (1 << 1),
311 drm_vmw_synccpu_dontblock = (1 << 2),
Tao Baod7db5942015-01-28 10:07:51 -0800312 drm_vmw_synccpu_allow_cs = (1 << 3)
Christopher Ferris38062f92014-07-09 15:33:25 -0700313};
314enum drm_vmw_synccpu_op {
Tao Baod7db5942015-01-28 10:07:51 -0800315 drm_vmw_synccpu_grab,
Tao Baod7db5942015-01-28 10:07:51 -0800316 drm_vmw_synccpu_release
Christopher Ferris38062f92014-07-09 15:33:25 -0700317};
318struct drm_vmw_synccpu_arg {
Tao Baod7db5942015-01-28 10:07:51 -0800319 enum drm_vmw_synccpu_op op;
Tao Baod7db5942015-01-28 10:07:51 -0800320 enum drm_vmw_synccpu_flags flags;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700321 __u32 handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700322 __u32 pad64;
323};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800324enum drm_vmw_extended_context {
325 drm_vmw_context_legacy,
326 drm_vmw_context_dx
327};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800328union drm_vmw_extended_context_arg {
329 enum drm_vmw_extended_context req;
330 struct drm_vmw_context_arg rep;
331};
Christopher Ferris525ce912017-07-26 13:12:53 -0700332struct drm_vmw_handle_close_arg {
333 __u32 handle;
334 __u32 pad64;
335};
Christopher Ferris9ce28842018-10-25 12:11:39 -0700336#define drm_vmw_unref_dmabuf_arg drm_vmw_handle_close_arg
337enum drm_vmw_surface_version {
Christopher Ferrisaf09c702020-06-01 20:29:29 -0700338 drm_vmw_gb_surface_v1,
Christopher Ferris9ce28842018-10-25 12:11:39 -0700339};
340struct drm_vmw_gb_surface_create_ext_req {
341 struct drm_vmw_gb_surface_create_req base;
342 enum drm_vmw_surface_version version;
Christopher Ferrisaf09c702020-06-01 20:29:29 -0700343 __u32 svga3d_flags_upper_32_bits;
344 __u32 multisample_pattern;
345 __u32 quality_level;
346 __u32 buffer_byte_stride;
347 __u32 must_be_zero;
Christopher Ferris9ce28842018-10-25 12:11:39 -0700348};
349union drm_vmw_gb_surface_create_ext_arg {
350 struct drm_vmw_gb_surface_create_rep rep;
351 struct drm_vmw_gb_surface_create_ext_req req;
352};
353struct drm_vmw_gb_surface_ref_ext_rep {
354 struct drm_vmw_gb_surface_create_ext_req creq;
355 struct drm_vmw_gb_surface_create_rep crep;
356};
357union drm_vmw_gb_surface_reference_ext_arg {
358 struct drm_vmw_gb_surface_ref_ext_rep rep;
359 struct drm_vmw_surface_arg req;
360};
Christopher Ferrisbb9fcb42020-04-06 11:38:04 -0700361struct drm_vmw_msg_arg {
362 __u64 send;
363 __u64 receive;
364 __s32 send_only;
365 __u32 receive_len;
366};
Christopher Ferris2abfa9e2021-11-01 16:26:06 -0700367struct drm_vmw_mksstat_add_arg {
368 __u64 stat;
369 __u64 info;
370 __u64 strs;
371 __u64 stat_len;
372 __u64 info_len;
373 __u64 strs_len;
374 __u64 description;
375 __u64 id;
376};
377struct drm_vmw_mksstat_remove_arg {
378 __u64 id;
379};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700380#ifdef __cplusplus
Christopher Ferris48fe0ae2019-01-10 15:59:33 -0800381}
Christopher Ferris106b3a82016-08-24 12:15:38 -0700382#endif
Christopher Ferris38062f92014-07-09 15:33:25 -0700383#endif