Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
be_ethtool.c File Reference
#include "be.h"
#include "be_cmds.h"
#include <linux/ethtool.h>

Go to the source code of this file.

Data Structures

struct  be_ethtool_stat
 

Macros

#define FIELDINFO(_struct, field)
 
#define DRVSTAT_TX_INFO(field)
 
#define DRVSTAT_RX_INFO(field)
 
#define DRVSTAT_INFO(field)
 
#define ETHTOOL_STATS_NUM   ARRAY_SIZE(et_stats)
 
#define ETHTOOL_RXSTATS_NUM   (ARRAY_SIZE(et_rx_stats))
 
#define ETHTOOL_TXSTATS_NUM   (ARRAY_SIZE(et_tx_stats))
 
#define ETHTOOL_TESTS_NUM   ARRAY_SIZE(et_self_tests)
 
#define BE_MAC_LOOPBACK   0x0
 
#define BE_PHY_LOOPBACK   0x1
 
#define BE_ONE_PORT_EXT_LOOPBACK   0x2
 
#define BE_NO_LOOPBACK   0xff
 

Enumerations

enum  { DRVSTAT_TX, DRVSTAT_RX, DRVSTAT }
 

Functions

bool be_pause_supported (struct be_adapter *adapter)
 

Variables

struct ethtool_ops be_ethtool_ops
 

Macro Definition Documentation

#define BE_MAC_LOOPBACK   0x0

Definition at line 170 of file be_ethtool.c.

#define BE_NO_LOOPBACK   0xff

Definition at line 173 of file be_ethtool.c.

#define BE_ONE_PORT_EXT_LOOPBACK   0x2

Definition at line 172 of file be_ethtool.c.

#define BE_PHY_LOOPBACK   0x1

Definition at line 171 of file be_ethtool.c.

#define DRVSTAT_INFO (   field)
Value:
#field, DRVSTAT,\
FIELDINFO(struct be_drv_stats, field)

Definition at line 36 of file be_ethtool.c.

#define DRVSTAT_RX_INFO (   field)
Value:
#field, DRVSTAT_RX,\
FIELDINFO(struct be_rx_stats, field)

Definition at line 34 of file be_ethtool.c.

#define DRVSTAT_TX_INFO (   field)
Value:
#field, DRVSTAT_TX,\
FIELDINFO(struct be_tx_stats, field)

Definition at line 32 of file be_ethtool.c.

#define ETHTOOL_RXSTATS_NUM   (ARRAY_SIZE(et_rx_stats))

Definition at line 141 of file be_ethtool.c.

#define ETHTOOL_STATS_NUM   ARRAY_SIZE(et_stats)

Definition at line 120 of file be_ethtool.c.

#define ETHTOOL_TESTS_NUM   ARRAY_SIZE(et_self_tests)

Definition at line 169 of file be_ethtool.c.

#define ETHTOOL_TXSTATS_NUM   (ARRAY_SIZE(et_tx_stats))

Definition at line 159 of file be_ethtool.c.

#define FIELDINFO (   _struct,
  field 
)
Value:
FIELD_SIZEOF(_struct, field), \
offsetof(_struct, field)

Definition at line 30 of file be_ethtool.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
DRVSTAT_TX 
DRVSTAT_RX 
DRVSTAT 

Definition at line 29 of file be_ethtool.c.

Function Documentation

bool be_pause_supported ( struct be_adapter adapter)

Definition at line 515 of file be_ethtool.c.

Variable Documentation

struct ethtool_ops be_ethtool_ops
Initial value:
= {
.get_settings = be_get_settings,
.get_drvinfo = be_get_drvinfo,
.get_wol = be_get_wol,
.set_wol = be_set_wol,
.get_link = ethtool_op_get_link,
.get_eeprom_len = be_get_eeprom_len,
.get_eeprom = be_read_eeprom,
.get_coalesce = be_get_coalesce,
.set_coalesce = be_set_coalesce,
.get_ringparam = be_get_ringparam,
.get_pauseparam = be_get_pauseparam,
.set_pauseparam = be_set_pauseparam,
.get_strings = be_get_stat_strings,
.set_phys_id = be_set_phys_id,
.get_msglevel = be_get_msg_level,
.set_msglevel = be_set_msg_level,
.get_sset_count = be_get_sset_count,
.get_ethtool_stats = be_get_ethtool_stats,
.get_regs_len = be_get_reg_len,
.get_regs = be_get_regs,
.flash_device = be_do_flash,
.self_test = be_self_test,
}

Definition at line 924 of file be_ethtool.c.