X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fdrm%2Fdrm_crtc_helper.h;h=4c8dacaf4f583314966340e470aaee5430018389;hb=fe71a3c7dc8cfe0f239c04b4fc6501f4aa56aa0a;hp=6769ff6c1bc07fd3311d6dd5da066c75225fd625;hpb=32f44d62e463f66307513e90c09b4ceeac13cc22;p=deliverable%2Flinux.git diff --git a/include/drm/drm_crtc_helper.h b/include/drm/drm_crtc_helper.h index 6769ff6c1bc0..4c8dacaf4f58 100644 --- a/include/drm/drm_crtc_helper.h +++ b/include/drm/drm_crtc_helper.h @@ -79,6 +79,8 @@ struct drm_encoder_helper_funcs { /* detect for DAC style encoders */ enum drm_connector_status (*detect)(struct drm_encoder *encoder, struct drm_connector *connector); + /* disable encoder when not in use - more explicit than dpms off */ + void (*disable)(struct drm_encoder *encoder); }; struct drm_connector_helper_funcs { @@ -98,6 +100,7 @@ extern bool drm_crtc_helper_set_mode(struct drm_crtc *crtc, int x, int y, struct drm_framebuffer *old_fb); extern bool drm_helper_crtc_in_use(struct drm_crtc *crtc); +extern bool drm_helper_encoder_in_use(struct drm_encoder *encoder); extern void drm_helper_connector_dpms(struct drm_connector *connector, int mode);