Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
gianfar_ethtool.c File Reference
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/errno.h>
#include <linux/interrupt.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/net_tstamp.h>
#include <linux/skbuff.h>
#include <linux/spinlock.h>
#include <linux/mm.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/uaccess.h>
#include <linux/module.h>
#include <linux/crc32.h>
#include <asm/types.h>
#include <linux/ethtool.h>
#include <linux/mii.h>
#include <linux/phy.h>
#include <linux/sort.h>
#include <linux/if_vlan.h>
#include "gianfar.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define GFAR_MAX_COAL_USECS   0xffff
 
#define GFAR_MAX_COAL_FRAMES   0xff
 

Functions

void gfar_start (struct net_device *dev)
 
int gfar_clean_rx_ring (struct gfar_priv_rx_q *rx_queue, int rx_work_limit)
 
int gfar_set_features (struct net_device *dev, netdev_features_t features)
 
 EXPORT_SYMBOL (gfar_phc_index)
 

Variables

int gfar_phc_index = -1
 
struct ethtool_ops gfar_ethtool_ops
 

Macro Definition Documentation

#define GFAR_MAX_COAL_FRAMES   0xff

Definition at line 53 of file gianfar_ethtool.c.

#define GFAR_MAX_COAL_USECS   0xffff

Definition at line 52 of file gianfar_ethtool.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 19 of file gianfar_ethtool.c.

Function Documentation

EXPORT_SYMBOL ( gfar_phc_index  )
int gfar_clean_rx_ring ( struct gfar_priv_rx_q rx_queue,
int  rx_work_limit 
)

Definition at line 2733 of file gianfar.c.

int gfar_set_features ( struct net_device dev,
netdev_features_t  features 
)

Definition at line 541 of file gianfar_ethtool.c.

void gfar_start ( struct net_device dev)

Definition at line 1773 of file gianfar.c.

Variable Documentation

struct ethtool_ops gfar_ethtool_ops
Initial value:
= {
.get_settings = gfar_gsettings,
.set_settings = gfar_ssettings,
.get_drvinfo = gfar_gdrvinfo,
.get_regs_len = gfar_reglen,
.get_regs = gfar_get_regs,
.get_link = ethtool_op_get_link,
.get_coalesce = gfar_gcoalesce,
.set_coalesce = gfar_scoalesce,
.get_ringparam = gfar_gringparam,
.set_ringparam = gfar_sringparam,
.get_strings = gfar_gstrings,
.get_sset_count = gfar_sset_count,
.get_ethtool_stats = gfar_fill_stats,
.get_msglevel = gfar_get_msglevel,
.set_msglevel = gfar_set_msglevel,
.set_rxnfc = gfar_set_nfc,
.get_rxnfc = gfar_get_nfc,
.get_ts_info = gfar_get_ts_info,
}

Definition at line 1800 of file gianfar_ethtool.c.

int gfar_phc_index = -1

Definition at line 1775 of file gianfar_ethtool.c.