drm_connector.h (f29f24b5568fd6169e0363c78f1a80db38d0e7e9) | drm_connector.h (fbb5d0353c62d10c3699ec844d2d015a762952d7) |
---|---|
1/* 2 * Copyright (c) 2016 Intel Corporation 3 * 4 * Permission to use, copy, modify, distribute, and sell this software and its 5 * documentation for any purpose is hereby granted without fee, provided that 6 * the above copyright notice appear in all copies and that both that copyright 7 * notice and this permission notice appear in supporting documentation, and 8 * that the name of the copyright holders not be used in advertising or --- 503 unchanged lines hidden (view full) --- 512 struct drm_crtc *crtc; 513 514 /** 515 * @best_encoder: 516 * 517 * Used by the atomic helpers to select the encoder, through the 518 * &drm_connector_helper_funcs.atomic_best_encoder or 519 * &drm_connector_helper_funcs.best_encoder callbacks. | 1/* 2 * Copyright (c) 2016 Intel Corporation 3 * 4 * Permission to use, copy, modify, distribute, and sell this software and its 5 * documentation for any purpose is hereby granted without fee, provided that 6 * the above copyright notice appear in all copies and that both that copyright 7 * notice and this permission notice appear in supporting documentation, and 8 * that the name of the copyright holders not be used in advertising or --- 503 unchanged lines hidden (view full) --- 512 struct drm_crtc *crtc; 513 514 /** 515 * @best_encoder: 516 * 517 * Used by the atomic helpers to select the encoder, through the 518 * &drm_connector_helper_funcs.atomic_best_encoder or 519 * &drm_connector_helper_funcs.best_encoder callbacks. |
520 * 521 * NOTE: Atomic drivers must fill this out (either themselves or through 522 * helpers), for otherwise the GETCONNECTOR and GETENCODER IOCTLs will 523 * not return correct data to userspace. |
|
520 */ 521 struct drm_encoder *best_encoder; 522 523 /** 524 * @link_status: Connector link_status to keep track of whether link is 525 * GOOD or BAD to notify userspace if retraining is necessary. 526 */ 527 enum drm_link_status link_status; --- 66 unchanged lines hidden (view full) --- 594 */ 595 u8 max_requested_bpc; 596 597 /** 598 * @max_bpc: Connector max_bpc based on the requested max_bpc property 599 * and the connector bpc limitations obtained from edid. 600 */ 601 u8 max_bpc; | 524 */ 525 struct drm_encoder *best_encoder; 526 527 /** 528 * @link_status: Connector link_status to keep track of whether link is 529 * GOOD or BAD to notify userspace if retraining is necessary. 530 */ 531 enum drm_link_status link_status; --- 66 unchanged lines hidden (view full) --- 598 */ 599 u8 max_requested_bpc; 600 601 /** 602 * @max_bpc: Connector max_bpc based on the requested max_bpc property 603 * and the connector bpc limitations obtained from edid. 604 */ 605 u8 max_bpc; |
606 607 /** 608 * @hdr_output_metadata: 609 * DRM blob property for HDR output metadata 610 */ 611 struct drm_property_blob *hdr_output_metadata; |
|
602}; 603 604/** 605 * struct drm_connector_funcs - control connectors on a given device 606 * 607 * Each CRTC may have one or more connectors attached to it. The functions 608 * below allow the core DRM code to control connectors, enumerate available modes, 609 * etc. --- 624 unchanged lines hidden (view full) --- 1234 /** 1235 * @free_node: 1236 * 1237 * List used only by &drm_connector_list_iter to be able to clean up a 1238 * connector from any context, in conjunction with 1239 * &drm_mode_config.connector_free_work. 1240 */ 1241 struct llist_node free_node; | 612}; 613 614/** 615 * struct drm_connector_funcs - control connectors on a given device 616 * 617 * Each CRTC may have one or more connectors attached to it. The functions 618 * below allow the core DRM code to control connectors, enumerate available modes, 619 * etc. --- 624 unchanged lines hidden (view full) --- 1244 /** 1245 * @free_node: 1246 * 1247 * List used only by &drm_connector_list_iter to be able to clean up a 1248 * connector from any context, in conjunction with 1249 * &drm_mode_config.connector_free_work. 1250 */ 1251 struct llist_node free_node; |
1252 1253 /* HDR metdata */ 1254 struct hdr_output_metadata hdr_output_metadata; 1255 struct hdr_sink_metadata hdr_sink_metadata; |
|
1242}; 1243 1244#define obj_to_connector(x) container_of(x, struct drm_connector, base) 1245 1246int drm_connector_init(struct drm_device *dev, 1247 struct drm_connector *connector, 1248 const struct drm_connector_funcs *funcs, 1249 int connector_type); --- 196 unchanged lines hidden --- | 1256}; 1257 1258#define obj_to_connector(x) container_of(x, struct drm_connector, base) 1259 1260int drm_connector_init(struct drm_device *dev, 1261 struct drm_connector *connector, 1262 const struct drm_connector_funcs *funcs, 1263 int connector_type); --- 196 unchanged lines hidden --- |