diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2013-09-25 11:45:19 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-10-01 01:45:25 -0400 |
commit | a99b57dbc09bfff57acd8a7c20f25dfa6cb892a5 (patch) | |
tree | 7353bc16bda90f3acd062bcf0dbe3f90510dc56e | |
parent | 662c6ecbcdca1fe8a5402f6c83d98d242917a043 (diff) |
drm: Move the GET_CAP macros next to the corresponding ioctl structure
It's a tiny bit more logical to find the different capabilities you can
use with the GET_CAP ioctl next to the structure rather than putting
them at the end of the file.
v2: Tab align the litterals (David Herrmann)
v3: Make it clearer that DRM_PRIME_CAP_EXPORT/IMPORT are flags of
DRM_CAP_PRIME.
v4: Rebase on top of latest bits (DRM_CAP_ASYNC_PAGE_FLIP was
introduced)
Reviewed-by: David Herrmann <dh.herrmann@gmail.com> (for v2)
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>
-rw-r--r-- | include/uapi/drm/drm.h | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/include/uapi/drm/drm.h b/include/uapi/drm/drm.h index ece867889cc7..1e09e8f257ba 100644 --- a/include/uapi/drm/drm.h +++ b/include/uapi/drm/drm.h | |||
@@ -611,6 +611,16 @@ struct drm_gem_open { | |||
611 | __u64 size; | 611 | __u64 size; |
612 | }; | 612 | }; |
613 | 613 | ||
614 | #define DRM_CAP_DUMB_BUFFER 0x1 | ||
615 | #define DRM_CAP_VBLANK_HIGH_CRTC 0x2 | ||
616 | #define DRM_CAP_DUMB_PREFERRED_DEPTH 0x3 | ||
617 | #define DRM_CAP_DUMB_PREFER_SHADOW 0x4 | ||
618 | #define DRM_CAP_PRIME 0x5 | ||
619 | #define DRM_PRIME_CAP_IMPORT 0x1 | ||
620 | #define DRM_PRIME_CAP_EXPORT 0x2 | ||
621 | #define DRM_CAP_TIMESTAMP_MONOTONIC 0x6 | ||
622 | #define DRM_CAP_ASYNC_PAGE_FLIP 0x7 | ||
623 | |||
614 | /** DRM_IOCTL_GET_CAP ioctl argument type */ | 624 | /** DRM_IOCTL_GET_CAP ioctl argument type */ |
615 | struct drm_get_cap { | 625 | struct drm_get_cap { |
616 | __u64 capability; | 626 | __u64 capability; |
@@ -774,17 +784,6 @@ struct drm_event_vblank { | |||
774 | __u32 reserved; | 784 | __u32 reserved; |
775 | }; | 785 | }; |
776 | 786 | ||
777 | #define DRM_CAP_DUMB_BUFFER 0x1 | ||
778 | #define DRM_CAP_VBLANK_HIGH_CRTC 0x2 | ||
779 | #define DRM_CAP_DUMB_PREFERRED_DEPTH 0x3 | ||
780 | #define DRM_CAP_DUMB_PREFER_SHADOW 0x4 | ||
781 | #define DRM_CAP_PRIME 0x5 | ||
782 | #define DRM_CAP_TIMESTAMP_MONOTONIC 0x6 | ||
783 | #define DRM_CAP_ASYNC_PAGE_FLIP 0x7 | ||
784 | |||
785 | #define DRM_PRIME_CAP_IMPORT 0x1 | ||
786 | #define DRM_PRIME_CAP_EXPORT 0x2 | ||
787 | |||
788 | /* typedef area */ | 787 | /* typedef area */ |
789 | #ifndef __KERNEL__ | 788 | #ifndef __KERNEL__ |
790 | typedef struct drm_clip_rect drm_clip_rect_t; | 789 | typedef struct drm_clip_rect drm_clip_rect_t; |