xref: /linux/drivers/gpu/drm/xe/xe_gt_topology.h (revision ea518afc992032f7570c0a89ac9240b387dc0faf)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2022 Intel Corporation
4  */
5 
6 #ifndef _XE_GT_TOPOLOGY_H_
7 #define _XE_GT_TOPOLOGY_H_
8 
9 #include "xe_gt_types.h"
10 
11 struct drm_printer;
12 
13 void xe_gt_topology_init(struct xe_gt *gt);
14 
15 void xe_gt_topology_dump(struct xe_gt *gt, struct drm_printer *p);
16 
17 unsigned int
18 xe_dss_mask_group_ffs(const xe_dss_mask_t mask, int groupsize, int groupnum);
19 
20 bool xe_dss_mask_empty(const xe_dss_mask_t mask);
21 
22 bool
23 xe_gt_topology_has_dss_in_quadrant(struct xe_gt *gt, int quad);
24 
25 #endif /* _XE_GT_TOPOLOGY_H_ */
26