brintos

brintos / linux-shallow public Read only

0
0
Text · 970 B · 56aaadf Raw
37 lines · c
1/* SPDX-License-Identifier: MIT */2/*3 * Copyright © 2023-2024 Intel Corporation4 */5 6#ifndef _XE_GT_SRIOV_PF_SERVICE_H_7#define _XE_GT_SRIOV_PF_SERVICE_H_8 9#include <linux/errno.h>10#include <linux/types.h>11 12struct drm_printer;13struct xe_gt;14 15int xe_gt_sriov_pf_service_init(struct xe_gt *gt);16void xe_gt_sriov_pf_service_update(struct xe_gt *gt);17void xe_gt_sriov_pf_service_reset(struct xe_gt *gt, unsigned int vfid);18 19int xe_gt_sriov_pf_service_print_version(struct xe_gt *gt, struct drm_printer *p);20int xe_gt_sriov_pf_service_print_runtime(struct xe_gt *gt, struct drm_printer *p);21 22#ifdef CONFIG_PCI_IOV23int xe_gt_sriov_pf_service_process_request(struct xe_gt *gt, u32 origin,24					   const u32 *msg, u32 msg_len,25					   u32 *response, u32 resp_size);26#else27static inline int28xe_gt_sriov_pf_service_process_request(struct xe_gt *gt, u32 origin,29				       const u32 *msg, u32 msg_len,30				       u32 *response, u32 resp_size)31{32	return -EPROTO;33}34#endif35 36#endif37