/* * Copyright 2016 Advanced Micro Devices, Inc. * * 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 "dce_hwseq.h" #include "reg_helper.h" #include "hw_sequencer_private.h" #include "core_types.h" #define CTX … #define REG(reg) … #undef FN #define FN(reg_name, field_name) … void dce_enable_fe_clock(struct dce_hwseq *hws, unsigned int fe_inst, bool enable) { … } void dce_pipe_control_lock(struct dc *dc, struct pipe_ctx *pipe, bool lock) { … } #if defined(CONFIG_DRM_AMD_DC_SI) void dce60_pipe_control_lock(struct dc *dc, struct pipe_ctx *pipe, bool lock) { … } #endif void dce_set_blender_mode(struct dce_hwseq *hws, unsigned int blnd_inst, enum blnd_mode mode) { … } static void dce_disable_sram_shut_down(struct dce_hwseq *hws) { … } static void dce_underlay_clock_enable(struct dce_hwseq *hws) { … } static void enable_hw_base_light_sleep(void) { … } static void disable_sw_manual_control_light_sleep(void) { … } void dce_clock_gating_power_up(struct dce_hwseq *hws, bool enable) { … } void dce_crtc_switch_to_clk_src(struct dce_hwseq *hws, struct clock_source *clk_src, unsigned int tg_inst) { … } /* Only use LUT for 8 bit formats */ bool dce_use_lut(enum surface_pixel_format format) { … }