diff options
Diffstat (limited to 'drivers/gpu/drm/amd/display/include')
7 files changed, 0 insertions, 295 deletions
diff --git a/drivers/gpu/drm/amd/display/include/asic_capability_interface.h b/drivers/gpu/drm/amd/display/include/asic_capability_interface.h deleted file mode 100644 index 57cc72fdc560..000000000000 --- a/drivers/gpu/drm/amd/display/include/asic_capability_interface.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2012-15 Advanced Micro Devices, Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of enc 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 enc 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 - * - */ - -#ifndef __DAL_ASIC_CAPABILITY_INTERFACE_H__ -#define __DAL_ASIC_CAPABILITY_INTERFACE_H__ - -/* Include */ -#include "include/asic_capability_types.h" - -/* Forward declaration */ -struct hw_asic_id; - -/* ASIC capability */ -struct asic_capability { - struct dc_context *ctx; - struct asic_caps caps; - struct asic_stereo_3d_caps stereo_3d_caps; - struct asic_bugs bugs; - uint32_t data[ASIC_DATA_MAX_NUMBER]; -}; - -/** - * Interfaces - */ - -/* Create and initialize ASIC capability */ -struct asic_capability *dal_asic_capability_create(struct hw_asic_id *init, - struct dc_context *ctx); - -/* Destroy ASIC capability and free memory space */ -void dal_asic_capability_destroy(struct asic_capability **cap); - -#endif /* __DAL_ASIC_CAPABILITY_INTERFACE_H__ */ diff --git a/drivers/gpu/drm/amd/display/include/asic_capability_types.h b/drivers/gpu/drm/amd/display/include/asic_capability_types.h deleted file mode 100644 index c44dae043599..000000000000 --- a/drivers/gpu/drm/amd/display/include/asic_capability_types.h +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Copyright 2012-15 Advanced Micro Devices, Inc. - * - * 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 - * - */ -#ifndef __DAL_ASIC_CAPABILITY_TYPES_H__ -#define __DAL_ASIC_CAPABILITY_TYPES_H__ - -/* - * ASIC Capabilities - */ -struct asic_caps { - bool CONSUMER_SINGLE_SELECTED_TIMING:1; - bool UNDERSCAN_ADJUST:1; - bool DELTA_SIGMA_SUPPORT:1; - bool PANEL_SELF_REFRESH_SUPPORTED:1; - bool IS_FUSION:1; - bool DP_MST_SUPPORTED:1; - bool UNDERSCAN_FOR_HDMI_ONLY:1; - bool DVI_CLOCK_SHARE_CAPABILITY:1; - bool SUPPORT_CEA861E_FINAL:1; - bool MIRABILIS_SUPPORTED:1; - bool MIRABILIS_ENABLED_BY_DEFAULT:1; - bool DEVICE_TAG_REMAP_SUPPORTED:1; - bool HEADLESS_NO_OPM_SUPPORTED:1; - bool WIRELESS_LIMIT_TO_720P:1; - bool WIRELESS_FULL_TIMING_ADJUSTMENT:1; - bool WIRELESS_TIMING_ADJUSTMENT:1; - bool WIRELESS_COMPRESSED_AUDIO:1; - bool VCE_SUPPORTED:1; - bool HPD_CHECK_FOR_EDID:1; - bool NEED_MC_TUNING:1; - bool SKIP_PSR_WAIT_FOR_PLL_LOCK_BIT:1; - bool DFSBYPASS_DYNAMIC_SUPPORT:1; - bool SUPPORT_8BPP:1; -}; - -/* - * ASIC Stereo 3D Caps - */ -struct asic_stereo_3d_caps { - bool SUPPORTED:1; - bool DISPLAY_BASED_ON_WS:1; - bool HDMI_FRAME_PACK:1; - bool INTERLACE_FRAME_PACK:1; - bool DISPLAYPORT_FRAME_PACK:1; - bool DISPLAYPORT_FRAME_ALT:1; - bool INTERLEAVE:1; -}; - -/* - * ASIC Bugs - */ -struct asic_bugs { - bool MST_SYMBOL_MISALIGNMENT:1; - bool PSR_2X_LANE_GANGING:1; - bool LB_WA_IS_SUPPORTED:1; - bool ROM_REGISTER_ACCESS:1; - bool PSR_WA_OVERSCAN_CRC_ERROR:1; -}; - -/* - * ASIC Data - */ -enum asic_data { - ASIC_DATA_FIRST = 0, - ASIC_DATA_DCE_VERSION = ASIC_DATA_FIRST, - ASIC_DATA_DCE_VERSION_MINOR, - ASIC_DATA_LINEBUFFER_SIZE, - ASIC_DATA_DRAM_BANDWIDTH_EFFICIENCY, - ASIC_DATA_MC_LATENCY, - ASIC_DATA_MC_LATENCY_SLOW, - ASIC_DATA_MEMORYTYPE_MULTIPLIER, - ASIC_DATA_PATH_NUM_PER_DPMST_CONNECTOR, - ASIC_DATA_MAX_UNDERSCAN_PERCENTAGE, - ASIC_DATA_VIEWPORT_PIXEL_GRANULARITY, - ASIC_DATA_MIN_DISPCLK_FOR_UNDERSCAN, - ASIC_DATA_DOWNSCALE_LIMIT, - ASIC_DATA_MAX_NUMBER /* end of enum */ -}; - -/* - * ASIC Feature Flags - */ -struct asic_feature_flags { - union { - uint32_t raw; - struct { - uint32_t LEGACY_CLIENT:1; - uint32_t PACKED_PIXEL_FORMAT:1; - uint32_t WORKSTATION_STEREO:1; - uint32_t WORKSTATION:1; - } bits; - }; -}; - -#endif /* __DAL_ASIC_CAPABILITY_TYPES_H__ */ diff --git a/drivers/gpu/drm/amd/display/include/bios_parser_types.h b/drivers/gpu/drm/amd/display/include/bios_parser_types.h index 9ab9065735f7..7de4fa5a0726 100644 --- a/drivers/gpu/drm/amd/display/include/bios_parser_types.h +++ b/drivers/gpu/drm/amd/display/include/bios_parser_types.h @@ -190,14 +190,6 @@ struct bp_hw_crtc_timing_parameters { } flags; }; -struct bp_hw_crtc_overscan_parameters { - enum controller_id controller_id; - uint32_t h_overscan_left; - uint32_t h_overscan_right; - uint32_t v_overscan_top; - uint32_t v_overscan_bottom; -}; - struct bp_adjust_pixel_clock_parameters { /* Input: Signal Type - to be converted to Encoder mode */ enum signal_type signal_type; diff --git a/drivers/gpu/drm/amd/display/include/ddc_service_types.h b/drivers/gpu/drm/amd/display/include/ddc_service_types.h index 0a6ba91e3eba..effe03b8f418 100644 --- a/drivers/gpu/drm/amd/display/include/ddc_service_types.h +++ b/drivers/gpu/drm/amd/display/include/ddc_service_types.h @@ -52,12 +52,6 @@ enum ddc_service_type { DDC_SERVICE_TYPE_DISPLAY_PORT_MST, }; -enum dcs_dpcd_revision { - DCS_DPCD_REV_10 = 0x10, - DCS_DPCD_REV_11 = 0x11, - DCS_DPCD_REV_12 = 0x12 -}; - /** * display sink capability */ @@ -97,7 +91,6 @@ struct display_sink_capability { uint32_t dp_link_rate; uint32_t dp_link_spead; - enum dcs_dpcd_revision dpcd_revision; /* If dongle_type == DISPLAY_DONGLE_DP_HDMI_CONVERTER, indicates 'Frame Sequential-to-lllFrame Pack' conversion capability.*/ bool is_dp_hdmi_s3d_converter; diff --git a/drivers/gpu/drm/amd/display/include/irq_interface.h b/drivers/gpu/drm/amd/display/include/irq_interface.h deleted file mode 100644 index 077ded3fbedd..000000000000 --- a/drivers/gpu/drm/amd/display/include/irq_interface.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright 2012-15 Advanced Micro Devices, Inc. - * - * 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 - * - */ - -#ifndef __DAL_IRQ_INTERFACE_H__ -#define __DAL_IRQ_INTERFACE_H__ - -#include "gpio_types.h" - -#endif diff --git a/drivers/gpu/drm/amd/display/include/link_service_types.h b/drivers/gpu/drm/amd/display/include/link_service_types.h index 6160a467ba37..479e5fff8a00 100644 --- a/drivers/gpu/drm/amd/display/include/link_service_types.h +++ b/drivers/gpu/drm/amd/display/include/link_service_types.h @@ -38,34 +38,11 @@ enum { MAX_CONTROLLER_NUM = 6 }; -enum link_service_type { - LINK_SERVICE_TYPE_LEGACY = 0, - LINK_SERVICE_TYPE_DP_SST, - LINK_SERVICE_TYPE_DP_MST, - LINK_SERVICE_TYPE_MAX -}; - -enum dpcd_value_mask { - DPCD_VALUE_MASK_MAX_LANE_COUNT_LANE_COUNT = 0x1F, - DPCD_VALUE_MASK_MAX_LANE_COUNT_TPS3_SUPPORTED = 0x40, - DPCD_VALUE_MASK_MAX_LANE_COUNT_ENHANCED_FRAME_EN = 0x80, - DPCD_VALUE_MASK_MAX_DOWNSPREAD = 0x01, - DPCD_VALUE_MASK_LANE_ALIGN_STATUS_INTERLANE_ALIGN_DONE = 0x01 -}; - enum dp_power_state { DP_POWER_STATE_D0 = 1, DP_POWER_STATE_D3 }; -enum dpcd_downstream_port_types { - DPCD_DOWNSTREAM_DP, - DPCD_DOWNSTREAM_VGA, - DPCD_DOWNSTREAM_DVI_HDMI, - /* has no EDID (TV, CV) */ - DPCD_DOWNSTREAM_NON_DDC -}; - enum edp_revision { /* eDP version 1.1 or lower */ EDP_REVISION_11 = 0x00, @@ -135,36 +112,6 @@ enum dp_panel_mode { DP_PANEL_MODE_SPECIAL }; -/** - * @brief LinkServiceInitOptions to set certain bits - */ -struct link_service_init_options { - uint32_t APPLY_MISALIGNMENT_BUG_WORKAROUND:1; -}; - -/** - * @brief data required to initialize LinkService - */ -struct link_service_init_data { - /* number of displays indices which the MST Mgr would manange*/ - uint32_t num_of_displays; - enum link_service_type link_type; - /*struct mst_mgr_callback_object*topology_change_callback;*/ - /* native aux access */ - struct ddc_service *dpcd_access_srv; - /* for calling HWSS to program HW */ - struct hw_sequencer *hwss; - /* the source which to register IRQ on */ - enum dc_irq_source irq_src_hpd_rx; - enum dc_irq_source irq_src_dp_sink; - /* other init options such as SW Workarounds */ - struct link_service_init_options init_options; - uint32_t connector_enum_id; - struct graphics_object_id connector_id; - struct dc_context *ctx; - struct topology_mgr *tm; -}; - /* DPCD_ADDR_TRAINING_LANEx_SET registers value */ union dpcd_training_lane_set { struct { @@ -189,28 +136,6 @@ union dpcd_training_lane_set { uint8_t raw; }; -/** - * @brief represent the 16 byte - * global unique identifier - */ -struct mst_guid { - uint8_t ids[16]; -}; - -/** - * @brief represents the relative address used - * to identify a node in MST topology network - */ -struct mst_rad { - /* number of links. rad[0] up to - * rad [linkCount - 1] are valid. */ - uint32_t rad_link_count; - /* relative address. rad[0] is the - * first device connected to the source. */ - uint8_t rad[15]; - /* extra 10 bytes for underscores; for e.g.:2_1_8*/ - int8_t rad_str[25]; -}; /* DP MST stream allocation (payload bandwidth number) */ struct dp_mst_stream_allocation { diff --git a/drivers/gpu/drm/amd/display/include/signal_types.h b/drivers/gpu/drm/amd/display/include/signal_types.h index a50f7ed74a33..d87f84a56fcc 100644 --- a/drivers/gpu/drm/amd/display/include/signal_types.h +++ b/drivers/gpu/drm/amd/display/include/signal_types.h @@ -47,13 +47,10 @@ enum signal_type { bool dc_is_hdmi_signal(enum signal_type signal); bool dc_is_dp_sst_signal(enum signal_type signal); bool dc_is_dp_signal(enum signal_type signal); -bool dc_is_dp_external_signal(enum signal_type signal); -bool dc_is_analog_signal(enum signal_type signal); bool dc_is_embedded_signal(enum signal_type signal); bool dc_is_dvi_signal(enum signal_type signal); bool dc_is_dvi_single_link_signal(enum signal_type signal); bool dc_is_dual_link_signal(enum signal_type signal); bool dc_is_audio_capable_signal(enum signal_type signal); -bool dc_is_digital_encoder_compatible_signal(enum signal_type signal); #endif |