0001
0002
0003
0004
0005
0006 #ifndef __MOCK_ENGINE_H__
0007 #define __MOCK_ENGINE_H__
0008
0009 #include <linux/list.h>
0010 #include <linux/spinlock.h>
0011 #include <linux/timer.h>
0012
0013 #include "gt/intel_engine.h"
0014
0015 struct mock_engine {
0016 struct intel_engine_cs base;
0017
0018 spinlock_t hw_lock;
0019 struct list_head hw_queue;
0020 struct timer_list hw_delay;
0021 };
0022
0023 struct intel_engine_cs *mock_engine(struct drm_i915_private *i915,
0024 const char *name,
0025 int id);
0026 int mock_engine_init(struct intel_engine_cs *engine);
0027
0028 void mock_engine_flush(struct intel_engine_cs *engine);
0029 void mock_engine_reset(struct intel_engine_cs *engine);
0030 void mock_engine_free(struct intel_engine_cs *engine);
0031
0032 #endif