We have recently introduced tile for each gpu, so lets add sysfs entry per tile for userspace to provide required information specific to tile. V5: - define ktype as const V4: - Reorder headers - Aravind V3: - Make API to return void and add drm_warn - Aravind V2: - Add logs in failure path Reviewed-by: Aravind Iddamsetty <aravind.iddamsetty@intel.com> Signed-off-by: Tejas Upadhyay <tejas.upadhyay@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
20 lines
377 B
C
20 lines
377 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2023 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_TILE_SYSFS_H_
|
|
#define _XE_TILE_SYSFS_H_
|
|
|
|
#include "xe_tile_sysfs_types.h"
|
|
|
|
void xe_tile_sysfs_init(struct xe_tile *tile);
|
|
|
|
static inline struct xe_tile *
|
|
kobj_to_tile(struct kobject *kobj)
|
|
{
|
|
return container_of(kobj, struct kobj_tile, base)->tile;
|
|
}
|
|
|
|
#endif /* _XE_TILE_SYSFS_H_ */
|