linux/drivers/scsi/fnic/vnic_dev.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright 2008 Cisco Systems, Inc.  All rights reserved.
 * Copyright 2007 Nuova Systems, Inc.  All rights reserved.
 */

#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/types.h>
#include <linux/pci.h>
#include <linux/delay.h>
#include <linux/if_ether.h>
#include <linux/slab.h>
#include "vnic_resource.h"
#include "vnic_devcmd.h"
#include "vnic_dev.h"
#include "vnic_stats.h"
#include "vnic_wq.h"

struct devcmd2_controller {};

enum vnic_proxy_type {};

struct vnic_res {};

struct vnic_dev {};

#define VNIC_MAX_RES_HDR_SIZE
#define VNIC_RES_STRIDE

void *vnic_dev_priv(struct vnic_dev *vdev)
{}

static int vnic_dev_discover_res(struct vnic_dev *vdev,
	struct vnic_dev_bar *bar)
{}

unsigned int vnic_dev_get_res_count(struct vnic_dev *vdev,
	enum vnic_res_type type)
{}

void __iomem *vnic_dev_get_res(struct vnic_dev *vdev, enum vnic_res_type type,
	unsigned int index)
{}

unsigned int vnic_dev_desc_ring_size(struct vnic_dev_ring *ring,
				     unsigned int desc_count,
				     unsigned int desc_size)
{}

void vnic_dev_clear_desc_ring(struct vnic_dev_ring *ring)
{}

int vnic_dev_alloc_desc_ring(struct vnic_dev *vdev, struct vnic_dev_ring *ring,
	unsigned int desc_count, unsigned int desc_size)
{}

void vnic_dev_free_desc_ring(struct vnic_dev *vdev, struct vnic_dev_ring *ring)
{}

static int vnic_dev_cmd1(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd, int wait)
{}

static int vnic_dev_cmd2(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd,
		int wait)
{}


static int vnic_dev_init_devcmd1(struct vnic_dev *vdev)
{}


static int vnic_dev_init_devcmd2(struct vnic_dev *vdev)
{}


static void vnic_dev_deinit_devcmd2(struct vnic_dev *vdev)
{}


static int vnic_dev_cmd_no_proxy(struct vnic_dev *vdev,
	enum vnic_devcmd_cmd cmd, u64 *a0, u64 *a1, int wait)
{}


int vnic_dev_cmd(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd,
	u64 *a0, u64 *a1, int wait)
{}


int vnic_dev_fw_info(struct vnic_dev *vdev,
	struct vnic_devcmd_fw_info **fw_info)
{}

int vnic_dev_spec(struct vnic_dev *vdev, unsigned int offset, unsigned int size,
	void *value)
{}

int vnic_dev_stats_clear(struct vnic_dev *vdev)
{}

int vnic_dev_stats_dump(struct vnic_dev *vdev, struct vnic_stats **stats)
{}

int vnic_dev_close(struct vnic_dev *vdev)
{}

int vnic_dev_enable(struct vnic_dev *vdev)
{}

int vnic_dev_disable(struct vnic_dev *vdev)
{}

int vnic_dev_open(struct vnic_dev *vdev, int arg)
{}

int vnic_dev_open_done(struct vnic_dev *vdev, int *done)
{}

int vnic_dev_soft_reset(struct vnic_dev *vdev, int arg)
{}

int vnic_dev_soft_reset_done(struct vnic_dev *vdev, int *done)
{}

int vnic_dev_hang_notify(struct vnic_dev *vdev)
{}

int vnic_dev_mac_addr(struct vnic_dev *vdev, u8 *mac_addr)
{}

void vnic_dev_packet_filter(struct vnic_dev *vdev, int directed, int multicast,
	int broadcast, int promisc, int allmulti)
{}

void vnic_dev_add_addr(struct vnic_dev *vdev, u8 *addr)
{}

void vnic_dev_del_addr(struct vnic_dev *vdev, u8 *addr)
{}

int vnic_dev_notify_set(struct vnic_dev *vdev, u16 intr)
{}

void vnic_dev_notify_unset(struct vnic_dev *vdev)
{}

static int vnic_dev_notify_ready(struct vnic_dev *vdev)
{}

int vnic_dev_init(struct vnic_dev *vdev, int arg)
{}

u16 vnic_dev_set_default_vlan(struct vnic_dev *vdev, u16 new_default_vlan)
{}

int vnic_dev_link_status(struct vnic_dev *vdev)
{}

u32 vnic_dev_port_speed(struct vnic_dev *vdev)
{}

u32 vnic_dev_msg_lvl(struct vnic_dev *vdev)
{}

u32 vnic_dev_mtu(struct vnic_dev *vdev)
{}

u32 vnic_dev_link_down_cnt(struct vnic_dev *vdev)
{}

void vnic_dev_set_intr_mode(struct vnic_dev *vdev,
	enum vnic_dev_intr_mode intr_mode)
{}

enum vnic_dev_intr_mode vnic_dev_get_intr_mode(
	struct vnic_dev *vdev)
{}

void vnic_dev_unregister(struct vnic_dev *vdev)
{}

struct vnic_dev *vnic_dev_register(struct vnic_dev *vdev,
	void *priv, struct pci_dev *pdev, struct vnic_dev_bar *bar)
{}

int vnic_dev_cmd_init(struct vnic_dev *vdev)
{}