/* * Copyright 2007-8 Advanced Micro Devices, Inc. * Copyright 2008 Red Hat 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: Dave Airlie * Alex Deucher */ #include <drm/amdgpu_drm.h> #include "amdgpu.h" #include "amdgpu_connectors.h" #include "amdgpu_display.h" #include "atom.h" #include "atombios_encoders.h" void amdgpu_link_encoder_connector(struct drm_device *dev) { … } void amdgpu_encoder_set_active_device(struct drm_encoder *encoder) { … } struct drm_connector * amdgpu_get_connector_for_encoder(struct drm_encoder *encoder) { … } struct drm_connector * amdgpu_get_connector_for_encoder_init(struct drm_encoder *encoder) { … } struct drm_encoder *amdgpu_get_external_encoder(struct drm_encoder *encoder) { … } u16 amdgpu_encoder_get_dp_bridge_encoder_id(struct drm_encoder *encoder) { … } void amdgpu_panel_mode_fixup(struct drm_encoder *encoder, struct drm_display_mode *adjusted_mode) { … } bool amdgpu_dig_monitor_is_duallink(struct drm_encoder *encoder, u32 pixel_clock) { … }