Linux Audio

Check our new training course

Loading...
v5.14.15
 1/* SPDX-License-Identifier: MIT */
 2/*
 3 * Copyright © 2021 Intel Corporation
 4 */
 5#ifndef _INTEL_REGION_TTM_H_
 6#define _INTEL_REGION_TTM_H_
 7
 8#include <linux/types.h>
 9
10#include "i915_selftest.h"
11
12struct drm_i915_private;
13struct intel_memory_region;
14struct ttm_resource;
 
15
16int intel_region_ttm_device_init(struct drm_i915_private *dev_priv);
17
18void intel_region_ttm_device_fini(struct drm_i915_private *dev_priv);
19
20int intel_region_ttm_init(struct intel_memory_region *mem);
21
22void intel_region_ttm_fini(struct intel_memory_region *mem);
23
24struct sg_table *intel_region_ttm_node_to_st(struct intel_memory_region *mem,
25					     struct ttm_resource *res);
 
 
26
27struct ttm_resource *
28intel_region_ttm_node_alloc(struct intel_memory_region *mem,
29			    resource_size_t size,
30			    unsigned int flags);
31
32void intel_region_ttm_node_free(struct intel_memory_region *mem,
33				struct ttm_resource *node);
 
 
 
 
 
 
 
34#endif /* _INTEL_REGION_TTM_H_ */