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