xref: /linux/drivers/gpu/drm/xe/xe_vram.h (revision 68a052239fc4b351e961f698b824f7654a346091)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2024 Intel Corporation
4  */
5 
6 #ifndef _XE_VRAM_H_
7 #define _XE_VRAM_H_
8 
9 #include <linux/types.h>
10 
11 struct xe_device;
12 struct xe_vram_region;
13 
14 int xe_vram_probe(struct xe_device *xe);
15 
16 struct xe_vram_region *xe_vram_region_alloc(struct xe_device *xe, u8 id, u32 placement);
17 
18 resource_size_t xe_vram_region_io_start(const struct xe_vram_region *vram);
19 resource_size_t xe_vram_region_io_size(const struct xe_vram_region *vram);
20 resource_size_t xe_vram_region_dpa_base(const struct xe_vram_region *vram);
21 resource_size_t xe_vram_region_usable_size(const struct xe_vram_region *vram);
22 resource_size_t xe_vram_region_actual_physical_size(const struct xe_vram_region *vram);
23 
24 #endif
25