summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/intel_workarounds.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2019-03-08 16:25:17 +0300
committerChris Wilson <chris@chris-wilson.co.uk>2019-03-08 16:59:44 +0300
commit39e2f501c1b431bd9291308e1ef02b9a02fffbee (patch)
treebc19e4e7758795258b96d477fd3b408960493c38 /drivers/gpu/drm/i915/intel_workarounds.h
parent7e3d9a59410d8ea1b4240952485731252ac15f34 (diff)
downloadlinux-39e2f501c1b431bd9291308e1ef02b9a02fffbee.tar.xz
drm/i915: Split struct intel_context definition to its own header
This complex struct pulling in half the driver deserves its own isolation in preparation for intel_context becoming an outright complicated class of its own. In order to split this beast into its own header also requests splitting several of its dependent types and their dependencies into their own headers as well. v2: Add standalone compilation tests Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190308132522.21573-2-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/intel_workarounds.h')
-rw-r--r--drivers/gpu/drm/i915/intel_workarounds.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/gpu/drm/i915/intel_workarounds.h b/drivers/gpu/drm/i915/intel_workarounds.h
index 7c734714b05e..a1bf51c611a9 100644
--- a/drivers/gpu/drm/i915/intel_workarounds.h
+++ b/drivers/gpu/drm/i915/intel_workarounds.h
@@ -9,18 +9,7 @@
#include <linux/slab.h>
-struct i915_wa {
- i915_reg_t reg;
- u32 mask;
- u32 val;
-};
-
-struct i915_wa_list {
- const char *name;
- struct i915_wa *list;
- unsigned int count;
- unsigned int wa_count;
-};
+#include "intel_workarounds_types.h"
static inline void intel_wa_list_free(struct i915_wa_list *wal)
{