intel_guc_rc.h (707B)
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 11void intel_guc_rc_init_early(struct intel_guc *guc); 12 13static inline bool intel_guc_rc_is_supported(struct intel_guc *guc) 14{ 15 return guc->rc_supported; 16} 17 18static 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 23static 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 28int intel_guc_rc_enable(struct intel_guc *guc); 29int intel_guc_rc_disable(struct intel_guc *guc); 30 31#endif