summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/xe/xe_gt_sysfs_types.h
blob: d3bc6b83360f480b84001db9dee014ec92952857 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* SPDX-License-Identifier: MIT */
/*
 * Copyright © 2022 Intel Corporation
 */

#ifndef _XE_GT_SYSFS_TYPES_H_
#define _XE_GT_SYSFS_TYPES_H_

#include <linux/kobject.h>

struct xe_gt;

/**
 * struct kobj_gt - A GT's kobject struct that connects the kobject and the GT
 *
 * When dealing with multiple GTs, this struct helps to understand which GT
 * needs to be addressed on a given sysfs call.
 */
struct kobj_gt {
	/** @base: The actual kobject */
	struct kobject base;
	/** @gt: A pointer to the GT itself */
	struct xe_gt *gt;
};

#endif	/* _XE_GT_SYSFS_TYPES_H_ */