Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
pch_gbe_ethtool.c File Reference
#include "pch_gbe.h"
#include "pch_gbe_api.h"

Go to the source code of this file.

Data Structures

struct  pch_gbe_stats
 

Macros

#define PCH_GBE_STAT(m)
 
#define PCH_GBE_QUEUE_STATS_LEN   0
 
#define PCH_GBE_GLOBAL_STATS_LEN   ARRAY_SIZE(pch_gbe_gstrings_stats)
 
#define PCH_GBE_STATS_LEN   (PCH_GBE_GLOBAL_STATS_LEN + PCH_GBE_QUEUE_STATS_LEN)
 
#define PCH_GBE_MAC_REGS_LEN   (sizeof(struct pch_gbe_regs) / 4)
 
#define PCH_GBE_REGS_LEN   (PCH_GBE_MAC_REGS_LEN + PCH_GBE_PHY_REGS_LEN)
 

Functions

void pch_gbe_set_ethtool_ops (struct net_device *netdev)
 

Macro Definition Documentation

#define PCH_GBE_GLOBAL_STATS_LEN   ARRAY_SIZE(pch_gbe_gstrings_stats)

Definition at line 71 of file pch_gbe_ethtool.c.

#define PCH_GBE_MAC_REGS_LEN   (sizeof(struct pch_gbe_regs) / 4)

Definition at line 74 of file pch_gbe_ethtool.c.

#define PCH_GBE_QUEUE_STATS_LEN   0

Definition at line 70 of file pch_gbe_ethtool.c.

#define PCH_GBE_REGS_LEN   (PCH_GBE_MAC_REGS_LEN + PCH_GBE_PHY_REGS_LEN)

Definition at line 75 of file pch_gbe_ethtool.c.

#define PCH_GBE_STAT (   m)
Value:
{ \
.string = #m, \
.size = FIELD_SIZEOF(struct pch_gbe_hw_stats, m), \
.offset = offsetof(struct pch_gbe_hw_stats, m), \
}

Definition at line 32 of file pch_gbe_ethtool.c.

#define PCH_GBE_STATS_LEN   (PCH_GBE_GLOBAL_STATS_LEN + PCH_GBE_QUEUE_STATS_LEN)

Definition at line 72 of file pch_gbe_ethtool.c.

Function Documentation

void pch_gbe_set_ethtool_ops ( struct net_device netdev)

Definition at line 509 of file pch_gbe_ethtool.c.