| 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 | struct intel_gt; | 
|---|
| 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 | void intel_gt_park_heartbeats(struct intel_gt *gt); | 
|---|
| 21 | void intel_gt_unpark_heartbeats(struct intel_gt *gt); | 
|---|
| 22 |  | 
|---|
| 23 | int intel_engine_pulse(struct intel_engine_cs *engine); | 
|---|
| 24 | int intel_engine_flush_barriers(struct intel_engine_cs *engine); | 
|---|
| 25 |  | 
|---|
| 26 | #endif /* INTEL_ENGINE_HEARTBEAT_H */ | 
|---|
| 27 |  | 
|---|