diff options
Diffstat (limited to 'include/drm/drm_connector.h')
| -rw-r--r-- | include/drm/drm_connector.h | 19 | 
1 files changed, 16 insertions, 3 deletions
diff --git a/include/drm/drm_connector.h b/include/drm/drm_connector.h index ea8da401c93c..df9807a3caae 100644 --- a/include/drm/drm_connector.h +++ b/include/drm/drm_connector.h @@ -284,6 +284,11 @@ struct drm_display_info {  	 * @hdmi: advance features of a HDMI sink.  	 */  	struct drm_hdmi_info hdmi; + +	/** +	 * @non_desktop: Non desktop display (HMD). +	 */ +	bool non_desktop;  };  int drm_display_info_set_bus_formats(struct drm_display_info *info, @@ -347,6 +352,13 @@ struct drm_connector_state {  	struct drm_atomic_state *state; +	/** +	 * @commit: Tracks the pending commit to prevent use-after-free conditions. +	 * +	 * Is only set when @crtc is NULL. +	 */ +	struct drm_crtc_commit *commit; +  	struct drm_tv_connector_state tv;  	/** @@ -888,8 +900,7 @@ struct drm_connector {  	 * This is protected by @drm_mode_config.connection_mutex. Note that  	 * nonblocking atomic commits access the current connector state without  	 * taking locks. Either by going through the &struct drm_atomic_state -	 * pointers, see for_each_connector_in_state(), -	 * for_each_oldnew_connector_in_state(), +	 * pointers, see for_each_oldnew_connector_in_state(),  	 * for_each_old_connector_in_state() and  	 * for_each_new_connector_in_state(). Or through careful ordering of  	 * atomic commit operations as implemented in the atomic helpers, see @@ -927,16 +938,18 @@ static inline unsigned drm_connector_index(struct drm_connector *connector)  /**   * drm_connector_lookup - lookup connector object   * @dev: DRM device + * @file_priv: drm file to check for lease against.   * @id: connector object id   *   * This function looks up the connector object specified by id   * add takes a reference to it.   */  static inline struct drm_connector *drm_connector_lookup(struct drm_device *dev, +		struct drm_file *file_priv,  		uint32_t id)  {  	struct drm_mode_object *mo; -	mo = drm_mode_object_find(dev, id, DRM_MODE_OBJECT_CONNECTOR); +	mo = drm_mode_object_find(dev, file_priv, id, DRM_MODE_OBJECT_CONNECTOR);  	return mo ? obj_to_connector(mo) : NULL;  }  | 

