Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
vmwgfx_drm.h
Go to the documentation of this file.
1 /**************************************************************************
2  *
3  * Copyright © 2009 VMware, Inc., Palo Alto, CA., USA
4  * All Rights Reserved.
5  *
6  * Permission is hereby granted, free of charge, to any person obtaining a
7  * copy of this software and associated documentation files (the
8  * "Software"), to deal in the Software without restriction, including
9  * without limitation the rights to use, copy, modify, merge, publish,
10  * distribute, sub license, and/or sell copies of the Software, and to
11  * permit persons to whom the Software is furnished to do so, subject to
12  * the following conditions:
13  *
14  * The above copyright notice and this permission notice (including the
15  * next paragraph) shall be included in all copies or substantial portions
16  * of the Software.
17  *
18  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20  * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
21  * THE COPYRIGHT HOLDERS, AUTHORS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM,
22  * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
23  * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
24  * USE OR OTHER DEALINGS IN THE SOFTWARE.
25  *
26  **************************************************************************/
27 
28 #ifndef __VMWGFX_DRM_H__
29 #define __VMWGFX_DRM_H__
30 
31 #define DRM_VMW_MAX_SURFACE_FACES 6
32 #define DRM_VMW_MAX_MIP_LEVELS 24
33 
34 
35 #define DRM_VMW_GET_PARAM 0
36 #define DRM_VMW_ALLOC_DMABUF 1
37 #define DRM_VMW_UNREF_DMABUF 2
38 #define DRM_VMW_CURSOR_BYPASS 3
39 /* guarded by DRM_VMW_PARAM_NUM_STREAMS != 0*/
40 #define DRM_VMW_CONTROL_STREAM 4
41 #define DRM_VMW_CLAIM_STREAM 5
42 #define DRM_VMW_UNREF_STREAM 6
43 /* guarded by DRM_VMW_PARAM_3D == 1 */
44 #define DRM_VMW_CREATE_CONTEXT 7
45 #define DRM_VMW_UNREF_CONTEXT 8
46 #define DRM_VMW_CREATE_SURFACE 9
47 #define DRM_VMW_UNREF_SURFACE 10
48 #define DRM_VMW_REF_SURFACE 11
49 #define DRM_VMW_EXECBUF 12
50 #define DRM_VMW_GET_3D_CAP 13
51 #define DRM_VMW_FENCE_WAIT 14
52 #define DRM_VMW_FENCE_SIGNALED 15
53 #define DRM_VMW_FENCE_UNREF 16
54 #define DRM_VMW_FENCE_EVENT 17
55 #define DRM_VMW_PRESENT 18
56 #define DRM_VMW_PRESENT_READBACK 19
57 #define DRM_VMW_UPDATE_LAYOUT 20
58 
59 /*************************************************************************/
71 #define DRM_VMW_PARAM_NUM_STREAMS 0
72 #define DRM_VMW_PARAM_NUM_FREE_STREAMS 1
73 #define DRM_VMW_PARAM_3D 2
74 #define DRM_VMW_PARAM_HW_CAPS 3
75 #define DRM_VMW_PARAM_FIFO_CAPS 4
76 #define DRM_VMW_PARAM_MAX_FB_SIZE 5
77 #define DRM_VMW_PARAM_FIFO_HW_VERSION 6
78 
92 };
93 
94 /*************************************************************************/
114 };
115 
116 /*************************************************************************/
125 /*************************************************************************/
161 };
162 
176 };
177 
189 struct drm_vmw_size {
194 };
195 
208 };
209 
210 /*************************************************************************/
236 };
237 
238 /*************************************************************************/
249 /*************************************************************************/
276 #define DRM_VMW_EXECBUF_VERSION 1
277 
285 };
286 
319 };
320 
321 /*************************************************************************/
350 };
351 
371 };
372 
385 };
386 
387 /*************************************************************************/
405 };
406 
407 /*************************************************************************/
426 struct drm_vmw_rect {
431 };
432 
454 
457 
465 
469 };
470 
471 /*************************************************************************/
477 #define DRM_VMW_CURSOR_BYPASS_ALL (1 << 0)
478 #define DRM_VMW_CURSOR_BYPASS_FLAGS (1)
479 
500 };
501 
502 /*************************************************************************/
519 };
520 
521 /*************************************************************************/
529 /*************************************************************************/
551 };
552 
553 /*************************************************************************/
578 #define DRM_VMW_FENCE_FLAG_EXEC (1 << 0)
579 #define DRM_VMW_FENCE_FLAG_QUERY (1 << 1)
580 
581 #define DRM_VMW_WAIT_OPTION_UNREF (1 << 0)
582 
607 };
608 
609 /*************************************************************************/
636 };
637 
638 /*************************************************************************/
658 };
659 
660 
661 /*************************************************************************/
671 /*
672  * The event type
673  */
674 #define DRM_VMW_EVENT_FENCE_SIGNALED 0x80000000
675 
677  struct drm_event base;
681 };
682 
683 /*
684  * Flags that may be given to the command.
685  */
686 /* Request fence signaled time on the event. */
687 #define DRM_VMW_FE_FLAG_REQ_TIME (1 << 0)
688 
703 };
704 
705 
706 /*************************************************************************/
738 };
739 
740 
741 /*************************************************************************/
765 };
766 
767 /*************************************************************************/
788 };
789 
790 #endif