xref: /openbmc/linux/drivers/gpu/drm/i915/gt/gen8_ppgtt.h (revision 1edd0337)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2020 Intel Corporation
4  */
5 
6 #ifndef __GEN8_PPGTT_H__
7 #define __GEN8_PPGTT_H__
8 
9 #include <linux/kernel.h>
10 
11 struct i915_address_space;
12 struct intel_gt;
13 enum i915_cache_level;
14 
15 struct i915_ppgtt *gen8_ppgtt_create(struct intel_gt *gt,
16 				     unsigned long lmem_pt_obj_flags);
17 
18 u64 gen8_ggtt_pte_encode(dma_addr_t addr,
19 			 enum i915_cache_level level,
20 			 u32 flags);
21 
22 #endif
23