aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2014-10-20 02:30:50 -0400
committerDave Airlie <airlied@redhat.com>2014-12-08 18:56:48 -0500
commit6f134d7bb4347ab4c66ef123efb838fedb54186f (patch)
tree4e7d66d7668fef9e6d1a5714b2bba2280613418c /include
parent40d9b043a89e2301e1f97ade055a73ecc28e9afe (diff)
drm/tile: expose the tile property to userspace (v3)
This takes the tiling info from the connector and exposes it to userspace, as a blob object in a connector property. The contents of the blob is ABI. v2: add property + function documentation. v3: move property setup from previous patch. add boilerplate + fix long line (Daniel) Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/drm/drm_crtc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index 01744ed79250..b86329813ad3 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -651,6 +651,8 @@ struct drm_connector {
651 651
652 struct drm_property_blob *path_blob_ptr; 652 struct drm_property_blob *path_blob_ptr;
653 653
654 struct drm_property_blob *tile_blob_ptr;
655
654 uint8_t polled; /* DRM_CONNECTOR_POLL_* */ 656 uint8_t polled; /* DRM_CONNECTOR_POLL_* */
655 657
656 /* requested DPMS state */ 658 /* requested DPMS state */
@@ -1048,6 +1050,7 @@ struct drm_mode_config {
1048 struct drm_property *edid_property; 1050 struct drm_property *edid_property;
1049 struct drm_property *dpms_property; 1051 struct drm_property *dpms_property;
1050 struct drm_property *path_property; 1052 struct drm_property *path_property;
1053 struct drm_property *tile_property;
1051 struct drm_property *plane_type_property; 1054 struct drm_property *plane_type_property;
1052 struct drm_property *rotation_property; 1055 struct drm_property *rotation_property;
1053 1056
@@ -1217,6 +1220,7 @@ extern void drm_mode_config_cleanup(struct drm_device *dev);
1217 1220
1218extern int drm_mode_connector_set_path_property(struct drm_connector *connector, 1221extern int drm_mode_connector_set_path_property(struct drm_connector *connector,
1219 const char *path); 1222 const char *path);
1223int drm_mode_connector_set_tile_property(struct drm_connector *connector);
1220extern int drm_mode_connector_update_edid_property(struct drm_connector *connector, 1224extern int drm_mode_connector_update_edid_property(struct drm_connector *connector,
1221 const struct edid *edid); 1225 const struct edid *edid);
1222 1226