cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

intel_gt_sysfs.h (681B)


      1/* SPDX-License-Identifier: MIT */
      2/*
      3 * Copyright © 2022 Intel Corporation
      4 */
      5
      6#ifndef __SYSFS_GT_H__
      7#define __SYSFS_GT_H__
      8
      9#include <linux/ctype.h>
     10#include <linux/kobject.h>
     11
     12#include "i915_gem.h" /* GEM_BUG_ON() */
     13
     14struct intel_gt;
     15
     16bool is_object_gt(struct kobject *kobj);
     17
     18struct drm_i915_private *kobj_to_i915(struct kobject *kobj);
     19
     20struct kobject *
     21intel_gt_create_kobj(struct intel_gt *gt,
     22		     struct kobject *dir,
     23		     const char *name);
     24
     25void intel_gt_sysfs_register(struct intel_gt *gt);
     26void intel_gt_sysfs_unregister(struct intel_gt *gt);
     27struct intel_gt *intel_gt_sysfs_get_drvdata(struct device *dev,
     28					    const char *name);
     29
     30#endif /* SYSFS_GT_H */