aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Herring2017-10-06 16:18:57 -0500
committerRob Herring2017-10-09 09:22:35 -0500
commit965133914b14f571b91109814c393b62f7bc588a (patch)
tree53b0f473c9648e4c33aa488080c69d6cf31eca45 /include
parent011fd913b445b5e17148c37d169396c39eced3df (diff)
downloadexternal-libgbm-965133914b14f571b91109814c393b62f7bc588a.tar.gz
external-libgbm-965133914b14f571b91109814c393b62f7bc588a.tar.xz
external-libgbm-965133914b14f571b91109814c393b62f7bc588a.zip
headers: sync DRM_MODE_ROTATE/REFLECT defines from kernel v4.14-rc1
Add the new DRM_MODE_ROTATE_* and DRM_MODE_REFLECT_* defines from v4.14-rc1 kernel. Reviewed-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Robert Foss <robert.foss@collabora.com> Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/drm/drm_mode.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/include/drm/drm_mode.h b/include/drm/drm_mode.h
index 08077978..e01f129c 100644
--- a/include/drm/drm_mode.h
+++ b/include/drm/drm_mode.h
@@ -119,6 +119,53 @@ extern "C" {
119#define DRM_MODE_LINK_STATUS_GOOD 0 119#define DRM_MODE_LINK_STATUS_GOOD 0
120#define DRM_MODE_LINK_STATUS_BAD 1 120#define DRM_MODE_LINK_STATUS_BAD 1
121 121
122/*
123 * DRM_MODE_ROTATE_<degrees>
124 *
125 * Signals that a drm plane is been rotated <degrees> degrees in counter
126 * clockwise direction.
127 *
128 * This define is provided as a convenience, looking up the property id
129 * using the name->prop id lookup is the preferred method.
130 */
131#define DRM_MODE_ROTATE_0 (1<<0)
132#define DRM_MODE_ROTATE_90 (1<<1)
133#define DRM_MODE_ROTATE_180 (1<<2)
134#define DRM_MODE_ROTATE_270 (1<<3)
135
136/*
137 * DRM_MODE_ROTATE_MASK
138 *
139 * Bitmask used to look for drm plane rotations.
140 */
141#define DRM_MODE_ROTATE_MASK (\
142 DRM_MODE_ROTATE_0 | \
143 DRM_MODE_ROTATE_90 | \
144 DRM_MODE_ROTATE_180 | \
145 DRM_MODE_ROTATE_270)
146
147/*
148 * DRM_MODE_REFLECT_<axis>
149 *
150 * Signals that the contents of a drm plane is reflected in the <axis> axis,
151 * in the same way as mirroring.
152 *
153 * This define is provided as a convenience, looking up the property id
154 * using the name->prop id lookup is the preferred method.
155 */
156#define DRM_MODE_REFLECT_X (1<<4)
157#define DRM_MODE_REFLECT_Y (1<<5)
158
159/*
160 * DRM_MODE_REFLECT_MASK
161 *
162 * Bitmask used to look for drm plane reflections.
163 */
164#define DRM_MODE_REFLECT_MASK (\
165 DRM_MODE_REFLECT_X | \
166 DRM_MODE_REFLECT_Y)
167
168
122struct drm_mode_modeinfo { 169struct drm_mode_modeinfo {
123 __u32 clock; 170 __u32 clock;
124 __u16 hdisplay; 171 __u16 hdisplay;