xref: /linux/drivers/gpu/drm/xe/xe_ttm_stolen_mgr.h (revision 9c93c0b44be36fd5267fb79ae33453f989fbe909)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2022 Intel Corporation
4  */
5 
6 #ifndef _XE_TTM_STOLEN_MGR_H_
7 #define _XE_TTM_STOLEN_MGR_H_
8 
9 #include <linux/types.h>
10 
11 struct ttm_resource;
12 struct xe_bo;
13 struct xe_device;
14 
15 void xe_ttm_stolen_mgr_init(struct xe_device *xe);
16 int xe_ttm_stolen_io_mem_reserve(struct xe_device *xe, struct ttm_resource *mem);
17 bool xe_ttm_stolen_cpu_access_needs_ggtt(struct xe_device *xe);
18 u64 xe_ttm_stolen_io_offset(struct xe_bo *bo, u32 offset);
19 u64 xe_ttm_stolen_gpu_offset(struct xe_device *xe);
20 
21 #endif
22