summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2013-04-22 18:40:41 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-04-23 17:47:37 +0200
commit30568c45d9fc4ee0bb9e1da90e185692fcd67e38 (patch)
tree48609c30b43d2395198469c8bb8f38aac8e077ac /drivers/gpu/drm/i915/i915_drv.h
parente76ebff887e9cc4a8448a0fc6abbb1925291f38b (diff)
downloadlwn-30568c45d9fc4ee0bb9e1da90e185692fcd67e38.tar.gz
lwn-30568c45d9fc4ee0bb9e1da90e185692fcd67e38.zip
drm/i915: Turn HAS_FPGA_DBG_UNCLAIMED into a device_info flag
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Reviewed-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index ffd325c70407..a4234a837032 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -358,7 +358,8 @@ struct drm_i915_gt_funcs {
func(has_bsd_ring) sep \
func(has_blt_ring) sep \
func(has_llc) sep \
- func(has_ddi)
+ func(has_ddi) sep \
+ func(has_fpga_dbg)
#define DEFINE_FLAG(name) u8 name:1
#define SEP_SEMICOLON ;
@@ -1370,7 +1371,7 @@ struct drm_i915_file_private {
#define HAS_DDI(dev) (INTEL_INFO(dev)->has_ddi)
#define HAS_POWER_WELL(dev) (IS_HASWELL(dev))
-#define HAS_FPGA_DBG_UNCLAIMED(dev) (IS_HASWELL(dev))
+#define HAS_FPGA_DBG_UNCLAIMED(dev) (INTEL_INFO(dev)->has_fpga_dbg)
#define INTEL_PCH_DEVICE_ID_MASK 0xff00
#define INTEL_PCH_IBX_DEVICE_ID_TYPE 0x3b00