mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
drm/xe/stolen: unify interface with i915
Have i915_gem_stolen_node_offset() return u64, and pass const pointer to them. Reviewed-by: Vinod Govindapillai <vinod.govindapillai@intel.com> Link: https://patch.msgid.link/e1ae0c5d3cc6f59d6e4f4ce810a6e9b3870109f8.1764930576.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
parent
e97dfc7470
commit
2397a4c662
|
|
@ -23,13 +23,13 @@ bool i915_gem_stolen_initialized(struct drm_device *drm);
|
|||
|
||||
bool i915_gem_stolen_node_allocated(const struct intel_stolen_node *node);
|
||||
|
||||
u32 i915_gem_stolen_node_offset(struct intel_stolen_node *node);
|
||||
u64 i915_gem_stolen_node_offset(const struct intel_stolen_node *node);
|
||||
|
||||
u64 i915_gem_stolen_area_address(struct drm_device *drm);
|
||||
|
||||
u64 i915_gem_stolen_area_size(struct drm_device *drm);
|
||||
|
||||
u64 i915_gem_stolen_node_address(struct intel_stolen_node *node);
|
||||
u64 i915_gem_stolen_node_address(const struct intel_stolen_node *node);
|
||||
|
||||
u64 i915_gem_stolen_node_size(const struct intel_stolen_node *node);
|
||||
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ bool i915_gem_stolen_node_allocated(const struct intel_stolen_node *node)
|
|||
return node->bo;
|
||||
}
|
||||
|
||||
u32 i915_gem_stolen_node_offset(struct intel_stolen_node *node)
|
||||
u64 i915_gem_stolen_node_offset(const struct intel_stolen_node *node)
|
||||
{
|
||||
struct xe_res_cursor res;
|
||||
|
||||
|
|
@ -91,7 +91,7 @@ u64 i915_gem_stolen_area_size(struct drm_device *drm)
|
|||
return 0;
|
||||
}
|
||||
|
||||
u64 i915_gem_stolen_node_address(struct intel_stolen_node *node)
|
||||
u64 i915_gem_stolen_node_address(const struct intel_stolen_node *node)
|
||||
{
|
||||
struct xe_device *xe = node->xe;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user