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 __DAL_COMMAND_TABLE_H__
0027 #define __DAL_COMMAND_TABLE_H__
0028 
0029 struct bios_parser;
0030 struct bp_encoder_control;
0031 
0032 struct cmd_tbl {
0033     enum bp_result (*dig_encoder_control)(
0034         struct bios_parser *bp,
0035         struct bp_encoder_control *control);
0036     enum bp_result (*encoder_control_dig1)(
0037         struct bios_parser *bp,
0038         struct bp_encoder_control *control);
0039     enum bp_result (*encoder_control_dig2)(
0040         struct bios_parser *bp,
0041         struct bp_encoder_control *control);
0042     enum bp_result (*transmitter_control)(
0043         struct bios_parser *bp,
0044         struct bp_transmitter_control *control);
0045     enum bp_result (*set_pixel_clock)(
0046         struct bios_parser *bp,
0047         struct bp_pixel_clock_parameters *bp_params);
0048     enum bp_result (*enable_spread_spectrum_on_ppll)(
0049         struct bios_parser *bp,
0050         struct bp_spread_spectrum_parameters *bp_params,
0051         bool enable);
0052     enum bp_result (*adjust_display_pll)(
0053         struct bios_parser *bp,
0054         struct bp_adjust_pixel_clock_parameters *bp_params);
0055     enum bp_result (*dac1_encoder_control)(
0056         struct bios_parser *bp,
0057         bool enable,
0058         uint32_t pixel_clock,
0059         uint8_t dac_standard);
0060     enum bp_result (*dac2_encoder_control)(
0061         struct bios_parser *bp,
0062         bool enable,
0063         uint32_t pixel_clock,
0064         uint8_t dac_standard);
0065     enum bp_result (*dac1_output_control)(
0066         struct bios_parser *bp,
0067         bool enable);
0068     enum bp_result (*dac2_output_control)(
0069         struct bios_parser *bp,
0070         bool enable);
0071     enum bp_result (*set_crtc_timing)(
0072         struct bios_parser *bp,
0073         struct bp_hw_crtc_timing_parameters *bp_params);
0074     enum bp_result (*enable_crtc)(
0075         struct bios_parser *bp,
0076         enum controller_id controller_id,
0077         bool enable);
0078     enum bp_result (*enable_crtc_mem_req)(
0079         struct bios_parser *bp,
0080         enum controller_id controller_id,
0081         bool enable);
0082     enum bp_result (*program_clock)(
0083         struct bios_parser *bp,
0084         struct bp_pixel_clock_parameters *bp_params);
0085     enum bp_result (*external_encoder_control)(
0086             struct bios_parser *bp,
0087             struct bp_external_encoder_control *cntl);
0088     enum bp_result (*enable_disp_power_gating)(
0089         struct bios_parser *bp,
0090         enum controller_id crtc_id,
0091         enum bp_pipe_control_action action);
0092     enum bp_result (*set_dce_clock)(
0093         struct bios_parser *bp,
0094         struct bp_set_dce_clock_parameters *bp_params);
0095 };
0096 
0097 void dal_bios_parser_init_cmd_tbl(struct bios_parser *bp);
0098 
0099 #endif