1 /* SPDX-License-Identifier: MIT */ 2 /* 3 * Copyright © 2021 Intel Corporation 4 */ 5 6 #ifndef _INTEL_GUC_RC_H_ 7 #define _INTEL_GUC_RC_H_ 8 9 #include "intel_guc_submission.h" 10 11 void intel_guc_rc_init_early(struct intel_guc *guc); 12 13 static inline bool intel_guc_rc_is_supported(struct intel_guc *guc) 14 { 15 return guc->rc_supported; 16 } 17 18 static inline bool intel_guc_rc_is_wanted(struct intel_guc *guc) 19 { 20 return guc->submission_selected && intel_guc_rc_is_supported(guc); 21 } 22 23 static inline bool intel_guc_rc_is_used(struct intel_guc *guc) 24 { 25 return intel_guc_submission_is_used(guc) && intel_guc_rc_is_wanted(guc); 26 } 27 28 int intel_guc_rc_enable(struct intel_guc *guc); 29 int intel_guc_rc_disable(struct intel_guc *guc); 30 31 #endif 32