2 * Copyright 2016 Advanced Micro Devices, Inc.
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:
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
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.
26 #ifndef __DC_HWSS_DCN32_H__
27 #define __DC_HWSS_DCN32_H__
29 #include "hw_sequencer_private.h"
33 void dcn32_dsc_pg_control(
34 struct dce_hwseq *hws,
35 unsigned int dsc_inst,
38 void dcn32_enable_power_gating_plane(
39 struct dce_hwseq *hws,
42 void dcn32_hubp_pg_control(struct dce_hwseq *hws, unsigned int hubp_inst, bool power_on);
44 bool dcn32_apply_idle_power_optimizations(struct dc *dc, bool enable);
46 void dcn32_cab_for_ss_control(struct dc *dc, bool enable);
48 void dcn32_commit_subvp_config(struct dc *dc, struct dc_state *context);
50 bool dcn32_set_output_transfer_func(struct dc *dc,
51 struct pipe_ctx *pipe_ctx,
52 const struct dc_stream_state *stream);
54 void dcn32_init_hw(struct dc *dc);
56 void dcn32_program_mall_pipe_config(struct dc *dc, struct dc_state *context);
58 void dcn32_update_mall_sel(struct dc *dc, struct dc_state *context);
60 void dcn32_subvp_update_force_pstate(struct dc *dc, struct dc_state *context);
62 void dcn32_update_odm(struct dc *dc, struct dc_state *context, struct pipe_ctx *pipe_ctx);
64 #endif /* __DC_HWSS_DCN32_H__ */