brintos

brintos / linux-shallow public Read only

0
0
Text · 3.2 KiB · 6a153e7 Raw
100 lines · c
1/*2* Copyright 2020 Advanced Micro Devices, Inc.3 *4 * Permission is hereby granted, free of charge, to any person obtaining a5 * copy of this software and associated documentation files (the "Software"),6 * to deal in the Software without restriction, including without limitation7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,8 * and/or sell copies of the Software, and to permit persons to whom the9 * Software is furnished to do so, subject to the following conditions:10 *11 * The above copyright notice and this permission notice shall be included in12 * all copies or substantial portions of the Software.13 *14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL17 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR18 * 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 OR20 * OTHER DEALINGS IN THE SOFTWARE.21 *22 * Authors: AMD23 *24 */25 26#ifndef __DC_HWSS_DCN30_H__27#define __DC_HWSS_DCN30_H__28 29#include "hw_sequencer_private.h"30 31struct dc;32 33void dcn30_init_hw(struct dc *dc);34void dcn30_program_all_writeback_pipes_in_tree(35		struct dc *dc,36		const struct dc_stream_state *stream,37		struct dc_state *context);38void dcn30_update_writeback(39		struct dc *dc,40		struct dc_writeback_info *wb_info,41		struct dc_state *context);42void dcn30_enable_writeback(43		struct dc *dc,44		struct dc_writeback_info *wb_info,45		struct dc_state *context);46void dcn30_disable_writeback(47		struct dc *dc,48		unsigned int dwb_pipe_inst);49 50bool dcn30_mmhubbub_warmup(51	struct dc *dc,52	unsigned int num_dwb,53	struct dc_writeback_info *wb_info);54 55void dcn30_log_color_state(struct dc *dc,56			   struct dc_log_buffer_ctx *log_ctx);57 58bool dcn30_set_blend_lut(struct pipe_ctx *pipe_ctx,59		const struct dc_plane_state *plane_state);60 61bool dcn30_set_input_transfer_func(struct dc *dc,62				struct pipe_ctx *pipe_ctx,63				const struct dc_plane_state *plane_state);64 65void dcn30_program_gamut_remap(struct pipe_ctx *pipe_ctx);66 67bool dcn30_set_output_transfer_func(struct dc *dc,68				struct pipe_ctx *pipe_ctx,69				const struct dc_stream_state *stream);70void dcn30_set_avmute(struct pipe_ctx *pipe_ctx, bool enable);71void dcn30_update_info_frame(struct pipe_ctx *pipe_ctx);72void dcn30_program_dmdata_engine(struct pipe_ctx *pipe_ctx);73 74bool dcn30_does_plane_fit_in_mall(struct dc *dc,75		unsigned int pitch,76		unsigned int height,77		enum surface_pixel_format format,78		struct dc_cursor_attributes *cursor_attr);79 80bool dcn30_apply_idle_power_optimizations(struct dc *dc, bool enable);81 82void dcn30_hardware_release(struct dc *dc);83 84void dcn30_set_disp_pattern_generator(const struct dc *dc,85		struct pipe_ctx *pipe_ctx,86		enum controller_dp_test_pattern test_pattern,87		enum controller_dp_color_space color_space,88		enum dc_color_depth color_depth,89		const struct tg_color *solid_color,90		int width, int height, int offset);91 92void dcn30_set_hubp_blank(const struct dc *dc,93		struct pipe_ctx *pipe_ctx,94		bool blank_enable);95 96void dcn30_prepare_bandwidth(struct dc *dc,97	struct dc_state *context);98 99#endif /* __DC_HWSS_DCN30_H__ */100