Home | History | Annotate | Line # | Download | only in gt
      1 /*	$NetBSD: intel_gt_requests.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_GT_REQUESTS_H
     10 #define INTEL_GT_REQUESTS_H
     11 
     12 struct intel_engine_cs;
     13 struct intel_gt;
     14 struct intel_timeline;
     15 
     16 long intel_gt_retire_requests_timeout(struct intel_gt *gt, long timeout);
     17 static inline void intel_gt_retire_requests(struct intel_gt *gt)
     18 {
     19 	intel_gt_retire_requests_timeout(gt, 0);
     20 }
     21 
     22 void intel_engine_init_retire(struct intel_engine_cs *engine);
     23 void intel_engine_add_retire(struct intel_engine_cs *engine,
     24 			     struct intel_timeline *tl);
     25 void intel_engine_fini_retire(struct intel_engine_cs *engine);
     26 
     27 int intel_gt_wait_for_idle(struct intel_gt *gt, long timeout);
     28 
     29 void intel_gt_init_requests(struct intel_gt *gt);
     30 void intel_gt_park_requests(struct intel_gt *gt);
     31 void intel_gt_unpark_requests(struct intel_gt *gt);
     32 void intel_gt_fini_requests(struct intel_gt *gt);
     33 
     34 #endif /* INTEL_GT_REQUESTS_H */
     35