linux/drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_mbox.c

// SPDX-License-Identifier: GPL-2.0
/* Marvell Octeon EP (EndPoint) VF Ethernet Driver
 *
 * Copyright (C) 2020 Marvell.
 *
 */
#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"

/* When a new command is implemented, the below table should be updated
 * with new command and it's version info.
 */
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)
{}