Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
vmwgfx_drm.h File Reference

Go to the source code of this file.

Data Structures

struct  drm_vmw_getparam_arg
 
struct  drm_vmw_context_arg
 
struct  drm_vmw_surface_create_req
 
struct  drm_vmw_surface_arg
 
struct  drm_vmw_size
 
union  drm_vmw_surface_create_arg
 
union  drm_vmw_surface_reference_arg
 
struct  drm_vmw_execbuf_arg
 
struct  drm_vmw_fence_rep
 
struct  drm_vmw_alloc_dmabuf_req
 
struct  drm_vmw_dmabuf_rep
 
union  drm_vmw_alloc_dmabuf_arg
 
struct  drm_vmw_unref_dmabuf_arg
 
struct  drm_vmw_rect
 
struct  drm_vmw_control_stream_arg
 
struct  drm_vmw_cursor_bypass_arg
 
struct  drm_vmw_stream_arg
 
struct  drm_vmw_get_3d_cap_arg
 
struct  drm_vmw_fence_wait_arg
 
struct  drm_vmw_fence_signaled_arg
 
struct  drm_vmw_fence_arg
 
struct  drm_vmw_event_fence
 
struct  drm_vmw_fence_event_arg
 
struct  drm_vmw_present_arg
 
struct  drm_vmw_present_readback_arg
 
struct  drm_vmw_update_layout_arg
 

Macros

#define DRM_VMW_MAX_SURFACE_FACES   6
 
#define DRM_VMW_MAX_MIP_LEVELS   24
 
#define DRM_VMW_GET_PARAM   0
 
#define DRM_VMW_ALLOC_DMABUF   1
 
#define DRM_VMW_UNREF_DMABUF   2
 
#define DRM_VMW_CURSOR_BYPASS   3
 
#define DRM_VMW_CONTROL_STREAM   4
 
#define DRM_VMW_CLAIM_STREAM   5
 
#define DRM_VMW_UNREF_STREAM   6
 
#define DRM_VMW_CREATE_CONTEXT   7
 
#define DRM_VMW_UNREF_CONTEXT   8
 
#define DRM_VMW_CREATE_SURFACE   9
 
#define DRM_VMW_UNREF_SURFACE   10
 
#define DRM_VMW_REF_SURFACE   11
 
#define DRM_VMW_EXECBUF   12
 
#define DRM_VMW_GET_3D_CAP   13
 
#define DRM_VMW_FENCE_WAIT   14
 
#define DRM_VMW_FENCE_SIGNALED   15
 
#define DRM_VMW_FENCE_UNREF   16
 
#define DRM_VMW_FENCE_EVENT   17
 
#define DRM_VMW_PRESENT   18
 
#define DRM_VMW_PRESENT_READBACK   19
 
#define DRM_VMW_UPDATE_LAYOUT   20
 
#define DRM_VMW_PARAM_NUM_STREAMS   0
 
#define DRM_VMW_PARAM_NUM_FREE_STREAMS   1
 
#define DRM_VMW_PARAM_3D   2
 
#define DRM_VMW_PARAM_HW_CAPS   3
 
#define DRM_VMW_PARAM_FIFO_CAPS   4
 
#define DRM_VMW_PARAM_MAX_FB_SIZE   5
 
#define DRM_VMW_PARAM_FIFO_HW_VERSION   6
 
#define DRM_VMW_EXECBUF_VERSION   1
 
#define DRM_VMW_CURSOR_BYPASS_ALL   (1 << 0)
 
#define DRM_VMW_CURSOR_BYPASS_FLAGS   (1)
 
#define DRM_VMW_FENCE_FLAG_EXEC   (1 << 0)
 
#define DRM_VMW_FENCE_FLAG_QUERY   (1 << 1)
 
#define DRM_VMW_WAIT_OPTION_UNREF   (1 << 0)
 
#define DRM_VMW_EVENT_FENCE_SIGNALED   0x80000000
 
#define DRM_VMW_FE_FLAG_REQ_TIME   (1 << 0)
 

Macro Definition Documentation

#define DRM_VMW_ALLOC_DMABUF   1

Definition at line 36 of file vmwgfx_drm.h.

#define DRM_VMW_CLAIM_STREAM   5

Definition at line 41 of file vmwgfx_drm.h.

#define DRM_VMW_CONTROL_STREAM   4

Definition at line 40 of file vmwgfx_drm.h.

#define DRM_VMW_CREATE_CONTEXT   7

Definition at line 44 of file vmwgfx_drm.h.

#define DRM_VMW_CREATE_SURFACE   9

Definition at line 46 of file vmwgfx_drm.h.

#define DRM_VMW_CURSOR_BYPASS   3

Definition at line 38 of file vmwgfx_drm.h.

#define DRM_VMW_CURSOR_BYPASS_ALL   (1 << 0)

DRM_VMW_CURSOR_BYPASS - Give extra information about cursor bypass.

Definition at line 477 of file vmwgfx_drm.h.

#define DRM_VMW_CURSOR_BYPASS_FLAGS   (1)

Definition at line 478 of file vmwgfx_drm.h.

#define DRM_VMW_EVENT_FENCE_SIGNALED   0x80000000

DRM_VMW_FENCE_EVENT

Queues an event on a fence to be delivered on the drm character device when the fence has signaled the DRM_VMW_FENCE_FLAG_EXEC flag. Optionally the approximate time when the fence signaled is given by the event.

Definition at line 674 of file vmwgfx_drm.h.

#define DRM_VMW_EXECBUF   12

Definition at line 49 of file vmwgfx_drm.h.

#define DRM_VMW_EXECBUF_VERSION   1

DRM_VMW_UNREF_SURFACE - Unreference a host surface.

Clear a reference previously put on a host surface. When all references are gone, including the one implicitly placed on creation, a destroy surface command will be queued for the host. Does not wait for completion. DRM_VMW_EXECBUF

Submit a command buffer for execution on the host, and return a fence seqno that when signaled, indicates that the command buffer has executed. struct drm_vmw_execbuf_arg

: User-space address of a command buffer cast to an uint64_t. -size: Size in bytes of the command buffer. -us: Sleep until software is less than microseconds ahead of hardware. The driver may round this value to the nearest kernel tick. : User-space address of a struct drm_vmw_fence_rep cast to an uint64_t.

Version
: Allows expanding the execbuf ioctl parameters without breaking backwards compatibility, since user-space will always tell the kernel which version it uses. : Execbuf flags. None currently.

Argument to the DRM_VMW_EXECBUF Ioctl.

Definition at line 276 of file vmwgfx_drm.h.

#define DRM_VMW_FE_FLAG_REQ_TIME   (1 << 0)

Definition at line 687 of file vmwgfx_drm.h.

#define DRM_VMW_FENCE_EVENT   17

Definition at line 54 of file vmwgfx_drm.h.

#define DRM_VMW_FENCE_FLAG_EXEC   (1 << 0)

DRM_VMW_FENCE_WAIT

Waits for a fence object to signal. The wait is interruptible, so that signals may be delivered during the interrupt. The wait may timeout, in which case the calls returns -EBUSY. If the wait is restarted, that is restarting without resetting to zero, the timeout is computed from the first call.

The flags argument to the DRM_VMW_FENCE_WAIT ioctl indicates what to wait on: DRM_VMW_FENCE_FLAG_EXEC: All commands ahead of the fence in the command stream have executed. DRM_VMW_FENCE_FLAG_QUERY: All query results resulting from query finish commands in the buffer given to the EXECBUF ioctl returning the fence object handle are available to user-space.

DRM_VMW_WAIT_OPTION_UNREF: If this wait option is given, and the fenc wait ioctl returns 0, the fence object has been unreferenced after the wait.

Definition at line 578 of file vmwgfx_drm.h.

#define DRM_VMW_FENCE_FLAG_QUERY   (1 << 1)

Definition at line 579 of file vmwgfx_drm.h.

#define DRM_VMW_FENCE_SIGNALED   15

Definition at line 52 of file vmwgfx_drm.h.

#define DRM_VMW_FENCE_UNREF   16

Definition at line 53 of file vmwgfx_drm.h.

#define DRM_VMW_FENCE_WAIT   14

Definition at line 51 of file vmwgfx_drm.h.

#define DRM_VMW_GET_3D_CAP   13

Definition at line 50 of file vmwgfx_drm.h.

#define DRM_VMW_GET_PARAM   0

Definition at line 35 of file vmwgfx_drm.h.

#define DRM_VMW_MAX_MIP_LEVELS   24

Definition at line 32 of file vmwgfx_drm.h.

#define DRM_VMW_MAX_SURFACE_FACES   6

Definition at line 31 of file vmwgfx_drm.h.

#define DRM_VMW_PARAM_3D   2

Definition at line 73 of file vmwgfx_drm.h.

#define DRM_VMW_PARAM_FIFO_CAPS   4

Definition at line 75 of file vmwgfx_drm.h.

#define DRM_VMW_PARAM_FIFO_HW_VERSION   6

Definition at line 77 of file vmwgfx_drm.h.

#define DRM_VMW_PARAM_HW_CAPS   3

Definition at line 74 of file vmwgfx_drm.h.

#define DRM_VMW_PARAM_MAX_FB_SIZE   5

Definition at line 76 of file vmwgfx_drm.h.

#define DRM_VMW_PARAM_NUM_FREE_STREAMS   1

Definition at line 72 of file vmwgfx_drm.h.

#define DRM_VMW_PARAM_NUM_STREAMS   0

DRM_VMW_GET_PARAM - get device information.

DRM_VMW_PARAM_FIFO_OFFSET: Offset to use to map the first page of the FIFO read-only. The fifo is mapped using the mmap() system call on the drm device.

DRM_VMW_PARAM_OVERLAY_IOCTL: Does the driver support the overlay ioctl.

Definition at line 71 of file vmwgfx_drm.h.

#define DRM_VMW_PRESENT   18

Definition at line 55 of file vmwgfx_drm.h.

#define DRM_VMW_PRESENT_READBACK   19

Definition at line 56 of file vmwgfx_drm.h.

#define DRM_VMW_REF_SURFACE   11

Definition at line 48 of file vmwgfx_drm.h.

#define DRM_VMW_UNREF_CONTEXT   8

Definition at line 45 of file vmwgfx_drm.h.

#define DRM_VMW_UNREF_DMABUF   2

Definition at line 37 of file vmwgfx_drm.h.

#define DRM_VMW_UNREF_STREAM   6

Definition at line 42 of file vmwgfx_drm.h.

#define DRM_VMW_UNREF_SURFACE   10

Definition at line 47 of file vmwgfx_drm.h.

#define DRM_VMW_UPDATE_LAYOUT   20

Definition at line 57 of file vmwgfx_drm.h.

#define DRM_VMW_WAIT_OPTION_UNREF   (1 << 0)

Definition at line 581 of file vmwgfx_drm.h.