• Home
  • Raw
  • Download

Lines Matching +full:hdmi +full:- +full:connector

29 #include <linux/hdmi.h>
54 DRM_FORCE_ON_DIGITAL, /* for DVI-I use digital connector */
58 * enum drm_connector_status - status for a &drm_connector
60 * This enum is used to track the connector status. There are no separate
65 * @connector_status_connected: The connector is definitely connected to
70 * @connector_status_disconnected: The connector isn't connected to a
72 * HDMI (which can be realiable probed) this means there's really
73 * nothing there. It is driver-dependent whether a connector with this
78 * @connector_status_unknown: The connector's status could not be
80 * flicker (like load-detection when the connector is in use), or when a
81 * hardware resource isn't available (like when load-detection needs a
82 * free CRTC). It should be possible to light up the connector with one
85 * there's not connector with @connector_status_connected.
91 * enum drm_connector_registration_state - userspace registration status for
94 * This enum is used to track the status of initializing a connector and
100 * @DRM_CONNECTOR_INITIALIZING: The connector has just been created,
102 * additional restrictions to how the state of this connector may be
108 * @DRM_CONNECTOR_REGISTERED: The connector has been fully initialized
111 * state of this connector may be modified.
116 * @DRM_CONNECTOR_UNREGISTERED: The connector has either been exposed
118 * userspace, or the connector was unregistered before it had a chance
120 * @DRM_CONNECTOR_INITIALIZING state). When a connector is
124 * - An unregistered connector may only have its DPMS changed from
125 * On->Off. Once DPMS is changed to Off, it may not be switched back
127 * - Modesets are not allowed on unregistered connectors, unless they
129 * disabling a CRTC on an unregistered connector is OK, but enabling
131 * - Removing a CRTC from an unregistered connector is OK, but new
132 * CRTCs may never be assigned to an unregistered connector.
148 * enum drm_connector_tv_mode - Analog TV output mode
151 * connector.
154 * "TV mode" connector property.
158 * @DRM_MODE_TV_MODE_NTSC: CCIR System M (aka 525-lines)
184 * @DRM_MODE_TV_MODE_PAL_M: CCIR System M (aka 525-lines)
226 * struct drm_scdc - Information about scdc capabilities of a HDMI 2.0 sink
229 * HDMI 2.0 sink. In case of a HDMI 1.4 sink, all parameter must be 0.
247 * struct drm_hdmi_dsc_cap - DSC capabilities of HDMI sink
249 * Describes the DSC support provided by HDMI 2.1 sink.
251 * for HDMI 2.1.
288 * struct drm_hdmi_info - runtime information about the connected HDMI sink
290 * Describes if a given display supports advanced HDMI 2.0 features.
291 * This information is available in CEA-861-F extension blocks (like HF-VSDB).
300 * defined by the CEA-861-G spec is 219, so the size is 256 bits to map
307 * output also, along with normal HDMI outputs. The max VIC defined by
308 * the CEA-861-G spec is 219, so the size is 256 bits to map up to 256
327 * enum drm_link_status - connector's link_status property value
329 * This enum is used as the connector's link status property value.
343 * enum drm_panel_orientation - panel_orientation info for &drm_display_info
351 * orientation" connector prop will not be
357 * the panel is mounted upside-down.
364 DRM_MODE_PANEL_ORIENTATION_UNKNOWN = -1,
372 * struct drm_monitor_range_info - Panel's Monitor range in EDID for
389 * struct drm_luminance_range_info - Panel's luminance range for
405 * enum drm_privacy_screen_status - privacy screen status
408 * screen present on some display panels, via the "privacy-screen sw-state"
409 * and "privacy-screen hw-state" properties. Note the _LOCKED enum values
410 * are only valid for the "privacy-screen hw-state" property.
413 * The privacy-screen on the panel is disabled
415 * The privacy-screen on the panel is enabled
417 * The privacy-screen on the panel is disabled and locked (cannot be changed)
419 * The privacy-screen on the panel is enabled and locked (cannot be changed)
429 * enum drm_colorspace - color space
431 * This enum is a consolidated colorimetry list supported by HDMI and
439 * HDMI definitions come from the CTA-861-H spec
454 * (HDMI)
457 * (HDMI, DP)
458 * ITU-R BT.709 colorimetry format
460 * (HDMI, DP)
463 * (HDMI, DP)
466 * (HDMI, DP)
469 * (HDMI, DP)
472 * (HDMI, DP)
475 * (HDMI, DP)
476 * ITU-R BT.2020 Y'c C'bc C'rc (constant luminance) colorimetry format
478 * (HDMI, DP)
479 * ITU-R BT.2020 R' G' B' colorimetry format
481 * (HDMI, DP)
482 * ITU-R BT.2020 Y' C'b C'r colorimetry format
484 * (HDMI)
487 * (HDMI)
495 * (scRGB (IEC 61966-2-2)) colorimetry format
498 * ITU-R BT.601 colorimetry format
530 * enum drm_bus_flags - bus_flags info for &drm_display_info
635 * Set if the Sharp-specific signals (SPL, CLS, PS, REV) must be used
641 * struct drm_display_info - runtime data about the connected sink
644 * fixed display sinks like built-in panels there's not much difference between
663 * @bpc: Maximum bits per color channel. Used by HDMI and DP outputs.
678 * @panel_orientation: Read only connector property for built-in panels,
687 * @color_formats: HDMI Color formats, selects between RGB and YCrCb
719 * @dvi_dual: Dual-link DVI sink?
724 * @is_hdmi: True if the sink is an HDMI device.
740 * @has_hdmi_infoframe: Does the sink support the HDMI infoframe?
751 * @edid_hdmi_rgb444_dc_modes: Mask of supported hdmi deep color modes
757 * @edid_hdmi_ycbcr444_dc_modes: Mask of supported hdmi deep color
763 * @cea_rev: CEA revision of the HDMI sink.
768 * @hdmi: advance features of a HDMI sink.
770 struct drm_hdmi_info hdmi; member
788 * @mso_stream_count: eDP Multi-SST Operation (MSO) stream count from
789 * the DisplayID VESA vendor block. 0 for conventional Single-Stream
795 * @mso_pixel_overlap: eDP MSO segment pixel overlap, 0-8 pixels.
826 * struct drm_connector_tv_margins - TV connector related margins
854 * struct drm_tv_connector_state - TV connector related states
882 * struct drm_connector_state - mutable connector state
885 /** @connector: backpointer to the connector */
886 struct drm_connector *connector; member
889 * @crtc: CRTC to connect connector to, NULL if disabled.
915 * @link_status: Connector link_status to keep track of whether link is
924 * @commit: Tracks the pending commit to prevent use-after-free conditions.
930 /** @tv: TV connector state */
936 * This tracks whether a connector is aware of the self refresh state.
937 * It should be set to true for those connector implementations which
948 * @picture_aspect_ratio: Connector property to control the
949 * HDMI infoframe aspect ratio setting.
957 * @content_type: Connector property to control the
958 * HDMI infoframe content type setting.
965 * @hdcp_content_type: Connector property to pass the type of
971 * @scaling_mode: Connector property to control the
972 * upscaling, mostly used for built-in panels.
977 * @content_protection: Connector property to request content
983 * @colorspace: State variable for Connector property to request
992 * Holds the framebuffer and out-fence for a writeback connector. As
1003 * @max_requested_bpc: Connector property to limit the maximum bit
1009 * @max_bpc: Connector max_bpc based on the requested max_bpc property
1010 * and the connector bpc limitations obtained from edid.
1015 * @privacy_screen_sw_state: See :ref:`Standard Connector
1028 * struct drm_connector_funcs - control connectors on a given device
1038 * Legacy entry point to set the per-connector DPMS state. Legacy DPMS
1039 * is exposed as a standard property on the connector, but diverted to
1041 * implement the 4 level DPMS support on the connector any more, but
1051 int (*dpms)(struct drm_connector *connector, int mode);
1056 * Reset connector hardware and software state to off. This function isn't
1063 void (*reset)(struct drm_connector *connector);
1068 * Check to see if anything is attached to the connector. The parameter
1070 * connector due to a user request. force can be used by the driver to
1073 * This callback is optional, if not implemented the connector will be
1080 * core entry point to probe connector state is @fill_modes.
1088 * state the connector is in. Drivers that need the underlying
1094 * drm_connector_status indicating the connector's status.
1096 enum drm_connector_status (*detect)(struct drm_connector *connector,
1103 * connector is forced to a certain state by userspace, either through
1111 * core entry point to probe connector state is @fill_modes.
1113 void (*force)(struct drm_connector *connector);
1128 * received for this output connector->edid must be NULL.
1138 int (*fill_modes)(struct drm_connector *connector, uint32_t max_width, uint32_t max_height);
1144 * connector.
1147 * driver-private properties. For atomic drivers it is not used because
1154 int (*set_property)(struct drm_connector *connector, struct drm_property *property,
1161 * interfaces attached to the connector, light backlight control, i2c,
1164 * core drm connector interfaces. Everything added from this callback
1173 int (*late_register)(struct drm_connector *connector);
1179 * userspace interfaces attached to the connector from
1186 void (*early_unregister)(struct drm_connector *connector);
1191 * Clean up connector resources. This is called at driver unload time
1193 * when a connector is being hot-unplugged for drivers that support
1194 * connector hotplugging (e.g. DisplayPort MST).
1196 void (*destroy)(struct drm_connector *connector);
1201 * Duplicate the current atomic state for this connector and return it.
1212 * state structure to extend it with driver-private state should use
1229 struct drm_connector_state *(*atomic_duplicate_state)(struct drm_connector *connector);
1239 void (*atomic_destroy_state)(struct drm_connector *connector,
1245 * Decode a driver-private property value and store the decoded value
1246 * into the passed-in state structure. Since the atomic core decodes all
1251 * Such driver-private properties should really only be implemented for
1260 * driver-private atomic properties.
1277 * 0 if the property has been found, -EINVAL if the property isn't
1279 * asks for properties attached to this connector). No other validation
1284 int (*atomic_set_property)(struct drm_connector *connector,
1292 * Reads out the decoded driver-private property. This is used to
1299 * driver-private atomic properties.
1303 * 0 on success, -EINVAL if the property isn't implemented by the
1305 * properties attached to this connector).
1307 int (*atomic_get_property)(struct drm_connector *connector,
1327 * This will get called when a hotplug-event for a drm-connector
1330 void (*oob_hotplug_event)(struct drm_connector *connector);
1335 * Allows connectors to create connector-specific debugfs files.
1337 void (*debugfs_init)(struct drm_connector *connector, struct dentry *root);
1341 * struct drm_cmdline_mode - DRM Mode passed through the kernel command-line
1343 * Each connector can have an initial mode with additional options
1345 * express those parameters and will be filled by the command-line
1359 * Has a mode been read from the command-line?
1445 * Ignore the hotplug state of the connector, and force its
1463 * drm-connector "panel orientation" property override value,
1487 * struct drm_connector - central DRM connector control structure
1489 * Each connector may be connected to one or more CRTCs, or may be clonable by
1490 * another connector if they can share a CRTC. Each connector also has a specific
1504 * Drivers can set this to associate a fwnode with a connector, drivers
1523 * Connector entry in the global connector-list, used by
1535 * @mutex: Lock for general connector state, but currently only protects
1536 * @registered. Most of the connector state is still protected by
1542 * @index: Compacted connector index, which matches the position inside
1543 * the mode_config.list for drivers not supporting hot-add/removing. Can
1545 * connector.
1554 /** @connector_type_id: index into connector type enum */
1558 * Can this connector handle interlaced modes? Only used by
1564 * Can this connector handle doublescan? Only used by
1570 * Can this connector handle stereo modes? Only used by
1576 * @ycbcr_420_allowed : This bool indicates if this connector is
1584 * @registration_state: Is this connector initializing, exposed
1593 * Modes available on this connector (from fill_modes() + user).
1615 * when a display is detected. For non hot-pluggable displays such as
1624 /** @funcs: connector control functions */
1634 /** @properties: property tracking for this connector */
1645 * query hardware support for variable refresh rate on a connector.
1646 * connector. Drivers can add the property to a connector by
1655 * @colorspace_property: Connector property to set the suitable
1669 * @max_bpc_property: Default connector property for the max bpc to be
1670 * driven out of the connector.
1674 /** @privacy_screen: drm_privacy_screen for this connector, or NULL. */
1677 /** @privacy_screen_notifier: privacy-screen notifier_block */
1682 * connector to control the integrated privacy screen.
1688 * connector to report the actual integrated privacy screen state.
1699 * Connector polling mode, a combination of
1702 * The connector generates hotplug events and doesn't need to be
1707 * Periodically poll the connector for connection.
1710 * Periodically poll the connector for disconnection, without
1711 * causing flickering even when the connector is in use. DACs should
1727 /** @helper_private: mid-layer private data */
1730 /** @cmdline_mode: mode line parsed from the kernel cmdline for this connector */
1748 /** @epoch_counter: used to detect any other changes in connector, besides status */
1753 * connector, drm_encoder_index() determines the index into the bitfield
1759 * @encoder: Currently bound encoder driving this connector, if any.
1760 * Only really meaningful for non-atomic drivers. Atomic drivers should
1767 /** @eld: EDID-like data, if present, protected by @eld_mutex */
1787 * A connector usually has its associated ddc adapter. If a driver uses
1788 * this field, then an appropriate symbolic link is created in connector
1807 * in Displayport compliance testing - Displayport Link CTS Core 1.2
1818 /** @debugfs_entry: debugfs directory for this connector */
1824 * Current atomic state for this connector.
1827 * nonblocking atomic commits access the current connector state without
1846 * dual-link LVDS or dual-link DSI, the driver should try to not expose
1854 /** @has_tile: is this connector connected to a tiled monitor */
1875 * connector from any context, in conjunction with
1887 struct drm_connector *connector,
1891 struct drm_connector *connector,
1896 struct drm_connector *connector,
1900 void drm_connector_attach_edid_property(struct drm_connector *connector);
1901 int drm_connector_register(struct drm_connector *connector);
1902 void drm_connector_unregister(struct drm_connector *connector);
1903 int drm_connector_attach_encoder(struct drm_connector *connector,
1906 void drm_connector_cleanup(struct drm_connector *connector);
1908 static inline unsigned int drm_connector_index(const struct drm_connector *connector) in drm_connector_index() argument
1910 return connector->index; in drm_connector_index()
1913 static inline u32 drm_connector_mask(const struct drm_connector *connector) in drm_connector_mask() argument
1915 return 1 << connector->index; in drm_connector_mask()
1919 * drm_connector_lookup - lookup connector object
1922 * @id: connector object id
1924 * This function looks up the connector object specified by id
1937 * drm_connector_get - acquire a connector reference
1938 * @connector: DRM connector
1940 * This function increments the connector's refcount.
1942 static inline void drm_connector_get(struct drm_connector *connector) in drm_connector_get() argument
1944 drm_mode_object_get(&connector->base); in drm_connector_get()
1948 * drm_connector_put - release a connector reference
1949 * @connector: DRM connector
1951 * This function decrements the connector's reference count and frees the
1954 static inline void drm_connector_put(struct drm_connector *connector) in drm_connector_put() argument
1956 drm_mode_object_put(&connector->base); in drm_connector_put()
1960 * drm_connector_is_unregistered - has the connector been unregistered from
1962 * @connector: DRM connector
1964 * Checks whether or not @connector has been unregistered from userspace.
1967 * True if the connector was unregistered, false if the connector is
1971 drm_connector_is_unregistered(struct drm_connector *connector) in drm_connector_is_unregistered() argument
1973 return READ_ONCE(connector->registration_state) == in drm_connector_is_unregistered()
1994 void drm_connector_attach_dp_subconnector_property(struct drm_connector *connector);
2005 int drm_connector_attach_scaling_mode_property(struct drm_connector *connector,
2008 struct drm_connector *connector);
2009 int drm_connector_attach_colorspace_property(struct drm_connector *connector);
2010 int drm_connector_attach_hdr_output_metadata_property(struct drm_connector *connector);
2014 int drm_mode_create_hdmi_colorspace_property(struct drm_connector *connector,
2016 int drm_mode_create_dp_colorspace_property(struct drm_connector *connector,
2021 int drm_connector_set_path_property(struct drm_connector *connector,
2023 int drm_connector_set_tile_property(struct drm_connector *connector);
2024 int drm_connector_update_edid_property(struct drm_connector *connector,
2026 void drm_connector_set_link_status_property(struct drm_connector *connector,
2029 struct drm_connector *connector, bool capable);
2031 struct drm_connector *connector,
2034 struct drm_connector *connector,
2038 struct drm_connector *connector,
2040 int drm_connector_attach_max_bpc_property(struct drm_connector *connector,
2045 struct drm_connector *connector, struct drm_privacy_screen *priv);
2049 * struct drm_tile_group - Tile group metadata
2053 * @group_data: Sink-private data identifying this group
2073 * struct drm_connector_list_iter - connector_list iterator
2083 * drm_connector_list_iter_end() call. If you want to use the connector later,
2098 bool drm_connector_has_possible_encoder(struct drm_connector *connector,
2103 * drm_for_each_connector_iter - connector_list iterator macro
2104 * @connector: &struct drm_connector pointer used as cursor
2107 * Note that @connector is only valid within the list body, if you want to use
2108 * @connector after calling drm_connector_list_iter_end() then you need to grab
2111 #define drm_for_each_connector_iter(connector, iter) \ argument
2112 while ((connector = drm_connector_list_iter_next(iter)))
2115 * drm_connector_for_each_possible_encoder - iterate connector's possible encoders
2116 * @connector: &struct drm_connector pointer
2119 #define drm_connector_for_each_possible_encoder(connector, encoder) \ argument
2120 drm_for_each_encoder_mask(encoder, (connector)->dev, \
2121 (connector)->possible_encoders)