drm/i915: Introduce i915_vgacntrl_reg()
[deliverable/linux.git] / drivers / gpu / drm / i915 / i915_drv.h
index d3274164143d7e110b19ebf3466719239ec7e600..984523d809a86d03a2455e28bf5cd852a2e70934 100644 (file)
@@ -1887,4 +1887,14 @@ __i915_write(64, q)
 #define INTEL_BROADCAST_RGB_FULL 1
 #define INTEL_BROADCAST_RGB_LIMITED 2
 
+static inline uint32_t i915_vgacntrl_reg(struct drm_device *dev)
+{
+       if (HAS_PCH_SPLIT(dev))
+               return CPU_VGACNTRL;
+       else if (IS_VALLEYVIEW(dev))
+               return VLV_VGACNTRL;
+       else
+               return VGACNTRL;
+}
+
 #endif
This page took 0.023194 seconds and 5 git commands to generate.