brintos

brintos / linux-shallow public Read only

0
0
Text · 3.1 KiB · 42e6476 Raw
68 lines · c
1/* SPDX-License-Identifier: MIT */2/*3 * Copyright © 2023-2024 Intel Corporation4 */5 6#ifndef _XE_GT_SRIOV_PF_CONFIG_H_7#define _XE_GT_SRIOV_PF_CONFIG_H_8 9#include <linux/types.h>10 11enum xe_guc_klv_threshold_index;12struct drm_printer;13struct xe_gt;14 15u64 xe_gt_sriov_pf_config_get_ggtt(struct xe_gt *gt, unsigned int vfid);16int xe_gt_sriov_pf_config_set_ggtt(struct xe_gt *gt, unsigned int vfid, u64 size);17int xe_gt_sriov_pf_config_set_fair_ggtt(struct xe_gt *gt,18					unsigned int vfid, unsigned int num_vfs);19int xe_gt_sriov_pf_config_bulk_set_ggtt(struct xe_gt *gt,20					unsigned int vfid, unsigned int num_vfs, u64 size);21 22u32 xe_gt_sriov_pf_config_get_ctxs(struct xe_gt *gt, unsigned int vfid);23int xe_gt_sriov_pf_config_set_ctxs(struct xe_gt *gt, unsigned int vfid, u32 num_ctxs);24int xe_gt_sriov_pf_config_set_fair_ctxs(struct xe_gt *gt, unsigned int vfid, unsigned int num_vfs);25int xe_gt_sriov_pf_config_bulk_set_ctxs(struct xe_gt *gt, unsigned int vfid, unsigned int num_vfs,26					u32 num_ctxs);27 28u32 xe_gt_sriov_pf_config_get_dbs(struct xe_gt *gt, unsigned int vfid);29int xe_gt_sriov_pf_config_set_dbs(struct xe_gt *gt, unsigned int vfid, u32 num_dbs);30int xe_gt_sriov_pf_config_set_fair_dbs(struct xe_gt *gt, unsigned int vfid, unsigned int num_vfs);31int xe_gt_sriov_pf_config_bulk_set_dbs(struct xe_gt *gt, unsigned int vfid, unsigned int num_vfs,32				       u32 num_dbs);33 34u64 xe_gt_sriov_pf_config_get_lmem(struct xe_gt *gt, unsigned int vfid);35int xe_gt_sriov_pf_config_set_lmem(struct xe_gt *gt, unsigned int vfid, u64 size);36int xe_gt_sriov_pf_config_set_fair_lmem(struct xe_gt *gt, unsigned int vfid, unsigned int num_vfs);37int xe_gt_sriov_pf_config_bulk_set_lmem(struct xe_gt *gt, unsigned int vfid, unsigned int num_vfs,38					u64 size);39 40u32 xe_gt_sriov_pf_config_get_exec_quantum(struct xe_gt *gt, unsigned int vfid);41int xe_gt_sriov_pf_config_set_exec_quantum(struct xe_gt *gt, unsigned int vfid, u32 exec_quantum);42 43u32 xe_gt_sriov_pf_config_get_preempt_timeout(struct xe_gt *gt, unsigned int vfid);44int xe_gt_sriov_pf_config_set_preempt_timeout(struct xe_gt *gt, unsigned int vfid,45					      u32 preempt_timeout);46 47u32 xe_gt_sriov_pf_config_get_threshold(struct xe_gt *gt, unsigned int vfid,48					enum xe_guc_klv_threshold_index index);49int xe_gt_sriov_pf_config_set_threshold(struct xe_gt *gt, unsigned int vfid,50					enum xe_guc_klv_threshold_index index, u32 value);51 52int xe_gt_sriov_pf_config_set_fair(struct xe_gt *gt, unsigned int vfid, unsigned int num_vfs);53int xe_gt_sriov_pf_config_sanitize(struct xe_gt *gt, unsigned int vfid, long timeout);54int xe_gt_sriov_pf_config_release(struct xe_gt *gt, unsigned int vfid, bool force);55int xe_gt_sriov_pf_config_push(struct xe_gt *gt, unsigned int vfid, bool refresh);56 57bool xe_gt_sriov_pf_config_is_empty(struct xe_gt *gt, unsigned int vfid);58 59void xe_gt_sriov_pf_config_restart(struct xe_gt *gt);60 61int xe_gt_sriov_pf_config_print_ggtt(struct xe_gt *gt, struct drm_printer *p);62int xe_gt_sriov_pf_config_print_ctxs(struct xe_gt *gt, struct drm_printer *p);63int xe_gt_sriov_pf_config_print_dbs(struct xe_gt *gt, struct drm_printer *p);64 65int xe_gt_sriov_pf_config_print_available_ggtt(struct xe_gt *gt, struct drm_printer *p);66 67#endif68