logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

vmwgfx_drm.h (37609B)


  1. /* SPDX-License-Identifier: (GPL-2.0 WITH Linux-syscall-note) OR MIT */
  2. /**************************************************************************
  3. *
  4. * Copyright © 2009-2023 VMware, Inc., Palo Alto, CA., USA
  5. * All Rights Reserved.
  6. *
  7. * Permission is hereby granted, free of charge, to any person obtaining a
  8. * copy of this software and associated documentation files (the
  9. * "Software"), to deal in the Software without restriction, including
  10. * without limitation the rights to use, copy, modify, merge, publish,
  11. * distribute, sub license, and/or sell copies of the Software, and to
  12. * permit persons to whom the Software is furnished to do so, subject to
  13. * the following conditions:
  14. *
  15. * The above copyright notice and this permission notice (including the
  16. * next paragraph) shall be included in all copies or substantial portions
  17. * of the Software.
  18. *
  19. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  20. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  21. * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
  22. * THE COPYRIGHT HOLDERS, AUTHORS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM,
  23. * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  24. * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  25. * USE OR OTHER DEALINGS IN THE SOFTWARE.
  26. *
  27. **************************************************************************/
  28. #ifndef __VMWGFX_DRM_H__
  29. #define __VMWGFX_DRM_H__
  30. #include "drm.h"
  31. #if defined(__cplusplus)
  32. extern "C" {
  33. #endif
  34. #define DRM_VMW_MAX_SURFACE_FACES 6
  35. #define DRM_VMW_MAX_MIP_LEVELS 24
  36. #define DRM_VMW_GET_PARAM 0
  37. #define DRM_VMW_ALLOC_DMABUF 1
  38. #define DRM_VMW_ALLOC_BO 1
  39. #define DRM_VMW_UNREF_DMABUF 2
  40. #define DRM_VMW_HANDLE_CLOSE 2
  41. #define DRM_VMW_CURSOR_BYPASS 3
  42. /* guarded by DRM_VMW_PARAM_NUM_STREAMS != 0*/
  43. #define DRM_VMW_CONTROL_STREAM 4
  44. #define DRM_VMW_CLAIM_STREAM 5
  45. #define DRM_VMW_UNREF_STREAM 6
  46. /* guarded by DRM_VMW_PARAM_3D == 1 */
  47. #define DRM_VMW_CREATE_CONTEXT 7
  48. #define DRM_VMW_UNREF_CONTEXT 8
  49. #define DRM_VMW_CREATE_SURFACE 9
  50. #define DRM_VMW_UNREF_SURFACE 10
  51. #define DRM_VMW_REF_SURFACE 11
  52. #define DRM_VMW_EXECBUF 12
  53. #define DRM_VMW_GET_3D_CAP 13
  54. #define DRM_VMW_FENCE_WAIT 14
  55. #define DRM_VMW_FENCE_SIGNALED 15
  56. #define DRM_VMW_FENCE_UNREF 16
  57. #define DRM_VMW_FENCE_EVENT 17
  58. #define DRM_VMW_PRESENT 18
  59. #define DRM_VMW_PRESENT_READBACK 19
  60. #define DRM_VMW_UPDATE_LAYOUT 20
  61. #define DRM_VMW_CREATE_SHADER 21
  62. #define DRM_VMW_UNREF_SHADER 22
  63. #define DRM_VMW_GB_SURFACE_CREATE 23
  64. #define DRM_VMW_GB_SURFACE_REF 24
  65. #define DRM_VMW_SYNCCPU 25
  66. #define DRM_VMW_CREATE_EXTENDED_CONTEXT 26
  67. #define DRM_VMW_GB_SURFACE_CREATE_EXT 27
  68. #define DRM_VMW_GB_SURFACE_REF_EXT 28
  69. #define DRM_VMW_MSG 29
  70. #define DRM_VMW_MKSSTAT_RESET 30
  71. #define DRM_VMW_MKSSTAT_ADD 31
  72. #define DRM_VMW_MKSSTAT_REMOVE 32
  73. /*************************************************************************/
  74. /**
  75. * DRM_VMW_GET_PARAM - get device information.
  76. *
  77. * DRM_VMW_PARAM_FIFO_OFFSET:
  78. * Offset to use to map the first page of the FIFO read-only.
  79. * The fifo is mapped using the mmap() system call on the drm device.
  80. *
  81. * DRM_VMW_PARAM_OVERLAY_IOCTL:
  82. * Does the driver support the overlay ioctl.
  83. *
  84. * DRM_VMW_PARAM_SM4_1
  85. * SM4_1 support is enabled.
  86. *
  87. * DRM_VMW_PARAM_SM5
  88. * SM5 support is enabled.
  89. *
  90. * DRM_VMW_PARAM_GL43
  91. * SM5.1+GL4.3 support is enabled.
  92. *
  93. * DRM_VMW_PARAM_DEVICE_ID
  94. * PCI ID of the underlying SVGA device.
  95. */
  96. #define DRM_VMW_PARAM_NUM_STREAMS 0
  97. #define DRM_VMW_PARAM_NUM_FREE_STREAMS 1
  98. #define DRM_VMW_PARAM_3D 2
  99. #define DRM_VMW_PARAM_HW_CAPS 3
  100. #define DRM_VMW_PARAM_FIFO_CAPS 4
  101. #define DRM_VMW_PARAM_MAX_FB_SIZE 5
  102. #define DRM_VMW_PARAM_FIFO_HW_VERSION 6
  103. #define DRM_VMW_PARAM_MAX_SURF_MEMORY 7
  104. #define DRM_VMW_PARAM_3D_CAPS_SIZE 8
  105. #define DRM_VMW_PARAM_MAX_MOB_MEMORY 9
  106. #define DRM_VMW_PARAM_MAX_MOB_SIZE 10
  107. #define DRM_VMW_PARAM_SCREEN_TARGET 11
  108. #define DRM_VMW_PARAM_DX 12
  109. #define DRM_VMW_PARAM_HW_CAPS2 13
  110. #define DRM_VMW_PARAM_SM4_1 14
  111. #define DRM_VMW_PARAM_SM5 15
  112. #define DRM_VMW_PARAM_GL43 16
  113. #define DRM_VMW_PARAM_DEVICE_ID 17
  114. /**
  115. * enum drm_vmw_handle_type - handle type for ref ioctls
  116. *
  117. */
  118. enum drm_vmw_handle_type {
  119. DRM_VMW_HANDLE_LEGACY = 0,
  120. DRM_VMW_HANDLE_PRIME = 1
  121. };
  122. /**
  123. * struct drm_vmw_getparam_arg
  124. *
  125. * @value: Returned value. //Out
  126. * @param: Parameter to query. //In.
  127. *
  128. * Argument to the DRM_VMW_GET_PARAM Ioctl.
  129. */
  130. struct drm_vmw_getparam_arg {
  131. __u64 value;
  132. __u32 param;
  133. __u32 pad64;
  134. };
  135. /*************************************************************************/
  136. /**
  137. * DRM_VMW_CREATE_CONTEXT - Create a host context.
  138. *
  139. * Allocates a device unique context id, and queues a create context command
  140. * for the host. Does not wait for host completion.
  141. */
  142. /**
  143. * struct drm_vmw_context_arg
  144. *
  145. * @cid: Device unique context ID.
  146. *
  147. * Output argument to the DRM_VMW_CREATE_CONTEXT Ioctl.
  148. * Input argument to the DRM_VMW_UNREF_CONTEXT Ioctl.
  149. */
  150. struct drm_vmw_context_arg {
  151. __s32 cid;
  152. __u32 pad64;
  153. };
  154. /*************************************************************************/
  155. /**
  156. * DRM_VMW_UNREF_CONTEXT - Create a host context.
  157. *
  158. * Frees a global context id, and queues a destroy host command for the host.
  159. * Does not wait for host completion. The context ID can be used directly
  160. * in the command stream and shows up as the same context ID on the host.
  161. */
  162. /*************************************************************************/
  163. /**
  164. * DRM_VMW_CREATE_SURFACE - Create a host suface.
  165. *
  166. * Allocates a device unique surface id, and queues a create surface command
  167. * for the host. Does not wait for host completion. The surface ID can be
  168. * used directly in the command stream and shows up as the same surface
  169. * ID on the host.
  170. */
  171. /**
  172. * struct drm_wmv_surface_create_req
  173. *
  174. * @flags: Surface flags as understood by the host.
  175. * @format: Surface format as understood by the host.
  176. * @mip_levels: Number of mip levels for each face.
  177. * An unused face should have 0 encoded.
  178. * @size_addr: Address of a user-space array of sruct drm_vmw_size
  179. * cast to an __u64 for 32-64 bit compatibility.
  180. * The size of the array should equal the total number of mipmap levels.
  181. * @shareable: Boolean whether other clients (as identified by file descriptors)
  182. * may reference this surface.
  183. * @scanout: Boolean whether the surface is intended to be used as a
  184. * scanout.
  185. *
  186. * Input data to the DRM_VMW_CREATE_SURFACE Ioctl.
  187. * Output data from the DRM_VMW_REF_SURFACE Ioctl.
  188. */
  189. struct drm_vmw_surface_create_req {
  190. __u32 flags;
  191. __u32 format;
  192. __u32 mip_levels[DRM_VMW_MAX_SURFACE_FACES];
  193. __u64 size_addr;
  194. __s32 shareable;
  195. __s32 scanout;
  196. };
  197. /**
  198. * struct drm_wmv_surface_arg
  199. *
  200. * @sid: Surface id of created surface or surface to destroy or reference.
  201. * @handle_type: Handle type for DRM_VMW_REF_SURFACE Ioctl.
  202. *
  203. * Output data from the DRM_VMW_CREATE_SURFACE Ioctl.
  204. * Input argument to the DRM_VMW_UNREF_SURFACE Ioctl.
  205. * Input argument to the DRM_VMW_REF_SURFACE Ioctl.
  206. */
  207. struct drm_vmw_surface_arg {
  208. __s32 sid;
  209. enum drm_vmw_handle_type handle_type;
  210. };
  211. /**
  212. * struct drm_vmw_size ioctl.
  213. *
  214. * @width - mip level width
  215. * @height - mip level height
  216. * @depth - mip level depth
  217. *
  218. * Description of a mip level.
  219. * Input data to the DRM_WMW_CREATE_SURFACE Ioctl.
  220. */
  221. struct drm_vmw_size {
  222. __u32 width;
  223. __u32 height;
  224. __u32 depth;
  225. __u32 pad64;
  226. };
  227. /**
  228. * union drm_vmw_surface_create_arg
  229. *
  230. * @rep: Output data as described above.
  231. * @req: Input data as described above.
  232. *
  233. * Argument to the DRM_VMW_CREATE_SURFACE Ioctl.
  234. */
  235. union drm_vmw_surface_create_arg {
  236. struct drm_vmw_surface_arg rep;
  237. struct drm_vmw_surface_create_req req;
  238. };
  239. /*************************************************************************/
  240. /**
  241. * DRM_VMW_REF_SURFACE - Reference a host surface.
  242. *
  243. * Puts a reference on a host surface with a give sid, as previously
  244. * returned by the DRM_VMW_CREATE_SURFACE ioctl.
  245. * A reference will make sure the surface isn't destroyed while we hold
  246. * it and will allow the calling client to use the surface ID in the command
  247. * stream.
  248. *
  249. * On successful return, the Ioctl returns the surface information given
  250. * in the DRM_VMW_CREATE_SURFACE ioctl.
  251. */
  252. /**
  253. * union drm_vmw_surface_reference_arg
  254. *
  255. * @rep: Output data as described above.
  256. * @req: Input data as described above.
  257. *
  258. * Argument to the DRM_VMW_REF_SURFACE Ioctl.
  259. */
  260. union drm_vmw_surface_reference_arg {
  261. struct drm_vmw_surface_create_req rep;
  262. struct drm_vmw_surface_arg req;
  263. };
  264. /*************************************************************************/
  265. /**
  266. * DRM_VMW_UNREF_SURFACE - Unreference a host surface.
  267. *
  268. * Clear a reference previously put on a host surface.
  269. * When all references are gone, including the one implicitly placed
  270. * on creation,
  271. * a destroy surface command will be queued for the host.
  272. * Does not wait for completion.
  273. */
  274. /*************************************************************************/
  275. /**
  276. * DRM_VMW_EXECBUF
  277. *
  278. * Submit a command buffer for execution on the host, and return a
  279. * fence seqno that when signaled, indicates that the command buffer has
  280. * executed.
  281. */
  282. /**
  283. * struct drm_vmw_execbuf_arg
  284. *
  285. * @commands: User-space address of a command buffer cast to an __u64.
  286. * @command-size: Size in bytes of the command buffer.
  287. * @throttle-us: Sleep until software is less than @throttle_us
  288. * microseconds ahead of hardware. The driver may round this value
  289. * to the nearest kernel tick.
  290. * @fence_rep: User-space address of a struct drm_vmw_fence_rep cast to an
  291. * __u64.
  292. * @version: Allows expanding the execbuf ioctl parameters without breaking
  293. * backwards compatibility, since user-space will always tell the kernel
  294. * which version it uses.
  295. * @flags: Execbuf flags.
  296. * @imported_fence_fd: FD for a fence imported from another device
  297. *
  298. * Argument to the DRM_VMW_EXECBUF Ioctl.
  299. */
  300. #define DRM_VMW_EXECBUF_VERSION 2
  301. #define DRM_VMW_EXECBUF_FLAG_IMPORT_FENCE_FD (1 << 0)
  302. #define DRM_VMW_EXECBUF_FLAG_EXPORT_FENCE_FD (1 << 1)
  303. struct drm_vmw_execbuf_arg {
  304. __u64 commands;
  305. __u32 command_size;
  306. __u32 throttle_us;
  307. __u64 fence_rep;
  308. __u32 version;
  309. __u32 flags;
  310. __u32 context_handle;
  311. __s32 imported_fence_fd;
  312. };
  313. /**
  314. * struct drm_vmw_fence_rep
  315. *
  316. * @handle: Fence object handle for fence associated with a command submission.
  317. * @mask: Fence flags relevant for this fence object.
  318. * @seqno: Fence sequence number in fifo. A fence object with a lower
  319. * seqno will signal the EXEC flag before a fence object with a higher
  320. * seqno. This can be used by user-space to avoid kernel calls to determine
  321. * whether a fence has signaled the EXEC flag. Note that @seqno will
  322. * wrap at 32-bit.
  323. * @passed_seqno: The highest seqno number processed by the hardware
  324. * so far. This can be used to mark user-space fence objects as signaled, and
  325. * to determine whether a fence seqno might be stale.
  326. * @fd: FD associated with the fence, -1 if not exported
  327. * @error: This member should've been set to -EFAULT on submission.
  328. * The following actions should be take on completion:
  329. * error == -EFAULT: Fence communication failed. The host is synchronized.
  330. * Use the last fence id read from the FIFO fence register.
  331. * error != 0 && error != -EFAULT:
  332. * Fence submission failed. The host is synchronized. Use the fence_seq member.
  333. * error == 0: All is OK, The host may not be synchronized.
  334. * Use the fence_seq member.
  335. *
  336. * Input / Output data to the DRM_VMW_EXECBUF Ioctl.
  337. */
  338. struct drm_vmw_fence_rep {
  339. __u32 handle;
  340. __u32 mask;
  341. __u32 seqno;
  342. __u32 passed_seqno;
  343. __s32 fd;
  344. __s32 error;
  345. };
  346. /*************************************************************************/
  347. /**
  348. * DRM_VMW_ALLOC_BO
  349. *
  350. * Allocate a buffer object that is visible also to the host.
  351. * NOTE: The buffer is
  352. * identified by a handle and an offset, which are private to the guest, but
  353. * useable in the command stream. The guest kernel may translate these
  354. * and patch up the command stream accordingly. In the future, the offset may
  355. * be zero at all times, or it may disappear from the interface before it is
  356. * fixed.
  357. *
  358. * The buffer object may stay user-space mapped in the guest at all times,
  359. * and is thus suitable for sub-allocation.
  360. *
  361. * Buffer objects are mapped using the mmap() syscall on the drm device.
  362. */
  363. /**
  364. * struct drm_vmw_alloc_bo_req
  365. *
  366. * @size: Required minimum size of the buffer.
  367. *
  368. * Input data to the DRM_VMW_ALLOC_BO Ioctl.
  369. */
  370. struct drm_vmw_alloc_bo_req {
  371. __u32 size;
  372. __u32 pad64;
  373. };
  374. #define drm_vmw_alloc_dmabuf_req drm_vmw_alloc_bo_req
  375. /**
  376. * struct drm_vmw_bo_rep
  377. *
  378. * @map_handle: Offset to use in the mmap() call used to map the buffer.
  379. * @handle: Handle unique to this buffer. Used for unreferencing.
  380. * @cur_gmr_id: GMR id to use in the command stream when this buffer is
  381. * referenced. See not above.
  382. * @cur_gmr_offset: Offset to use in the command stream when this buffer is
  383. * referenced. See note above.
  384. *
  385. * Output data from the DRM_VMW_ALLOC_BO Ioctl.
  386. */
  387. struct drm_vmw_bo_rep {
  388. __u64 map_handle;
  389. __u32 handle;
  390. __u32 cur_gmr_id;
  391. __u32 cur_gmr_offset;
  392. __u32 pad64;
  393. };
  394. #define drm_vmw_dmabuf_rep drm_vmw_bo_rep
  395. /**
  396. * union drm_vmw_alloc_bo_arg
  397. *
  398. * @req: Input data as described above.
  399. * @rep: Output data as described above.
  400. *
  401. * Argument to the DRM_VMW_ALLOC_BO Ioctl.
  402. */
  403. union drm_vmw_alloc_bo_arg {
  404. struct drm_vmw_alloc_bo_req req;
  405. struct drm_vmw_bo_rep rep;
  406. };
  407. #define drm_vmw_alloc_dmabuf_arg drm_vmw_alloc_bo_arg
  408. /*************************************************************************/
  409. /**
  410. * DRM_VMW_CONTROL_STREAM - Control overlays, aka streams.
  411. *
  412. * This IOCTL controls the overlay units of the svga device.
  413. * The SVGA overlay units does not work like regular hardware units in
  414. * that they do not automaticaly read back the contents of the given dma
  415. * buffer. But instead only read back for each call to this ioctl, and
  416. * at any point between this call being made and a following call that
  417. * either changes the buffer or disables the stream.
  418. */
  419. /**
  420. * struct drm_vmw_rect
  421. *
  422. * Defines a rectangle. Used in the overlay ioctl to define
  423. * source and destination rectangle.
  424. */
  425. struct drm_vmw_rect {
  426. __s32 x;
  427. __s32 y;
  428. __u32 w;
  429. __u32 h;
  430. };
  431. /**
  432. * struct drm_vmw_control_stream_arg
  433. *
  434. * @stream_id: Stearm to control
  435. * @enabled: If false all following arguments are ignored.
  436. * @handle: Handle to buffer for getting data from.
  437. * @format: Format of the overlay as understood by the host.
  438. * @width: Width of the overlay.
  439. * @height: Height of the overlay.
  440. * @size: Size of the overlay in bytes.
  441. * @pitch: Array of pitches, the two last are only used for YUV12 formats.
  442. * @offset: Offset from start of dma buffer to overlay.
  443. * @src: Source rect, must be within the defined area above.
  444. * @dst: Destination rect, x and y may be negative.
  445. *
  446. * Argument to the DRM_VMW_CONTROL_STREAM Ioctl.
  447. */
  448. struct drm_vmw_control_stream_arg {
  449. __u32 stream_id;
  450. __u32 enabled;
  451. __u32 flags;
  452. __u32 color_key;
  453. __u32 handle;
  454. __u32 offset;
  455. __s32 format;
  456. __u32 size;
  457. __u32 width;
  458. __u32 height;
  459. __u32 pitch[3];
  460. __u32 pad64;
  461. struct drm_vmw_rect src;
  462. struct drm_vmw_rect dst;
  463. };
  464. /*************************************************************************/
  465. /**
  466. * DRM_VMW_CURSOR_BYPASS - Give extra information about cursor bypass.
  467. *
  468. */
  469. #define DRM_VMW_CURSOR_BYPASS_ALL (1 << 0)
  470. #define DRM_VMW_CURSOR_BYPASS_FLAGS (1)
  471. /**
  472. * struct drm_vmw_cursor_bypass_arg
  473. *
  474. * @flags: Flags.
  475. * @crtc_id: Crtc id, only used if DMR_CURSOR_BYPASS_ALL isn't passed.
  476. * @xpos: X position of cursor.
  477. * @ypos: Y position of cursor.
  478. * @xhot: X hotspot.
  479. * @yhot: Y hotspot.
  480. *
  481. * Argument to the DRM_VMW_CURSOR_BYPASS Ioctl.
  482. */
  483. struct drm_vmw_cursor_bypass_arg {
  484. __u32 flags;
  485. __u32 crtc_id;
  486. __s32 xpos;
  487. __s32 ypos;
  488. __s32 xhot;
  489. __s32 yhot;
  490. };
  491. /*************************************************************************/
  492. /**
  493. * DRM_VMW_CLAIM_STREAM - Claim a single stream.
  494. */
  495. /**
  496. * struct drm_vmw_context_arg
  497. *
  498. * @stream_id: Device unique context ID.
  499. *
  500. * Output argument to the DRM_VMW_CREATE_CONTEXT Ioctl.
  501. * Input argument to the DRM_VMW_UNREF_CONTEXT Ioctl.
  502. */
  503. struct drm_vmw_stream_arg {
  504. __u32 stream_id;
  505. __u32 pad64;
  506. };
  507. /*************************************************************************/
  508. /**
  509. * DRM_VMW_UNREF_STREAM - Unclaim a stream.
  510. *
  511. * Return a single stream that was claimed by this process. Also makes
  512. * sure that the stream has been stopped.
  513. */
  514. /*************************************************************************/
  515. /**
  516. * DRM_VMW_GET_3D_CAP
  517. *
  518. * Read 3D capabilities from the FIFO
  519. *
  520. */
  521. /**
  522. * struct drm_vmw_get_3d_cap_arg
  523. *
  524. * @buffer: Pointer to a buffer for capability data, cast to an __u64
  525. * @size: Max size to copy
  526. *
  527. * Input argument to the DRM_VMW_GET_3D_CAP_IOCTL
  528. * ioctls.
  529. */
  530. struct drm_vmw_get_3d_cap_arg {
  531. __u64 buffer;
  532. __u32 max_size;
  533. __u32 pad64;
  534. };
  535. /*************************************************************************/
  536. /**
  537. * DRM_VMW_FENCE_WAIT
  538. *
  539. * Waits for a fence object to signal. The wait is interruptible, so that
  540. * signals may be delivered during the interrupt. The wait may timeout,
  541. * in which case the calls returns -EBUSY. If the wait is restarted,
  542. * that is restarting without resetting @cookie_valid to zero,
  543. * the timeout is computed from the first call.
  544. *
  545. * The flags argument to the DRM_VMW_FENCE_WAIT ioctl indicates what to wait
  546. * on:
  547. * DRM_VMW_FENCE_FLAG_EXEC: All commands ahead of the fence in the command
  548. * stream
  549. * have executed.
  550. * DRM_VMW_FENCE_FLAG_QUERY: All query results resulting from query finish
  551. * commands
  552. * in the buffer given to the EXECBUF ioctl returning the fence object handle
  553. * are available to user-space.
  554. *
  555. * DRM_VMW_WAIT_OPTION_UNREF: If this wait option is given, and the
  556. * fenc wait ioctl returns 0, the fence object has been unreferenced after
  557. * the wait.
  558. */
  559. #define DRM_VMW_FENCE_FLAG_EXEC (1 << 0)
  560. #define DRM_VMW_FENCE_FLAG_QUERY (1 << 1)
  561. #define DRM_VMW_WAIT_OPTION_UNREF (1 << 0)
  562. /**
  563. * struct drm_vmw_fence_wait_arg
  564. *
  565. * @handle: Fence object handle as returned by the DRM_VMW_EXECBUF ioctl.
  566. * @cookie_valid: Must be reset to 0 on first call. Left alone on restart.
  567. * @kernel_cookie: Set to 0 on first call. Left alone on restart.
  568. * @timeout_us: Wait timeout in microseconds. 0 for indefinite timeout.
  569. * @lazy: Set to 1 if timing is not critical. Allow more than a kernel tick
  570. * before returning.
  571. * @flags: Fence flags to wait on.
  572. * @wait_options: Options that control the behaviour of the wait ioctl.
  573. *
  574. * Input argument to the DRM_VMW_FENCE_WAIT ioctl.
  575. */
  576. struct drm_vmw_fence_wait_arg {
  577. __u32 handle;
  578. __s32 cookie_valid;
  579. __u64 kernel_cookie;
  580. __u64 timeout_us;
  581. __s32 lazy;
  582. __s32 flags;
  583. __s32 wait_options;
  584. __s32 pad64;
  585. };
  586. /*************************************************************************/
  587. /**
  588. * DRM_VMW_FENCE_SIGNALED
  589. *
  590. * Checks if a fence object is signaled..
  591. */
  592. /**
  593. * struct drm_vmw_fence_signaled_arg
  594. *
  595. * @handle: Fence object handle as returned by the DRM_VMW_EXECBUF ioctl.
  596. * @flags: Fence object flags input to DRM_VMW_FENCE_SIGNALED ioctl
  597. * @signaled: Out: Flags signaled.
  598. * @sequence: Out: Highest sequence passed so far. Can be used to signal the
  599. * EXEC flag of user-space fence objects.
  600. *
  601. * Input/Output argument to the DRM_VMW_FENCE_SIGNALED and DRM_VMW_FENCE_UNREF
  602. * ioctls.
  603. */
  604. struct drm_vmw_fence_signaled_arg {
  605. __u32 handle;
  606. __u32 flags;
  607. __s32 signaled;
  608. __u32 passed_seqno;
  609. __u32 signaled_flags;
  610. __u32 pad64;
  611. };
  612. /*************************************************************************/
  613. /**
  614. * DRM_VMW_FENCE_UNREF
  615. *
  616. * Unreferences a fence object, and causes it to be destroyed if there are no
  617. * other references to it.
  618. *
  619. */
  620. /**
  621. * struct drm_vmw_fence_arg
  622. *
  623. * @handle: Fence object handle as returned by the DRM_VMW_EXECBUF ioctl.
  624. *
  625. * Input/Output argument to the DRM_VMW_FENCE_UNREF ioctl..
  626. */
  627. struct drm_vmw_fence_arg {
  628. __u32 handle;
  629. __u32 pad64;
  630. };
  631. /*************************************************************************/
  632. /**
  633. * DRM_VMW_FENCE_EVENT
  634. *
  635. * Queues an event on a fence to be delivered on the drm character device
  636. * when the fence has signaled the DRM_VMW_FENCE_FLAG_EXEC flag.
  637. * Optionally the approximate time when the fence signaled is
  638. * given by the event.
  639. */
  640. /*
  641. * The event type
  642. */
  643. #define DRM_VMW_EVENT_FENCE_SIGNALED 0x80000000
  644. struct drm_vmw_event_fence {
  645. struct drm_event base;
  646. __u64 user_data;
  647. __u32 tv_sec;
  648. __u32 tv_usec;
  649. };
  650. /*
  651. * Flags that may be given to the command.
  652. */
  653. /* Request fence signaled time on the event. */
  654. #define DRM_VMW_FE_FLAG_REQ_TIME (1 << 0)
  655. /**
  656. * struct drm_vmw_fence_event_arg
  657. *
  658. * @fence_rep: Pointer to fence_rep structure cast to __u64 or 0 if
  659. * the fence is not supposed to be referenced by user-space.
  660. * @user_info: Info to be delivered with the event.
  661. * @handle: Attach the event to this fence only.
  662. * @flags: A set of flags as defined above.
  663. */
  664. struct drm_vmw_fence_event_arg {
  665. __u64 fence_rep;
  666. __u64 user_data;
  667. __u32 handle;
  668. __u32 flags;
  669. };
  670. /*************************************************************************/
  671. /**
  672. * DRM_VMW_PRESENT
  673. *
  674. * Executes an SVGA present on a given fb for a given surface. The surface
  675. * is placed on the framebuffer. Cliprects are given relative to the given
  676. * point (the point disignated by dest_{x|y}).
  677. *
  678. */
  679. /**
  680. * struct drm_vmw_present_arg
  681. * @fb_id: framebuffer id to present / read back from.
  682. * @sid: Surface id to present from.
  683. * @dest_x: X placement coordinate for surface.
  684. * @dest_y: Y placement coordinate for surface.
  685. * @clips_ptr: Pointer to an array of clip rects cast to an __u64.
  686. * @num_clips: Number of cliprects given relative to the framebuffer origin,
  687. * in the same coordinate space as the frame buffer.
  688. * @pad64: Unused 64-bit padding.
  689. *
  690. * Input argument to the DRM_VMW_PRESENT ioctl.
  691. */
  692. struct drm_vmw_present_arg {
  693. __u32 fb_id;
  694. __u32 sid;
  695. __s32 dest_x;
  696. __s32 dest_y;
  697. __u64 clips_ptr;
  698. __u32 num_clips;
  699. __u32 pad64;
  700. };
  701. /*************************************************************************/
  702. /**
  703. * DRM_VMW_PRESENT_READBACK
  704. *
  705. * Executes an SVGA present readback from a given fb to the dma buffer
  706. * currently bound as the fb. If there is no dma buffer bound to the fb,
  707. * an error will be returned.
  708. *
  709. */
  710. /**
  711. * struct drm_vmw_present_arg
  712. * @fb_id: fb_id to present / read back from.
  713. * @num_clips: Number of cliprects.
  714. * @clips_ptr: Pointer to an array of clip rects cast to an __u64.
  715. * @fence_rep: Pointer to a struct drm_vmw_fence_rep, cast to an __u64.
  716. * If this member is NULL, then the ioctl should not return a fence.
  717. */
  718. struct drm_vmw_present_readback_arg {
  719. __u32 fb_id;
  720. __u32 num_clips;
  721. __u64 clips_ptr;
  722. __u64 fence_rep;
  723. };
  724. /*************************************************************************/
  725. /**
  726. * DRM_VMW_UPDATE_LAYOUT - Update layout
  727. *
  728. * Updates the preferred modes and connection status for connectors. The
  729. * command consists of one drm_vmw_update_layout_arg pointing to an array
  730. * of num_outputs drm_vmw_rect's.
  731. */
  732. /**
  733. * struct drm_vmw_update_layout_arg
  734. *
  735. * @num_outputs: number of active connectors
  736. * @rects: pointer to array of drm_vmw_rect cast to an __u64
  737. *
  738. * Input argument to the DRM_VMW_UPDATE_LAYOUT Ioctl.
  739. */
  740. struct drm_vmw_update_layout_arg {
  741. __u32 num_outputs;
  742. __u32 pad64;
  743. __u64 rects;
  744. };
  745. /*************************************************************************/
  746. /**
  747. * DRM_VMW_CREATE_SHADER - Create shader
  748. *
  749. * Creates a shader and optionally binds it to a dma buffer containing
  750. * the shader byte-code.
  751. */
  752. /**
  753. * enum drm_vmw_shader_type - Shader types
  754. */
  755. enum drm_vmw_shader_type {
  756. drm_vmw_shader_type_vs = 0,
  757. drm_vmw_shader_type_ps,
  758. };
  759. /**
  760. * struct drm_vmw_shader_create_arg
  761. *
  762. * @shader_type: Shader type of the shader to create.
  763. * @size: Size of the byte-code in bytes.
  764. * where the shader byte-code starts
  765. * @buffer_handle: Buffer handle identifying the buffer containing the
  766. * shader byte-code
  767. * @shader_handle: On successful completion contains a handle that
  768. * can be used to subsequently identify the shader.
  769. * @offset: Offset in bytes into the buffer given by @buffer_handle,
  770. *
  771. * Input / Output argument to the DRM_VMW_CREATE_SHADER Ioctl.
  772. */
  773. struct drm_vmw_shader_create_arg {
  774. enum drm_vmw_shader_type shader_type;
  775. __u32 size;
  776. __u32 buffer_handle;
  777. __u32 shader_handle;
  778. __u64 offset;
  779. };
  780. /*************************************************************************/
  781. /**
  782. * DRM_VMW_UNREF_SHADER - Unreferences a shader
  783. *
  784. * Destroys a user-space reference to a shader, optionally destroying
  785. * it.
  786. */
  787. /**
  788. * struct drm_vmw_shader_arg
  789. *
  790. * @handle: Handle identifying the shader to destroy.
  791. *
  792. * Input argument to the DRM_VMW_UNREF_SHADER ioctl.
  793. */
  794. struct drm_vmw_shader_arg {
  795. __u32 handle;
  796. __u32 pad64;
  797. };
  798. /*************************************************************************/
  799. /**
  800. * DRM_VMW_GB_SURFACE_CREATE - Create a host guest-backed surface.
  801. *
  802. * Allocates a surface handle and queues a create surface command
  803. * for the host on the first use of the surface. The surface ID can
  804. * be used as the surface ID in commands referencing the surface.
  805. */
  806. /**
  807. * enum drm_vmw_surface_flags
  808. *
  809. * @drm_vmw_surface_flag_shareable: Deprecated - all userspace surfaces are
  810. * shareable.
  811. * @drm_vmw_surface_flag_scanout: Whether the surface is a scanout
  812. * surface.
  813. * @drm_vmw_surface_flag_create_buffer: Create a backup buffer if none is
  814. * given.
  815. * @drm_vmw_surface_flag_coherent: Back surface with coherent memory.
  816. */
  817. enum drm_vmw_surface_flags {
  818. drm_vmw_surface_flag_shareable = (1 << 0),
  819. drm_vmw_surface_flag_scanout = (1 << 1),
  820. drm_vmw_surface_flag_create_buffer = (1 << 2),
  821. drm_vmw_surface_flag_coherent = (1 << 3),
  822. };
  823. /**
  824. * struct drm_vmw_gb_surface_create_req
  825. *
  826. * @svga3d_flags: SVGA3d surface flags for the device.
  827. * @format: SVGA3d format.
  828. * @mip_level: Number of mip levels for all faces.
  829. * @drm_surface_flags Flags as described above.
  830. * @multisample_count Future use. Set to 0.
  831. * @autogen_filter Future use. Set to 0.
  832. * @buffer_handle Buffer handle of backup buffer. SVGA3D_INVALID_ID
  833. * if none.
  834. * @base_size Size of the base mip level for all faces.
  835. * @array_size Must be zero for non-DX hardware, and if non-zero
  836. * svga3d_flags must have proper bind flags setup.
  837. *
  838. * Input argument to the DRM_VMW_GB_SURFACE_CREATE Ioctl.
  839. * Part of output argument for the DRM_VMW_GB_SURFACE_REF Ioctl.
  840. */
  841. struct drm_vmw_gb_surface_create_req {
  842. __u32 svga3d_flags;
  843. __u32 format;
  844. __u32 mip_levels;
  845. enum drm_vmw_surface_flags drm_surface_flags;
  846. __u32 multisample_count;
  847. __u32 autogen_filter;
  848. __u32 buffer_handle;
  849. __u32 array_size;
  850. struct drm_vmw_size base_size;
  851. };
  852. /**
  853. * struct drm_vmw_gb_surface_create_rep
  854. *
  855. * @handle: Surface handle.
  856. * @backup_size: Size of backup buffers for this surface.
  857. * @buffer_handle: Handle of backup buffer. SVGA3D_INVALID_ID if none.
  858. * @buffer_size: Actual size of the buffer identified by
  859. * @buffer_handle
  860. * @buffer_map_handle: Offset into device address space for the buffer
  861. * identified by @buffer_handle.
  862. *
  863. * Part of output argument for the DRM_VMW_GB_SURFACE_REF ioctl.
  864. * Output argument for the DRM_VMW_GB_SURFACE_CREATE ioctl.
  865. */
  866. struct drm_vmw_gb_surface_create_rep {
  867. __u32 handle;
  868. __u32 backup_size;
  869. __u32 buffer_handle;
  870. __u32 buffer_size;
  871. __u64 buffer_map_handle;
  872. };
  873. /**
  874. * union drm_vmw_gb_surface_create_arg
  875. *
  876. * @req: Input argument as described above.
  877. * @rep: Output argument as described above.
  878. *
  879. * Argument to the DRM_VMW_GB_SURFACE_CREATE ioctl.
  880. */
  881. union drm_vmw_gb_surface_create_arg {
  882. struct drm_vmw_gb_surface_create_rep rep;
  883. struct drm_vmw_gb_surface_create_req req;
  884. };
  885. /*************************************************************************/
  886. /**
  887. * DRM_VMW_GB_SURFACE_REF - Reference a host surface.
  888. *
  889. * Puts a reference on a host surface with a given handle, as previously
  890. * returned by the DRM_VMW_GB_SURFACE_CREATE ioctl.
  891. * A reference will make sure the surface isn't destroyed while we hold
  892. * it and will allow the calling client to use the surface handle in
  893. * the command stream.
  894. *
  895. * On successful return, the Ioctl returns the surface information given
  896. * to and returned from the DRM_VMW_GB_SURFACE_CREATE ioctl.
  897. */
  898. /**
  899. * struct drm_vmw_gb_surface_reference_arg
  900. *
  901. * @creq: The data used as input when the surface was created, as described
  902. * above at "struct drm_vmw_gb_surface_create_req"
  903. * @crep: Additional data output when the surface was created, as described
  904. * above at "struct drm_vmw_gb_surface_create_rep"
  905. *
  906. * Output Argument to the DRM_VMW_GB_SURFACE_REF ioctl.
  907. */
  908. struct drm_vmw_gb_surface_ref_rep {
  909. struct drm_vmw_gb_surface_create_req creq;
  910. struct drm_vmw_gb_surface_create_rep crep;
  911. };
  912. /**
  913. * union drm_vmw_gb_surface_reference_arg
  914. *
  915. * @req: Input data as described above at "struct drm_vmw_surface_arg"
  916. * @rep: Output data as described above at "struct drm_vmw_gb_surface_ref_rep"
  917. *
  918. * Argument to the DRM_VMW_GB_SURFACE_REF Ioctl.
  919. */
  920. union drm_vmw_gb_surface_reference_arg {
  921. struct drm_vmw_gb_surface_ref_rep rep;
  922. struct drm_vmw_surface_arg req;
  923. };
  924. /*************************************************************************/
  925. /**
  926. * DRM_VMW_SYNCCPU - Sync a DMA buffer / MOB for CPU access.
  927. *
  928. * Idles any previously submitted GPU operations on the buffer and
  929. * by default blocks command submissions that reference the buffer.
  930. * If the file descriptor used to grab a blocking CPU sync is closed, the
  931. * cpu sync is released.
  932. * The flags argument indicates how the grab / release operation should be
  933. * performed:
  934. */
  935. /**
  936. * enum drm_vmw_synccpu_flags - Synccpu flags:
  937. *
  938. * @drm_vmw_synccpu_read: Sync for read. If sync is done for read only, it's a
  939. * hint to the kernel to allow command submissions that references the buffer
  940. * for read-only.
  941. * @drm_vmw_synccpu_write: Sync for write. Block all command submissions
  942. * referencing this buffer.
  943. * @drm_vmw_synccpu_dontblock: Dont wait for GPU idle, but rather return
  944. * -EBUSY should the buffer be busy.
  945. * @drm_vmw_synccpu_allow_cs: Allow command submission that touches the buffer
  946. * while the buffer is synced for CPU. This is similar to the GEM bo idle
  947. * behavior.
  948. */
  949. enum drm_vmw_synccpu_flags {
  950. drm_vmw_synccpu_read = (1 << 0),
  951. drm_vmw_synccpu_write = (1 << 1),
  952. drm_vmw_synccpu_dontblock = (1 << 2),
  953. drm_vmw_synccpu_allow_cs = (1 << 3)
  954. };
  955. /**
  956. * enum drm_vmw_synccpu_op - Synccpu operations:
  957. *
  958. * @drm_vmw_synccpu_grab: Grab the buffer for CPU operations
  959. * @drm_vmw_synccpu_release: Release a previous grab.
  960. */
  961. enum drm_vmw_synccpu_op {
  962. drm_vmw_synccpu_grab,
  963. drm_vmw_synccpu_release
  964. };
  965. /**
  966. * struct drm_vmw_synccpu_arg
  967. *
  968. * @op: The synccpu operation as described above.
  969. * @handle: Handle identifying the buffer object.
  970. * @flags: Flags as described above.
  971. */
  972. struct drm_vmw_synccpu_arg {
  973. enum drm_vmw_synccpu_op op;
  974. enum drm_vmw_synccpu_flags flags;
  975. __u32 handle;
  976. __u32 pad64;
  977. };
  978. /*************************************************************************/
  979. /**
  980. * DRM_VMW_CREATE_EXTENDED_CONTEXT - Create a host context.
  981. *
  982. * Allocates a device unique context id, and queues a create context command
  983. * for the host. Does not wait for host completion.
  984. */
  985. enum drm_vmw_extended_context {
  986. drm_vmw_context_legacy,
  987. drm_vmw_context_dx
  988. };
  989. /**
  990. * union drm_vmw_extended_context_arg
  991. *
  992. * @req: Context type.
  993. * @rep: Context identifier.
  994. *
  995. * Argument to the DRM_VMW_CREATE_EXTENDED_CONTEXT Ioctl.
  996. */
  997. union drm_vmw_extended_context_arg {
  998. enum drm_vmw_extended_context req;
  999. struct drm_vmw_context_arg rep;
  1000. };
  1001. /*************************************************************************/
  1002. /*
  1003. * DRM_VMW_HANDLE_CLOSE - Close a user-space handle and release its
  1004. * underlying resource.
  1005. *
  1006. * Note that this ioctl is overlaid on the deprecated DRM_VMW_UNREF_DMABUF
  1007. * Ioctl.
  1008. */
  1009. /**
  1010. * struct drm_vmw_handle_close_arg
  1011. *
  1012. * @handle: Handle to close.
  1013. *
  1014. * Argument to the DRM_VMW_HANDLE_CLOSE Ioctl.
  1015. */
  1016. struct drm_vmw_handle_close_arg {
  1017. __u32 handle;
  1018. __u32 pad64;
  1019. };
  1020. #define drm_vmw_unref_dmabuf_arg drm_vmw_handle_close_arg
  1021. /*************************************************************************/
  1022. /**
  1023. * DRM_VMW_GB_SURFACE_CREATE_EXT - Create a host guest-backed surface.
  1024. *
  1025. * Allocates a surface handle and queues a create surface command
  1026. * for the host on the first use of the surface. The surface ID can
  1027. * be used as the surface ID in commands referencing the surface.
  1028. *
  1029. * This new command extends DRM_VMW_GB_SURFACE_CREATE by adding version
  1030. * parameter and 64 bit svga flag.
  1031. */
  1032. /**
  1033. * enum drm_vmw_surface_version
  1034. *
  1035. * @drm_vmw_surface_gb_v1: Corresponds to current gb surface format with
  1036. * svga3d surface flags split into 2, upper half and lower half.
  1037. */
  1038. enum drm_vmw_surface_version {
  1039. drm_vmw_gb_surface_v1,
  1040. };
  1041. /**
  1042. * struct drm_vmw_gb_surface_create_ext_req
  1043. *
  1044. * @base: Surface create parameters.
  1045. * @version: Version of surface create ioctl.
  1046. * @svga3d_flags_upper_32_bits: Upper 32 bits of svga3d flags.
  1047. * @multisample_pattern: Multisampling pattern when msaa is supported.
  1048. * @quality_level: Precision settings for each sample.
  1049. * @buffer_byte_stride: Buffer byte stride.
  1050. * @must_be_zero: Reserved for future usage.
  1051. *
  1052. * Input argument to the DRM_VMW_GB_SURFACE_CREATE_EXT Ioctl.
  1053. * Part of output argument for the DRM_VMW_GB_SURFACE_REF_EXT Ioctl.
  1054. */
  1055. struct drm_vmw_gb_surface_create_ext_req {
  1056. struct drm_vmw_gb_surface_create_req base;
  1057. enum drm_vmw_surface_version version;
  1058. __u32 svga3d_flags_upper_32_bits;
  1059. __u32 multisample_pattern;
  1060. __u32 quality_level;
  1061. __u32 buffer_byte_stride;
  1062. __u32 must_be_zero;
  1063. };
  1064. /**
  1065. * union drm_vmw_gb_surface_create_ext_arg
  1066. *
  1067. * @req: Input argument as described above.
  1068. * @rep: Output argument as described above.
  1069. *
  1070. * Argument to the DRM_VMW_GB_SURFACE_CREATE_EXT ioctl.
  1071. */
  1072. union drm_vmw_gb_surface_create_ext_arg {
  1073. struct drm_vmw_gb_surface_create_rep rep;
  1074. struct drm_vmw_gb_surface_create_ext_req req;
  1075. };
  1076. /*************************************************************************/
  1077. /**
  1078. * DRM_VMW_GB_SURFACE_REF_EXT - Reference a host surface.
  1079. *
  1080. * Puts a reference on a host surface with a given handle, as previously
  1081. * returned by the DRM_VMW_GB_SURFACE_CREATE_EXT ioctl.
  1082. * A reference will make sure the surface isn't destroyed while we hold
  1083. * it and will allow the calling client to use the surface handle in
  1084. * the command stream.
  1085. *
  1086. * On successful return, the Ioctl returns the surface information given
  1087. * to and returned from the DRM_VMW_GB_SURFACE_CREATE_EXT ioctl.
  1088. */
  1089. /**
  1090. * struct drm_vmw_gb_surface_ref_ext_rep
  1091. *
  1092. * @creq: The data used as input when the surface was created, as described
  1093. * above at "struct drm_vmw_gb_surface_create_ext_req"
  1094. * @crep: Additional data output when the surface was created, as described
  1095. * above at "struct drm_vmw_gb_surface_create_rep"
  1096. *
  1097. * Output Argument to the DRM_VMW_GB_SURFACE_REF_EXT ioctl.
  1098. */
  1099. struct drm_vmw_gb_surface_ref_ext_rep {
  1100. struct drm_vmw_gb_surface_create_ext_req creq;
  1101. struct drm_vmw_gb_surface_create_rep crep;
  1102. };
  1103. /**
  1104. * union drm_vmw_gb_surface_reference_ext_arg
  1105. *
  1106. * @req: Input data as described above at "struct drm_vmw_surface_arg"
  1107. * @rep: Output data as described above at
  1108. * "struct drm_vmw_gb_surface_ref_ext_rep"
  1109. *
  1110. * Argument to the DRM_VMW_GB_SURFACE_REF Ioctl.
  1111. */
  1112. union drm_vmw_gb_surface_reference_ext_arg {
  1113. struct drm_vmw_gb_surface_ref_ext_rep rep;
  1114. struct drm_vmw_surface_arg req;
  1115. };
  1116. /**
  1117. * struct drm_vmw_msg_arg
  1118. *
  1119. * @send: Pointer to user-space msg string (null terminated).
  1120. * @receive: Pointer to user-space receive buffer.
  1121. * @send_only: Boolean whether this is only sending or receiving too.
  1122. *
  1123. * Argument to the DRM_VMW_MSG ioctl.
  1124. */
  1125. struct drm_vmw_msg_arg {
  1126. __u64 send;
  1127. __u64 receive;
  1128. __s32 send_only;
  1129. __u32 receive_len;
  1130. };
  1131. /**
  1132. * struct drm_vmw_mksstat_add_arg
  1133. *
  1134. * @stat: Pointer to user-space stat-counters array, page-aligned.
  1135. * @info: Pointer to user-space counter-infos array, page-aligned.
  1136. * @strs: Pointer to user-space stat strings, page-aligned.
  1137. * @stat_len: Length in bytes of stat-counters array.
  1138. * @info_len: Length in bytes of counter-infos array.
  1139. * @strs_len: Length in bytes of the stat strings, terminators included.
  1140. * @description: Pointer to instance descriptor string; will be truncated
  1141. * to MKS_GUEST_STAT_INSTANCE_DESC_LENGTH chars.
  1142. * @id: Output identifier of the produced record; -1 if error.
  1143. *
  1144. * Argument to the DRM_VMW_MKSSTAT_ADD ioctl.
  1145. */
  1146. struct drm_vmw_mksstat_add_arg {
  1147. __u64 stat;
  1148. __u64 info;
  1149. __u64 strs;
  1150. __u64 stat_len;
  1151. __u64 info_len;
  1152. __u64 strs_len;
  1153. __u64 description;
  1154. __u64 id;
  1155. };
  1156. /**
  1157. * struct drm_vmw_mksstat_remove_arg
  1158. *
  1159. * @id: Identifier of the record being disposed, originally obtained through
  1160. * DRM_VMW_MKSSTAT_ADD ioctl.
  1161. *
  1162. * Argument to the DRM_VMW_MKSSTAT_REMOVE ioctl.
  1163. */
  1164. struct drm_vmw_mksstat_remove_arg {
  1165. __u64 id;
  1166. };
  1167. #if defined(__cplusplus)
  1168. }
  1169. #endif
  1170. #endif