1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 #ifndef __DC_COMPRESSOR_DCE112_H__
26 #define __DC_COMPRESSOR_DCE112_H__
27
28 #include "../inc/compressor.h"
29
30 #define TO_DCE112_COMPRESSOR(compressor)\
31 container_of(compressor, struct dce112_compressor, base)
32
33 struct dce112_compressor_reg_offsets {
34 uint32_t dcp_offset;
35 uint32_t dmif_offset;
36 };
37
38 struct dce112_compressor {
39 struct compressor base;
40 struct dce112_compressor_reg_offsets offsets;
41 };
42
43 struct compressor *dce112_compressor_create(struct dc_context *ctx);
44
45 void dce112_compressor_construct(struct dce112_compressor *cp110,
46 struct dc_context *ctx);
47
48 void dce112_compressor_destroy(struct compressor **cp);
49
50
51 void dce112_compressor_power_up_fbc(struct compressor *cp);
52
53 void dce112_compressor_enable_fbc(struct compressor *cp, uint32_t paths_num,
54 struct compr_addr_and_pitch_params *params);
55
56 void dce112_compressor_disable_fbc(struct compressor *cp);
57
58 void dce112_compressor_set_fbc_invalidation_triggers(struct compressor *cp,
59 uint32_t fbc_trigger);
60
61 void dce112_compressor_program_compressed_surface_address_and_pitch(
62 struct compressor *cp,
63 struct compr_addr_and_pitch_params *params);
64
65 bool dce112_compressor_is_fbc_enabled_in_hw(struct compressor *cp,
66 uint32_t *fbc_mapped_crtc_id);
67
68
69 void dce112_compressor_enable_lpt(struct compressor *cp);
70
71 void dce112_compressor_disable_lpt(struct compressor *cp);
72
73 void dce112_compressor_program_lpt_control(struct compressor *cp,
74 struct compr_addr_and_pitch_params *params);
75
76 bool dce112_compressor_is_lpt_enabled_in_hw(struct compressor *cp);
77
78 #endif