drm/xe: Split xe_gt_stat.h
authorLucas De Marchi <lucas.demarchi@intel.com>
Thu, 14 Nov 2024 15:21:48 +0000 (07:21 -0800)
committerLucas De Marchi <lucas.demarchi@intel.com>
Fri, 15 Nov 2024 23:59:51 +0000 (15:59 -0800)
Follow what's done for the other headers, with the types split into a
separate header that can be included by other *_types.h headers.

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241114152148.572447-5-lucas.demarchi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_gt_stats.h
drivers/gpu/drm/xe/xe_gt_stats_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_gt_types.h

index 91d944f6c4e4361d14b6c44ebd9f4daed1900e7b..38325ef536176577907e0340e9815a171432ac48 100644 (file)
@@ -6,15 +6,11 @@
 #ifndef _XE_GT_STATS_H_
 #define _XE_GT_STATS_H_
 
+#include "xe_gt_stats_types.h"
+
 struct xe_gt;
 struct drm_printer;
 
-enum xe_gt_stats_id {
-       XE_GT_STATS_ID_TLB_INVAL,
-       /* must be the last entry */
-       __XE_GT_STATS_NUM_IDS,
-};
-
 #ifdef CONFIG_DEBUG_FS
 int xe_gt_stats_print_info(struct xe_gt *gt, struct drm_printer *p);
 void xe_gt_stats_incr(struct xe_gt *gt, const enum xe_gt_stats_id id, int incr);
diff --git a/drivers/gpu/drm/xe/xe_gt_stats_types.h b/drivers/gpu/drm/xe/xe_gt_stats_types.h
new file mode 100644 (file)
index 0000000..2fc055e
--- /dev/null
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Copyright © 2024 Intel Corporation
+ */
+
+#ifndef _XE_GT_STATS_TYPES_H_
+#define _XE_GT_STATS_TYPES_H_
+
+enum xe_gt_stats_id {
+       XE_GT_STATS_ID_TLB_INVAL,
+       /* must be the last entry */
+       __XE_GT_STATS_NUM_IDS,
+};
+
+#endif
index 20901c01ba29aa939dc792e7e5fb5009fba7fe2f..6e66bf0e8b3f705fd2a3929cceefdaf898c7ead0 100644 (file)
@@ -11,7 +11,7 @@
 #include "xe_gt_idle_types.h"
 #include "xe_gt_sriov_pf_types.h"
 #include "xe_gt_sriov_vf_types.h"
-#include "xe_gt_stats.h"
+#include "xe_gt_stats_types.h"
 #include "xe_hw_engine_types.h"
 #include "xe_hw_fence_types.h"
 #include "xe_oa_types.h"