linux/drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c

/**********************************************************************
 * Author: Cavium, Inc.
 *
 * Contact: [email protected]
 *          Please include "LiquidIO" in the subject.
 *
 * Copyright (c) 2003-2016 Cavium, Inc.
 *
 * This file is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License, Version 2, as
 * published by the Free Software Foundation.
 *
 * This file is distributed in the hope that it will be useful, but
 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty
 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, TITLE, or
 * NONINFRINGEMENT.  See the GNU General Public License for more details.
 ***********************************************************************/
#include <linux/pci.h>
#include <linux/vmalloc.h>
#include <linux/etherdevice.h>
#include "liquidio_common.h"
#include "octeon_droq.h"
#include "octeon_iq.h"
#include "response_manager.h"
#include "octeon_device.h"
#include "cn23xx_pf_device.h"
#include "octeon_main.h"
#include "octeon_mailbox.h"

#define RESET_NOTDONE
#define RESET_DONE

/* Change the value of SLI Packet Input Jabber Register to allow
 * VXLAN TSO packets which can be 64424 bytes, exceeding the
 * MAX_GSO_SIZE we supplied to the kernel
 */
#define CN23XX_INPUT_JABBER

void cn23xx_dump_pf_initialized_regs(struct octeon_device *oct)
{}

static int cn23xx_pf_soft_reset(struct octeon_device *oct)
{}

static void cn23xx_enable_error_reporting(struct octeon_device *oct)
{}

static u32 cn23xx_coprocessor_clock(struct octeon_device *oct)
{}

u32 cn23xx_pf_get_oq_ticks(struct octeon_device *oct, u32 time_intr_in_us)
{}

static void cn23xx_setup_global_mac_regs(struct octeon_device *oct)
{}

static int cn23xx_reset_io_queues(struct octeon_device *oct)
{}

static int cn23xx_pf_setup_global_input_regs(struct octeon_device *oct)
{}

static void cn23xx_pf_setup_global_output_regs(struct octeon_device *oct)
{}

static int cn23xx_setup_pf_device_regs(struct octeon_device *oct)
{}

static void cn23xx_setup_iq_regs(struct octeon_device *oct, u32 iq_no)
{}

static void cn23xx_setup_oq_regs(struct octeon_device *oct, u32 oq_no)
{}

static void cn23xx_pf_mbox_thread(struct work_struct *work)
{}

static int cn23xx_setup_pf_mbox(struct octeon_device *oct)
{}

static int cn23xx_free_pf_mbox(struct octeon_device *oct)
{}

static int cn23xx_enable_io_queues(struct octeon_device *oct)
{}

static void cn23xx_disable_io_queues(struct octeon_device *oct)
{}

static u64 cn23xx_pf_msix_interrupt_handler(void *dev)
{}

static void cn23xx_handle_pf_mbox_intr(struct octeon_device *oct)
{}

static irqreturn_t cn23xx_interrupt_handler(void *dev)
{}

static void cn23xx_bar1_idx_setup(struct octeon_device *oct, u64 core_addr,
				  u32 idx, int valid)
{}

static void cn23xx_bar1_idx_write(struct octeon_device *oct, u32 idx, u32 mask)
{}

static u32 cn23xx_bar1_idx_read(struct octeon_device *oct, u32 idx)
{}

/* always call with lock held */
static u32 cn23xx_update_read_index(struct octeon_instr_queue *iq)
{}

static void cn23xx_enable_pf_interrupt(struct octeon_device *oct, u8 intr_flag)
{}

static void cn23xx_disable_pf_interrupt(struct octeon_device *oct, u8 intr_flag)
{}

static void cn23xx_get_pcie_qlmport(struct octeon_device *oct)
{}

static int cn23xx_get_pf_num(struct octeon_device *oct)
{}

static void cn23xx_setup_reg_address(struct octeon_device *oct)
{}

int cn23xx_sriov_config(struct octeon_device *oct)
{}

int setup_cn23xx_octeon_pf_device(struct octeon_device *oct)
{}
EXPORT_SYMBOL_GPL();

int validate_cn23xx_pf_config_info(struct octeon_device *oct,
				   struct octeon_config *conf23xx)
{}

int cn23xx_fw_loaded(struct octeon_device *oct)
{}
EXPORT_SYMBOL_GPL();

void cn23xx_tell_vf_its_macaddr_changed(struct octeon_device *oct, int vfidx,
					u8 *mac)
{}
EXPORT_SYMBOL_GPL();

static void
cn23xx_get_vf_stats_callback(struct octeon_device *oct,
			     struct octeon_mbox_cmd *cmd, void *arg)
{}

int cn23xx_get_vf_stats(struct octeon_device *oct, int vfidx,
			struct oct_vf_stats *stats)
{}
EXPORT_SYMBOL_GPL();