#include "dm_services.h"
#include "core_types.h"
#include "ObjectID.h"
#include "atomfirmware.h"
#include "dc_bios_types.h"
#include "include/grph_object_ctrl_defs.h"
#include "include/bios_parser_interface.h"
#include "include/logger_interface.h"
#include "command_table2.h"
#include "bios_parser_helper.h"
#include "command_table_helper2.h"
#include "bios_parser2.h"
#include "bios_parser_types_internal2.h"
#include "bios_parser_interface.h"
#include "bios_parser_common.h"
#define DC_LOGGER …
#define LAST_RECORD_TYPE …
#define SMU9_SYSPLL0_ID …
static enum bp_result get_gpio_i2c_info(struct bios_parser *bp,
struct atom_i2c_record *record,
struct graphics_object_i2c_info *info);
static enum bp_result bios_parser_get_firmware_info(
struct dc_bios *dcb,
struct dc_firmware_info *info);
static enum bp_result bios_parser_get_encoder_cap_info(
struct dc_bios *dcb,
struct graphics_object_id object_id,
struct bp_encoder_cap_info *info);
static enum bp_result get_firmware_info_v3_1(
struct bios_parser *bp,
struct dc_firmware_info *info);
static enum bp_result get_firmware_info_v3_2(
struct bios_parser *bp,
struct dc_firmware_info *info);
static enum bp_result get_firmware_info_v3_4(
struct bios_parser *bp,
struct dc_firmware_info *info);
static enum bp_result get_firmware_info_v3_5(
struct bios_parser *bp,
struct dc_firmware_info *info);
static struct atom_hpd_int_record *get_hpd_record(struct bios_parser *bp,
struct atom_display_object_path_v2 *object);
static struct atom_encoder_caps_record *get_encoder_cap_record(
struct bios_parser *bp,
struct atom_display_object_path_v2 *object);
#define BIOS_IMAGE_SIZE_OFFSET …
#define BIOS_IMAGE_SIZE_UNIT …
#define DATA_TABLES(table) …
static void bios_parser2_destruct(struct bios_parser *bp)
{ … }
static void firmware_parser_destroy(struct dc_bios **dcb)
{ … }
static void get_atom_data_table_revision(
struct atom_common_table_header *atom_data_tbl,
struct atom_data_revision *tbl_revision)
{ … }
static uint8_t bios_parser_get_connectors_number(struct dc_bios *dcb)
{ … }
static struct graphics_object_id bios_parser_get_connector_id(
struct dc_bios *dcb,
uint8_t i)
{ … }
static enum bp_result bios_parser_get_src_obj(struct dc_bios *dcb,
struct graphics_object_id object_id, uint32_t index,
struct graphics_object_id *src_object_id)
{ … }
static struct atom_display_object_path_v2 *get_bios_object(
struct bios_parser *bp,
struct graphics_object_id id)
{ … }
static struct atom_display_object_path_v3 *get_bios_object_from_path_v3(struct bios_parser *bp,
struct graphics_object_id id)
{ … }
static enum bp_result bios_parser_get_i2c_info(struct dc_bios *dcb,
struct graphics_object_id id,
struct graphics_object_i2c_info *info)
{ … }
static enum bp_result get_gpio_i2c_info(
struct bios_parser *bp,
struct atom_i2c_record *record,
struct graphics_object_i2c_info *info)
{ … }
static struct atom_hpd_int_record *get_hpd_record_for_path_v3(struct bios_parser *bp,
struct atom_display_object_path_v3 *object)
{ … }
static enum bp_result bios_parser_get_hpd_info(
struct dc_bios *dcb,
struct graphics_object_id id,
struct graphics_object_hpd_info *info)
{ … }
static struct atom_hpd_int_record *get_hpd_record(
struct bios_parser *bp,
struct atom_display_object_path_v2 *object)
{ … }
static enum bp_result bios_parser_get_gpio_pin_info(
struct dc_bios *dcb,
uint32_t gpio_id,
struct gpio_pin_info *info)
{ … }
static struct device_id device_type_from_device_id(uint16_t device_id)
{ … }
static enum bp_result bios_parser_get_device_tag(
struct dc_bios *dcb,
struct graphics_object_id connector_object_id,
uint32_t device_tag_index,
struct connector_device_tag_info *info)
{ … }
static enum bp_result get_ss_info_v4_1(
struct bios_parser *bp,
uint32_t id,
uint32_t index,
struct spread_spectrum_info *ss_info)
{ … }
static enum bp_result get_ss_info_v4_2(
struct bios_parser *bp,
uint32_t id,
uint32_t index,
struct spread_spectrum_info *ss_info)
{ … }
static enum bp_result get_ss_info_v4_5(
struct bios_parser *bp,
uint32_t id,
uint32_t index,
struct spread_spectrum_info *ss_info)
{ … }
static enum bp_result bios_parser_get_spread_spectrum_info(
struct dc_bios *dcb,
enum as_signal_type signal,
uint32_t index,
struct spread_spectrum_info *ss_info)
{ … }
static enum bp_result get_soc_bb_info_v4_4(
struct bios_parser *bp,
struct bp_soc_bb_info *soc_bb_info)
{ … }
static enum bp_result get_soc_bb_info_v4_5(
struct bios_parser *bp,
struct bp_soc_bb_info *soc_bb_info)
{ … }
static enum bp_result bios_parser_get_soc_bb_info(
struct dc_bios *dcb,
struct bp_soc_bb_info *soc_bb_info)
{ … }
static enum bp_result get_disp_caps_v4_1(
struct bios_parser *bp,
uint8_t *dce_caps)
{ … }
static enum bp_result get_disp_caps_v4_2(
struct bios_parser *bp,
uint8_t *dce_caps)
{ … }
static enum bp_result get_disp_caps_v4_3(
struct bios_parser *bp,
uint8_t *dce_caps)
{ … }
static enum bp_result get_disp_caps_v4_4(
struct bios_parser *bp,
uint8_t *dce_caps)
{ … }
static enum bp_result get_disp_caps_v4_5(
struct bios_parser *bp,
uint8_t *dce_caps)
{ … }
static enum bp_result bios_parser_get_lttpr_interop(
struct dc_bios *dcb,
uint8_t *dce_caps)
{ … }
static enum bp_result bios_parser_get_lttpr_caps(
struct dc_bios *dcb,
uint8_t *dce_caps)
{ … }
static enum bp_result get_embedded_panel_info_v2_1(
struct bios_parser *bp,
struct embedded_panel_info *info)
{ … }
static enum bp_result bios_parser_get_embedded_panel_info(
struct dc_bios *dcb,
struct embedded_panel_info *info)
{ … }
static uint32_t get_support_mask_for_device_id(struct device_id device_id)
{ … }
static bool bios_parser_is_device_id_supported(
struct dc_bios *dcb,
struct device_id id)
{ … }
static uint32_t bios_parser_get_ss_entry_number(
struct dc_bios *dcb,
enum as_signal_type signal)
{ … }
static enum bp_result bios_parser_transmitter_control(
struct dc_bios *dcb,
struct bp_transmitter_control *cntl)
{ … }
static enum bp_result bios_parser_encoder_control(
struct dc_bios *dcb,
struct bp_encoder_control *cntl)
{ … }
static enum bp_result bios_parser_set_pixel_clock(
struct dc_bios *dcb,
struct bp_pixel_clock_parameters *bp_params)
{ … }
static enum bp_result bios_parser_set_dce_clock(
struct dc_bios *dcb,
struct bp_set_dce_clock_parameters *bp_params)
{ … }
static enum bp_result bios_parser_program_crtc_timing(
struct dc_bios *dcb,
struct bp_hw_crtc_timing_parameters *bp_params)
{ … }
static enum bp_result bios_parser_enable_crtc(
struct dc_bios *dcb,
enum controller_id id,
bool enable)
{ … }
static enum bp_result bios_parser_enable_disp_power_gating(
struct dc_bios *dcb,
enum controller_id controller_id,
enum bp_pipe_control_action action)
{ … }
static enum bp_result bios_parser_enable_lvtma_control(
struct dc_bios *dcb,
uint8_t uc_pwr_on,
uint8_t pwrseq_instance,
uint8_t bypass_panel_control_wait)
{ … }
static bool bios_parser_is_accelerated_mode(
struct dc_bios *dcb)
{ … }
static void bios_parser_set_scratch_critical_state(
struct dc_bios *dcb,
bool state)
{ … }
static enum bp_result bios_parser_get_firmware_info(
struct dc_bios *dcb,
struct dc_firmware_info *info)
{ … }
static enum bp_result get_firmware_info_v3_1(
struct bios_parser *bp,
struct dc_firmware_info *info)
{ … }
static enum bp_result get_firmware_info_v3_2(
struct bios_parser *bp,
struct dc_firmware_info *info)
{ … }
static enum bp_result get_firmware_info_v3_4(
struct bios_parser *bp,
struct dc_firmware_info *info)
{ … }
static enum bp_result get_firmware_info_v3_5(
struct bios_parser *bp,
struct dc_firmware_info *info)
{ … }
static enum bp_result bios_parser_get_encoder_cap_info(
struct dc_bios *dcb,
struct graphics_object_id object_id,
struct bp_encoder_cap_info *info)
{ … }
static struct atom_encoder_caps_record *get_encoder_cap_record(
struct bios_parser *bp,
struct atom_display_object_path_v2 *object)
{ … }
static struct atom_disp_connector_caps_record *get_disp_connector_caps_record(
struct bios_parser *bp,
struct atom_display_object_path_v2 *object)
{ … }
static struct atom_connector_caps_record *get_connector_caps_record(struct bios_parser *bp,
struct atom_display_object_path_v3 *object)
{ … }
static enum bp_result bios_parser_get_disp_connector_caps_info(
struct dc_bios *dcb,
struct graphics_object_id object_id,
struct bp_disp_connector_caps_info *info)
{ … }
static struct atom_connector_speed_record *get_connector_speed_cap_record(struct bios_parser *bp,
struct atom_display_object_path_v3 *object)
{ … }
static enum bp_result bios_parser_get_connector_speed_cap_info(
struct dc_bios *dcb,
struct graphics_object_id object_id,
struct bp_connector_speed_cap_info *info)
{ … }
static enum bp_result get_vram_info_v23(
struct bios_parser *bp,
struct dc_vram_info *info)
{ … }
static enum bp_result get_vram_info_v24(
struct bios_parser *bp,
struct dc_vram_info *info)
{ … }
static enum bp_result get_vram_info_v25(
struct bios_parser *bp,
struct dc_vram_info *info)
{ … }
static enum bp_result get_vram_info_v30(
struct bios_parser *bp,
struct dc_vram_info *info)
{ … }
static enum bp_result get_vram_info_from_umc_info_v40(
struct bios_parser *bp,
struct dc_vram_info *info)
{ … }
static enum bp_result get_integrated_info_v11(
struct bios_parser *bp,
struct integrated_info *info)
{ … }
static enum bp_result get_integrated_info_v2_1(
struct bios_parser *bp,
struct integrated_info *info)
{ … }
static enum bp_result get_integrated_info_v2_2(
struct bios_parser *bp,
struct integrated_info *info)
{ … }
static enum bp_result construct_integrated_info(
struct bios_parser *bp,
struct integrated_info *info)
{ … }
static enum bp_result bios_parser_get_vram_info(
struct dc_bios *dcb,
struct dc_vram_info *info)
{ … }
static struct integrated_info *bios_parser_create_integrated_info(
struct dc_bios *dcb)
{ … }
static enum bp_result update_slot_layout_info(
struct dc_bios *dcb,
unsigned int i,
struct slot_layout_info *slot_layout_info)
{ … }
static enum bp_result update_slot_layout_info_v2(
struct dc_bios *dcb,
unsigned int i,
struct slot_layout_info *slot_layout_info)
{ … }
static enum bp_result get_bracket_layout_record(
struct dc_bios *dcb,
unsigned int bracket_layout_id,
struct slot_layout_info *slot_layout_info)
{ … }
static enum bp_result bios_get_board_layout_info(
struct dc_bios *dcb,
struct board_layout_info *board_layout_info)
{ … }
static uint16_t bios_parser_pack_data_tables(
struct dc_bios *dcb,
void *dst)
{ … }
static struct atom_dc_golden_table_v1 *bios_get_golden_table(
struct bios_parser *bp,
uint32_t rev_major,
uint32_t rev_minor,
uint16_t *dc_golden_table_ver)
{ … }
static enum bp_result bios_get_atom_dc_golden_table(
struct dc_bios *dcb)
{ … }
static const struct dc_vbios_funcs vbios_funcs = …;
static bool bios_parser2_construct(
struct bios_parser *bp,
struct bp_init_data *init,
enum dce_version dce_version)
{ … }
struct dc_bios *firmware_parser_create(
struct bp_init_data *init,
enum dce_version dce_version)
{ … }