mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 04:47:05 +00:00
27 lines
571 B
C
27 lines
571 B
C
|
/* 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_ */
|