I915_WRITE(HWSTAM, 0xeffe);
GEN5_IRQ_RESET(DE);
-
if (IS_GEN7(dev))
I915_WRITE(GEN7_ERR_INT, 0xffffffff);
return 0;
}
+static void ibx_irq_uninstall(struct drm_device *dev)
+{
+ struct drm_i915_private *dev_priv = dev->dev_private;
+
+ if (HAS_PCH_NOP(dev))
+ return;
+
+ GEN5_IRQ_RESET(SDE);
+
+ if (HAS_PCH_CPT(dev) || HAS_PCH_LPT(dev))
+ I915_WRITE(SERR_INT, 0xffffffff);
+}
+
static void gen8_irq_uninstall(struct drm_device *dev)
{
struct drm_i915_private *dev_priv = dev->dev_private;
gen5_gt_irq_reset(dev);
- if (HAS_PCH_NOP(dev))
- return;
-
- GEN5_IRQ_RESET(SDE);
- if (HAS_PCH_CPT(dev) || HAS_PCH_LPT(dev))
- I915_WRITE(SERR_INT, 0xffffffff);
+ ibx_irq_uninstall(dev);
}
static void i8xx_irq_preinstall(struct drm_device * dev)