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

Go to the source code of this file.

Data Structures

struct  e1000_stats
 

Macros

#define E1000_STAT(str, m)
 
#define E1000_NETDEV_STAT(str, m)
 
#define E1000_GLOBAL_STATS_LEN   ARRAY_SIZE(e1000_gstrings_stats)
 
#define E1000_STATS_LEN   (E1000_GLOBAL_STATS_LEN)
 
#define E1000_TEST_LEN   ARRAY_SIZE(e1000_gstrings_test)
 
#define E1000_REGS_LEN   32 /* overestimate */
 
#define REG_PATTERN_TEST_ARRAY(reg, offset, mask, write)
 
#define REG_PATTERN_TEST(reg, mask, write)   REG_PATTERN_TEST_ARRAY(reg, 0, mask, write)
 
#define REG_SET_AND_CHECK(reg, mask, write)
 
#define I82577_PHY_LBK_CTRL   19
 
#define E1000_SERDES_LB_ON   0x410
 
#define KMRNCTRLSTA_OPMODE   (0x1F << 16)
 
#define KMRNCTRLSTA_OPMODE_1GB_FD_GMII   0x0582
 
#define E1000_SERDES_LB_OFF   0x400
 

Enumerations

enum  { NETDEV_STATS, E1000_STATS }
 

Functions

void e1000e_set_ethtool_ops (struct net_device *netdev)
 

Macro Definition Documentation

#define E1000_GLOBAL_STATS_LEN   ARRAY_SIZE(e1000_gstrings_stats)

Definition at line 113 of file ethtool.c.

#define E1000_NETDEV_STAT (   str,
  m 
)
Value:
{ \
.stat_string = str, \
.type = NETDEV_STATS, \
.sizeof_stat = sizeof(((struct rtnl_link_stats64 *)0)->m), \
.stat_offset = offsetof(struct rtnl_link_stats64, m) }

Definition at line 55 of file ethtool.c.

#define E1000_REGS_LEN   32 /* overestimate */
#define E1000_SERDES_LB_OFF   0x400
#define E1000_SERDES_LB_ON   0x410
#define E1000_STAT (   str,
  m 
)
Value:
{ \
.stat_string = str, \
.type = E1000_STATS, \
.sizeof_stat = sizeof(((struct e1000_adapter *)0)->m), \
.stat_offset = offsetof(struct e1000_adapter, m) }

Definition at line 50 of file ethtool.c.

#define E1000_STATS_LEN   (E1000_GLOBAL_STATS_LEN)

Definition at line 114 of file ethtool.c.

#define E1000_TEST_LEN   ARRAY_SIZE(e1000_gstrings_test)

Definition at line 120 of file ethtool.c.

#define I82577_PHY_LBK_CTRL   19
#define KMRNCTRLSTA_OPMODE   (0x1F << 16)
#define KMRNCTRLSTA_OPMODE_1GB_FD_GMII   0x0582
#define REG_PATTERN_TEST (   reg,
  mask,
  write 
)    REG_PATTERN_TEST_ARRAY(reg, 0, mask, write)

Definition at line 795 of file ethtool.c.

#define REG_PATTERN_TEST_ARRAY (   reg,
  offset,
  mask,
  write 
)
Value:
do { \
if (reg_pattern_test(adapter, data, reg, offset, mask, write)) \
return 1; \
} while (0)

Definition at line 790 of file ethtool.c.

#define REG_SET_AND_CHECK (   reg,
  mask,
  write 
)
Value:
do { \
if (reg_set_and_check(adapter, data, reg, mask, write)) \
return 1; \
} while (0)

Definition at line 798 of file ethtool.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
NETDEV_STATS 
E1000_STATS 

Definition at line 41 of file ethtool.c.

Function Documentation

void e1000e_set_ethtool_ops ( struct net_device netdev)

Definition at line 2105 of file ethtool.c.