aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/drm_crtc.h
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2012-05-15 17:09:02 -0400
committerDave Airlie <airlied@redhat.com>2012-05-17 06:11:22 -0400
commitc543188afb7a83e66161c026dc6fd5eb38dc0b63 (patch)
tree4897e68dcea04f30a8da6b573a3776f3684ee404 /include/drm/drm_crtc.h
parent7e3bdf4a6dca9eb153cc20d69d717308a68bec00 (diff)
drm: add generic ioctls to get/set properties on any object
Useless for connector properties (since they already have their own ioctls), but useful when we add properties to CRTCs, planes and other objects. Reviewed-by: Eugeni Dodonov <eugeni.dodonov@intel.com> Reviewed-by: Rob Clark <rob.clark@linaro.org> Tested-by: Rob Clark <rob.clark@linaro.org> Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/drm_crtc.h')
-rw-r--r--include/drm/drm_crtc.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index 77606794308b..b0c32499fcd4 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -903,6 +903,12 @@ extern int drm_connector_property_set_value(struct drm_connector *connector,
903extern int drm_connector_property_get_value(struct drm_connector *connector, 903extern int drm_connector_property_get_value(struct drm_connector *connector,
904 struct drm_property *property, 904 struct drm_property *property,
905 uint64_t *value); 905 uint64_t *value);
906extern int drm_object_property_set_value(struct drm_mode_object *obj,
907 struct drm_property *property,
908 uint64_t val);
909extern int drm_object_property_get_value(struct drm_mode_object *obj,
910 struct drm_property *property,
911 uint64_t *value);
906extern struct drm_display_mode *drm_crtc_mode_create(struct drm_device *dev); 912extern struct drm_display_mode *drm_crtc_mode_create(struct drm_device *dev);
907extern void drm_framebuffer_set_object(struct drm_device *dev, 913extern void drm_framebuffer_set_object(struct drm_device *dev,
908 unsigned long handle); 914 unsigned long handle);
@@ -917,6 +923,9 @@ extern bool drm_crtc_in_use(struct drm_crtc *crtc);
917 923
918extern void drm_connector_attach_property(struct drm_connector *connector, 924extern void drm_connector_attach_property(struct drm_connector *connector,
919 struct drm_property *property, uint64_t init_val); 925 struct drm_property *property, uint64_t init_val);
926extern void drm_object_attach_property(struct drm_mode_object *obj,
927 struct drm_property *property,
928 uint64_t init_val);
920extern struct drm_property *drm_property_create(struct drm_device *dev, int flags, 929extern struct drm_property *drm_property_create(struct drm_device *dev, int flags,
921 const char *name, int num_values); 930 const char *name, int num_values);
922extern struct drm_property *drm_property_create_enum(struct drm_device *dev, int flags, 931extern struct drm_property *drm_property_create_enum(struct drm_device *dev, int flags,
@@ -1029,6 +1038,10 @@ extern int drm_mode_mmap_dumb_ioctl(struct drm_device *dev,
1029 void *data, struct drm_file *file_priv); 1038 void *data, struct drm_file *file_priv);
1030extern int drm_mode_destroy_dumb_ioctl(struct drm_device *dev, 1039extern int drm_mode_destroy_dumb_ioctl(struct drm_device *dev,
1031 void *data, struct drm_file *file_priv); 1040 void *data, struct drm_file *file_priv);
1041extern int drm_mode_obj_get_properties_ioctl(struct drm_device *dev, void *data,
1042 struct drm_file *file_priv);
1043extern int drm_mode_obj_set_property_ioctl(struct drm_device *dev, void *data,
1044 struct drm_file *file_priv);
1032 1045
1033extern void drm_fb_get_bpp_depth(uint32_t format, unsigned int *depth, 1046extern void drm_fb_get_bpp_depth(uint32_t format, unsigned int *depth,
1034 int *bpp); 1047 int *bpp);