OSDN Git Service

i915/drm/gt: Move the gt defines in the gt directory
authorAndi Shyti <andi.shyti@linux.intel.com>
Tue, 1 Aug 2023 14:19:53 +0000 (16:19 +0200)
committerAndi Shyti <andi.shyti@linux.intel.com>
Wed, 2 Aug 2023 13:41:31 +0000 (15:41 +0200)
Create a new intel_gt_defines.h inside the gt/ directory as a
placeholder for all the generic GT based defines.

As of now place only I915_MAX_GT.

Co-developed-by: Chris Wilson <chris.p.wilson@linux.intel.com>
Signed-off-by: Chris Wilson <chris.p.wilson@linux.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Reviewed-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230801141955.383305-3-andi.shyti@linux.intel.com
drivers/gpu/drm/i915/gt/intel_gt_defines.h [new file with mode: 0644]
drivers/gpu/drm/i915/i915_drv.h

diff --git a/drivers/gpu/drm/i915/gt/intel_gt_defines.h b/drivers/gpu/drm/i915/gt/intel_gt_defines.h
new file mode 100644 (file)
index 0000000..5017788
--- /dev/null
@@ -0,0 +1,11 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Copyright © 2019 Intel Corporation
+ */
+
+#ifndef __INTEL_GT_DEFINES__
+#define __INTEL_GT_DEFINES__
+
+#define I915_MAX_GT 2
+
+#endif
index a3e3c34..3840919 100644 (file)
@@ -44,6 +44,7 @@
 #include "gem/i915_gem_stolen.h"
 
 #include "gt/intel_engine.h"
+#include "gt/intel_gt_defines.h"
 #include "gt/intel_gt_types.h"
 #include "gt/intel_region_lmem.h"
 #include "gt/intel_workarounds.h"
@@ -313,7 +314,6 @@ struct drm_i915_private {
        /*
         * i915->gt[0] == &i915->gt0
         */
-#define I915_MAX_GT 2
        struct intel_gt *gt[I915_MAX_GT];
 
        struct kobject *sysfs_gt;