diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2013-09-25 11:45:20 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-10-01 01:45:26 -0400 |
commit | 1c0814fed3a558146402713028cb7114734ec172 (patch) | |
tree | 4c74029367bb8908bb7efe9bd23b7731f27244ee /include/uapi/drm | |
parent | a99b57dbc09bfff57acd8a7c20f25dfa6cb892a5 (diff) |
drm: Add a SET_CLIENT_CAP ioctl
This ioctl can be used to turn some knobs in a DRM driver. The client
can ask the DRM core for an alternate view of the reality: it can be
useful to be able to instruct the core that the DRM client can handle
new functionnality that would otherwise break current ABI.
v2: Rename to ioctl from SET_CAP to SET_CLIENT_CAP (Chris Wilson)
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Acked-by: Dave Airlie <airlied@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/uapi/drm')
-rw-r--r-- | include/uapi/drm/drm.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/uapi/drm/drm.h b/include/uapi/drm/drm.h index 1e09e8f257ba..526baed365ff 100644 --- a/include/uapi/drm/drm.h +++ b/include/uapi/drm/drm.h | |||
@@ -627,6 +627,12 @@ struct drm_get_cap { | |||
627 | __u64 value; | 627 | __u64 value; |
628 | }; | 628 | }; |
629 | 629 | ||
630 | /** DRM_IOCTL_SET_CLIENT_CAP ioctl argument type */ | ||
631 | struct drm_set_client_cap { | ||
632 | __u64 capability; | ||
633 | __u64 value; | ||
634 | }; | ||
635 | |||
630 | #define DRM_CLOEXEC O_CLOEXEC | 636 | #define DRM_CLOEXEC O_CLOEXEC |
631 | struct drm_prime_handle { | 637 | struct drm_prime_handle { |
632 | __u32 handle; | 638 | __u32 handle; |
@@ -659,6 +665,7 @@ struct drm_prime_handle { | |||
659 | #define DRM_IOCTL_GEM_FLINK DRM_IOWR(0x0a, struct drm_gem_flink) | 665 | #define DRM_IOCTL_GEM_FLINK DRM_IOWR(0x0a, struct drm_gem_flink) |
660 | #define DRM_IOCTL_GEM_OPEN DRM_IOWR(0x0b, struct drm_gem_open) | 666 | #define DRM_IOCTL_GEM_OPEN DRM_IOWR(0x0b, struct drm_gem_open) |
661 | #define DRM_IOCTL_GET_CAP DRM_IOWR(0x0c, struct drm_get_cap) | 667 | #define DRM_IOCTL_GET_CAP DRM_IOWR(0x0c, struct drm_get_cap) |
668 | #define DRM_IOCTL_SET_CLIENT_CAP DRM_IOW( 0x0d, struct drm_set_client_cap) | ||
662 | 669 | ||
663 | #define DRM_IOCTL_SET_UNIQUE DRM_IOW( 0x10, struct drm_unique) | 670 | #define DRM_IOCTL_SET_UNIQUE DRM_IOW( 0x10, struct drm_unique) |
664 | #define DRM_IOCTL_AUTH_MAGIC DRM_IOW( 0x11, struct drm_auth) | 671 | #define DRM_IOCTL_AUTH_MAGIC DRM_IOW( 0x11, struct drm_auth) |