intel_gt_requests.h 918 B

1234567891011121314151617181920212223242526272829303132
  1. /* SPDX-License-Identifier: MIT */
  2. /*
  3. * Copyright © 2019 Intel Corporation
  4. */
  5. #ifndef INTEL_GT_REQUESTS_H
  6. #define INTEL_GT_REQUESTS_H
  7. #include <linux/stddef.h>
  8. struct intel_engine_cs;
  9. struct intel_gt;
  10. struct intel_timeline;
  11. long intel_gt_retire_requests_timeout(struct intel_gt *gt, long timeout,
  12. long *remaining_timeout);
  13. static inline void intel_gt_retire_requests(struct intel_gt *gt)
  14. {
  15. intel_gt_retire_requests_timeout(gt, 0, NULL);
  16. }
  17. void intel_engine_init_retire(struct intel_engine_cs *engine);
  18. void intel_engine_add_retire(struct intel_engine_cs *engine,
  19. struct intel_timeline *tl);
  20. void intel_engine_fini_retire(struct intel_engine_cs *engine);
  21. void intel_gt_init_requests(struct intel_gt *gt);
  22. void intel_gt_park_requests(struct intel_gt *gt);
  23. void intel_gt_unpark_requests(struct intel_gt *gt);
  24. void intel_gt_fini_requests(struct intel_gt *gt);
  25. #endif /* INTEL_GT_REQUESTS_H */