]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blob - drivers/gpu/drm/amd/display/dc/inc/core_dc.h
drm/amd/dc: Add dc display driver (v2)
[mirror_ubuntu-jammy-kernel.git] / drivers / gpu / drm / amd / display / dc / inc / core_dc.h
1 /*
2 * core_dc.h
3 *
4 * Created on: Nov 13, 2015
5 * Author: yonsun
6 */
7
8 #ifndef __CORE_DC_H__
9 #define __CORE_DC_H__
10
11 #include "core_types.h"
12 #include "hw_sequencer.h"
13
14 #define DC_TO_CORE(dc)\
15 container_of(dc, struct core_dc, public)
16
17 struct core_dc {
18 struct dc public;
19 struct dc_context *ctx;
20
21 uint8_t link_count;
22 struct core_link *links[MAX_PIPES * 2];
23
24 /* TODO: determine max number of targets*/
25 struct validate_context *current_context;
26 struct validate_context *temp_flip_context;
27 struct resource_pool *res_pool;
28
29 /*Power State*/
30 enum dc_video_power_state previous_power_state;
31 enum dc_video_power_state current_power_state;
32
33 /* Display Engine Clock levels */
34 struct dm_pp_clock_levels sclk_lvls;
35
36 /* Inputs into BW and WM calculations. */
37 struct bw_calcs_dceip bw_dceip;
38 struct bw_calcs_vbios bw_vbios;
39
40 /* HW functions */
41 struct hw_sequencer_funcs hwss;
42 struct dce_hwseq *hwseq;
43
44 /* temp store of dm_pp_display_configuration
45 * to compare to see if display config changed
46 */
47 struct dm_pp_display_configuration prev_display_config;
48 };
49
50 #endif /* __CORE_DC_H__ */