Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: MIT */
0002 /*
0003  * Copyright © 2022 Intel Corporation
0004  */
0005 
0006 #ifndef __SYSFS_GT_H__
0007 #define __SYSFS_GT_H__
0008 
0009 #include <linux/ctype.h>
0010 #include <linux/kobject.h>
0011 
0012 #include "i915_gem.h" /* GEM_BUG_ON() */
0013 
0014 struct intel_gt;
0015 
0016 bool is_object_gt(struct kobject *kobj);
0017 
0018 struct drm_i915_private *kobj_to_i915(struct kobject *kobj);
0019 
0020 struct kobject *
0021 intel_gt_create_kobj(struct intel_gt *gt,
0022              struct kobject *dir,
0023              const char *name);
0024 
0025 void intel_gt_sysfs_register(struct intel_gt *gt);
0026 void intel_gt_sysfs_unregister(struct intel_gt *gt);
0027 struct intel_gt *intel_gt_sysfs_get_drvdata(struct device *dev,
0028                         const char *name);
0029 
0030 #endif /* SYSFS_GT_H */