/* * Copyright 2020 Mauro Rossi <[email protected]> * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. * * Authors: AMD * */ #include "dm_services.h" #include "dc.h" #include "core_types.h" #include "dce60_hw_sequencer.h" #include "dce/dce_hwseq.h" #include "dce110/dce110_hwseq.h" #include "dce100/dce100_hwseq.h" /* include DCE6 register header files */ #include "dce/dce_6_0_d.h" #include "dce/dce_6_0_sh_mask.h" #define DC_LOGGER_INIT() … /******************************************************************************* * Private definitions ******************************************************************************/ /***************************PIPE_CONTROL***********************************/ /* * Check if FBC can be enabled */ static bool dce60_should_enable_fbc(struct dc *dc, struct dc_state *context, uint32_t *pipe_idx) { … } /* * Enable FBC */ static void dce60_enable_fbc( struct dc *dc, struct dc_state *context) { … } /******************************************************************************* * Front End programming ******************************************************************************/ static void dce60_set_default_colors(struct pipe_ctx *pipe_ctx) { … } /******************************************************************************* * In order to turn on surface we will program * CRTC * * DCE6 has no bottom_pipe and no Blender HW * We need to set 'blank_target' to false in order to turn on the display * * |-----------|------------|---------| * |curr pipe | set_blank | | * |Surface |blank_target| CRCT | * |visibility | argument | | * |-----------|------------|---------| * | off | true | blank | * | on | false | unblank | * |-----------|------------|---------| * ******************************************************************************/ static void dce60_program_surface_visibility(const struct dc *dc, struct pipe_ctx *pipe_ctx) { … } static void dce60_get_surface_visual_confirm_color(const struct pipe_ctx *pipe_ctx, struct tg_color *color) { … } static void dce60_program_scaler(const struct dc *dc, const struct pipe_ctx *pipe_ctx) { … } static void dce60_program_front_end_for_pipe( struct dc *dc, struct pipe_ctx *pipe_ctx) { … } static void dce60_apply_ctx_for_surface( struct dc *dc, const struct dc_stream_state *stream, int num_planes, struct dc_state *context) { … } void dce60_hw_sequencer_construct(struct dc *dc) { … }