diff options
| author | Dave Airlie <airlied@redhat.com> | 2013-10-15 04:04:08 -0400 |
|---|---|---|
| committer | Dave Airlie <airlied@redhat.com> | 2013-10-15 04:04:08 -0400 |
| commit | 5259c522a0b2e827b402c2993b8088071a87d7e2 (patch) | |
| tree | 812608fd6efcfe81096bd51b1ec1c2a4167385f6 /include/uapi | |
| parent | 6aba5b6cf098ba305fc31b23cc14114a16768d22 (diff) | |
| parent | 967ad7f1489da7babbe0746f81c283458ecd3f84 (diff) | |
Merge branch 'drm-intel-next' of git://people.freedesktop.org/~danvet/drm-intel into drm-next
New feature pile for 3.12! Highlights:
- Stereo/3d support for hdmi from Damien, both the drm core bits and
the i915 integration.
- Manual boost/deboost logic for gpu turbo (Chris)
- Fixed up clock readout support for vlv (Chris).
- Tons of little fixes and improvements for vlv in general (Chon Minng
Lee and Jesse Barnes).
- Power well support for the legacy vga plane (Ville).
- DP impromevents from Jani.
- Improvements to the Haswell modeset sequence (Ville+Paulo).
- Haswell DDI improvements, using the VBT for some tuning values and
to check the configuration (Paulo).
- Tons of other small improvements and fixups.
* 'drm-intel-next' of git://people.freedesktop.org/~danvet/drm-intel: (92 commits)
drm/i915: Use adjusted_mode in the fastboot hack to disable pfit
drm/i915: Add a more detailed comment about the set_base() fastboot hack
drm/i915/vlv: Turn off power gate for BIOS-less system.
drm/i915/vlv: reset DPIO on load and resume v2
drm/i915: Simplify PSR debugfs
drm/i915: Tweak RPS thresholds to more aggressively downclock
drm/i915: Boost RPS frequency for CPU stalls
drm/i915: Fix __wait_seqno to use true infinite timeouts
drm/i915: Add some missing steps to i915_driver_load error path
drm/i915: Clean up the ring scaling calculations
drm/i915: Don't populate pipe_src_{w,h} multiple times
drm/i915: implement the Haswell mode set sequence workaround
drm/i915: Disable/enable planes as the first/last thing during modeset on HSW
i915/vlv: untangle integrated clock source handling v4
drm/i915: fix typo s/PatherPoint/PantherPoint/
drm/i915: Make intel_resume_power_well() static
drm/i915: destroy connector sysfs files earlier
drm/i915/dp: do not write DP_TRAINING_PATTERN_SET all the time
drm/i915/dp: retry i2c-over-aux seven times on AUX DEFER
drm/i915/vlv: reduce GT FIFO error info to a debug message
...
Diffstat (limited to 'include/uapi')
| -rw-r--r-- | include/uapi/drm/drm.h | 37 | ||||
| -rw-r--r-- | include/uapi/drm/drm_mode.h | 43 |
2 files changed, 55 insertions, 25 deletions
diff --git a/include/uapi/drm/drm.h b/include/uapi/drm/drm.h index ece867889cc7..9b24d65fed72 100644 --- a/include/uapi/drm/drm.h +++ b/include/uapi/drm/drm.h | |||
| @@ -611,12 +611,37 @@ 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; |
| 617 | __u64 value; | 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 | #define DRM_CLOEXEC O_CLOEXEC | 645 | #define DRM_CLOEXEC O_CLOEXEC |
| 621 | struct drm_prime_handle { | 646 | struct drm_prime_handle { |
| 622 | __u32 handle; | 647 | __u32 handle; |
| @@ -649,6 +674,7 @@ struct drm_prime_handle { | |||
| 649 | #define DRM_IOCTL_GEM_FLINK DRM_IOWR(0x0a, struct drm_gem_flink) | 674 | #define DRM_IOCTL_GEM_FLINK DRM_IOWR(0x0a, struct drm_gem_flink) |
| 650 | #define DRM_IOCTL_GEM_OPEN DRM_IOWR(0x0b, struct drm_gem_open) | 675 | #define DRM_IOCTL_GEM_OPEN DRM_IOWR(0x0b, struct drm_gem_open) |
| 651 | #define DRM_IOCTL_GET_CAP DRM_IOWR(0x0c, struct drm_get_cap) | 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 | #define DRM_IOCTL_SET_UNIQUE DRM_IOW( 0x10, struct drm_unique) | 679 | #define DRM_IOCTL_SET_UNIQUE DRM_IOW( 0x10, struct drm_unique) |
| 654 | #define DRM_IOCTL_AUTH_MAGIC DRM_IOW( 0x11, struct drm_auth) | 680 | #define DRM_IOCTL_AUTH_MAGIC DRM_IOW( 0x11, struct drm_auth) |
| @@ -774,17 +800,6 @@ struct drm_event_vblank { | |||
| 774 | __u32 reserved; | 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 | /* typedef area */ | 803 | /* typedef area */ |
| 789 | #ifndef __KERNEL__ | 804 | #ifndef __KERNEL__ |
| 790 | typedef struct drm_clip_rect drm_clip_rect_t; | 805 | typedef struct drm_clip_rect drm_clip_rect_t; |
diff --git a/include/uapi/drm/drm_mode.h b/include/uapi/drm/drm_mode.h index 113d32457fa4..c2c4ace3db61 100644 --- a/include/uapi/drm/drm_mode.h +++ b/include/uapi/drm/drm_mode.h | |||
| @@ -44,20 +44,35 @@ | |||
| 44 | 44 | ||
| 45 | /* Video mode flags */ | 45 | /* Video mode flags */ |
| 46 | /* bit compatible with the xorg definitions. */ | 46 | /* bit compatible with the xorg definitions. */ |
| 47 | #define DRM_MODE_FLAG_PHSYNC (1<<0) | 47 | #define DRM_MODE_FLAG_PHSYNC (1<<0) |
| 48 | #define DRM_MODE_FLAG_NHSYNC (1<<1) | 48 | #define DRM_MODE_FLAG_NHSYNC (1<<1) |
| 49 | #define DRM_MODE_FLAG_PVSYNC (1<<2) | 49 | #define DRM_MODE_FLAG_PVSYNC (1<<2) |
| 50 | #define DRM_MODE_FLAG_NVSYNC (1<<3) | 50 | #define DRM_MODE_FLAG_NVSYNC (1<<3) |
| 51 | #define DRM_MODE_FLAG_INTERLACE (1<<4) | 51 | #define DRM_MODE_FLAG_INTERLACE (1<<4) |
| 52 | #define DRM_MODE_FLAG_DBLSCAN (1<<5) | 52 | #define DRM_MODE_FLAG_DBLSCAN (1<<5) |
| 53 | #define DRM_MODE_FLAG_CSYNC (1<<6) | 53 | #define DRM_MODE_FLAG_CSYNC (1<<6) |
| 54 | #define DRM_MODE_FLAG_PCSYNC (1<<7) | 54 | #define DRM_MODE_FLAG_PCSYNC (1<<7) |
| 55 | #define DRM_MODE_FLAG_NCSYNC (1<<8) | 55 | #define DRM_MODE_FLAG_NCSYNC (1<<8) |
| 56 | #define DRM_MODE_FLAG_HSKEW (1<<9) /* hskew provided */ | 56 | #define DRM_MODE_FLAG_HSKEW (1<<9) /* hskew provided */ |
| 57 | #define DRM_MODE_FLAG_BCAST (1<<10) | 57 | #define DRM_MODE_FLAG_BCAST (1<<10) |
| 58 | #define DRM_MODE_FLAG_PIXMUX (1<<11) | 58 | #define DRM_MODE_FLAG_PIXMUX (1<<11) |
| 59 | #define DRM_MODE_FLAG_DBLCLK (1<<12) | 59 | #define DRM_MODE_FLAG_DBLCLK (1<<12) |
| 60 | #define DRM_MODE_FLAG_CLKDIV2 (1<<13) | 60 | #define DRM_MODE_FLAG_CLKDIV2 (1<<13) |
| 61 | /* | ||
| 62 | * When adding a new stereo mode don't forget to adjust DRM_MODE_FLAGS_3D_MAX | ||
| 63 | * (define not exposed to user space). | ||
| 64 | */ | ||
| 65 | #define DRM_MODE_FLAG_3D_MASK (0x1f<<14) | ||
| 66 | #define DRM_MODE_FLAG_3D_NONE (0<<14) | ||
| 67 | #define DRM_MODE_FLAG_3D_FRAME_PACKING (1<<14) | ||
| 68 | #define DRM_MODE_FLAG_3D_FIELD_ALTERNATIVE (2<<14) | ||
| 69 | #define DRM_MODE_FLAG_3D_LINE_ALTERNATIVE (3<<14) | ||
| 70 | #define DRM_MODE_FLAG_3D_SIDE_BY_SIDE_FULL (4<<14) | ||
| 71 | #define DRM_MODE_FLAG_3D_L_DEPTH (5<<14) | ||
| 72 | #define DRM_MODE_FLAG_3D_L_DEPTH_GFX_GFX_DEPTH (6<<14) | ||
| 73 | #define DRM_MODE_FLAG_3D_TOP_AND_BOTTOM (7<<14) | ||
| 74 | #define DRM_MODE_FLAG_3D_SIDE_BY_SIDE_HALF (8<<14) | ||
| 75 | |||
| 61 | 76 | ||
| 62 | /* DPMS flags */ | 77 | /* DPMS flags */ |
| 63 | /* bit compatible with the xorg definitions. */ | 78 | /* bit compatible with the xorg definitions. */ |
