Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: MIT */
0002 /*
0003  * Copyright © 2021 Intel Corporation
0004  */
0005 
0006 #ifndef _I915_GEM_TTM_PM_H_
0007 #define _I915_GEM_TTM_PM_H_
0008 
0009 #include <linux/types.h>
0010 
0011 struct intel_memory_region;
0012 struct drm_i915_gem_object;
0013 
0014 #define I915_TTM_BACKUP_ALLOW_GPU BIT(0)
0015 #define I915_TTM_BACKUP_PINNED    BIT(1)
0016 
0017 int i915_ttm_backup_region(struct intel_memory_region *mr, u32 flags);
0018 
0019 void i915_ttm_recover_region(struct intel_memory_region *mr);
0020 
0021 int i915_ttm_restore_region(struct intel_memory_region *mr, u32 flags);
0022 
0023 /* Internal I915 TTM functions below. */
0024 void i915_ttm_backup_free(struct drm_i915_gem_object *obj);
0025 
0026 #endif