struct drm_encoder_helper_funcs — helper operations for encoders
struct drm_encoder_helper_funcs { void (* dpms) (struct drm_encoder *encoder, int mode); void (* save) (struct drm_encoder *encoder); void (* restore) (struct drm_encoder *encoder); bool (* mode_fixup) (struct drm_encoder *encoder,const struct drm_display_mode *mode,struct drm_display_mode *adjusted_mode); void (* prepare) (struct drm_encoder *encoder); void (* commit) (struct drm_encoder *encoder); void (* mode_set) (struct drm_encoder *encoder,struct drm_display_mode *mode,struct drm_display_mode *adjusted_mode); struct drm_crtc *(* get_crtc) (struct drm_encoder *encoder); enum drm_connector_status (* detect) (struct drm_encoder *encoder,struct drm_connector *connector); void (* disable) (struct drm_encoder *encoder); void (* enable) (struct drm_encoder *encoder); int (* atomic_check) (struct drm_encoder *encoder,struct drm_crtc_state *crtc_state,struct drm_connector_state *conn_state); };
set power state
save connector state
restore connector state
try to fixup proposed mode for this connector
part of the disable sequence, called before the CRTC modeset
called after the CRTC modeset
set this mode, optional for atomic helpers
return CRTC that the encoder is currently attached to
connection status detection
disable encoder when not in use (overrides DPMS off)
enable encoder
check for validity of an atomic update