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