intel_crt.c (298335) | intel_crt.c (300050) |
---|---|
1/* 2 * Copyright �� 2006-2007 Intel Corporation 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining a 5 * copy of this software and associated documentation files (the "Software"), 6 * to deal in the Software without restriction, including without limitation 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 * and/or sell copies of the Software, and to permit persons to whom the --- 11 unchanged lines hidden (view full) --- 20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 21 * DEALINGS IN THE SOFTWARE. 22 * 23 * Authors: 24 * Eric Anholt <eric@anholt.net> 25 */ 26 27#include <sys/cdefs.h> | 1/* 2 * Copyright �� 2006-2007 Intel Corporation 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining a 5 * copy of this software and associated documentation files (the "Software"), 6 * to deal in the Software without restriction, including without limitation 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 * and/or sell copies of the Software, and to permit persons to whom the --- 11 unchanged lines hidden (view full) --- 20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 21 * DEALINGS IN THE SOFTWARE. 22 * 23 * Authors: 24 * Eric Anholt <eric@anholt.net> 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/dev/drm2/i915/intel_crt.c 298335 2016-04-20 03:48:57Z cem $"); | 28__FBSDID("$FreeBSD: head/sys/dev/drm2/i915/intel_crt.c 300050 2016-05-17 12:52:31Z eadler $"); |
29 30#include <dev/drm2/drmP.h> 31#include <dev/drm2/drm_crtc.h> 32#include <dev/drm2/drm_crtc_helper.h> 33#include <dev/drm2/drm_edid.h> 34#include <dev/drm2/i915/intel_drv.h> 35#include <dev/drm2/i915/i915_drm.h> 36#include <dev/drm2/i915/i915_drv.h> --- 752 unchanged lines hidden (view full) --- 789 /* 790 * Configure the automatic hotplug detection stuff 791 */ 792 crt->force_hotplug_required = 0; 793 794 dev_priv->hotplug_supported_mask |= CRT_HOTPLUG_INT_STATUS; 795 796 /* | 29 30#include <dev/drm2/drmP.h> 31#include <dev/drm2/drm_crtc.h> 32#include <dev/drm2/drm_crtc_helper.h> 33#include <dev/drm2/drm_edid.h> 34#include <dev/drm2/i915/intel_drv.h> 35#include <dev/drm2/i915/i915_drm.h> 36#include <dev/drm2/i915/i915_drv.h> --- 752 unchanged lines hidden (view full) --- 789 /* 790 * Configure the automatic hotplug detection stuff 791 */ 792 crt->force_hotplug_required = 0; 793 794 dev_priv->hotplug_supported_mask |= CRT_HOTPLUG_INT_STATUS; 795 796 /* |
797 * TODO: find a proper way to discover whether we need to set the the | 797 * TODO: find a proper way to discover whether we need to set the |
798 * polarity and link reversal bits or not, instead of relying on the 799 * BIOS. 800 */ 801 if (HAS_PCH_LPT(dev)) { 802 u32 fdi_config = FDI_RX_POLARITY_REVERSED_LPT | 803 FDI_RX_LINK_REVERSAL_OVERRIDE; 804 805 dev_priv->fdi_rx_config = I915_READ(_FDI_RXA_CTL) & fdi_config; 806 } 807} | 798 * polarity and link reversal bits or not, instead of relying on the 799 * BIOS. 800 */ 801 if (HAS_PCH_LPT(dev)) { 802 u32 fdi_config = FDI_RX_POLARITY_REVERSED_LPT | 803 FDI_RX_LINK_REVERSAL_OVERRIDE; 804 805 dev_priv->fdi_rx_config = I915_READ(_FDI_RXA_CTL) & fdi_config; 806 } 807} |