Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Variables
mac-fec.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/string.h>
#include <linux/ptrace.h>
#include <linux/errno.h>
#include <linux/ioport.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/spinlock.h>
#include <linux/mii.h>
#include <linux/ethtool.h>
#include <linux/bitops.h>
#include <linux/fs.h>
#include <linux/platform_device.h>
#include <linux/of_device.h>
#include <linux/gfp.h>
#include <asm/irq.h>
#include <asm/uaccess.h>
#include "fs_enet.h"
#include "fec.h"

Go to the source code of this file.

Macros

#define __fs_out32(addr, x)   out_be32(addr, x)
 
#define __fs_out16(addr, x)   out_be16(addr, x)
 
#define __fs_in32(addr)   in_be32(addr)
 
#define __fs_in16(addr)   in_be16(addr)
 
#define FW(_fecp, _reg, _v)   __fs_out32(&(_fecp)->fec_ ## _reg, (_v))
 
#define FR(_fecp, _reg)   __fs_in32(&(_fecp)->fec_ ## _reg)
 
#define FS(_fecp, _reg, _v)   FW(_fecp, _reg, FR(_fecp, _reg) | (_v))
 
#define FC(_fecp, _reg, _v)   FW(_fecp, _reg, FR(_fecp, _reg) & ~(_v))
 
#define FEC_RESET_DELAY   50
 
#define FEC_NAPI_RX_EVENT_MSK   (FEC_ENET_RXF | FEC_ENET_RXB)
 
#define FEC_RX_EVENT   (FEC_ENET_RXF)
 
#define FEC_TX_EVENT   (FEC_ENET_TXF)
 
#define FEC_ERR_EVENT_MSK
 

Variables

struct fs_ops fs_fec_ops
 

Macro Definition Documentation

#define __fs_in16 (   addr)    in_be16(addr)

Definition at line 63 of file mac-fec.c.

#define __fs_in32 (   addr)    in_be32(addr)

Definition at line 62 of file mac-fec.c.

#define __fs_out16 (   addr,
  x 
)    out_be16(addr, x)

Definition at line 61 of file mac-fec.c.

#define __fs_out32 (   addr,
  x 
)    out_be32(addr, x)

Definition at line 60 of file mac-fec.c.

#define FC (   _fecp,
  _reg,
  _v 
)    FW(_fecp, _reg, FR(_fecp, _reg) & ~(_v))

Definition at line 76 of file mac-fec.c.

#define FEC_ERR_EVENT_MSK
Value:

Definition at line 115 of file mac-fec.c.

#define FEC_NAPI_RX_EVENT_MSK   (FEC_ENET_RXF | FEC_ENET_RXB)

Definition at line 112 of file mac-fec.c.

#define FEC_RESET_DELAY   50

Definition at line 81 of file mac-fec.c.

#define FEC_RX_EVENT   (FEC_ENET_RXF)

Definition at line 113 of file mac-fec.c.

#define FEC_TX_EVENT   (FEC_ENET_TXF)

Definition at line 114 of file mac-fec.c.

#define FR (   _fecp,
  _reg 
)    __fs_in32(&(_fecp)->fec_ ## _reg)

Definition at line 70 of file mac-fec.c.

#define FS (   _fecp,
  _reg,
  _v 
)    FW(_fecp, _reg, FR(_fecp, _reg) | (_v))

Definition at line 73 of file mac-fec.c.

#define FW (   _fecp,
  _reg,
  _v 
)    __fs_out32(&(_fecp)->fec_ ## _reg, (_v))

Definition at line 67 of file mac-fec.c.

Variable Documentation

struct fs_ops fs_fec_ops
Initial value:
= {
.setup_data = setup_data,
.cleanup_data = cleanup_data,
.set_multicast_list = set_multicast_list,
.restart = restart,
.stop = stop,
.napi_clear_rx_event = napi_clear_rx_event,
.napi_enable_rx = napi_enable_rx,
.napi_disable_rx = napi_disable_rx,
.rx_bd_done = rx_bd_done,
.tx_kickstart = tx_kickstart,
.get_int_events = get_int_events,
.clear_int_events = clear_int_events,
.ev_error = ev_error,
.get_regs = get_regs,
.get_regs_len = get_regs_len,
.tx_restart = tx_restart,
.allocate_bd = allocate_bd,
.free_bd = free_bd,
}

Definition at line 481 of file mac-fec.c.