summaryrefslogtreecommitdiff
path: root/src/drmmode_display.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-09-09 14:24:49 +1000
committerDave Airlie <airlied@redhat.com>2009-09-09 14:24:49 +1000
commit10a58d54857484b6e89763ecf463f54dc290c702 (patch)
tree46a2f326a64ccc40b8e375845e27ff94e9d08140 /src/drmmode_display.h
parentfad9ee6cdae5ae45e6406e3071a84276f1b59a85 (diff)
kms: add property support.
this adds support to the userspace DDX to get properties from the kernel and expose them over randr. Its most liberated from the Intel driver.
Diffstat (limited to 'src/drmmode_display.h')
-rw-r--r--src/drmmode_display.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/drmmode_display.h b/src/drmmode_display.h
index 2713bab1..1410afed 100644
--- a/src/drmmode_display.h
+++ b/src/drmmode_display.h
@@ -53,12 +53,22 @@ typedef struct {
} drmmode_crtc_private_rec, *drmmode_crtc_private_ptr;
typedef struct {
+ drmModePropertyPtr mode_prop;
+ uint64_t value;
+ int num_atoms; /* if range prop, num_atoms == 1; if enum prop, num_atoms == num_enums + 1 */
+ Atom *atoms;
+} drmmode_prop_rec, *drmmode_prop_ptr;
+
+
+typedef struct {
drmmode_ptr drmmode;
int output_id;
drmModeConnectorPtr mode_output;
drmModeEncoderPtr mode_encoder;
drmModePropertyBlobPtr edid_blob;
int dpms_enum_id;
+ int num_props;
+ drmmode_prop_ptr props;
} drmmode_output_private_rec, *drmmode_output_private_ptr;