linux/drivers/crypto/cavium/nitrox/nitrox_sriov.c

// SPDX-License-Identifier: GPL-2.0
#include <linux/pci.h>
#include <linux/delay.h>

#include "nitrox_dev.h"
#include "nitrox_hal.h"
#include "nitrox_common.h"
#include "nitrox_isr.h"
#include "nitrox_mbx.h"

/**
 * num_vfs_valid - validate VF count
 * @num_vfs: number of VF(s)
 */
static inline bool num_vfs_valid(int num_vfs)
{}

static inline enum vf_mode num_vfs_to_mode(int num_vfs)
{}

static inline int vf_mode_to_nr_queues(enum vf_mode mode)
{}

static void nitrox_pf_cleanup(struct nitrox_device *ndev)
{}

/**
 * nitrox_pf_reinit - re-initialize PF resources once SR-IOV is disabled
 * @ndev: NITROX device
 */
static int nitrox_pf_reinit(struct nitrox_device *ndev)
{}

static void nitrox_sriov_cleanup(struct nitrox_device *ndev)
{}

static int nitrox_sriov_init(struct nitrox_device *ndev)
{}

static int nitrox_sriov_enable(struct pci_dev *pdev, int num_vfs)
{}

static int nitrox_sriov_disable(struct pci_dev *pdev)
{}

int nitrox_sriov_configure(struct pci_dev *pdev, int num_vfs)
{}