~ubuntu-branches/debian/experimental/linux-tools/experimental

« back to all changes in this revision

Viewing changes to include/uapi/drm/drm.h

  • Committer: Package Import Robot
  • Author(s): Ben Hutchings
  • Date: 2014-02-02 16:57:49 UTC
  • mfrom: (1.1.10) (0.1.21 sid)
  • Revision ID: package-import@ubuntu.com-20140202165749-tw94o9t1t0a8txk6
Tags: 3.13-1~exp2
Merge changes from sid up to 3.12.6-3

Show diffs side-by-side

added added

removed removed

Lines of Context:
611
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
624
/** DRM_IOCTL_GET_CAP ioctl argument type */
615
625
struct drm_get_cap {
616
626
        __u64 capability;
617
627
        __u64 value;
618
628
};
619
629
 
 
630
/**
 
631
 * DRM_CLIENT_CAP_STEREO_3D
 
632
 *
 
633
 * if set to 1, the DRM core will expose the stereo 3D capabilities of the
 
634
 * monitor by advertising the supported 3D layouts in the flags of struct
 
635
 * drm_mode_modeinfo.
 
636
 */
 
637
#define DRM_CLIENT_CAP_STEREO_3D        1
 
638
 
 
639
/** DRM_IOCTL_SET_CLIENT_CAP ioctl argument type */
 
640
struct drm_set_client_cap {
 
641
        __u64 capability;
 
642
        __u64 value;
 
643
};
 
644
 
620
645
#define DRM_CLOEXEC O_CLOEXEC
621
646
struct drm_prime_handle {
622
647
        __u32 handle;
649
674
#define DRM_IOCTL_GEM_FLINK             DRM_IOWR(0x0a, struct drm_gem_flink)
650
675
#define DRM_IOCTL_GEM_OPEN              DRM_IOWR(0x0b, struct drm_gem_open)
651
676
#define DRM_IOCTL_GET_CAP               DRM_IOWR(0x0c, struct drm_get_cap)
 
677
#define DRM_IOCTL_SET_CLIENT_CAP        DRM_IOW( 0x0d, struct drm_set_client_cap)
652
678
 
653
679
#define DRM_IOCTL_SET_UNIQUE            DRM_IOW( 0x10, struct drm_unique)
654
680
#define DRM_IOCTL_AUTH_MAGIC            DRM_IOW( 0x11, struct drm_auth)
774
800
        __u32 reserved;
775
801
};
776
802
 
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
803
/* typedef area */
789
804
#ifndef __KERNEL__
790
805
typedef struct drm_clip_rect drm_clip_rect_t;