#include <linux/types.h>
#include <linux/pci.h>
#include <linux/netdevice.h>
#include <linux/vmalloc.h>
#include "octep_vf_config.h"
#include "octep_vf_main.h"
static u32 pfvf_cmd_versions[OCTEP_PFVF_MBOX_CMD_MAX] = …;
int octep_vf_setup_mbox(struct octep_vf_device *oct)
{ … }
void octep_vf_delete_mbox(struct octep_vf_device *oct)
{ … }
int octep_vf_mbox_version_check(struct octep_vf_device *oct)
{ … }
void octep_vf_mbox_work(struct work_struct *work)
{ … }
static int __octep_vf_mbox_send_cmd(struct octep_vf_device *oct,
union octep_pfvf_mbox_word cmd,
union octep_pfvf_mbox_word *rsp)
{ … }
int octep_vf_mbox_send_cmd(struct octep_vf_device *oct, union octep_pfvf_mbox_word cmd,
union octep_pfvf_mbox_word *rsp)
{ … }
int octep_vf_mbox_bulk_read(struct octep_vf_device *oct, enum octep_pfvf_mbox_opcode opcode,
u8 *data, int *size)
{ … }
int octep_vf_mbox_set_mtu(struct octep_vf_device *oct, int mtu)
{ … }
int octep_vf_mbox_set_mac_addr(struct octep_vf_device *oct, char *mac_addr)
{ … }
int octep_vf_mbox_get_mac_addr(struct octep_vf_device *oct, char *mac_addr)
{ … }
int octep_vf_mbox_set_rx_state(struct octep_vf_device *oct, bool state)
{ … }
int octep_vf_mbox_set_link_status(struct octep_vf_device *oct, bool status)
{ … }
int octep_vf_mbox_get_link_status(struct octep_vf_device *oct, u8 *oper_up)
{ … }
int octep_vf_mbox_dev_remove(struct octep_vf_device *oct)
{ … }
int octep_vf_mbox_get_fw_info(struct octep_vf_device *oct)
{ … }
int octep_vf_mbox_set_offloads(struct octep_vf_device *oct, u16 tx_offloads,
u16 rx_offloads)
{ … }