FILE
xe_gt_sriov_pf_control.h
File preview with syntax highlighting.
linux-6.19.14/drivers/gpu/drm/xe/xe_gt_sriov_pf_control.h
1/* SPDX-License-Identifier: MIT */ 2/* 3 * Copyright © 2023-2024 Intel Corporation 4 */ 5 6#ifndef _XE_GT_SRIOV_PF_CONTROL_H_ 7#define _XE_GT_SRIOV_PF_CONTROL_H_ 8 9#include <linux/errno.h> 10#include <linux/types.h> 11 12struct xe_gt; 13 14int xe_gt_sriov_pf_control_init(struct xe_gt *gt); 15void xe_gt_sriov_pf_control_restart(struct xe_gt *gt); 16 17int xe_gt_sriov_pf_control_pause_vf(struct xe_gt *gt, unsigned int vfid); 18int xe_gt_sriov_pf_control_resume_vf(struct xe_gt *gt, unsigned int vfid); 19bool xe_gt_sriov_pf_control_check_save_data_done(struct xe_gt *gt, unsigned int vfid); 20bool xe_gt_sriov_pf_control_check_save_failed(struct xe_gt *gt, unsigned int vfid); 21int xe_gt_sriov_pf_control_process_save_data(struct xe_gt *gt, unsigned int vfid); 22int xe_gt_sriov_pf_control_trigger_save_vf(struct xe_gt *gt, unsigned int vfid); 23int xe_gt_sriov_pf_control_finish_save_vf(struct xe_gt *gt, unsigned int vfid); 24int xe_gt_sriov_pf_control_restore_data_done(struct xe_gt *gt, unsigned int vfid); 25bool xe_gt_sriov_pf_control_check_restore_failed(struct xe_gt *gt, unsigned int vfid); 26int xe_gt_sriov_pf_control_process_restore_data(struct xe_gt *gt, unsigned int vfid); 27int xe_gt_sriov_pf_control_trigger_restore_vf(struct xe_gt *gt, unsigned int vfid); 28int xe_gt_sriov_pf_control_finish_restore_vf(struct xe_gt *gt, unsigned int vfid); 29int xe_gt_sriov_pf_control_stop_vf(struct xe_gt *gt, unsigned int vfid); 30int xe_gt_sriov_pf_control_trigger_flr(struct xe_gt *gt, unsigned int vfid); 31int xe_gt_sriov_pf_control_sync_flr(struct xe_gt *gt, unsigned int vfid, bool sync); 32int xe_gt_sriov_pf_control_wait_flr(struct xe_gt *gt, unsigned int vfid); 33 34#ifdef CONFIG_PCI_IOV 35int xe_gt_sriov_pf_control_process_guc2pf(struct xe_gt *gt, const u32 *msg, u32 len); 36#else 37static inline int xe_gt_sriov_pf_control_process_guc2pf(struct xe_gt *gt, const u32 *msg, u32 len) 38{ 39 return -EPROTO; 40} 41#endif 42 43#endif
~/
Read-only file preview.