Lines Matching +full:hdmi +full:- +full:connector
29 #include <linux/hdmi.h>
58 DRM_FORCE_ON_DIGITAL, /* for DVI-I use digital connector */
62 * enum drm_connector_status - status for a &drm_connector
64 * This enum is used to track the connector status. There are no separate
69 * @connector_status_connected: The connector is definitely connected to
74 * @connector_status_disconnected: The connector isn't connected to a
76 * HDMI (which can be realiable probed) this means there's really
77 * nothing there. It is driver-dependent whether a connector with this
82 * @connector_status_unknown: The connector's status could not be
84 * flicker (like load-detection when the connector is in use), or when a
85 * hardware resource isn't available (like when load-detection needs a
86 * free CRTC). It should be possible to light up the connector with one
89 * there's not connector with @connector_status_connected.
95 * enum drm_connector_registration_state - userspace registration status for
98 * This enum is used to track the status of initializing a connector and
104 * @DRM_CONNECTOR_INITIALIZING: The connector has just been created,
106 * additional restrictions to how the state of this connector may be
112 * @DRM_CONNECTOR_REGISTERED: The connector has been fully initialized
115 * state of this connector may be modified.
120 * @DRM_CONNECTOR_UNREGISTERED: The connector has either been exposed
122 * userspace, or the connector was unregistered before it had a chance
124 * @DRM_CONNECTOR_INITIALIZING state). When a connector is
128 * - An unregistered connector may only have its DPMS changed from
129 * On->Off. Once DPMS is changed to Off, it may not be switched back
131 * - Modesets are not allowed on unregistered connectors, unless they
133 * disabling a CRTC on an unregistered connector is OK, but enabling
135 * - Removing a CRTC from an unregistered connector is OK, but new
136 * CRTCs may never be assigned to an unregistered connector.
152 * enum drm_connector_tv_mode - Analog TV output mode
155 * connector.
158 * "TV mode" connector property.
162 * @DRM_MODE_TV_MODE_NTSC: CCIR System M (aka 525-lines)
188 * @DRM_MODE_TV_MODE_PAL_M: CCIR System M (aka 525-lines)
209 * the DRM mode, including equalizing pulses for a 525-line
210 * or 625-line mode, with no pedestal or color encoding.
237 * struct drm_scdc - Information about scdc capabilities of a HDMI 2.0 sink
240 * HDMI 2.0 sink. In case of a HDMI 1.4 sink, all parameter must be 0.
258 * struct drm_hdmi_dsc_cap - DSC capabilities of HDMI sink
260 * Describes the DSC support provided by HDMI 2.1 sink.
262 * for HDMI 2.1.
299 * struct drm_hdmi_info - runtime information about the connected HDMI sink
301 * Describes if a given display supports advanced HDMI 2.0 features.
302 * This information is available in CEA-861-F extension blocks (like HF-VSDB).
311 * defined by the CEA-861-G spec is 219, so the size is 256 bits to map
318 * output also, along with normal HDMI outputs. The max VIC defined by
319 * the CEA-861-G spec is 219, so the size is 256 bits to map up to 256
338 * enum drm_link_status - connector's link_status property value
340 * This enum is used as the connector's link status property value.
354 * enum drm_panel_orientation - panel_orientation info for &drm_display_info
362 * orientation" connector prop will not be
368 * the panel is mounted upside-down.
375 DRM_MODE_PANEL_ORIENTATION_UNKNOWN = -1,
383 * enum drm_hdmi_broadcast_rgb - Broadcast RGB Selection for an HDMI @drm_connector
409 * struct drm_monitor_range_info - Panel's Monitor range in EDID for
426 * struct drm_luminance_range_info - Panel's luminance range for
442 * enum drm_privacy_screen_status - privacy screen status
445 * screen present on some display panels, via the "privacy-screen sw-state"
446 * and "privacy-screen hw-state" properties. Note the _LOCKED enum values
447 * are only valid for the "privacy-screen hw-state" property.
450 * The privacy-screen on the panel is disabled
452 * The privacy-screen on the panel is enabled
454 * The privacy-screen on the panel is disabled and locked (cannot be changed)
456 * The privacy-screen on the panel is enabled and locked (cannot be changed)
466 * enum drm_colorspace - color space
468 * This enum is a consolidated colorimetry list supported by HDMI and
476 * HDMI definitions come from the CTA-861-H spec
483 * (HDMI)
486 * (HDMI, DP)
487 * ITU-R BT.709 colorimetry format
489 * (HDMI, DP)
492 * (HDMI, DP)
495 * (HDMI, DP)
498 * (HDMI, DP)
501 * (HDMI, DP)
504 * (HDMI, DP)
505 * ITU-R BT.2020 Y'c C'bc C'rc (constant luminance) colorimetry format
507 * (HDMI, DP)
508 * ITU-R BT.2020 R' G' B' colorimetry format
510 * (HDMI, DP)
511 * ITU-R BT.2020 Y' C'b C'r colorimetry format
513 * (HDMI)
516 * (HDMI)
524 * (scRGB (IEC 61966-2-2)) colorimetry format
527 * ITU-R BT.601 colorimetry format
560 * enum drm_bus_flags - bus_flags info for &drm_display_info
665 * Set if the Sharp-specific signals (SPL, CLS, PS, REV) must be used
671 * struct drm_display_info - runtime data about the connected sink
674 * fixed display sinks like built-in panels there's not much difference between
693 * @bpc: Maximum bits per color channel. Used by HDMI and DP outputs.
708 * @panel_orientation: Read only connector property for built-in panels,
717 * @color_formats: HDMI Color formats, selects between RGB and YCrCb
749 * @dvi_dual: Dual-link DVI sink?
754 * @is_hdmi: True if the sink is an HDMI device.
770 * @has_hdmi_infoframe: Does the sink support the HDMI infoframe?
781 * @edid_hdmi_rgb444_dc_modes: Mask of supported hdmi deep color modes
787 * @edid_hdmi_ycbcr444_dc_modes: Mask of supported hdmi deep color
793 * @cea_rev: CEA revision of the HDMI sink.
798 * @hdmi: advance features of a HDMI sink.
800 struct drm_hdmi_info hdmi; member
818 * @mso_stream_count: eDP Multi-SST Operation (MSO) stream count from
819 * the DisplayID VESA vendor block. 0 for conventional Single-Stream
825 * @mso_pixel_overlap: eDP MSO segment pixel overlap, 0-8 pixels.
851 * @source_physical_address: Source Physical Address from HDMI
852 * Vendor-Specific Data Block, for CEC usage.
864 * struct drm_connector_tv_margins - TV connector related margins
892 * struct drm_tv_connector_state - TV connector related states
920 * struct drm_connector_hdmi_infoframe - HDMI Infoframe container
924 * @data: HDMI Infoframe structure
935 * struct drm_connector_hdmi_state - HDMI state container
939 * @broadcast_rgb: Connector property to pass the
945 * @infoframes: HDMI Infoframes matching that state
967 * @vendor: HDMI Vendor Infoframes structure
970 struct drm_connector_hdmi_infoframe hdmi; member
996 * struct drm_connector_state - mutable connector state
999 /** @connector: backpointer to the connector */
1000 struct drm_connector *connector; member
1003 * @crtc: CRTC to connect connector to, NULL if disabled.
1029 * @link_status: Connector link_status to keep track of whether link is
1038 * @commit: Tracks the pending commit to prevent use-after-free conditions.
1044 /** @tv: TV connector state */
1050 * This tracks whether a connector is aware of the self refresh state.
1051 * It should be set to true for those connector implementations which
1062 * @picture_aspect_ratio: Connector property to control the
1063 * HDMI infoframe aspect ratio setting.
1071 * @content_type: Connector property to control the
1072 * HDMI infoframe content type setting.
1079 * @hdcp_content_type: Connector property to pass the type of
1085 * @scaling_mode: Connector property to control the
1086 * upscaling, mostly used for built-in panels.
1091 * @content_protection: Connector property to request content
1097 * @colorspace: State variable for Connector property to request
1106 * Holds the framebuffer and out-fence for a writeback connector. As
1117 * @max_requested_bpc: Connector property to limit the maximum bit
1123 * @max_bpc: Connector max_bpc based on the requested max_bpc property
1124 * and the connector bpc limitations obtained from edid.
1129 * @privacy_screen_sw_state: See :ref:`Standard Connector
1141 * @hdmi: HDMI-related variable and properties. Filled by
1144 struct drm_connector_hdmi_state hdmi; member
1157 int (*startup)(struct drm_connector *connector);
1161 * Configures HDMI-encoder for audio stream. Can be called
1167 int (*prepare)(struct drm_connector *connector,
1179 void (*shutdown)(struct drm_connector *connector);
1184 * Mute/unmute HDMI audio stream. The @mute_stream callback is
1190 int (*mute_stream)(struct drm_connector *connector,
1195 * struct drm_connector_hdmi_funcs - drm_hdmi_connector control functions
1213 (*tmds_char_rate_valid)(const struct drm_connector *connector,
1231 int (*clear_infoframe)(struct drm_connector *connector,
1248 int (*write_infoframe)(struct drm_connector *connector,
1256 * the EDID from connector->ddc. It is still recommended to provide
1257 * connector->ddc instead of implementing this callback. Returned EDID
1265 const struct drm_edid *(*read_edid)(struct drm_connector *connector);
1269 * struct drm_connector_funcs - control connectors on a given device
1279 * Legacy entry point to set the per-connector DPMS state. Legacy DPMS
1280 * is exposed as a standard property on the connector, but diverted to
1282 * implement the 4 level DPMS support on the connector any more, but
1292 int (*dpms)(struct drm_connector *connector, int mode);
1297 * Reset connector hardware and software state to off. This function isn't
1304 void (*reset)(struct drm_connector *connector);
1309 * Check to see if anything is attached to the connector. The parameter
1311 * connector due to a user request. force can be used by the driver to
1314 * This callback is optional, if not implemented the connector will be
1321 * core entry point to probe connector state is @fill_modes.
1329 * state the connector is in. Drivers that need the underlying
1335 * drm_connector_status indicating the connector's status.
1337 enum drm_connector_status (*detect)(struct drm_connector *connector,
1344 * connector is forced to a certain state by userspace, either through
1352 * core entry point to probe connector state is @fill_modes.
1354 void (*force)(struct drm_connector *connector);
1369 * received for this output connector->edid must be NULL.
1379 int (*fill_modes)(struct drm_connector *connector, uint32_t max_width, uint32_t max_height);
1385 * connector.
1388 * driver-private properties. For atomic drivers it is not used because
1395 int (*set_property)(struct drm_connector *connector, struct drm_property *property,
1402 * interfaces attached to the connector, light backlight control, i2c,
1405 * core drm connector interfaces. Everything added from this callback
1414 int (*late_register)(struct drm_connector *connector);
1420 * userspace interfaces attached to the connector from
1427 void (*early_unregister)(struct drm_connector *connector);
1432 * Clean up connector resources. This is called at driver unload time
1434 * when a connector is being hot-unplugged for drivers that support
1435 * connector hotplugging (e.g. DisplayPort MST).
1437 void (*destroy)(struct drm_connector *connector);
1442 * Duplicate the current atomic state for this connector and return it.
1453 * state structure to extend it with driver-private state should use
1470 struct drm_connector_state *(*atomic_duplicate_state)(struct drm_connector *connector);
1480 void (*atomic_destroy_state)(struct drm_connector *connector,
1486 * Decode a driver-private property value and store the decoded value
1487 * into the passed-in state structure. Since the atomic core decodes all
1492 * Such driver-private properties should really only be implemented for
1501 * driver-private atomic properties.
1518 * 0 if the property has been found, -EINVAL if the property isn't
1520 * asks for properties attached to this connector). No other validation
1525 int (*atomic_set_property)(struct drm_connector *connector,
1533 * Reads out the decoded driver-private property. This is used to
1540 * driver-private atomic properties.
1544 * 0 on success, -EINVAL if the property isn't implemented by the
1546 * properties attached to this connector).
1548 int (*atomic_get_property)(struct drm_connector *connector,
1568 * This will get called when a hotplug-event for a drm-connector
1571 void (*oob_hotplug_event)(struct drm_connector *connector,
1577 * Allows connectors to create connector-specific debugfs files.
1579 void (*debugfs_init)(struct drm_connector *connector, struct dentry *root);
1583 * struct drm_cmdline_mode - DRM Mode passed through the kernel command-line
1585 * Each connector can have an initial mode with additional options
1587 * express those parameters and will be filled by the command-line
1601 * Has a mode been read from the command-line?
1687 * Ignore the hotplug state of the connector, and force its
1705 * drm-connector "panel orientation" property override value,
1729 * struct drm_connector_hdmi_audio - DRM gemeric HDMI Codec-related structure
1731 * HDMI drivers usually incorporate a HDMI Codec. This structure expresses the
1732 * generic HDMI Codec as used by the DRM HDMI Codec framework.
1738 * Implementation of the HDMI codec functionality to be used by the DRM
1739 * HDMI Codec framework.
1746 * Platform device created to hold the HDMI Codec. It will be
1761 * Callback to be called when the HDMI sink get plugged to or unplugged
1762 * from this connector. This is assigned by the framework when
1791 * struct drm_connector_hdmi - DRM Connector HDMI-related structure
1796 * @vendor: HDMI Controller Vendor Name
1802 * @product: HDMI Controller Product Name
1813 * @funcs: HDMI connector Control Functions
1818 * @infoframes: Current Infoframes output by the connector
1836 * struct drm_connector - central DRM connector control structure
1838 * Each connector may be connected to one or more CRTCs, or may be clonable by
1839 * another connector if they can share a CRTC. Each connector also has a specific
1853 * Drivers can set this to associate a fwnode with a connector, drivers
1872 * Connector entry in the global connector-list, used by
1884 * @mutex: Lock for general connector state, but currently only protects
1885 * @registered. Most of the connector state is still protected by
1891 * @index: Compacted connector index, which matches the position inside
1892 * the mode_config.list for drivers not supporting hot-add/removing. Can
1894 * connector.
1903 /** @connector_type_id: index into connector type enum */
1907 * Can this connector handle interlaced modes? Only used by
1913 * Can this connector handle doublescan? Only used by
1919 * Can this connector handle stereo modes? Only used by
1925 * @ycbcr_420_allowed : This bool indicates if this connector is
1933 * @registration_state: Is this connector initializing, exposed
1942 * Modes available on this connector (from fill_modes() + user).
1964 * when a display is detected. For non hot-pluggable displays such as
1973 /** @funcs: connector control functions */
1987 /** @properties: property tracking for this connector */
1998 * query hardware support for variable refresh rate on a connector.
1999 * connector. Drivers can add the property to a connector by
2008 * @colorspace_property: Connector property to set the suitable
2022 * @max_bpc: Maximum bits per color channel the connector supports.
2027 * @max_bpc_property: Default connector property for the max bpc to be
2028 * driven out of the connector.
2032 /** @privacy_screen: drm_privacy_screen for this connector, or NULL. */
2035 /** @privacy_screen_notifier: privacy-screen notifier_block */
2040 * connector to control the integrated privacy screen.
2046 * connector to report the actual integrated privacy screen state.
2051 * @broadcast_rgb_property: Connector property to set the
2063 * Connector polling mode, a combination of
2066 * The connector generates hotplug events and doesn't need to be
2071 * Periodically poll the connector for connection.
2074 * Periodically poll the connector for disconnection, without
2075 * causing flickering even when the connector is in use. DACs should
2091 /** @helper_private: mid-layer private data */
2094 /** @cmdline_mode: mode line parsed from the kernel cmdline for this connector */
2112 /** @epoch_counter: used to detect any other changes in connector, besides status */
2117 * connector, drm_encoder_index() determines the index into the bitfield
2123 * @encoder: Currently bound encoder driving this connector, if any.
2124 * Only really meaningful for non-atomic drivers. Atomic drivers should
2131 /** @eld: EDID-like data, if present, protected by @eld_mutex */
2151 * A connector usually has its associated ddc adapter. If a driver uses
2152 * this field, then an appropriate symbolic link is created in connector
2171 * in Displayport compliance testing - Displayport Link CTS Core 1.2
2182 /** @debugfs_entry: debugfs directory for this connector */
2188 * Current atomic state for this connector.
2191 * nonblocking atomic commits access the current connector state without
2210 * dual-link LVDS or dual-link DSI, the driver should try to not expose
2218 /** @has_tile: is this connector connected to a tiled monitor */
2239 * connector from any context, in conjunction with
2248 * @hdmi: HDMI-related variable and properties.
2250 struct drm_connector_hdmi hdmi; member
2253 * @hdmi_audio: HDMI codec properties and non-DRM state.
2261 struct drm_connector *connector,
2265 struct drm_connector *connector,
2270 struct drm_connector *connector,
2275 struct drm_connector *connector,
2280 struct drm_connector *connector,
2288 void drm_connector_attach_edid_property(struct drm_connector *connector);
2289 int drm_connector_register(struct drm_connector *connector);
2290 int drm_connector_dynamic_register(struct drm_connector *connector);
2291 void drm_connector_unregister(struct drm_connector *connector);
2292 int drm_connector_attach_encoder(struct drm_connector *connector,
2295 void drm_connector_cleanup(struct drm_connector *connector);
2297 static inline unsigned int drm_connector_index(const struct drm_connector *connector) in drm_connector_index() argument
2299 return connector->index; in drm_connector_index()
2302 static inline u32 drm_connector_mask(const struct drm_connector *connector) in drm_connector_mask() argument
2304 return 1 << connector->index; in drm_connector_mask()
2308 * drm_connector_lookup - lookup connector object
2311 * @id: connector object id
2313 * This function looks up the connector object specified by id
2326 * drm_connector_get - acquire a connector reference
2327 * @connector: DRM connector
2329 * This function increments the connector's refcount.
2331 static inline void drm_connector_get(struct drm_connector *connector) in drm_connector_get() argument
2333 drm_mode_object_get(&connector->base); in drm_connector_get()
2337 * drm_connector_put - release a connector reference
2338 * @connector: DRM connector
2340 * This function decrements the connector's reference count and frees the
2343 static inline void drm_connector_put(struct drm_connector *connector) in drm_connector_put() argument
2345 drm_mode_object_put(&connector->base); in drm_connector_put()
2349 * drm_connector_is_unregistered - has the connector been unregistered from
2351 * @connector: DRM connector
2353 * Checks whether or not @connector has been unregistered from userspace.
2356 * True if the connector was unregistered, false if the connector is
2360 drm_connector_is_unregistered(struct drm_connector *connector) in drm_connector_is_unregistered() argument
2362 return READ_ONCE(connector->registration_state) == in drm_connector_is_unregistered()
2384 void drm_connector_attach_dp_subconnector_property(struct drm_connector *connector);
2395 int drm_connector_attach_scaling_mode_property(struct drm_connector *connector,
2398 struct drm_connector *connector);
2399 int drm_connector_attach_broadcast_rgb_property(struct drm_connector *connector);
2400 int drm_connector_attach_colorspace_property(struct drm_connector *connector);
2401 int drm_connector_attach_hdr_output_metadata_property(struct drm_connector *connector);
2405 int drm_mode_create_hdmi_colorspace_property(struct drm_connector *connector,
2407 int drm_mode_create_dp_colorspace_property(struct drm_connector *connector,
2412 int drm_connector_set_path_property(struct drm_connector *connector,
2414 int drm_connector_set_tile_property(struct drm_connector *connector);
2415 int drm_connector_update_edid_property(struct drm_connector *connector,
2417 void drm_connector_set_link_status_property(struct drm_connector *connector,
2420 struct drm_connector *connector, bool capable);
2422 struct drm_connector *connector,
2425 struct drm_connector *connector,
2429 struct drm_connector *connector,
2431 int drm_connector_attach_max_bpc_property(struct drm_connector *connector,
2436 struct drm_connector *connector, struct drm_privacy_screen *priv);
2440 * struct drm_tile_group - Tile group metadata
2444 * @group_data: Sink-private data identifying this group
2464 * struct drm_connector_list_iter - connector_list iterator
2474 * drm_connector_list_iter_end() call. If you want to use the connector later,
2489 bool drm_connector_has_possible_encoder(struct drm_connector *connector,
2494 * drm_for_each_connector_iter - connector_list iterator macro
2495 * @connector: &struct drm_connector pointer used as cursor
2498 * Note that @connector is only valid within the list body, if you want to use
2499 * @connector after calling drm_connector_list_iter_end() then you need to grab
2502 #define drm_for_each_connector_iter(connector, iter) \ argument
2503 while ((connector = drm_connector_list_iter_next(iter)))
2506 * drm_connector_for_each_possible_encoder - iterate connector's possible encoders
2507 * @connector: &struct drm_connector pointer
2510 #define drm_connector_for_each_possible_encoder(connector, encoder) \ argument
2511 drm_for_each_encoder_mask(encoder, (connector)->dev, \
2512 (connector)->possible_encoders)