Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v6.10-rc4 56 lines 2.7 kB view raw
1/* SPDX-License-Identifier: MIT */ 2/* 3 * Copyright © 2023-2024 Intel Corporation 4 */ 5 6#ifndef _XE_GT_SRIOV_PF_CONFIG_H_ 7#define _XE_GT_SRIOV_PF_CONFIG_H_ 8 9#include <linux/types.h> 10 11struct drm_printer; 12struct xe_gt; 13 14u64 xe_gt_sriov_pf_config_get_ggtt(struct xe_gt *gt, unsigned int vfid); 15int xe_gt_sriov_pf_config_set_ggtt(struct xe_gt *gt, unsigned int vfid, u64 size); 16int xe_gt_sriov_pf_config_set_fair_ggtt(struct xe_gt *gt, 17 unsigned int vfid, unsigned int num_vfs); 18int xe_gt_sriov_pf_config_bulk_set_ggtt(struct xe_gt *gt, 19 unsigned int vfid, unsigned int num_vfs, u64 size); 20 21u32 xe_gt_sriov_pf_config_get_ctxs(struct xe_gt *gt, unsigned int vfid); 22int xe_gt_sriov_pf_config_set_ctxs(struct xe_gt *gt, unsigned int vfid, u32 num_ctxs); 23int xe_gt_sriov_pf_config_set_fair_ctxs(struct xe_gt *gt, unsigned int vfid, unsigned int num_vfs); 24int xe_gt_sriov_pf_config_bulk_set_ctxs(struct xe_gt *gt, unsigned int vfid, unsigned int num_vfs, 25 u32 num_ctxs); 26 27u32 xe_gt_sriov_pf_config_get_dbs(struct xe_gt *gt, unsigned int vfid); 28int xe_gt_sriov_pf_config_set_dbs(struct xe_gt *gt, unsigned int vfid, u32 num_dbs); 29int xe_gt_sriov_pf_config_set_fair_dbs(struct xe_gt *gt, unsigned int vfid, unsigned int num_vfs); 30int xe_gt_sriov_pf_config_bulk_set_dbs(struct xe_gt *gt, unsigned int vfid, unsigned int num_vfs, 31 u32 num_dbs); 32 33u64 xe_gt_sriov_pf_config_get_lmem(struct xe_gt *gt, unsigned int vfid); 34int xe_gt_sriov_pf_config_set_lmem(struct xe_gt *gt, unsigned int vfid, u64 size); 35int xe_gt_sriov_pf_config_set_fair_lmem(struct xe_gt *gt, unsigned int vfid, unsigned int num_vfs); 36int xe_gt_sriov_pf_config_bulk_set_lmem(struct xe_gt *gt, unsigned int vfid, unsigned int num_vfs, 37 u64 size); 38 39u32 xe_gt_sriov_pf_config_get_exec_quantum(struct xe_gt *gt, unsigned int vfid); 40int xe_gt_sriov_pf_config_set_exec_quantum(struct xe_gt *gt, unsigned int vfid, u32 exec_quantum); 41 42u32 xe_gt_sriov_pf_config_get_preempt_timeout(struct xe_gt *gt, unsigned int vfid); 43int xe_gt_sriov_pf_config_set_preempt_timeout(struct xe_gt *gt, unsigned int vfid, 44 u32 preempt_timeout); 45 46int xe_gt_sriov_pf_config_set_fair(struct xe_gt *gt, unsigned int vfid, unsigned int num_vfs); 47int xe_gt_sriov_pf_config_release(struct xe_gt *gt, unsigned int vfid, bool force); 48int xe_gt_sriov_pf_config_push(struct xe_gt *gt, unsigned int vfid, bool refresh); 49 50int xe_gt_sriov_pf_config_print_ggtt(struct xe_gt *gt, struct drm_printer *p); 51int xe_gt_sriov_pf_config_print_ctxs(struct xe_gt *gt, struct drm_printer *p); 52int xe_gt_sriov_pf_config_print_dbs(struct xe_gt *gt, struct drm_printer *p); 53 54int xe_gt_sriov_pf_config_print_available_ggtt(struct xe_gt *gt, struct drm_printer *p); 55 56#endif