xref: /openbmc/linux/drivers/gpu/drm/i915/gt/intel_engine_heartbeat.h (revision c0ecca6604b80e438b032578634c6e133c7028f6)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2019 Intel Corporation
4  */
5 
6 #ifndef INTEL_ENGINE_HEARTBEAT_H
7 #define INTEL_ENGINE_HEARTBEAT_H
8 
9 struct intel_engine_cs;
10 
11 void intel_engine_init_heartbeat(struct intel_engine_cs *engine);
12 
13 int intel_engine_set_heartbeat(struct intel_engine_cs *engine,
14 			       unsigned long delay);
15 
16 void intel_engine_park_heartbeat(struct intel_engine_cs *engine);
17 void intel_engine_unpark_heartbeat(struct intel_engine_cs *engine);
18 
19 int intel_engine_pulse(struct intel_engine_cs *engine);
20 int intel_engine_flush_barriers(struct intel_engine_cs *engine);
21 
22 #endif /* INTEL_ENGINE_HEARTBEAT_H */
23