sys/dev/drm/i915/intel_overlay.c
/**
 * Return the pipe currently connected to the panel fitter,
 * or -1 if the panel fitter is not present or not in use
 */
Return the pipe currently connected to the panel fitter,
or -1 if the panel fitter is not present or not in use
Return the pipe currently connected to the panel fitter or - 1 if the panel fitter is not present or not in use
static int intel_panel_fitter_pipe(struct drm_i915_private *dev_priv)
{
	u32  pfit_control;
	if (INTEL_GEN(dev_priv) <= 3 &&
	    (IS_I830(dev_priv) || !IS_MOBILE(dev_priv)))
		return -1;
	pfit_control = I915_READ(PFIT_CONTROL);
	if ((pfit_control & PFIT_ENABLE) == 0)
		return -1;
	if (IS_GEN4(dev_priv))
		return (pfit_control >> 29) & 0x3;
	return 1;
}
static int intel_panel_fitter_pipe ( struct drm_i915_private * dev_priv ) { u32 pfit_control ; if ( INTEL_GEN ( dev_priv ) <= 3 && ( IS_I830 ( dev_priv ) || ! IS_MOBILE ( dev_priv ) ) ) return -1 ; pfit_control = I915_READ ( PFIT_CONTROL ) ; if ( ( pfit_control & PFIT_ENABLE ) == 0 ) return -1 ; if ( IS_GEN4 ( dev_priv ) ) return ( pfit_control >> 29 ) & 0x3 ; return 1 ; }
Return the pipe currently connected to the panel fitter,
 or -1 if the panel fitter is not present or not in use
Return the pipe currently connected to the panel fitter or - 1 if the panel fitter is not present or not in use
/* i830 doesn't have a panel fitter */ /* See if the panel fitter is in use */ /* 965 can place panel fitter on either pipe */ /* older chips can only use pipe 1 */