summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-06-04 13:49:43 +1000
committerDave Airlie <airlied@redhat.com>2008-06-04 13:50:51 +1000
commit382aa3ceeb79165a9bdddc8f944de131c8cbf2dd (patch)
tree1c61f11da47cd9bfb7b9b34c0fa3cdcf888e3e7c /shared-core
parent9f31bd09c1e748f72a30f6a0861cd72d93258992 (diff)
drm: introduce generation counter to interface.
Idea being if you want to add new crtc/output/encoder dynamically later, you just increase the generation counter and userspace should re-read all the resources
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/drm.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/shared-core/drm.h b/shared-core/drm.h
index 132c7746..40653b4b 100644
--- a/shared-core/drm.h
+++ b/shared-core/drm.h
@@ -1033,6 +1033,7 @@ struct drm_mode_card_res {
int count_encoders;
int min_width, max_width;
int min_height, max_height;
+ uint32_t generation;
};
struct drm_mode_crtc {
@@ -1043,6 +1044,8 @@ struct drm_mode_crtc {
int x, y; /**< Position on the frameuffer */
+ uint32_t generation;
+
int count_connectors;
unsigned int connectors; /**< Connectors that are connected */
@@ -1055,6 +1058,8 @@ struct drm_mode_crtc {
struct drm_mode_get_encoder {
+ uint32_t generation;
+
uint32_t encoder_type;
uint32_t encoder_id;
@@ -1085,6 +1090,8 @@ struct drm_mode_get_connector {
unsigned int connector_type;
unsigned int connector_type_id;
+ uint32_t generation;
+
unsigned int connection;
unsigned int mm_width, mm_height; /**< HxW in millimeters */
unsigned int subpixel;