diff options
author | Dave Airlie <airlied@linux.ie> | 2007-11-15 16:52:04 +1100 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2007-11-15 16:52:04 +1100 |
commit | 2520d3fd99636e493060d51b1c3287a5faac22bf (patch) | |
tree | 5e4fd8fbd641b75b5bbd11b9ce82d17ebc0728f7 /shared-core | |
parent | 7136f55faaf3afefe522ec978a4cbc906dace861 (diff) |
modes: pass type to userspace for preferred showing
Diffstat (limited to 'shared-core')
-rw-r--r-- | shared-core/drm.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/shared-core/drm.h b/shared-core/drm.h index e10ceb14..59cbfaf2 100644 --- a/shared-core/drm.h +++ b/shared-core/drm.h @@ -898,6 +898,14 @@ struct drm_mm_init_arg { #define DRM_OUTPUT_NAME_LEN 32 #define DRM_DISPLAY_MODE_LEN 32 +#define DRM_MODE_TYPE_BUILTIN (1<<0) +#define DRM_MODE_TYPE_CLOCK_C ((1<<1) | DRM_MODE_TYPE_BUILTIN) +#define DRM_MODE_TYPE_CRTC_C ((1<<2) | DRM_MODE_TYPE_BUILTIN) +#define DRM_MODE_TYPE_PREFERRED (1<<3) +#define DRM_MODE_TYPE_DEFAULT (1<<4) +#define DRM_MODE_TYPE_USERDEF (1<<5) +#define DRM_MODE_TYPE_DRIVER (1<<6) + struct drm_mode_modeinfo { unsigned int id; @@ -909,7 +917,7 @@ struct drm_mode_modeinfo { unsigned int vrefresh; /* vertical refresh * 1000 */ unsigned int flags; - + unsigned int type; char name[DRM_DISPLAY_MODE_LEN]; }; |