Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
fs_enet.h File Reference
#include <linux/mii.h>
#include <linux/netdevice.h>
#include <linux/types.h>
#include <linux/list.h>
#include <linux/phy.h>
#include <linux/dma-mapping.h>
#include <linux/fs_enet_pd.h>
#include <asm/fs_pd.h>

Go to the source code of this file.

Data Structures

struct  fs_ops
 
struct  phy_info
 
struct  fs_enet_private
 

Macros

#define MAX_MTU   1508 /* Allow fullsized pppoe packets over VLAN */
 
#define MIN_MTU   46 /* this is data size */
 
#define CRC_LEN   4
 
#define PKT_MAXBUF_SIZE   (MAX_MTU+ETH_HLEN+CRC_LEN)
 
#define PKT_MINBUF_SIZE   (MIN_MTU+ETH_HLEN+CRC_LEN)
 
#define PKT_MAXBLR_SIZE   ((PKT_MAXBUF_SIZE + 31) & ~31)
 
#define ENET_RX_ALIGN   16
 
#define ENET_RX_FRSIZE   L1_CACHE_ALIGN(PKT_MAXBUF_SIZE + ENET_RX_ALIGN - 1)
 
#define DRV_MODULE_NAME   "fs_enet"
 
#define PFX   DRV_MODULE_NAME ": "
 
#define DRV_MODULE_VERSION   "1.0"
 
#define DRV_MODULE_RELDATE   "Aug 8, 2005"
 
#define __cbd_out32(addr, x)   out_be32(addr, x)
 
#define __cbd_out16(addr, x)   out_be16(addr, x)
 
#define __cbd_in32(addr)   in_be32(addr)
 
#define __cbd_in16(addr)   in_be16(addr)
 
#define CBDW_SC(_cbd, _sc)   __cbd_out16(&(_cbd)->cbd_sc, (_sc))
 
#define CBDW_DATLEN(_cbd, _datlen)   __cbd_out16(&(_cbd)->cbd_datlen, (_datlen))
 
#define CBDW_BUFADDR(_cbd, _bufaddr)   __cbd_out32(&(_cbd)->cbd_bufaddr, (_bufaddr))
 
#define CBDR_SC(_cbd)   __cbd_in16(&(_cbd)->cbd_sc)
 
#define CBDR_DATLEN(_cbd)   __cbd_in16(&(_cbd)->cbd_datlen)
 
#define CBDR_BUFADDR(_cbd)   __cbd_in32(&(_cbd)->cbd_bufaddr)
 
#define CBDS_SC(_cbd, _sc)   CBDW_SC(_cbd, CBDR_SC(_cbd) | (_sc))
 
#define CBDC_SC(_cbd, _sc)   CBDW_SC(_cbd, CBDR_SC(_cbd) & ~(_sc))
 

Functions

void fs_init_bds (struct net_device *dev)
 
void fs_cleanup_bds (struct net_device *dev)
 
int fs_enet_platform_init (void)
 
void fs_enet_platform_cleanup (void)
 

Variables

struct fs_ops fs_fec_ops
 
struct fs_ops fs_fcc_ops
 
struct fs_ops fs_scc_ops
 

Macro Definition Documentation

#define __cbd_in16 (   addr)    in_be16(addr)

Definition at line 217 of file fs_enet.h.

#define __cbd_in32 (   addr)    in_be32(addr)

Definition at line 216 of file fs_enet.h.

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

Definition at line 215 of file fs_enet.h.

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

Definition at line 214 of file fs_enet.h.

#define CBDC_SC (   _cbd,
  _sc 
)    CBDW_SC(_cbd, CBDR_SC(_cbd) & ~(_sc))

Definition at line 234 of file fs_enet.h.

#define CBDR_BUFADDR (   _cbd)    __cbd_in32(&(_cbd)->cbd_bufaddr)

Definition at line 228 of file fs_enet.h.

#define CBDR_DATLEN (   _cbd)    __cbd_in16(&(_cbd)->cbd_datlen)

Definition at line 227 of file fs_enet.h.

#define CBDR_SC (   _cbd)    __cbd_in16(&(_cbd)->cbd_sc)

Definition at line 226 of file fs_enet.h.

#define CBDS_SC (   _cbd,
  _sc 
)    CBDW_SC(_cbd, CBDR_SC(_cbd) | (_sc))

Definition at line 231 of file fs_enet.h.

#define CBDW_BUFADDR (   _cbd,
  _bufaddr 
)    __cbd_out32(&(_cbd)->cbd_bufaddr, (_bufaddr))

Definition at line 223 of file fs_enet.h.

#define CBDW_DATLEN (   _cbd,
  _datlen 
)    __cbd_out16(&(_cbd)->cbd_datlen, (_datlen))

Definition at line 222 of file fs_enet.h.

#define CBDW_SC (   _cbd,
  _sc 
)    __cbd_out16(&(_cbd)->cbd_sc, (_sc))

Definition at line 221 of file fs_enet.h.

#define CRC_LEN   4

Definition at line 109 of file fs_enet.h.

#define DRV_MODULE_NAME   "fs_enet"

Definition at line 192 of file fs_enet.h.

#define DRV_MODULE_RELDATE   "Aug 8, 2005"

Definition at line 195 of file fs_enet.h.

#define DRV_MODULE_VERSION   "1.0"

Definition at line 194 of file fs_enet.h.

#define ENET_RX_ALIGN   16

Definition at line 117 of file fs_enet.h.

#define ENET_RX_FRSIZE   L1_CACHE_ALIGN(PKT_MAXBUF_SIZE + ENET_RX_ALIGN - 1)

Definition at line 118 of file fs_enet.h.

#define MAX_MTU   1508 /* Allow fullsized pppoe packets over VLAN */

Definition at line 107 of file fs_enet.h.

#define MIN_MTU   46 /* this is data size */

Definition at line 108 of file fs_enet.h.

#define PFX   DRV_MODULE_NAME ": "

Definition at line 193 of file fs_enet.h.

#define PKT_MAXBLR_SIZE   ((PKT_MAXBUF_SIZE + 31) & ~31)

Definition at line 115 of file fs_enet.h.

#define PKT_MAXBUF_SIZE   (MAX_MTU+ETH_HLEN+CRC_LEN)

Definition at line 111 of file fs_enet.h.

#define PKT_MINBUF_SIZE   (MIN_MTU+ETH_HLEN+CRC_LEN)

Definition at line 112 of file fs_enet.h.

Function Documentation

void fs_cleanup_bds ( struct net_device dev)

Definition at line 542 of file fs_enet-main.c.

void fs_enet_platform_cleanup ( void  )
int fs_enet_platform_init ( void  )
void fs_init_bds ( struct net_device dev)

Definition at line 490 of file fs_enet-main.c.

Variable Documentation

struct fs_ops fs_fcc_ops

Definition at line 565 of file mac-fcc.c.

struct fs_ops fs_fec_ops

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

struct fs_ops fs_scc_ops

Definition at line 465 of file mac-scc.c.