1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2019 Intel Corporation
4  */
5 
6 #ifndef __I915_GEM_LMEM_H
7 #define __I915_GEM_LMEM_H
8 
9 #include <linux/types.h>
10 
11 struct drm_i915_private;
12 struct drm_i915_gem_object;
13 struct intel_memory_region;
14 
15 extern const struct drm_i915_gem_object_ops i915_gem_lmem_obj_ops;
16 
17 bool i915_gem_object_is_lmem(struct drm_i915_gem_object *obj);
18 
19 struct drm_i915_gem_object *
20 i915_gem_object_create_lmem(struct drm_i915_private *i915,
21 			    resource_size_t size,
22 			    unsigned int flags);
23 
24 int __i915_gem_lmem_object_init(struct intel_memory_region *mem,
25 				struct drm_i915_gem_object *obj,
26 				resource_size_t size,
27 				unsigned int flags);
28 
29 #endif /* !__I915_GEM_LMEM_H */
30