diff options
author | Dave Airlie <airlied@redhat.com> | 2014-10-20 02:29:33 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-12-08 18:56:48 -0500 |
commit | 40d9b043a89e2301e1f97ade055a73ecc28e9afe (patch) | |
tree | 74bb18795eefa5a95852b100fe864f6bfaa26acc /include/drm | |
parent | c6a0aed4d493936f61cd153db84531026705c94d (diff) |
drm/connector: store tile information from displayid (v3)
This creates a tile group from DisplayID block, and
stores the pieces of parsed info from the DisplayID block
into the connector.
v2: add missing signoff, add new connector bits to docs.
v3: remove some debugging.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_crtc.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index 8f760a2373f9..01744ed79250 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
@@ -607,6 +607,15 @@ struct drm_encoder { | |||
607 | * @bad_edid_counter: track sinks that give us an EDID with invalid checksum | 607 | * @bad_edid_counter: track sinks that give us an EDID with invalid checksum |
608 | * @debugfs_entry: debugfs directory for this connector | 608 | * @debugfs_entry: debugfs directory for this connector |
609 | * @state: current atomic state for this connector | 609 | * @state: current atomic state for this connector |
610 | * @has_tile: is this connector connected to a tiled monitor | ||
611 | * @tile_group: tile group for the connected monitor | ||
612 | * @tile_is_single_monitor: whether the tile is one monitor housing | ||
613 | * @num_h_tile: number of horizontal tiles in the tile group | ||
614 | * @num_v_tile: number of vertical tiles in the tile group | ||
615 | * @tile_h_loc: horizontal location of this tile | ||
616 | * @tile_v_loc: vertical location of this tile | ||
617 | * @tile_h_size: horizontal size of this tile. | ||
618 | * @tile_v_size: vertical size of this tile. | ||
610 | * | 619 | * |
611 | * Each connector may be connected to one or more CRTCs, or may be clonable by | 620 | * Each connector may be connected to one or more CRTCs, or may be clonable by |
612 | * another connector if they can share a CRTC. Each connector also has a specific | 621 | * another connector if they can share a CRTC. Each connector also has a specific |
@@ -669,6 +678,15 @@ struct drm_connector { | |||
669 | struct dentry *debugfs_entry; | 678 | struct dentry *debugfs_entry; |
670 | 679 | ||
671 | struct drm_connector_state *state; | 680 | struct drm_connector_state *state; |
681 | |||
682 | /* DisplayID bits */ | ||
683 | bool has_tile; | ||
684 | struct drm_tile_group *tile_group; | ||
685 | bool tile_is_single_monitor; | ||
686 | |||
687 | uint8_t num_h_tile, num_v_tile; | ||
688 | uint8_t tile_h_loc, tile_v_loc; | ||
689 | uint16_t tile_h_size, tile_v_size; | ||
672 | }; | 690 | }; |
673 | 691 | ||
674 | /** | 692 | /** |