diff options
author | Jakob Bornecrantz <jakob@vmware.com> | 2011-10-04 14:13:26 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-10-05 05:17:17 -0400 |
commit | 2fcd5a73bfd5341876f9ea6b5adcc1dd814226d4 (patch) | |
tree | 88aa55c24bc1fe620a0753ab1598fe2727b19352 /drivers/gpu/drm/vmwgfx/vmwgfx_kms.h | |
parent | 44031d25ccface0ae647d664347ae3d3a8016f5f (diff) |
vmwgfx: Add present and readback ioctls
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_kms.h')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_kms.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h index ee16a06e4ca1..08d2630ac3a7 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h | |||
@@ -47,6 +47,7 @@ struct vmw_framebuffer { | |||
47 | struct drm_framebuffer base; | 47 | struct drm_framebuffer base; |
48 | int (*pin)(struct vmw_framebuffer *fb); | 48 | int (*pin)(struct vmw_framebuffer *fb); |
49 | int (*unpin)(struct vmw_framebuffer *fb); | 49 | int (*unpin)(struct vmw_framebuffer *fb); |
50 | bool dmabuf; | ||
50 | }; | 51 | }; |
51 | 52 | ||
52 | 53 | ||
@@ -95,6 +96,8 @@ struct vmw_display_unit { | |||
95 | struct drm_display_mode *pref_mode; | 96 | struct drm_display_mode *pref_mode; |
96 | }; | 97 | }; |
97 | 98 | ||
99 | #define vmw_crtc_to_du(x) \ | ||
100 | container_of(x, struct vmw_display_unit, crtc) | ||
98 | #define vmw_connector_to_du(x) \ | 101 | #define vmw_connector_to_du(x) \ |
99 | container_of(x, struct vmw_display_unit, connector) | 102 | container_of(x, struct vmw_display_unit, connector) |
100 | 103 | ||