1ae79c310SHarry Wentland /*
2ae79c310SHarry Wentland  * Copyright 2012-15 Advanced Micro Devices, Inc.
3ae79c310SHarry Wentland  *
4ae79c310SHarry Wentland  * Permission is hereby granted, free of charge, to any person obtaining a
5ae79c310SHarry Wentland  * copy of this software and associated documentation files (the "Software"),
6ae79c310SHarry Wentland  * to deal in the Software without restriction, including without limitation
7ae79c310SHarry Wentland  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8ae79c310SHarry Wentland  * and/or sell copies of the Software, and to permit persons to whom the
9ae79c310SHarry Wentland  * Software is furnished to do so, subject to the following conditions:
10ae79c310SHarry Wentland  *
11ae79c310SHarry Wentland  * The above copyright notice and this permission notice shall be included in
12ae79c310SHarry Wentland  * all copies or substantial portions of the Software.
13ae79c310SHarry Wentland  *
14ae79c310SHarry Wentland  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15ae79c310SHarry Wentland  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16ae79c310SHarry Wentland  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
17ae79c310SHarry Wentland  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18ae79c310SHarry Wentland  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19ae79c310SHarry Wentland  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20ae79c310SHarry Wentland  * OTHER DEALINGS IN THE SOFTWARE.
21ae79c310SHarry Wentland  *
22ae79c310SHarry Wentland  * Authors: AMD
23ae79c310SHarry Wentland  *
24ae79c310SHarry Wentland  */
25ae79c310SHarry Wentland 
26ae79c310SHarry Wentland #ifndef __DAL_COMMAND_TABLE_HELPER2_H__
27ae79c310SHarry Wentland #define __DAL_COMMAND_TABLE_HELPER2_H__
28ae79c310SHarry Wentland 
29c4a54f70SMauro Rossi #if defined(CONFIG_DRM_AMD_DC_SI)
30c4a54f70SMauro Rossi #include "dce60/command_table_helper_dce60.h"
31c4a54f70SMauro Rossi #endif
32ae79c310SHarry Wentland #include "dce80/command_table_helper_dce80.h"
33ae79c310SHarry Wentland #include "dce110/command_table_helper_dce110.h"
34ae79c310SHarry Wentland #include "dce112/command_table_helper2_dce112.h"
35ac5d44fbSArnd Bergmann #include "command_table_helper_struct.h"
36ae79c310SHarry Wentland 
37ae79c310SHarry Wentland bool dal_bios_parser_init_cmd_tbl_helper2(const struct command_table_helper **h,
38ae79c310SHarry Wentland 	enum dce_version dce);
39ae79c310SHarry Wentland 
40ae79c310SHarry Wentland bool dal_cmd_table_helper_controller_id_to_atom2(
41ae79c310SHarry Wentland 	enum controller_id id,
42ae79c310SHarry Wentland 	uint8_t *atom_id);
43ae79c310SHarry Wentland 
44ae79c310SHarry Wentland uint32_t dal_cmd_table_helper_encoder_mode_bp_to_atom2(
45ae79c310SHarry Wentland 	enum signal_type s,
46ae79c310SHarry Wentland 	bool enable_dp_audio);
47ae79c310SHarry Wentland 
48ae79c310SHarry Wentland bool dal_cmd_table_helper_clock_source_id_to_ref_clk_src2(
49ae79c310SHarry Wentland 	enum clock_source_id id,
50ae79c310SHarry Wentland 	uint32_t *ref_clk_src_id);
51ae79c310SHarry Wentland 
52ae79c310SHarry Wentland uint8_t dal_cmd_table_helper_transmitter_bp_to_atom2(
53ae79c310SHarry Wentland 	enum transmitter t);
54ae79c310SHarry Wentland 
55ae79c310SHarry Wentland uint8_t dal_cmd_table_helper_encoder_id_to_atom2(
56ae79c310SHarry Wentland 	enum encoder_id id);
57ae79c310SHarry Wentland #endif
58