Name

struct drm_connector_funcs — control connectors on a given device

Synopsis

struct drm_connector_funcs {
  void (* dpms) (struct drm_connector *connector, int mode);
  void (* save) (struct drm_connector *connector);
  void (* restore) (struct drm_connector *connector);
  void (* reset) (struct drm_connector *connector);
  enum drm_connector_status (* detect) (struct drm_connector *connector,bool force);
  int (* fill_modes) (struct drm_connector *connector, uint32_t max_width, uint32_t max_height);
  int (* set_property) (struct drm_connector *connector, struct drm_property *property,uint64_t val);
  void (* destroy) (struct drm_connector *connector);
  void (* force) (struct drm_connector *connector);
  struct drm_connector_state *(* atomic_duplicate_state) (struct drm_connector *connector);
  void (* atomic_destroy_state) (struct drm_connector *connector,struct drm_connector_state *state);
  int (* atomic_set_property) (struct drm_connector *connector,struct drm_connector_state *state,struct drm_property *property,uint64_t val);
  int (* atomic_get_property) (struct drm_connector *connector,const struct drm_connector_state *state,struct drm_property *property,uint64_t *val);
};  

Members

dpms

set power state

save

save connector state

restore

restore connector state

reset

reset connector after state has been invalidated (e.g. resume)

detect

is this connector active?

fill_modes

fill mode list for this connector

set_property

property for this connector may need an update

destroy

make object go away

force

notify the driver that the connector is forced on

atomic_duplicate_state

duplicate the atomic state for this connector

atomic_destroy_state

destroy an atomic state for this connector

atomic_set_property

set a property on an atomic state for this connector (do not call directly, use drm_atomic_connector_set_property)

atomic_get_property

get a property on an atomic state for this connector (do not call directly, use drm_atomic_connector_get_property)

Description

Each CRTC may have one or more connectors attached to it. The functions below allow the core DRM code to control connectors, enumerate available modes, etc.