drm/xe/memirq: Make page layout macros private

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
This commit is contained in:
Michal Wajdeczko 2026-05-18 21:25:40 +02:00
parent 31f855a47c
commit e89b59652c
2 changed files with 7 additions and 7 deletions

View 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)
{
/*

View File

@ -10,13 +10,6 @@
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`_.
*