26 lines
630 B
C
26 lines
630 B
C
|
/* SPDX-License-Identifier: MIT */
|
||
|
/*
|
||
|
* Copyright © 2019 Intel Corporation
|
||
|
*/
|
||
|
|
||
|
#ifndef __I915_GEM_REGION_H__
|
||
|
#define __I915_GEM_REGION_H__
|
||
|
|
||
|
#include <linux/types.h>
|
||
|
|
||
|
struct intel_memory_region;
|
||
|
struct drm_i915_gem_object;
|
||
|
struct sg_table;
|
||
|
|
||
|
void i915_gem_object_init_memory_region(struct drm_i915_gem_object *obj,
|
||
|
struct intel_memory_region *mem);
|
||
|
void i915_gem_object_release_memory_region(struct drm_i915_gem_object *obj);
|
||
|
|
||
|
struct drm_i915_gem_object *
|
||
|
i915_gem_object_create_region(struct intel_memory_region *mem,
|
||
|
resource_size_t size,
|
||
|
resource_size_t page_size,
|
||
|
unsigned int flags);
|
||
|
|
||
|
#endif
|