/* * 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 "atom.h" #include "include/grph_object_id.h" #include "include/grph_object_defs.h" #include "include/bios_parser_types.h" #include "../command_table_helper.h" static uint8_t encoder_action_to_atom(enum bp_encoder_control_action action) { … } static bool engine_bp_to_atom(enum engine_id id, uint32_t *atom_engine_id) { … } static bool clock_source_id_to_atom( enum clock_source_id id, uint32_t *atom_pll_id) { … } static uint8_t clock_source_id_to_atom_phy_clk_src_id( enum clock_source_id id) { … } static uint8_t signal_type_to_atom_dig_mode(enum signal_type s) { … } static uint8_t hpd_sel_to_atom(enum hpd_source_id id) { … } static uint8_t dig_encoder_sel_to_atom(enum engine_id id) { … } static uint8_t phy_id_to_atom(enum transmitter t) { … } static uint8_t disp_power_gating_action_to_atom( enum bp_pipe_control_action action) { … } static const struct command_table_helper command_table_helper_funcs = …; const struct command_table_helper *dal_cmd_tbl_helper_dce60_get_table(void) { … }