Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
qlcnic_ethtool.c File Reference
#include <linux/types.h>
#include <linux/delay.h>
#include <linux/pci.h>
#include <linux/io.h>
#include <linux/netdevice.h>
#include <linux/ethtool.h>
#include "qlcnic.h"

Go to the source code of this file.

Data Structures

struct  qlcnic_stats
 

Macros

#define QLC_SIZEOF(m)   FIELD_SIZEOF(struct qlcnic_adapter, m)
 
#define QLC_OFF(m)   offsetof(struct qlcnic_adapter, m)
 
#define QLCNIC_STATS_LEN   ARRAY_SIZE(qlcnic_gstrings_stats)
 
#define QLCNIC_MAC_STATS_LEN   ARRAY_SIZE(qlcnic_mac_stats_strings)
 
#define QLCNIC_DEVICE_STATS_LEN   ARRAY_SIZE(qlcnic_device_gstrings_stats)
 
#define QLCNIC_TOTAL_STATS_LEN   QLCNIC_STATS_LEN + QLCNIC_MAC_STATS_LEN
 
#define QLCNIC_TEST_LEN   ARRAY_SIZE(qlcnic_gstrings_test)
 
#define QLCNIC_RING_REGS_COUNT   20
 
#define QLCNIC_RING_REGS_LEN   (QLCNIC_RING_REGS_COUNT * sizeof(u32))
 
#define QLCNIC_MAX_EEPROM_LEN   1024
 
#define QLCNIC_MGMT_API_VERSION   2
 
#define QLCNIC_DEV_INFO_SIZE   1
 
#define QLCNIC_ETHTOOL_REGS_VER   2
 
#define QLCNIC_ILB_PKT_SIZE   64
 
#define QLCNIC_NUM_ILB_PKT   16
 
#define QLCNIC_ILB_MAX_RCV_LOOP   10
 

Functions

int qlcnic_check_loopback_buff (unsigned char *data, u8 mac[])
 

Variables

struct ethtool_ops qlcnic_ethtool_ops
 
struct ethtool_ops qlcnic_ethtool_failed_ops
 

Macro Definition Documentation

#define QLC_OFF (   m)    offsetof(struct qlcnic_adapter, m)

Definition at line 24 of file qlcnic_ethtool.c.

#define QLC_SIZEOF (   m)    FIELD_SIZEOF(struct qlcnic_adapter, m)

Definition at line 23 of file qlcnic_ethtool.c.

#define QLCNIC_DEV_INFO_SIZE   1

Definition at line 159 of file qlcnic_ethtool.c.

#define QLCNIC_DEVICE_STATS_LEN   ARRAY_SIZE(qlcnic_device_gstrings_stats)

Definition at line 119 of file qlcnic_ethtool.c.

#define QLCNIC_ETHTOOL_REGS_VER   2

Definition at line 160 of file qlcnic_ethtool.c.

#define QLCNIC_ILB_MAX_RCV_LOOP   10

Definition at line 731 of file qlcnic_ethtool.c.

#define QLCNIC_ILB_PKT_SIZE   64

Definition at line 729 of file qlcnic_ethtool.c.

#define QLCNIC_MAC_STATS_LEN   ARRAY_SIZE(qlcnic_mac_stats_strings)

Definition at line 118 of file qlcnic_ethtool.c.

#define QLCNIC_MAX_EEPROM_LEN   1024

Definition at line 134 of file qlcnic_ethtool.c.

#define QLCNIC_MGMT_API_VERSION   2

Definition at line 158 of file qlcnic_ethtool.c.

#define QLCNIC_NUM_ILB_PKT   16

Definition at line 730 of file qlcnic_ethtool.c.

#define QLCNIC_RING_REGS_COUNT   20

Definition at line 132 of file qlcnic_ethtool.c.

#define QLCNIC_RING_REGS_LEN   (QLCNIC_RING_REGS_COUNT * sizeof(u32))

Definition at line 133 of file qlcnic_ethtool.c.

#define QLCNIC_STATS_LEN   ARRAY_SIZE(qlcnic_gstrings_stats)

Definition at line 117 of file qlcnic_ethtool.c.

#define QLCNIC_TEST_LEN   ARRAY_SIZE(qlcnic_gstrings_test)

Definition at line 130 of file qlcnic_ethtool.c.

#define QLCNIC_TOTAL_STATS_LEN   QLCNIC_STATS_LEN + QLCNIC_MAC_STATS_LEN

Definition at line 120 of file qlcnic_ethtool.c.

Function Documentation

int qlcnic_check_loopback_buff ( unsigned char data,
u8  mac[] 
)

Definition at line 745 of file qlcnic_ethtool.c.

Variable Documentation

struct ethtool_ops qlcnic_ethtool_failed_ops
Initial value:
= {
.get_settings = qlcnic_get_settings,
.get_drvinfo = qlcnic_get_drvinfo,
.set_msglevel = qlcnic_set_msglevel,
.get_msglevel = qlcnic_get_msglevel,
}

Definition at line 1387 of file qlcnic_ethtool.c.

struct ethtool_ops qlcnic_ethtool_ops
Initial value:
= {
.get_settings = qlcnic_get_settings,
.set_settings = qlcnic_set_settings,
.get_drvinfo = qlcnic_get_drvinfo,
.get_regs_len = qlcnic_get_regs_len,
.get_regs = qlcnic_get_regs,
.get_link = ethtool_op_get_link,
.get_eeprom_len = qlcnic_get_eeprom_len,
.get_eeprom = qlcnic_get_eeprom,
.get_ringparam = qlcnic_get_ringparam,
.set_ringparam = qlcnic_set_ringparam,
.get_channels = qlcnic_get_channels,
.set_channels = qlcnic_set_channels,
.get_pauseparam = qlcnic_get_pauseparam,
.set_pauseparam = qlcnic_set_pauseparam,
.get_wol = qlcnic_get_wol,
.set_wol = qlcnic_set_wol,
.self_test = qlcnic_diag_test,
.get_strings = qlcnic_get_strings,
.get_ethtool_stats = qlcnic_get_ethtool_stats,
.get_sset_count = qlcnic_get_sset_count,
.get_coalesce = qlcnic_get_intr_coalesce,
.set_coalesce = qlcnic_set_intr_coalesce,
.set_phys_id = qlcnic_set_led,
.set_msglevel = qlcnic_set_msglevel,
.get_msglevel = qlcnic_get_msglevel,
.get_dump_flag = qlcnic_get_dump_flag,
.get_dump_data = qlcnic_get_dump_data,
.set_dump = qlcnic_set_dump,
}

Definition at line 1356 of file qlcnic_ethtool.c.