1 /* SPDX-License-Identifier: MIT */
3 * Copyright © 2023 Intel Corporation
6 #ifndef _XE_GT_CCS_MODE_H_
7 #define _XE_GT_CCS_MODE_H_
9 #include "xe_device_types.h"
11 #include "xe_gt_types.h"
12 #include "xe_platform_types.h"
14 void xe_gt_apply_ccs_mode(struct xe_gt *gt);
15 void xe_gt_ccs_mode_sysfs_init(struct xe_gt *gt);
17 static inline bool xe_gt_ccs_mode_enabled(const struct xe_gt *gt)
19 /* Check if there are more than one compute engines available */
20 return hweight32(CCS_MASK(gt)) > 1;