1/* SPDX-License-Identifier: MIT */
2/*
3 * Copyright �� 2023 Intel Corporation
4 */
5
6#ifndef _XE_GT_CCS_MODE_H_
7#define _XE_GT_CCS_MODE_H_
8
9#include "xe_device_types.h"
10#include "xe_gt.h"
11#include "xe_gt_types.h"
12#include "xe_platform_types.h"
13
14void xe_gt_apply_ccs_mode(struct xe_gt *gt);
15int xe_gt_ccs_mode_sysfs_init(struct xe_gt *gt);
16
17static inline bool xe_gt_ccs_mode_enabled(const struct xe_gt *gt)
18{
19	/* Check if there are more than one compute engines available */
20	return hweight32(CCS_MASK(gt)) > 1;
21}
22
23#endif
24
25