linux/drivers/net/ethernet/intel/ixgbevf/vf.h

/* SPDX-License-Identifier: GPL-2.0 */
/* Copyright(c) 1999 - 2018 Intel Corporation. */

#ifndef __IXGBE_VF_H__
#define __IXGBE_VF_H__

#include <linux/pci.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/if_ether.h>
#include <linux/netdevice.h>

#include "defines.h"
#include "regs.h"
#include "mbx.h"

struct ixgbe_hw;

struct ixgbe_mac_operations {};

enum ixgbe_mac_type {};

struct ixgbe_mac_info {};

struct ixgbe_mbx_operations {};

struct ixgbe_mbx_stats {};

struct ixgbe_mbx_info {};

struct ixgbe_hw {};

struct ixgbevf_hw_stats {};

struct ixgbevf_info {};

#define IXGBE_FAILED_READ_REG

#define IXGBE_REMOVED(a)

static inline void ixgbe_write_reg(struct ixgbe_hw *hw, u32 reg, u32 value)
{}

#define IXGBE_WRITE_REG(h, r, v)

u32 ixgbevf_read_reg(struct ixgbe_hw *hw, u32 reg);
#define IXGBE_READ_REG(h, r)

static inline void ixgbe_write_reg_array(struct ixgbe_hw *hw, u32 reg,
					 u32 offset, u32 value)
{}

#define IXGBE_WRITE_REG_ARRAY(h, r, o, v)

static inline u32 ixgbe_read_reg_array(struct ixgbe_hw *hw, u32 reg,
				       u32 offset)
{}

#define IXGBE_READ_REG_ARRAY(h, r, o)

int ixgbevf_get_queues(struct ixgbe_hw *hw, unsigned int *num_tcs,
		       unsigned int *default_tc);
int ixgbevf_get_reta_locked(struct ixgbe_hw *hw, u32 *reta, int num_rx_queues);
int ixgbevf_get_rss_key_locked(struct ixgbe_hw *hw, u8 *rss_key);
#endif /* __IXGBE_VF_H__ */