summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/regs/xe_lrc_layout.h
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@intel.com>2023-02-24 16:15:41 -0800
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-19 18:29:21 -0500
commit0992884d09cc1c91e9c3310a9204eb080db37714 (patch)
treeeaaa6b190c029b7dcb87d34cceb9ac9799893859 /drivers/gpu/drm/xe/regs/xe_lrc_layout.h
parent226bfec858c93797dbd3d47d1418ed68684fa752 (diff)
downloadlwn-0992884d09cc1c91e9c3310a9204eb080db37714.tar.gz
lwn-0992884d09cc1c91e9c3310a9204eb080db37714.zip
drm/xe: Remove dependency on intel_lrc_reg.h
Create regs/xe_lrc_layout.h file with all the offsets used by the xe driver. Eventually the xe driver may use a different way to define them since it doesn't supported below gen12. v2: Rename file to intel_lrc_layout.h since it's not really about registers (Matt Roper) Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com> Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/regs/xe_lrc_layout.h')
-rw-r--r--drivers/gpu/drm/xe/regs/xe_lrc_layout.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/regs/xe_lrc_layout.h b/drivers/gpu/drm/xe/regs/xe_lrc_layout.h
new file mode 100644
index 000000000000..4be81abc86ad
--- /dev/null
+++ b/drivers/gpu/drm/xe/regs/xe_lrc_layout.h
@@ -0,0 +1,17 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Copyright © 2023 Intel Corporation
+ */
+
+#ifndef _XE_LRC_LAYOUT_H_
+#define _XE_LRC_LAYOUT_H_
+
+#define CTX_CONTEXT_CONTROL (0x02 + 1)
+#define CTX_RING_HEAD (0x04 + 1)
+#define CTX_RING_TAIL (0x06 + 1)
+#define CTX_RING_START (0x08 + 1)
+#define CTX_RING_CTL (0x0a + 1)
+#define CTX_PDP0_UDW (0x30 + 1)
+#define CTX_PDP0_LDW (0x32 + 1)
+
+#endif