diff options
author | Dave Airlie <airlied@redhat.com> | 2019-01-17 18:20:10 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2019-01-17 18:31:28 -0500 |
commit | f164a94c2c87752caeb1a3cbe068c440e7f7921f (patch) | |
tree | e914296ef0ce1df83e506a12bf4306d5aa468b24 /include/drm/drm_modes.h | |
parent | b122153c7198e35fcb981ca9efd63b0df8ef3eab (diff) | |
parent | 94520db52fc0e931327bb77fe79a952a0e9dd2b0 (diff) |
Merge tag 'drm-misc-next-2019-01-16' of git://anongit.freedesktop.org/drm/drm-misc into drm-next
drm-misc-next for 5.1:
UAPI Changes:
- New fourcc identifier for ARM Framebuffer Compression v1.3
Cross-subsystem Changes:
Core Changes:
- Reorganisation of drm_device and drm_framebuffer headers
- Cleanup of the drmP inclusion
- Fix leaks in the fb-helpers
- Allow for depth different from bpp in fb-helper fbdev emulation
- Remove drm_mode_object from drm_display_mode
Driver Changes:
- Add reflection properties to rockchip
- a bunch of fixes for virtio
- a bunch of fixes for dp_mst and drivers using it, and introduction of a
new refcounting scheme
- Convertion of bochs to atomic and generic fbdev emulation
- Allow meson to remove the firmware framebuffers
[airlied: patch rcar-du to add drm_modes.h]
Signed-off-by: Dave Airlie <airlied@redhat.com>
From: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190116200428.u2n4jbk4mzza7n6e@flea
Diffstat (limited to 'include/drm/drm_modes.h')
-rw-r--r-- | include/drm/drm_modes.h | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/include/drm/drm_modes.h b/include/drm/drm_modes.h index baded6514456..be4fed97e727 100644 --- a/include/drm/drm_modes.h +++ b/include/drm/drm_modes.h | |||
@@ -136,8 +136,7 @@ enum drm_mode_status { | |||
136 | .hdisplay = (hd), .hsync_start = (hss), .hsync_end = (hse), \ | 136 | .hdisplay = (hd), .hsync_start = (hss), .hsync_end = (hse), \ |
137 | .htotal = (ht), .hskew = (hsk), .vdisplay = (vd), \ | 137 | .htotal = (ht), .hskew = (hsk), .vdisplay = (vd), \ |
138 | .vsync_start = (vss), .vsync_end = (vse), .vtotal = (vt), \ | 138 | .vsync_start = (vss), .vsync_end = (vse), .vtotal = (vt), \ |
139 | .vscan = (vs), .flags = (f), \ | 139 | .vscan = (vs), .flags = (f) |
140 | .base.type = DRM_MODE_OBJECT_MODE | ||
141 | 140 | ||
142 | #define CRTC_INTERLACE_HALVE_V (1 << 0) /* halve V values for interlacing */ | 141 | #define CRTC_INTERLACE_HALVE_V (1 << 0) /* halve V values for interlacing */ |
143 | #define CRTC_STEREO_DOUBLE (1 << 1) /* adjust timings for stereo modes */ | 142 | #define CRTC_STEREO_DOUBLE (1 << 1) /* adjust timings for stereo modes */ |
@@ -214,20 +213,6 @@ struct drm_display_mode { | |||
214 | struct list_head head; | 213 | struct list_head head; |
215 | 214 | ||
216 | /** | 215 | /** |
217 | * @base: | ||
218 | * | ||
219 | * A display mode is a normal modeset object, possibly including public | ||
220 | * userspace id. | ||
221 | * | ||
222 | * FIXME: | ||
223 | * | ||
224 | * This can probably be removed since the entire concept of userspace | ||
225 | * managing modes explicitly has never landed in upstream kernel mode | ||
226 | * setting support. | ||
227 | */ | ||
228 | struct drm_mode_object base; | ||
229 | |||
230 | /** | ||
231 | * @name: | 216 | * @name: |
232 | * | 217 | * |
233 | * Human-readable name of the mode, filled out with drm_mode_set_name(). | 218 | * Human-readable name of the mode, filled out with drm_mode_set_name(). |
@@ -429,14 +414,14 @@ struct drm_display_mode { | |||
429 | /** | 414 | /** |
430 | * DRM_MODE_FMT - printf string for &struct drm_display_mode | 415 | * DRM_MODE_FMT - printf string for &struct drm_display_mode |
431 | */ | 416 | */ |
432 | #define DRM_MODE_FMT "%d:\"%s\" %d %d %d %d %d %d %d %d %d %d 0x%x 0x%x" | 417 | #define DRM_MODE_FMT "\"%s\": %d %d %d %d %d %d %d %d %d %d 0x%x 0x%x" |
433 | 418 | ||
434 | /** | 419 | /** |
435 | * DRM_MODE_ARG - printf arguments for &struct drm_display_mode | 420 | * DRM_MODE_ARG - printf arguments for &struct drm_display_mode |
436 | * @m: display mode | 421 | * @m: display mode |
437 | */ | 422 | */ |
438 | #define DRM_MODE_ARG(m) \ | 423 | #define DRM_MODE_ARG(m) \ |
439 | (m)->base.id, (m)->name, (m)->vrefresh, (m)->clock, \ | 424 | (m)->name, (m)->vrefresh, (m)->clock, \ |
440 | (m)->hdisplay, (m)->hsync_start, (m)->hsync_end, (m)->htotal, \ | 425 | (m)->hdisplay, (m)->hsync_start, (m)->hsync_end, (m)->htotal, \ |
441 | (m)->vdisplay, (m)->vsync_start, (m)->vsync_end, (m)->vtotal, \ | 426 | (m)->vdisplay, (m)->vsync_start, (m)->vsync_end, (m)->vtotal, \ |
442 | (m)->type, (m)->flags | 427 | (m)->type, (m)->flags |