Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
rionet.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/dma-mapping.h>
#include <linux/delay.h>
#include <linux/rio.h>
#include <linux/rio_drv.h>
#include <linux/slab.h>
#include <linux/rio_ids.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/crc32.h>
#include <linux/ethtool.h>

Go to the source code of this file.

Data Structures

struct  rionet_private
 
struct  rionet_peer
 
struct  rionet_net
 

Macros

#define DRV_NAME   "rionet"
 
#define DRV_VERSION   "0.3"
 
#define DRV_AUTHOR   "Matt Porter <[email protected]>"
 
#define DRV_DESC   "Ethernet over RapidIO"
 
#define RIONET_DEFAULT_MSGLEVEL
 
#define RIONET_DOORBELL_JOIN   0x1000
 
#define RIONET_DOORBELL_LEAVE   0x1001
 
#define RIONET_MAILBOX   0
 
#define RIONET_TX_RING_SIZE   CONFIG_RIONET_TX_SIZE
 
#define RIONET_RX_RING_SIZE   CONFIG_RIONET_RX_SIZE
 
#define RIONET_MAX_NETS   8
 
#define is_rionet_capable(src_ops, dst_ops)
 
#define dev_rionet_capable(dev)   is_rionet_capable(dev->src_ops, dev->dst_ops)
 
#define RIONET_MAC_MATCH(x)   (!memcmp((x), "\00\01\00\01", 4))
 
#define RIONET_GET_DESTID(x)   ((*((u8 *)x + 4) << 8) | *((u8 *)x + 5))
 

Functions

 MODULE_AUTHOR (DRV_AUTHOR)
 
 MODULE_DESCRIPTION (DRV_DESC)
 
 MODULE_LICENSE ("GPL")
 
 late_initcall (rionet_init)
 
 module_exit (rionet_exit)
 

Macro Definition Documentation

#define dev_rionet_capable (   dev)    is_rionet_capable(dev->src_ops, dev->dst_ops)

Definition at line 85 of file rionet.c.

#define DRV_AUTHOR   "Matt Porter <[email protected]>"

Definition at line 30 of file rionet.c.

#define DRV_DESC   "Ethernet over RapidIO"

Definition at line 31 of file rionet.c.

#define DRV_NAME   "rionet"

Definition at line 28 of file rionet.c.

#define DRV_VERSION   "0.3"

Definition at line 29 of file rionet.c.

#define is_rionet_capable (   src_ops,
  dst_ops 
)
Value:

Definition at line 80 of file rionet.c.

#define RIONET_DEFAULT_MSGLEVEL
Value:
NETIF_MSG_LINK | \
NETIF_MSG_RX_ERR | \
NETIF_MSG_TX_ERR)

Definition at line 37 of file rionet.c.

#define RIONET_DOORBELL_JOIN   0x1000

Definition at line 43 of file rionet.c.

#define RIONET_DOORBELL_LEAVE   0x1001

Definition at line 44 of file rionet.c.

#define RIONET_GET_DESTID (   x)    ((*((u8 *)x + 4) << 8) | *((u8 *)x + 5))

Definition at line 89 of file rionet.c.

#define RIONET_MAC_MATCH (   x)    (!memcmp((x), "\00\01\00\01", 4))

Definition at line 88 of file rionet.c.

#define RIONET_MAILBOX   0

Definition at line 46 of file rionet.c.

#define RIONET_MAX_NETS   8

Definition at line 50 of file rionet.c.

#define RIONET_RX_RING_SIZE   CONFIG_RIONET_RX_SIZE

Definition at line 49 of file rionet.c.

#define RIONET_TX_RING_SIZE   CONFIG_RIONET_TX_SIZE

Definition at line 48 of file rionet.c.

Function Documentation

late_initcall ( rionet_init  )
MODULE_AUTHOR ( DRV_AUTHOR  )
MODULE_DESCRIPTION ( DRV_DESC  )
module_exit ( rionet_exit  )
MODULE_LICENSE ( "GPL"  )