mirror of
https://github.com/torvalds/linux.git
synced 2026-04-26 02:22:28 -04:00
Call the stolen memory interface through the display parent interface. This makes xe compat gem/i915_gem_stolen.h redundant, and it can be removed. v2: Rebase, convert one more call that appeared Reviewed-by: Vinod Govindapillai <vinod.govindapillai@intel.com> Link: https://patch.msgid.link/350c82c49fe40f6319d14d309180e2e2752145ac.1764930576.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
32 lines
811 B
C
32 lines
811 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2019 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __I915_GEM_STOLEN_H__
|
|
#define __I915_GEM_STOLEN_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct drm_i915_gem_object;
|
|
struct drm_i915_private;
|
|
|
|
struct intel_memory_region *
|
|
i915_gem_stolen_smem_setup(struct drm_i915_private *i915, u16 type,
|
|
u16 instance);
|
|
struct intel_memory_region *
|
|
i915_gem_stolen_lmem_setup(struct drm_i915_private *i915, u16 type,
|
|
u16 instance);
|
|
|
|
struct drm_i915_gem_object *
|
|
i915_gem_object_create_stolen(struct drm_i915_private *i915,
|
|
resource_size_t size);
|
|
|
|
bool i915_gem_object_is_stolen(const struct drm_i915_gem_object *obj);
|
|
|
|
#define I915_GEM_STOLEN_BIAS SZ_128K
|
|
|
|
extern const struct intel_display_stolen_interface i915_display_stolen_interface;
|
|
|
|
#endif /* __I915_GEM_STOLEN_H__ */
|