1 /* SPDX-License-Identifier: MIT */ 2 /* 3 * Copyright © 2019 Intel Corporation 4 */ 5 6 #ifndef __I915_GEM_REGION_H__ 7 #define __I915_GEM_REGION_H__ 8 9 #include <linux/types.h> 10 11 struct intel_memory_region; 12 struct drm_i915_gem_object; 13 struct sg_table; 14 15 void i915_gem_object_init_memory_region(struct drm_i915_gem_object *obj, 16 struct intel_memory_region *mem); 17 void i915_gem_object_release_memory_region(struct drm_i915_gem_object *obj); 18 19 struct drm_i915_gem_object * 20 i915_gem_object_create_region(struct intel_memory_region *mem, 21 resource_size_t size, 22 resource_size_t page_size, 23 unsigned int flags); 24 25 #endif 26