summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_vm_types.h
diff options
context:
space:
mode:
authorMatthew Brost <matthew.brost@intel.com>2023-06-07 21:51:36 +0300
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-21 19:34:00 +0300
commit6713ee6ca19e3cd43798b4b40f8b13489c724a89 (patch)
tree3ce28ef86a4399343965da4c66240ed48dd3b18e /drivers/gpu/drm/xe/xe_vm_types.h
parent3534b18c360525b4cff67b90db45d7b9e365bdf2 (diff)
downloadlinux-6713ee6ca19e3cd43798b4b40f8b13489c724a89.tar.xz
drm/xe: Move XE_PTE_FLAG_READ_ONLY to xe_vm_types.h
XE_PTE_FLAG_READ_ONLY is specific to struct xe_vma, move it from xe_bo.h to xe_vm_types.h to reflect that. Reviewed-by: Francois Dugast <francois.dugast@intel.com> Signed-off-by: Matthew Brost <matthew.brost@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_vm_types.h')
-rw-r--r--drivers/gpu/drm/xe/xe_vm_types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_vm_types.h b/drivers/gpu/drm/xe/xe_vm_types.h
index 5242236b4b0e..a51e84e584b4 100644
--- a/drivers/gpu/drm/xe/xe_vm_types.h
+++ b/drivers/gpu/drm/xe/xe_vm_types.h
@@ -30,6 +30,7 @@ struct xe_vma {
/** @end: end address of this VMA within its address domain */
u64 end;
/** @pte_flags: pte flags for this VMA */
+#define XE_PTE_FLAG_READ_ONLY BIT(0)
u32 pte_flags;
/** @bo: BO if not a userptr, must be NULL is userptr */