summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/xe/xe_tile_sysfs_types.h
blob: 75906ba11a9ece56e48b5705e30ff319b6fb0041 (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
27
/* SPDX-License-Identifier: MIT */
/*
 * Copyright © 2023 Intel Corporation
 */

#ifndef _XE_TILE_SYSFS_TYPES_H_
#define _XE_TILE_SYSFS_TYPES_H_

#include <linux/kobject.h>

struct xe_tile;

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

#endif	/* _XE_TILE_SYSFS_TYPES_H_ */