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_execlists_submission.h (893B)


      1/* SPDX-License-Identifier: MIT */
      2/*
      3 * Copyright © 2014 Intel Corporation
      4 */
      5
      6#ifndef __INTEL_EXECLISTS_SUBMISSION_H__
      7#define __INTEL_EXECLISTS_SUBMISSION_H__
      8
      9#include <linux/llist.h>
     10#include <linux/types.h>
     11
     12struct drm_printer;
     13
     14struct i915_request;
     15struct intel_context;
     16struct intel_engine_cs;
     17struct intel_gt;
     18
     19enum {
     20	INTEL_CONTEXT_SCHEDULE_IN = 0,
     21	INTEL_CONTEXT_SCHEDULE_OUT,
     22	INTEL_CONTEXT_SCHEDULE_PREEMPTED,
     23};
     24
     25int intel_execlists_submission_setup(struct intel_engine_cs *engine);
     26
     27void intel_execlists_show_requests(struct intel_engine_cs *engine,
     28				   struct drm_printer *m,
     29				   void (*show_request)(struct drm_printer *m,
     30							const struct i915_request *rq,
     31							const char *prefix,
     32							int indent),
     33				   unsigned int max);
     34
     35bool
     36intel_engine_in_execlists_submission_mode(const struct intel_engine_cs *engine);
     37
     38#endif /* __INTEL_EXECLISTS_SUBMISSION_H__ */