@@ -66,8 +66,6 @@ struct intel_display;
6666struct intel_pxp ;
6767struct vlv_s0ix_state ;
6868
69- #define GEM_QUIRK_PIN_SWIZZLED_PAGES BIT(0)
70-
7169/* Data Stolen Memory (DSM) aka "i915 stolen memory" */
7270struct i915_dsm {
7371 /*
@@ -354,14 +352,6 @@ static inline struct intel_gt *to_gt(const struct drm_i915_private *i915)
354352 return i915 -> gt [0 ];
355353}
356354
357- #define rb_to_uabi_engine (rb ) \
358- rb_entry_safe(rb, struct intel_engine_cs, uabi_node)
359-
360- #define for_each_uabi_engine (engine__ , i915__ ) \
361- for ((engine__) = rb_to_uabi_engine(rb_first(&(i915__)->uabi_engines));\
362- (engine__); \
363- (engine__) = rb_to_uabi_engine(rb_next(&(engine__)->uabi_node)))
364-
365355#define INTEL_INFO (i915 ) ((i915)->__info)
366356#define RUNTIME_INFO (i915 ) (&(i915)->__runtime)
367357#define DRIVER_CAPS (i915 ) (&(i915)->caps)
@@ -570,29 +560,6 @@ IS_SUBPLATFORM(const struct drm_i915_private *i915,
570560#define IS_GEN9_LP (i915 ) (IS_BROXTON(i915) || IS_GEMINILAKE(i915))
571561#define IS_GEN9_BC (i915 ) (GRAPHICS_VER(i915) == 9 && !IS_GEN9_LP(i915))
572562
573- #define __HAS_ENGINE (engine_mask , id ) ((engine_mask) & BIT(id))
574- #define HAS_ENGINE (gt , id ) __HAS_ENGINE((gt)->info.engine_mask, id)
575-
576- #define __ENGINE_INSTANCES_MASK (mask , first , count ) ({ \
577- unsigned int first__ = (first); \
578- unsigned int count__ = (count); \
579- ((mask) & GENMASK(first__ + count__ - 1, first__)) >> first__; \
580- })
581-
582- #define ENGINE_INSTANCES_MASK (gt , first , count ) \
583- __ENGINE_INSTANCES_MASK((gt)->info.engine_mask, first, count)
584-
585- #define RCS_MASK (gt ) \
586- ENGINE_INSTANCES_MASK(gt, RCS0, I915_MAX_RCS)
587- #define BCS_MASK (gt ) \
588- ENGINE_INSTANCES_MASK(gt, BCS0, I915_MAX_BCS)
589- #define VDBOX_MASK (gt ) \
590- ENGINE_INSTANCES_MASK(gt, VCS0, I915_MAX_VCS)
591- #define VEBOX_MASK (gt ) \
592- ENGINE_INSTANCES_MASK(gt, VECS0, I915_MAX_VECS)
593- #define CCS_MASK (gt ) \
594- ENGINE_INSTANCES_MASK(gt, CCS0, I915_MAX_CCS)
595-
596563#define HAS_MEDIA_RATIO_MODE (i915 ) (INTEL_INFO(i915)->has_media_ratio_mode)
597564
598565/*
0 commit comments