Back to home page

OSCL-LXR

 
 

    


0001 /*
0002 * Copyright 2012-15 Advanced Micro Devices, Inc.
0003  *
0004  * Permission is hereby granted, free of charge, to any person obtaining a
0005  * copy of this software and associated documentation files (the "Software"),
0006  * to deal in the Software without restriction, including without limitation
0007  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
0008  * and/or sell copies of the Software, and to permit persons to whom the
0009  * Software is furnished to do so, subject to the following conditions:
0010  *
0011  * The above copyright notice and this permission notice shall be included in
0012  * all copies or substantial portions of the Software.
0013  *
0014  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0015  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0016  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
0017  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
0018  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
0019  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
0020  * OTHER DEALINGS IN THE SOFTWARE.
0021  *
0022  * Authors: AMD
0023  *
0024  */
0025 
0026 #ifndef __DC_HWSS_DCE110_H__
0027 #define __DC_HWSS_DCE110_H__
0028 
0029 #include "core_types.h"
0030 #include "hw_sequencer_private.h"
0031 
0032 struct dc;
0033 struct dc_state;
0034 struct dm_pp_display_configuration;
0035 
0036 void dce110_hw_sequencer_construct(struct dc *dc);
0037 
0038 enum dc_status dce110_apply_ctx_to_hw(
0039         struct dc *dc,
0040         struct dc_state *context);
0041 
0042 
0043 void dce110_enable_stream(struct pipe_ctx *pipe_ctx);
0044 
0045 void dce110_disable_stream(struct pipe_ctx *pipe_ctx);
0046 
0047 void dce110_unblank_stream(struct pipe_ctx *pipe_ctx,
0048         struct dc_link_settings *link_settings);
0049 
0050 void dce110_blank_stream(struct pipe_ctx *pipe_ctx);
0051 
0052 void dce110_enable_audio_stream(struct pipe_ctx *pipe_ctx);
0053 void dce110_disable_audio_stream(struct pipe_ctx *pipe_ctx);
0054 
0055 void dce110_update_info_frame(struct pipe_ctx *pipe_ctx);
0056 
0057 void dce110_set_avmute(struct pipe_ctx *pipe_ctx, bool enable);
0058 void dce110_enable_accelerated_mode(struct dc *dc, struct dc_state *context);
0059 
0060 void dce110_power_down(struct dc *dc);
0061 
0062 void dce110_set_safe_displaymarks(
0063         struct resource_context *res_ctx,
0064         const struct resource_pool *pool);
0065 
0066 void dce110_prepare_bandwidth(
0067         struct dc *dc,
0068         struct dc_state *context);
0069 
0070 void dce110_optimize_bandwidth(
0071         struct dc *dc,
0072         struct dc_state *context);
0073 
0074 void dp_receiver_power_ctrl(struct dc_link *link, bool on);
0075 
0076 void dce110_edp_power_control(
0077         struct dc_link *link,
0078         bool power_up);
0079 
0080 void dce110_edp_backlight_control(
0081     struct dc_link *link,
0082     bool enable);
0083 
0084 void dce110_edp_wait_for_hpd_ready(
0085         struct dc_link *link,
0086         bool power_up);
0087 
0088 bool dce110_set_backlight_level(struct pipe_ctx *pipe_ctx,
0089         uint32_t backlight_pwm_u16_16,
0090         uint32_t frame_ramp);
0091 void dce110_set_abm_immediate_disable(struct pipe_ctx *pipe_ctx);
0092 void dce110_set_pipe(struct pipe_ctx *pipe_ctx);
0093 
0094 #endif /* __DC_HWSS_DCE110_H__ */
0095