]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/xe/memirq: Make page layout macros private
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Mon, 18 May 2026 19:25:40 +0000 (21:25 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 19 May 2026 08:50:25 +0000 (10:50 +0200)
There is no need to expose the macros describing memory-based
interrupts page layouts in the .h file as we only use them in
the private code. Move them to the .c file near the kernel-doc.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Ilia Levi <ilia.levi@intel.com>
Link: https://patch.msgid.link/20260518192547.600-3-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_memirq.c
drivers/gpu/drm/xe/xe_memirq_types.h

index 3848ff81c1f9ebda3d7f31f6f6d49cbc7e3144a3..118c2285e893d4c8a1a6fabd35b1f3e7fbb27a57 100644 (file)
@@ -152,6 +152,13 @@ static const char *guc_name(struct xe_guc *guc)
  *
  */
 
+/* ISR */
+#define XE_MEMIRQ_STATUS_OFFSET(inst)  ((inst) * SZ_4K + 0x0)
+/* IIR */
+#define XE_MEMIRQ_SOURCE_OFFSET(inst)  ((inst) * SZ_4K + 0x400)
+/* IMR */
+#define XE_MEMIRQ_ENABLE_OFFSET                0x440
+
 static inline bool hw_reports_to_instance_zero(struct xe_memirq *memirq)
 {
        /*
index 9d0f6c1cdb9d5caca5d0c4ef828372e82cea0fe2..02ac938cadb4a2ab9e2fd0b8b0015cdba91c7cf8 100644 (file)
 
 struct xe_bo;
 
-/* ISR */
-#define XE_MEMIRQ_STATUS_OFFSET(inst)  ((inst) * SZ_4K + 0x0)
-/* IIR */
-#define XE_MEMIRQ_SOURCE_OFFSET(inst)  ((inst) * SZ_4K + 0x400)
-/* IMR */
-#define XE_MEMIRQ_ENABLE_OFFSET                0x440
-
 /**
  * struct xe_memirq - Data used by the `Memory Based Interrupts`_.
  *