aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2015-03-31 18:23:25 -0400
committerDave Airlie <airlied@redhat.com>2015-03-31 18:23:25 -0400
commit53d8858bb81ccf47ddca8b94d21f39972549e166 (patch)
tree9c5cd952cadb6e1b9f9e77d277a848ca7973d430 /include/drm
parent9e87e48f8e5de2146842fd0ff436e0256b52c4a9 (diff)
parent066626d5d5548d7ff63772a840b8d40a0d278825 (diff)
Merge tag 'topic/drm-misc-2015-03-31' of git://anongit.freedesktop.org/drm-intel into drm-next
Final drm-misc pull for 4.0, just various things all over, including a few more important atomic fixes. btw I didn't pick up the vmwgfx patch from Ville's series, but one patch has one hunk touching vmwgfx and Thomas/Jakob didn't get around to ack it. I figured it's simple enough to be ok though. * tag 'topic/drm-misc-2015-03-31' of git://anongit.freedesktop.org/drm-intel: drm: line wrap DRM_IOCTL_DEF* macros drm/atomic: Don't try to free a NULL state drm/atomic: Clear crtcs, connectors and planes when clearing state drm: Rewrite drm_ioctl_flags() to resemble the new drm_ioctl() code drm: Use max() to make the ioctl alloc size code cleaner drm: Simplify core vs. drv ioctl handling drm: Drop ioctl->cmd_drv drm: Fix DRM_IOCTL_DEF_DRV() drm/atomic-helpers: Properly avoid full modeset dance drm: atomic: Allow setting CRTC active property drm: atomic: Expose CRTC active property drm: crtc_helper: Update hwmode before mode_set call drm: mode: Allow NULL modes for equality check drm: fb_helper: Simplify exit condition drm: mode: Fix typo in kerneldoc drm/dp: Print the number of bytes processed for aux nacks
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drmP.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index 63c0b0131f61..62c40777c009 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -253,7 +253,6 @@ struct drm_ioctl_desc {
253 unsigned int cmd; 253 unsigned int cmd;
254 int flags; 254 int flags;
255 drm_ioctl_t *func; 255 drm_ioctl_t *func;
256 unsigned int cmd_drv;
257 const char *name; 256 const char *name;
258}; 257};
259 258
@@ -262,8 +261,13 @@ struct drm_ioctl_desc {
262 * ioctl, for use by drm_ioctl(). 261 * ioctl, for use by drm_ioctl().
263 */ 262 */
264 263
265#define DRM_IOCTL_DEF_DRV(ioctl, _func, _flags) \ 264#define DRM_IOCTL_DEF_DRV(ioctl, _func, _flags) \
266 [DRM_IOCTL_NR(DRM_##ioctl)] = {.cmd = DRM_##ioctl, .func = _func, .flags = _flags, .cmd_drv = DRM_IOCTL_##ioctl, .name = #ioctl} 265 [DRM_IOCTL_NR(DRM_IOCTL_##ioctl) - DRM_COMMAND_BASE] = { \
266 .cmd = DRM_IOCTL_##ioctl, \
267 .func = _func, \
268 .flags = _flags, \
269 .name = #ioctl \
270 }
267 271
268/* Event queued up for userspace to read */ 272/* Event queued up for userspace to read */
269struct drm_pending_event { 273struct drm_pending_event {