1/* SPDX-License-Identifier: MIT */
2/*
3 * Copyright �� 2022 Intel Corporation
4 */
5
6#ifndef _XE_GT_SYSFS_TYPES_H_
7#define _XE_GT_SYSFS_TYPES_H_
8
9#include <linux/kobject.h>
10
11struct xe_gt;
12
13/**
14 * struct kobj_gt - A GT's kobject struct that connects the kobject and the GT
15 *
16 * When dealing with multiple GTs, this struct helps to understand which GT
17 * needs to be addressed on a given sysfs call.
18 */
19struct kobj_gt {
20	/** @base: The actual kobject */
21	struct kobject base;
22	/** @gt: A pointer to the GT itself */
23	struct xe_gt *gt;
24};
25
26#endif	/* _XE_GT_SYSFS_TYPES_H_ */
27