diff options
author | Dave Airlie <airlied@linux.ie> | 2007-05-01 13:16:29 +1000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2007-05-01 13:16:29 +1000 |
commit | 89231953d108e74ee7b0eb99494ead1dd795d640 (patch) | |
tree | f53136e928b85ac55f2fabd586def709b0bcb7b9 /shared-core | |
parent | 8e8e37515eafbd75b971f57f767ef01344361256 (diff) |
Add support for user defined modes
This allows userspace to specify modes and add them to the modesetting
system and attach modes to outputs
Diffstat (limited to 'shared-core')
-rw-r--r-- | shared-core/drm.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/shared-core/drm.h b/shared-core/drm.h index d42bf73a..890dcf88 100644 --- a/shared-core/drm.h +++ b/shared-core/drm.h @@ -978,6 +978,11 @@ struct drm_mode_fb_cmd { unsigned int depth; }; +struct drm_mode_mode_cmd { + unsigned int output_id; + unsigned int mode_id; +}; + /** * \name Ioctls Definitions */ @@ -1055,7 +1060,12 @@ struct drm_mode_fb_cmd { #define DRM_IOCTL_MODE_SETCRTC DRM_IOWR(0xA3, struct drm_mode_crtc) #define DRM_IOCTL_MODE_ADDFB DRM_IOWR(0xA4, struct drm_mode_fb_cmd) #define DRM_IOCTL_MODE_RMFB DRM_IOWR(0xA5, unsigned int) -#define DRM_IOCTL_MODE_GETFB DRM_IOWR(0xA6, struct drm_mode_fb_cmd) +#define DRM_IOCTL_MODE_GETFB DRM_IOWR(0xA6, struct drm_mode_fb_cmd) + +#define DRM_IOCTL_MODE_ADDMODE DRM_IOWR(0xA7, struct drm_mode_modeinfo) +#define DRM_IOCTL_MODE_RMMODE DRM_IOWR(0xA8, unsigned int) +#define DRM_IOCTL_MODE_ATTACHMODE DRM_IOWR(0xA9, struct drm_mode_mode_cmd) +#define DRM_IOCTL_MODE_DETACHMODE DRM_IOWR(0xAA, struct drm_mode_mode_cmd) /*@}*/ /** |