Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
gianfar.c File Reference
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/errno.h>
#include <linux/unistd.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/if_vlan.h>
#include <linux/spinlock.h>
#include <linux/mm.h>
#include <linux/of_mdio.h>
#include <linux/of_platform.h>
#include <linux/ip.h>
#include <linux/tcp.h>
#include <linux/udp.h>
#include <linux/in.h>
#include <linux/net_tstamp.h>
#include <asm/io.h>
#include <asm/reg.h>
#include <asm/irq.h>
#include <asm/uaccess.h>
#include <linux/module.h>
#include <linux/dma-mapping.h>
#include <linux/crc32.h>
#include <linux/mii.h>
#include <linux/phy.h>
#include <linux/phy_fixed.h>
#include <linux/of.h>
#include <linux/of_net.h>
#include "gianfar.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define DEBUG
 
#define TX_TIMEOUT   (1*HZ)
 
#define GFAR_PM_OPS   NULL
 

Functions

struct sk_buffgfar_new_skb (struct net_device *dev)
 
int gfar_clean_rx_ring (struct gfar_priv_rx_q *rx_queue, int rx_work_limit)
 
void gfar_halt (struct net_device *dev)
 
void gfar_start (struct net_device *dev)
 
 MODULE_AUTHOR ("Freescale Semiconductor, Inc")
 
 MODULE_DESCRIPTION ("Gianfar Ethernet Driver")
 
 MODULE_LICENSE ("GPL")
 
void lock_rx_qs (struct gfar_private *priv)
 
void lock_tx_qs (struct gfar_private *priv)
 
void unlock_rx_qs (struct gfar_private *priv)
 
void unlock_tx_qs (struct gfar_private *priv)
 
void stop_gfar (struct net_device *dev)
 
void gfar_configure_coalescing (struct gfar_private *priv, unsigned long tx_mask, unsigned long rx_mask)
 
int startup_gfar (struct net_device *ndev)
 
void gfar_tx_vlan (struct sk_buff *skb, struct txfcb *fcb)
 
void gfar_check_rx_parser_mode (struct gfar_private *priv)
 
void gfar_vlan_mode (struct net_device *dev, netdev_features_t features)
 
irqreturn_t gfar_receive (int irq, void *grp_id)
 
 MODULE_DEVICE_TABLE (of, gfar_match)
 
 module_platform_driver (gfar_driver)
 

Variables

const char gfar_driver_version [] = "1.3"
 

Macro Definition Documentation

#define DEBUG

Definition at line 65 of file gianfar.c.

#define GFAR_PM_OPS   NULL

Definition at line 1393 of file gianfar.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 64 of file gianfar.c.

#define TX_TIMEOUT   (1*HZ)

Definition at line 104 of file gianfar.c.

Function Documentation

void gfar_check_rx_parser_mode ( struct gfar_private priv)

Definition at line 2300 of file gianfar.c.

int gfar_clean_rx_ring ( struct gfar_priv_rx_q rx_queue,
int  rx_work_limit 
)

Definition at line 2733 of file gianfar.c.

void gfar_configure_coalescing ( struct gfar_private priv,
unsigned long  tx_mask,
unsigned long  rx_mask 
)

Definition at line 1807 of file gianfar.c.

void gfar_halt ( struct net_device dev)

Definition at line 1635 of file gianfar.c.

struct sk_buff * gfar_new_skb ( struct net_device dev)
read

Definition at line 2613 of file gianfar.c.

irqreturn_t gfar_receive ( int  irq,
void grp_id 
)

Definition at line 2655 of file gianfar.c.

void gfar_start ( struct net_device dev)

Definition at line 1773 of file gianfar.c.

void gfar_tx_vlan ( struct sk_buff skb,
struct txfcb fcb 
)
inline

Definition at line 2011 of file gianfar.c.

void gfar_vlan_mode ( struct net_device dev,
netdev_features_t  features 
)

Definition at line 2317 of file gianfar.c.

void lock_rx_qs ( struct gfar_private priv)

Definition at line 476 of file gianfar.c.

void lock_tx_qs ( struct gfar_private priv)

Definition at line 484 of file gianfar.c.

MODULE_AUTHOR ( "Freescale  Semiconductor,
Inc"   
)
MODULE_DESCRIPTION ( "Gianfar Ethernet Driver"  )
MODULE_DEVICE_TABLE ( of  ,
gfar_match   
)
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( gfar_driver  )
int startup_gfar ( struct net_device ndev)

Definition at line 1897 of file gianfar.c.

void stop_gfar ( struct net_device dev)

Definition at line 1656 of file gianfar.c.

void unlock_rx_qs ( struct gfar_private priv)

Definition at line 492 of file gianfar.c.

void unlock_tx_qs ( struct gfar_private priv)

Definition at line 500 of file gianfar.c.

Variable Documentation

const char gfar_driver_version[] = "1.3"

Definition at line 106 of file gianfar.c.