summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/drm.h10
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];
};