1 /* 2 * Copyright 2012-17 Advanced Micro Devices, Inc. 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining a 5 * copy of this software and associated documentation files (the "Software"), 6 * to deal in the Software without restriction, including without limitation 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 * and/or sell copies of the Software, and to permit persons to whom the 9 * Software is furnished to do so, subject to the following conditions: 10 * 11 * The above copyright notice and this permission notice shall be included in 12 * all copies or substantial portions of the Software. 13 * 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 18 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20 * OTHER DEALINGS IN THE SOFTWARE. 21 * 22 * Authors: AMD 23 * 24 */ 25 26 #ifndef __DC_MEM_INPUT_DCN20_H__ 27 #define __DC_MEM_INPUT_DCN20_H__ 28 29 #include "../dcn10/dcn10_hubp.h" 30 31 #define TO_DCN20_HUBP(hubp)\ 32 container_of(hubp, struct dcn20_hubp, base) 33 34 #define HUBP_REG_LIST_DCN2_COMMON(id)\ 35 HUBP_REG_LIST_DCN(id),\ 36 HUBP_REG_LIST_DCN_VM(id),\ 37 SRI(PREFETCH_SETTINGS, HUBPREQ, id),\ 38 SRI(PREFETCH_SETTINGS_C, HUBPREQ, id),\ 39 SRI(DCN_VM_SYSTEM_APERTURE_LOW_ADDR, HUBPREQ, id),\ 40 SRI(DCN_VM_SYSTEM_APERTURE_HIGH_ADDR, HUBPREQ, id),\ 41 SRI(CURSOR_SETTINGS, HUBPREQ, id), \ 42 SRI(CURSOR_SURFACE_ADDRESS_HIGH, CURSOR0_, id), \ 43 SRI(CURSOR_SURFACE_ADDRESS, CURSOR0_, id), \ 44 SRI(CURSOR_SIZE, CURSOR0_, id), \ 45 SRI(CURSOR_CONTROL, CURSOR0_, id), \ 46 SRI(CURSOR_POSITION, CURSOR0_, id), \ 47 SRI(CURSOR_HOT_SPOT, CURSOR0_, id), \ 48 SRI(CURSOR_DST_OFFSET, CURSOR0_, id), \ 49 SRI(DMDATA_ADDRESS_HIGH, CURSOR0_, id), \ 50 SRI(DMDATA_ADDRESS_LOW, CURSOR0_, id), \ 51 SRI(DMDATA_CNTL, CURSOR0_, id), \ 52 SRI(DMDATA_SW_CNTL, CURSOR0_, id), \ 53 SRI(DMDATA_QOS_CNTL, CURSOR0_, id), \ 54 SRI(DMDATA_SW_DATA, CURSOR0_, id), \ 55 SRI(DMDATA_STATUS, CURSOR0_, id),\ 56 SRI(FLIP_PARAMETERS_0, HUBPREQ, id),\ 57 SRI(FLIP_PARAMETERS_1, HUBPREQ, id),\ 58 SRI(FLIP_PARAMETERS_2, HUBPREQ, id),\ 59 SRI(DCN_CUR1_TTU_CNTL0, HUBPREQ, id),\ 60 SRI(DCN_CUR1_TTU_CNTL1, HUBPREQ, id),\ 61 SRI(DCSURF_FLIP_CONTROL2, HUBPREQ, id), \ 62 SRI(VMID_SETTINGS_0, HUBPREQ, id) 63 64 #define HUBP_REG_LIST_DCN20(id)\ 65 HUBP_REG_LIST_DCN2_COMMON(id),\ 66 SR(DCN_VM_SYSTEM_APERTURE_DEFAULT_ADDR_MSB),\ 67 SR(DCN_VM_SYSTEM_APERTURE_DEFAULT_ADDR_LSB) 68 69 #define HUBP_MASK_SH_LIST_DCN2_SHARE_COMMON(mask_sh)\ 70 HUBP_MASK_SH_LIST_DCN_SHARE_COMMON(mask_sh),\ 71 HUBP_MASK_SH_LIST_DCN_VM(mask_sh),\ 72 HUBP_SF(HUBP0_DCSURF_SURFACE_CONFIG, ROTATION_ANGLE, mask_sh),\ 73 HUBP_SF(HUBP0_DCSURF_SURFACE_CONFIG, H_MIRROR_EN, mask_sh),\ 74 HUBP_SF(HUBPREQ0_PREFETCH_SETTINGS, DST_Y_PREFETCH, mask_sh),\ 75 HUBP_SF(HUBPREQ0_PREFETCH_SETTINGS, VRATIO_PREFETCH, mask_sh),\ 76 HUBP_SF(HUBPREQ0_PREFETCH_SETTINGS_C, VRATIO_PREFETCH_C, mask_sh),\ 77 HUBP_SF(HUBPREQ0_DCN_VM_SYSTEM_APERTURE_LOW_ADDR, MC_VM_SYSTEM_APERTURE_LOW_ADDR, mask_sh),\ 78 HUBP_SF(HUBPREQ0_DCN_VM_SYSTEM_APERTURE_HIGH_ADDR, MC_VM_SYSTEM_APERTURE_HIGH_ADDR, mask_sh),\ 79 HUBP_SF(HUBPREQ0_CURSOR_SETTINGS, CURSOR0_DST_Y_OFFSET, mask_sh), \ 80 HUBP_SF(HUBPREQ0_CURSOR_SETTINGS, CURSOR0_CHUNK_HDL_ADJUST, mask_sh), \ 81 HUBP_SF(CURSOR0_0_CURSOR_SURFACE_ADDRESS_HIGH, CURSOR_SURFACE_ADDRESS_HIGH, mask_sh), \ 82 HUBP_SF(CURSOR0_0_CURSOR_SURFACE_ADDRESS, CURSOR_SURFACE_ADDRESS, mask_sh), \ 83 HUBP_SF(CURSOR0_0_CURSOR_SIZE, CURSOR_WIDTH, mask_sh), \ 84 HUBP_SF(CURSOR0_0_CURSOR_SIZE, CURSOR_HEIGHT, mask_sh), \ 85 HUBP_SF(CURSOR0_0_CURSOR_CONTROL, CURSOR_MODE, mask_sh), \ 86 HUBP_SF(CURSOR0_0_CURSOR_CONTROL, CURSOR_2X_MAGNIFY, mask_sh), \ 87 HUBP_SF(CURSOR0_0_CURSOR_CONTROL, CURSOR_PITCH, mask_sh), \ 88 HUBP_SF(CURSOR0_0_CURSOR_CONTROL, CURSOR_LINES_PER_CHUNK, mask_sh), \ 89 HUBP_SF(CURSOR0_0_CURSOR_CONTROL, CURSOR_ENABLE, mask_sh), \ 90 HUBP_SF(CURSOR0_0_CURSOR_POSITION, CURSOR_X_POSITION, mask_sh), \ 91 HUBP_SF(CURSOR0_0_CURSOR_POSITION, CURSOR_Y_POSITION, mask_sh), \ 92 HUBP_SF(CURSOR0_0_CURSOR_HOT_SPOT, CURSOR_HOT_SPOT_X, mask_sh), \ 93 HUBP_SF(CURSOR0_0_CURSOR_HOT_SPOT, CURSOR_HOT_SPOT_Y, mask_sh), \ 94 HUBP_SF(CURSOR0_0_CURSOR_DST_OFFSET, CURSOR_DST_X_OFFSET, mask_sh), \ 95 HUBP_SF(CURSOR0_0_DMDATA_ADDRESS_HIGH, DMDATA_ADDRESS_HIGH, mask_sh), \ 96 HUBP_SF(CURSOR0_0_DMDATA_CNTL, DMDATA_MODE, mask_sh), \ 97 HUBP_SF(CURSOR0_0_DMDATA_CNTL, DMDATA_UPDATED, mask_sh), \ 98 HUBP_SF(CURSOR0_0_DMDATA_CNTL, DMDATA_REPEAT, mask_sh), \ 99 HUBP_SF(CURSOR0_0_DMDATA_CNTL, DMDATA_SIZE, mask_sh), \ 100 HUBP_SF(CURSOR0_0_DMDATA_SW_CNTL, DMDATA_SW_UPDATED, mask_sh), \ 101 HUBP_SF(CURSOR0_0_DMDATA_SW_CNTL, DMDATA_SW_REPEAT, mask_sh), \ 102 HUBP_SF(CURSOR0_0_DMDATA_SW_CNTL, DMDATA_SW_SIZE, mask_sh), \ 103 HUBP_SF(CURSOR0_0_DMDATA_QOS_CNTL, DMDATA_QOS_MODE, mask_sh), \ 104 HUBP_SF(CURSOR0_0_DMDATA_QOS_CNTL, DMDATA_QOS_LEVEL, mask_sh), \ 105 HUBP_SF(CURSOR0_0_DMDATA_QOS_CNTL, DMDATA_DL_DELTA, mask_sh), \ 106 HUBP_SF(CURSOR0_0_DMDATA_STATUS, DMDATA_DONE, mask_sh),\ 107 HUBP_SF(HUBPREQ0_FLIP_PARAMETERS_0, DST_Y_PER_VM_FLIP, mask_sh),\ 108 HUBP_SF(HUBPREQ0_FLIP_PARAMETERS_0, DST_Y_PER_ROW_FLIP, mask_sh),\ 109 HUBP_SF(HUBPREQ0_FLIP_PARAMETERS_1, REFCYC_PER_PTE_GROUP_FLIP_L, mask_sh),\ 110 HUBP_SF(HUBPREQ0_FLIP_PARAMETERS_2, REFCYC_PER_META_CHUNK_FLIP_L, mask_sh),\ 111 HUBP_SF(HUBP0_DCHUBP_CNTL, HUBP_VREADY_AT_OR_AFTER_VSYNC, mask_sh),\ 112 HUBP_SF(HUBP0_DCHUBP_CNTL, HUBP_DISABLE_STOP_DATA_DURING_VM, mask_sh),\ 113 HUBP_SF(HUBPREQ0_DCSURF_FLIP_CONTROL, HUBPREQ_MASTER_UPDATE_LOCK_STATUS, mask_sh),\ 114 HUBP_SF(HUBPREQ0_DCSURF_FLIP_CONTROL2, SURFACE_GSL_ENABLE, mask_sh),\ 115 HUBP_SF(HUBPREQ0_DCSURF_FLIP_CONTROL2, SURFACE_TRIPLE_BUFFER_ENABLE, mask_sh),\ 116 HUBP_SF(HUBPREQ0_VMID_SETTINGS_0, VMID, mask_sh) 117 118 /*DCN2.x and DCN1.x*/ 119 #define HUBP_MASK_SH_LIST_DCN2_COMMON(mask_sh)\ 120 HUBP_MASK_SH_LIST_DCN2_SHARE_COMMON(mask_sh),\ 121 HUBP_SF(HUBP0_DCSURF_TILING_CONFIG, RB_ALIGNED, mask_sh),\ 122 HUBP_SF(HUBP0_DCHUBP_REQ_SIZE_CONFIG, MPTE_GROUP_SIZE, mask_sh),\ 123 HUBP_SF(HUBP0_DCHUBP_REQ_SIZE_CONFIG_C, MPTE_GROUP_SIZE_C, mask_sh) 124 125 /*DCN2.0 specific*/ 126 #define HUBP_MASK_SH_LIST_DCN20(mask_sh)\ 127 HUBP_MASK_SH_LIST_DCN2_COMMON(mask_sh),\ 128 HUBP_SF(DCN_VM_SYSTEM_APERTURE_DEFAULT_ADDR_MSB, DCN_VM_SYSTEM_APERTURE_DEFAULT_SYSTEM, mask_sh),\ 129 HUBP_SF(DCN_VM_SYSTEM_APERTURE_DEFAULT_ADDR_MSB, DCN_VM_SYSTEM_APERTURE_DEFAULT_ADDR_MSB, mask_sh),\ 130 HUBP_SF(DCN_VM_SYSTEM_APERTURE_DEFAULT_ADDR_LSB, DCN_VM_SYSTEM_APERTURE_DEFAULT_ADDR_LSB, mask_sh) 131 132 /*DCN2.x */ 133 #define DCN2_HUBP_REG_COMMON_VARIABLE_LIST \ 134 HUBP_COMMON_REG_VARIABLE_LIST; \ 135 uint32_t DMDATA_ADDRESS_HIGH; \ 136 uint32_t DMDATA_ADDRESS_LOW; \ 137 uint32_t DMDATA_CNTL; \ 138 uint32_t DMDATA_SW_CNTL; \ 139 uint32_t DMDATA_QOS_CNTL; \ 140 uint32_t DMDATA_SW_DATA; \ 141 uint32_t DMDATA_STATUS;\ 142 uint32_t DCSURF_FLIP_CONTROL2;\ 143 uint32_t FLIP_PARAMETERS_0;\ 144 uint32_t FLIP_PARAMETERS_1;\ 145 uint32_t FLIP_PARAMETERS_2;\ 146 uint32_t DCN_CUR1_TTU_CNTL0;\ 147 uint32_t DCN_CUR1_TTU_CNTL1;\ 148 uint32_t VMID_SETTINGS_0 149 150 /*shared with dcn3.x*/ 151 #define DCN21_HUBP_REG_COMMON_VARIABLE_LIST \ 152 DCN2_HUBP_REG_COMMON_VARIABLE_LIST; \ 153 uint32_t FLIP_PARAMETERS_3;\ 154 uint32_t FLIP_PARAMETERS_4;\ 155 uint32_t FLIP_PARAMETERS_5;\ 156 uint32_t FLIP_PARAMETERS_6;\ 157 uint32_t VBLANK_PARAMETERS_5;\ 158 uint32_t VBLANK_PARAMETERS_6 159 160 #define DCN30_HUBP_REG_COMMON_VARIABLE_LIST \ 161 DCN21_HUBP_REG_COMMON_VARIABLE_LIST;\ 162 uint32_t DCN_DMDATA_VM_CNTL 163 164 #define DCN32_HUBP_REG_COMMON_VARIABLE_LIST \ 165 DCN30_HUBP_REG_COMMON_VARIABLE_LIST;\ 166 uint32_t DCHUBP_MALL_CONFIG;\ 167 uint32_t DCHUBP_VMPG_CONFIG;\ 168 uint32_t UCLK_PSTATE_FORCE 169 170 #define DCN401_HUBP_REG_COMMON_VARIABLE_LIST \ 171 DCN32_HUBP_REG_COMMON_VARIABLE_LIST;\ 172 uint32_t _3DLUT_FL_BIAS_SCALE;\ 173 uint32_t _3DLUT_FL_CONFIG;\ 174 uint32_t HUBP_3DLUT_ADDRESS_HIGH;\ 175 uint32_t HUBP_3DLUT_ADDRESS_LOW;\ 176 uint32_t HUBP_3DLUT_CONTROL;\ 177 uint32_t HUBP_3DLUT_DLG_PARAM;\ 178 uint32_t DCSURF_VIEWPORT_MCACHE_SPLIT_COORDINATE;\ 179 uint32_t DCHUBP_MCACHEID_CONFIG 180 181 #define DCN2_HUBP_REG_FIELD_VARIABLE_LIST(type) \ 182 DCN_HUBP_REG_FIELD_BASE_LIST(type); \ 183 type DMDATA_ADDRESS_HIGH;\ 184 type DMDATA_MODE;\ 185 type DMDATA_UPDATED;\ 186 type DMDATA_REPEAT;\ 187 type DMDATA_SIZE;\ 188 type DMDATA_SW_UPDATED;\ 189 type DMDATA_SW_REPEAT;\ 190 type DMDATA_SW_SIZE;\ 191 type DMDATA_QOS_MODE;\ 192 type DMDATA_QOS_LEVEL;\ 193 type DMDATA_DL_DELTA;\ 194 type DMDATA_DONE;\ 195 type DST_Y_PER_VM_FLIP;\ 196 type DST_Y_PER_ROW_FLIP;\ 197 type REFCYC_PER_PTE_GROUP_FLIP_L;\ 198 type REFCYC_PER_META_CHUNK_FLIP_L;\ 199 type HUBP_VREADY_AT_OR_AFTER_VSYNC;\ 200 type HUBP_DISABLE_STOP_DATA_DURING_VM;\ 201 type HUBPREQ_MASTER_UPDATE_LOCK_STATUS;\ 202 type SURFACE_GSL_ENABLE;\ 203 type SURFACE_TRIPLE_BUFFER_ENABLE;\ 204 type VMID 205 206 #define DCN21_HUBP_REG_FIELD_VARIABLE_LIST(type) \ 207 DCN2_HUBP_REG_FIELD_VARIABLE_LIST(type);\ 208 type REFCYC_PER_VM_GROUP_FLIP;\ 209 type REFCYC_PER_VM_REQ_FLIP;\ 210 type REFCYC_PER_VM_GROUP_VBLANK;\ 211 type REFCYC_PER_VM_REQ_VBLANK;\ 212 type REFCYC_PER_PTE_GROUP_FLIP_C; \ 213 type REFCYC_PER_META_CHUNK_FLIP_C; \ 214 type VM_GROUP_SIZE 215 216 #define DCN30_HUBP_REG_FIELD_VARIABLE_LIST(type) \ 217 DCN21_HUBP_REG_FIELD_VARIABLE_LIST(type);\ 218 type PRIMARY_SURFACE_DCC_IND_BLK;\ 219 type SECONDARY_SURFACE_DCC_IND_BLK;\ 220 type PRIMARY_SURFACE_DCC_IND_BLK_C;\ 221 type SECONDARY_SURFACE_DCC_IND_BLK_C;\ 222 type ALPHA_PLANE_EN;\ 223 type REFCYC_PER_VM_DMDATA;\ 224 type DMDATA_VM_FAULT_STATUS;\ 225 type DMDATA_VM_FAULT_STATUS_CLEAR; \ 226 type DMDATA_VM_UNDERFLOW_STATUS;\ 227 type DMDATA_VM_LATE_STATUS;\ 228 type DMDATA_VM_UNDERFLOW_STATUS_CLEAR; \ 229 type DMDATA_VM_DONE; \ 230 type CROSSBAR_SRC_Y_G; \ 231 type CROSSBAR_SRC_ALPHA; \ 232 type PACK_3TO2_ELEMENT_DISABLE; \ 233 type ROW_TTU_MODE; \ 234 type NUM_PKRS 235 236 #define DCN31_HUBP_REG_FIELD_VARIABLE_LIST(type) \ 237 DCN30_HUBP_REG_FIELD_VARIABLE_LIST(type);\ 238 type HUBP_UNBOUNDED_REQ_MODE;\ 239 type CURSOR_REQ_MODE;\ 240 type HUBP_SOFT_RESET 241 242 #define DCN32_HUBP_REG_FIELD_VARIABLE_LIST(type) \ 243 DCN31_HUBP_REG_FIELD_VARIABLE_LIST(type);\ 244 type USE_MALL_SEL; \ 245 type USE_MALL_FOR_CURSOR;\ 246 type VMPG_SIZE; \ 247 type PTE_BUFFER_MODE; \ 248 type BIGK_FRAGMENT_SIZE; \ 249 type FORCE_ONE_ROW_FOR_FRAME; \ 250 type DATA_UCLK_PSTATE_FORCE_EN; \ 251 type DATA_UCLK_PSTATE_FORCE_VALUE; \ 252 type CURSOR_UCLK_PSTATE_FORCE_EN; \ 253 type CURSOR_UCLK_PSTATE_FORCE_VALUE 254 255 #define DCN401_HUBP_REG_FIELD_VARIABLE_LIST(type) \ 256 DCN32_HUBP_REG_FIELD_VARIABLE_LIST(type);\ 257 type MALL_PREF_CMD_TYPE; \ 258 type MALL_PREF_MODE; \ 259 type HUBP0_3DLUT_FL_MODE; \ 260 type HUBP0_3DLUT_FL_FORMAT; \ 261 type HUBP0_3DLUT_FL_SCALE; \ 262 type HUBP0_3DLUT_FL_BIAS; \ 263 type HUBP_3DLUT_ENABLE;\ 264 type HUBP_3DLUT_DONE;\ 265 type HUBP_3DLUT_ADDRESSING_MODE;\ 266 type HUBP_3DLUT_WIDTH;\ 267 type HUBP_3DLUT_TMZ;\ 268 type HUBP_3DLUT_CROSSBAR_SELECT_Y_G;\ 269 type HUBP_3DLUT_CROSSBAR_SELECT_CB_B;\ 270 type HUBP_3DLUT_CROSSBAR_SELECT_CR_R;\ 271 type HUBP_3DLUT_ADDRESS_HIGH;\ 272 type HUBP_3DLUT_ADDRESS_LOW;\ 273 type REFCYC_PER_3DLUT_GROUP;\ 274 type VIEWPORT_MCACHE_SPLIT_COORDINATE;\ 275 type VIEWPORT_MCACHE_SPLIT_COORDINATE_C;\ 276 type MCACHEID_REG_READ_1H_P0;\ 277 type MCACHEID_REG_READ_2H_P0;\ 278 type MCACHEID_REG_READ_1H_P1;\ 279 type MCACHEID_REG_READ_2H_P1;\ 280 type MCACHEID_MALL_PREF_1H_P0;\ 281 type MCACHEID_MALL_PREF_2H_P0;\ 282 type MCACHEID_MALL_PREF_1H_P1;\ 283 type MCACHEID_MALL_PREF_2H_P1 284 285 286 287 struct dcn_hubp2_registers { 288 DCN401_HUBP_REG_COMMON_VARIABLE_LIST; 289 }; 290 291 struct dcn_hubp2_shift { 292 DCN401_HUBP_REG_FIELD_VARIABLE_LIST(uint8_t); 293 }; 294 295 struct dcn_hubp2_mask { 296 DCN401_HUBP_REG_FIELD_VARIABLE_LIST(uint32_t); 297 }; 298 299 struct dcn20_hubp { 300 struct hubp base; 301 struct dcn_hubp_state state; 302 const struct dcn_hubp2_registers *hubp_regs; 303 const struct dcn_hubp2_shift *hubp_shift; 304 const struct dcn_hubp2_mask *hubp_mask; 305 }; 306 307 bool hubp2_construct( 308 struct dcn20_hubp *hubp2, 309 struct dc_context *ctx, 310 uint32_t inst, 311 const struct dcn_hubp2_registers *hubp_regs, 312 const struct dcn_hubp2_shift *hubp_shift, 313 const struct dcn_hubp2_mask *hubp_mask); 314 315 void hubp2_setup_interdependent( 316 struct hubp *hubp, 317 struct _vcs_dpi_display_dlg_regs_st *dlg_attr, 318 struct _vcs_dpi_display_ttu_regs_st *ttu_attr); 319 320 void hubp2_vready_at_or_After_vsync(struct hubp *hubp, 321 struct _vcs_dpi_display_pipe_dest_params_st *pipe_dest); 322 323 void hubp2_cursor_set_attributes( 324 struct hubp *hubp, 325 const struct dc_cursor_attributes *attr); 326 327 void hubp2_set_vm_system_aperture_settings(struct hubp *hubp, 328 struct vm_system_aperture_param *apt); 329 330 enum cursor_lines_per_chunk hubp2_get_lines_per_chunk( 331 unsigned int cursor_width, 332 enum dc_cursor_color_format cursor_mode); 333 334 void hubp2_dmdata_set_attributes( 335 struct hubp *hubp, 336 const struct dc_dmdata_attributes *attr); 337 338 void hubp2_dmdata_load( 339 struct hubp *hubp, 340 uint32_t dmdata_sw_size, 341 const uint32_t *dmdata_sw_data); 342 343 bool hubp2_dmdata_status_done(struct hubp *hubp); 344 345 void hubp2_enable_triplebuffer( 346 struct hubp *hubp, 347 bool enable); 348 349 bool hubp2_is_triplebuffer_enabled( 350 struct hubp *hubp); 351 352 void hubp2_set_flip_control_surface_gsl(struct hubp *hubp, bool enable); 353 354 void hubp2_program_deadline( 355 struct hubp *hubp, 356 struct _vcs_dpi_display_dlg_regs_st *dlg_attr, 357 struct _vcs_dpi_display_ttu_regs_st *ttu_attr); 358 359 bool hubp2_program_surface_flip_and_addr( 360 struct hubp *hubp, 361 const struct dc_plane_address *address, 362 bool flip_immediate); 363 364 void hubp2_dcc_control(struct hubp *hubp, bool enable, 365 enum hubp_ind_block_size independent_64b_blks); 366 367 void hubp2_program_size( 368 struct hubp *hubp, 369 enum surface_pixel_format format, 370 const struct plane_size *plane_size, 371 struct dc_plane_dcc_param *dcc); 372 373 void hubp2_program_rotation( 374 struct hubp *hubp, 375 enum dc_rotation_angle rotation, 376 bool horizontal_mirror); 377 378 void hubp2_program_pixel_format( 379 struct hubp *hubp, 380 enum surface_pixel_format format); 381 382 void hubp2_program_surface_config( 383 struct hubp *hubp, 384 enum surface_pixel_format format, 385 union dc_tiling_info *tiling_info, 386 struct plane_size *plane_size, 387 enum dc_rotation_angle rotation, 388 struct dc_plane_dcc_param *dcc, 389 bool horizontal_mirror, 390 unsigned int compat_level); 391 392 bool hubp2_is_flip_pending(struct hubp *hubp); 393 394 void hubp2_set_blank(struct hubp *hubp, bool blank); 395 void hubp2_set_blank_regs(struct hubp *hubp, bool blank); 396 397 void hubp2_cursor_set_position( 398 struct hubp *hubp, 399 const struct dc_cursor_position *pos, 400 const struct dc_cursor_mi_param *param); 401 402 void hubp2_clk_cntl(struct hubp *hubp, bool enable); 403 404 void hubp2_vtg_sel(struct hubp *hubp, uint32_t otg_inst); 405 406 void hubp2_clear_underflow(struct hubp *hubp); 407 408 void hubp2_read_state_common(struct hubp *hubp); 409 410 void hubp2_read_state(struct hubp *hubp); 411 412 #endif /* __DC_MEM_INPUT_DCN20_H__ */ 413 414 415