1 /* 2 * SPDX-License-Identifier: MIT 3 * 4 * Copyright © 2019 Intel Corporation 5 */ 6 7 #ifndef INTEL_GT_REQUESTS_H 8 #define INTEL_GT_REQUESTS_H 9 10 struct intel_gt; 11 12 long intel_gt_retire_requests_timeout(struct intel_gt *gt, long timeout); 13 static inline void intel_gt_retire_requests(struct intel_gt *gt) 14 { 15 intel_gt_retire_requests_timeout(gt, 0); 16 } 17 18 int intel_gt_wait_for_idle(struct intel_gt *gt, long timeout); 19 20 void intel_gt_init_requests(struct intel_gt *gt); 21 void intel_gt_park_requests(struct intel_gt *gt); 22 void intel_gt_unpark_requests(struct intel_gt *gt); 23 24 #endif /* INTEL_GT_REQUESTS_H */ 25