2019-10-04 21:40:06 +08:00
|
|
|
/*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
* Copyright © 2019 Intel Corporation
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef INTEL_GT_REQUESTS_H
|
|
|
|
#define INTEL_GT_REQUESTS_H
|
|
|
|
|
2019-11-25 18:58:58 +08:00
|
|
|
struct intel_engine_cs;
|
2019-10-04 21:40:06 +08:00
|
|
|
struct intel_gt;
|
2019-11-25 18:58:58 +08:00
|
|
|
struct intel_timeline;
|
2019-10-04 21:40:06 +08:00
|
|
|
|
|
|
|
long intel_gt_retire_requests_timeout(struct intel_gt *gt, long timeout);
|
|
|
|
static inline void intel_gt_retire_requests(struct intel_gt *gt)
|
|
|
|
{
|
|
|
|
intel_gt_retire_requests_timeout(gt, 0);
|
|
|
|
}
|
|
|
|
|
2019-11-25 18:58:58 +08:00
|
|
|
void intel_engine_init_retire(struct intel_engine_cs *engine);
|
|
|
|
void intel_engine_add_retire(struct intel_engine_cs *engine,
|
|
|
|
struct intel_timeline *tl);
|
|
|
|
void intel_engine_fini_retire(struct intel_engine_cs *engine);
|
|
|
|
|
2019-10-04 21:40:06 +08:00
|
|
|
int intel_gt_wait_for_idle(struct intel_gt *gt, long timeout);
|
|
|
|
|
|
|
|
void intel_gt_init_requests(struct intel_gt *gt);
|
|
|
|
void intel_gt_park_requests(struct intel_gt *gt);
|
|
|
|
void intel_gt_unpark_requests(struct intel_gt *gt);
|
2019-11-15 23:08:39 +08:00
|
|
|
void intel_gt_fini_requests(struct intel_gt *gt);
|
2019-10-04 21:40:06 +08:00
|
|
|
|
|
|
|
#endif /* INTEL_GT_REQUESTS_H */
|