blob: f3a67e118868577c652bb7080141d4ad7b5daf0f [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 Ferrisba8d4f42014-09-03 19:56:49 -070078enum drm_vmw_handle_type {
Tao Baod7db5942015-01-28 10:07:51 -080079 DRM_VMW_HANDLE_LEGACY = 0,
Tao Baod7db5942015-01-28 10:07:51 -080080 DRM_VMW_HANDLE_PRIME = 1
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070081};
Ben Cheng655a7c02013-10-16 16:09:24 -070082struct drm_vmw_getparam_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -070083 __u64 value;
84 __u32 param;
85 __u32 pad64;
Ben Cheng655a7c02013-10-16 16:09:24 -070086};
87struct drm_vmw_context_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -070088 __s32 cid;
89 __u32 pad64;
Ben Cheng655a7c02013-10-16 16:09:24 -070090};
91struct drm_vmw_surface_create_req {
Christopher Ferris106b3a82016-08-24 12:15:38 -070092 __u32 flags;
93 __u32 format;
94 __u32 mip_levels[DRM_VMW_MAX_SURFACE_FACES];
Christopher Ferris106b3a82016-08-24 12:15:38 -070095 __u64 size_addr;
96 __s32 shareable;
97 __s32 scanout;
Ben Cheng655a7c02013-10-16 16:09:24 -070098};
Christopher Ferris106b3a82016-08-24 12:15:38 -070099struct drm_vmw_surface_arg {
100 __s32 sid;
Tao Baod7db5942015-01-28 10:07:51 -0800101 enum drm_vmw_handle_type handle_type;
Ben Cheng655a7c02013-10-16 16:09:24 -0700102};
103struct drm_vmw_size {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700104 __u32 width;
105 __u32 height;
106 __u32 depth;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700107 __u32 pad64;
Ben Cheng655a7c02013-10-16 16:09:24 -0700108};
109union drm_vmw_surface_create_arg {
Tao Baod7db5942015-01-28 10:07:51 -0800110 struct drm_vmw_surface_arg rep;
111 struct drm_vmw_surface_create_req req;
Ben Cheng655a7c02013-10-16 16:09:24 -0700112};
113union drm_vmw_surface_reference_arg {
Tao Baod7db5942015-01-28 10:07:51 -0800114 struct drm_vmw_surface_create_req rep;
115 struct drm_vmw_surface_arg req;
Ben Cheng655a7c02013-10-16 16:09:24 -0700116};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800117#define DRM_VMW_EXECBUF_VERSION 2
Christopher Ferris1308ad32017-11-14 17:32:13 -0800118#define DRM_VMW_EXECBUF_FLAG_IMPORT_FENCE_FD (1 << 0)
119#define DRM_VMW_EXECBUF_FLAG_EXPORT_FENCE_FD (1 << 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700120struct drm_vmw_execbuf_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700121 __u64 commands;
122 __u32 command_size;
123 __u32 throttle_us;
124 __u64 fence_rep;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700125 __u32 version;
126 __u32 flags;
127 __u32 context_handle;
Christopher Ferris1308ad32017-11-14 17:32:13 -0800128 __s32 imported_fence_fd;
Ben Cheng655a7c02013-10-16 16:09:24 -0700129};
Ben Cheng655a7c02013-10-16 16:09:24 -0700130struct drm_vmw_fence_rep {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700131 __u32 handle;
132 __u32 mask;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700133 __u32 seqno;
134 __u32 passed_seqno;
Christopher Ferris1308ad32017-11-14 17:32:13 -0800135 __s32 fd;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700136 __s32 error;
Ben Cheng655a7c02013-10-16 16:09:24 -0700137};
Christopher Ferris9ce28842018-10-25 12:11:39 -0700138struct drm_vmw_alloc_bo_req {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700139 __u32 size;
140 __u32 pad64;
Ben Cheng655a7c02013-10-16 16:09:24 -0700141};
Christopher Ferris9ce28842018-10-25 12:11:39 -0700142#define drm_vmw_alloc_dmabuf_req drm_vmw_alloc_bo_req
143struct drm_vmw_bo_rep {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700144 __u64 map_handle;
145 __u32 handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700146 __u32 cur_gmr_id;
147 __u32 cur_gmr_offset;
148 __u32 pad64;
Ben Cheng655a7c02013-10-16 16:09:24 -0700149};
Christopher Ferris9ce28842018-10-25 12:11:39 -0700150#define drm_vmw_dmabuf_rep drm_vmw_bo_rep
151union drm_vmw_alloc_bo_arg {
152 struct drm_vmw_alloc_bo_req req;
153 struct drm_vmw_bo_rep rep;
Ben Cheng655a7c02013-10-16 16:09:24 -0700154};
Christopher Ferris9ce28842018-10-25 12:11:39 -0700155#define drm_vmw_alloc_dmabuf_arg drm_vmw_alloc_bo_arg
Ben Cheng655a7c02013-10-16 16:09:24 -0700156struct drm_vmw_rect {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700157 __s32 x;
158 __s32 y;
159 __u32 w;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700160 __u32 h;
Ben Cheng655a7c02013-10-16 16:09:24 -0700161};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800162struct drm_vmw_control_stream_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700163 __u32 stream_id;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700164 __u32 enabled;
165 __u32 flags;
166 __u32 color_key;
167 __u32 handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700168 __u32 offset;
169 __s32 format;
170 __u32 size;
171 __u32 width;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700172 __u32 height;
173 __u32 pitch[3];
174 __u32 pad64;
Tao Baod7db5942015-01-28 10:07:51 -0800175 struct drm_vmw_rect src;
176 struct drm_vmw_rect dst;
Ben Cheng655a7c02013-10-16 16:09:24 -0700177};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800178#define DRM_VMW_CURSOR_BYPASS_ALL (1 << 0)
Ben Cheng655a7c02013-10-16 16:09:24 -0700179#define DRM_VMW_CURSOR_BYPASS_FLAGS (1)
180struct drm_vmw_cursor_bypass_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700181 __u32 flags;
182 __u32 crtc_id;
183 __s32 xpos;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700184 __s32 ypos;
185 __s32 xhot;
186 __s32 yhot;
Ben Cheng655a7c02013-10-16 16:09:24 -0700187};
188struct drm_vmw_stream_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700189 __u32 stream_id;
190 __u32 pad64;
Ben Cheng655a7c02013-10-16 16:09:24 -0700191};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700192struct drm_vmw_get_3d_cap_arg {
193 __u64 buffer;
194 __u32 max_size;
195 __u32 pad64;
Ben Cheng655a7c02013-10-16 16:09:24 -0700196};
Ben Cheng655a7c02013-10-16 16:09:24 -0700197#define DRM_VMW_FENCE_FLAG_EXEC (1 << 0)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800198#define DRM_VMW_FENCE_FLAG_QUERY (1 << 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700199#define DRM_VMW_WAIT_OPTION_UNREF (1 << 0)
200struct drm_vmw_fence_wait_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700201 __u32 handle;
202 __s32 cookie_valid;
203 __u64 kernel_cookie;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700204 __u64 timeout_us;
205 __s32 lazy;
206 __s32 flags;
207 __s32 wait_options;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700208 __s32 pad64;
Ben Cheng655a7c02013-10-16 16:09:24 -0700209};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800210struct drm_vmw_fence_signaled_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700211 __u32 handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700212 __u32 flags;
213 __s32 signaled;
214 __u32 passed_seqno;
215 __u32 signaled_flags;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700216 __u32 pad64;
Ben Cheng655a7c02013-10-16 16:09:24 -0700217};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800218struct drm_vmw_fence_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700219 __u32 handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700220 __u32 pad64;
221};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800222#define DRM_VMW_EVENT_FENCE_SIGNALED 0x80000000
Ben Cheng655a7c02013-10-16 16:09:24 -0700223struct drm_vmw_event_fence {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700224 struct drm_event base;
225 __u64 user_data;
226 __u32 tv_sec;
227 __u32 tv_usec;
Ben Cheng655a7c02013-10-16 16:09:24 -0700228};
Ben Cheng655a7c02013-10-16 16:09:24 -0700229#define DRM_VMW_FE_FLAG_REQ_TIME (1 << 0)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800230struct drm_vmw_fence_event_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700231 __u64 fence_rep;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700232 __u64 user_data;
233 __u32 handle;
234 __u32 flags;
Ben Cheng655a7c02013-10-16 16:09:24 -0700235};
236struct drm_vmw_present_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700237 __u32 fb_id;
238 __u32 sid;
239 __s32 dest_x;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700240 __s32 dest_y;
241 __u64 clips_ptr;
242 __u32 num_clips;
243 __u32 pad64;
Ben Cheng655a7c02013-10-16 16:09:24 -0700244};
Ben Cheng655a7c02013-10-16 16:09:24 -0700245struct drm_vmw_present_readback_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700246 __u32 fb_id;
247 __u32 num_clips;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700248 __u64 clips_ptr;
249 __u64 fence_rep;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800250};
Ben Cheng655a7c02013-10-16 16:09:24 -0700251struct drm_vmw_update_layout_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700252 __u32 num_outputs;
253 __u32 pad64;
254 __u64 rects;
Christopher Ferris38062f92014-07-09 15:33:25 -0700255};
256enum drm_vmw_shader_type {
Tao Baod7db5942015-01-28 10:07:51 -0800257 drm_vmw_shader_type_vs = 0,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800258 drm_vmw_shader_type_ps,
Christopher Ferris38062f92014-07-09 15:33:25 -0700259};
260struct drm_vmw_shader_create_arg {
Tao Baod7db5942015-01-28 10:07:51 -0800261 enum drm_vmw_shader_type shader_type;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700262 __u32 size;
263 __u32 buffer_handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700264 __u32 shader_handle;
265 __u64 offset;
Christopher Ferris38062f92014-07-09 15:33:25 -0700266};
267struct drm_vmw_shader_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700268 __u32 handle;
269 __u32 pad64;
Christopher Ferris38062f92014-07-09 15:33:25 -0700270};
271enum drm_vmw_surface_flags {
Tao Baod7db5942015-01-28 10:07:51 -0800272 drm_vmw_surface_flag_shareable = (1 << 0),
273 drm_vmw_surface_flag_scanout = (1 << 1),
Christopher Ferrisd32ca142020-02-04 16:16:51 -0800274 drm_vmw_surface_flag_create_buffer = (1 << 2),
275 drm_vmw_surface_flag_coherent = (1 << 3),
Christopher Ferris38062f92014-07-09 15:33:25 -0700276};
277struct drm_vmw_gb_surface_create_req {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700278 __u32 svga3d_flags;
279 __u32 format;
280 __u32 mip_levels;
Tao Baod7db5942015-01-28 10:07:51 -0800281 enum drm_vmw_surface_flags drm_surface_flags;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700282 __u32 multisample_count;
283 __u32 autogen_filter;
284 __u32 buffer_handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700285 __u32 array_size;
Tao Baod7db5942015-01-28 10:07:51 -0800286 struct drm_vmw_size base_size;
Christopher Ferris38062f92014-07-09 15:33:25 -0700287};
288struct drm_vmw_gb_surface_create_rep {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700289 __u32 handle;
290 __u32 backup_size;
291 __u32 buffer_handle;
292 __u32 buffer_size;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700293 __u64 buffer_map_handle;
Christopher Ferris38062f92014-07-09 15:33:25 -0700294};
Christopher Ferris38062f92014-07-09 15:33:25 -0700295union drm_vmw_gb_surface_create_arg {
Tao Baod7db5942015-01-28 10:07:51 -0800296 struct drm_vmw_gb_surface_create_rep rep;
297 struct drm_vmw_gb_surface_create_req req;
Christopher Ferris38062f92014-07-09 15:33:25 -0700298};
Christopher Ferris38062f92014-07-09 15:33:25 -0700299struct drm_vmw_gb_surface_ref_rep {
Tao Baod7db5942015-01-28 10:07:51 -0800300 struct drm_vmw_gb_surface_create_req creq;
301 struct drm_vmw_gb_surface_create_rep crep;
Christopher Ferris38062f92014-07-09 15:33:25 -0700302};
Christopher Ferris38062f92014-07-09 15:33:25 -0700303union drm_vmw_gb_surface_reference_arg {
Tao Baod7db5942015-01-28 10:07:51 -0800304 struct drm_vmw_gb_surface_ref_rep rep;
305 struct drm_vmw_surface_arg req;
Christopher Ferris38062f92014-07-09 15:33:25 -0700306};
Christopher Ferris38062f92014-07-09 15:33:25 -0700307enum drm_vmw_synccpu_flags {
Tao Baod7db5942015-01-28 10:07:51 -0800308 drm_vmw_synccpu_read = (1 << 0),
309 drm_vmw_synccpu_write = (1 << 1),
310 drm_vmw_synccpu_dontblock = (1 << 2),
Tao Baod7db5942015-01-28 10:07:51 -0800311 drm_vmw_synccpu_allow_cs = (1 << 3)
Christopher Ferris38062f92014-07-09 15:33:25 -0700312};
313enum drm_vmw_synccpu_op {
Tao Baod7db5942015-01-28 10:07:51 -0800314 drm_vmw_synccpu_grab,
Tao Baod7db5942015-01-28 10:07:51 -0800315 drm_vmw_synccpu_release
Christopher Ferris38062f92014-07-09 15:33:25 -0700316};
317struct drm_vmw_synccpu_arg {
Tao Baod7db5942015-01-28 10:07:51 -0800318 enum drm_vmw_synccpu_op op;
Tao Baod7db5942015-01-28 10:07:51 -0800319 enum drm_vmw_synccpu_flags flags;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700320 __u32 handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700321 __u32 pad64;
322};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800323enum drm_vmw_extended_context {
324 drm_vmw_context_legacy,
325 drm_vmw_context_dx
326};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800327union drm_vmw_extended_context_arg {
328 enum drm_vmw_extended_context req;
329 struct drm_vmw_context_arg rep;
330};
Christopher Ferris525ce912017-07-26 13:12:53 -0700331struct drm_vmw_handle_close_arg {
332 __u32 handle;
333 __u32 pad64;
334};
Christopher Ferris9ce28842018-10-25 12:11:39 -0700335#define drm_vmw_unref_dmabuf_arg drm_vmw_handle_close_arg
336enum drm_vmw_surface_version {
Christopher Ferrisaf09c702020-06-01 20:29:29 -0700337 drm_vmw_gb_surface_v1,
Christopher Ferris9ce28842018-10-25 12:11:39 -0700338};
339struct drm_vmw_gb_surface_create_ext_req {
340 struct drm_vmw_gb_surface_create_req base;
341 enum drm_vmw_surface_version version;
Christopher Ferrisaf09c702020-06-01 20:29:29 -0700342 __u32 svga3d_flags_upper_32_bits;
343 __u32 multisample_pattern;
344 __u32 quality_level;
345 __u32 buffer_byte_stride;
346 __u32 must_be_zero;
Christopher Ferris9ce28842018-10-25 12:11:39 -0700347};
348union drm_vmw_gb_surface_create_ext_arg {
349 struct drm_vmw_gb_surface_create_rep rep;
350 struct drm_vmw_gb_surface_create_ext_req req;
351};
352struct drm_vmw_gb_surface_ref_ext_rep {
353 struct drm_vmw_gb_surface_create_ext_req creq;
354 struct drm_vmw_gb_surface_create_rep crep;
355};
356union drm_vmw_gb_surface_reference_ext_arg {
357 struct drm_vmw_gb_surface_ref_ext_rep rep;
358 struct drm_vmw_surface_arg req;
359};
Christopher Ferrisbb9fcb42020-04-06 11:38:04 -0700360struct drm_vmw_msg_arg {
361 __u64 send;
362 __u64 receive;
363 __s32 send_only;
364 __u32 receive_len;
365};
Christopher Ferris2abfa9e2021-11-01 16:26:06 -0700366struct drm_vmw_mksstat_add_arg {
367 __u64 stat;
368 __u64 info;
369 __u64 strs;
370 __u64 stat_len;
371 __u64 info_len;
372 __u64 strs_len;
373 __u64 description;
374 __u64 id;
375};
376struct drm_vmw_mksstat_remove_arg {
377 __u64 id;
378};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700379#ifdef __cplusplus
Christopher Ferris48fe0ae2019-01-10 15:59:33 -0800380}
Christopher Ferris106b3a82016-08-24 12:15:38 -0700381#endif
Christopher Ferris38062f92014-07-09 15:33:25 -0700382#endif