linux/drivers/crypto/intel/qat/qat_common/adf_sriov.c

// SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0-only)
/* Copyright(c) 2015 - 2021 Intel Corporation */
#include <linux/workqueue.h>
#include <linux/pci.h>
#include <linux/device.h>
#include "adf_common_drv.h"
#include "adf_cfg.h"
#include "adf_pfvf_pf_msg.h"

#define ADF_VF2PF_RATELIMIT_INTERVAL
#define ADF_VF2PF_RATELIMIT_BURST

static struct workqueue_struct *pf2vf_resp_wq;

struct adf_pf2vf_resp {};

static void adf_iov_send_resp(struct work_struct *work)
{}

void adf_schedule_vf2pf_handler(struct adf_accel_vf_info *vf_info)
{}

static int adf_enable_sriov(struct adf_accel_dev *accel_dev)
{}

void adf_reenable_sriov(struct adf_accel_dev *accel_dev)
{}

/**
 * adf_disable_sriov() - Disable SRIOV for the device
 * @accel_dev:  Pointer to accel device.
 *
 * Function disables SRIOV for the accel device.
 *
 * Return: 0 on success, error code otherwise.
 */
void adf_disable_sriov(struct adf_accel_dev *accel_dev)
{}
EXPORT_SYMBOL_GPL();

/**
 * adf_sriov_configure() - Enable SRIOV for the device
 * @pdev:  Pointer to PCI device.
 * @numvfs: Number of virtual functions (VFs) to enable.
 *
 * Note that the @numvfs parameter is ignored and all VFs supported by the
 * device are enabled due to the design of the hardware.
 *
 * Function enables SRIOV for the PCI device.
 *
 * Return: number of VFs enabled on success, error code otherwise.
 */
int adf_sriov_configure(struct pci_dev *pdev, int numvfs)
{}
EXPORT_SYMBOL_GPL();

int __init adf_init_pf_wq(void)
{}

void adf_exit_pf_wq(void)
{}