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 11struct ttm_resource; 12struct xe_bo; 13struct xe_device; 14 15void xe_ttm_stolen_mgr_init(struct xe_device *xe); 16int xe_ttm_stolen_io_mem_reserve(struct xe_device *xe, struct ttm_resource *mem); 17bool xe_ttm_stolen_cpu_access_needs_ggtt(struct xe_device *xe); 18u64 xe_ttm_stolen_io_offset(struct xe_bo *bo, u32 offset); 19u64 xe_ttm_stolen_gpu_offset(struct xe_device *xe); 20 21#endif 22