Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
ftmac100.c File Reference
#include <linux/dma-mapping.h>
#include <linux/etherdevice.h>
#include <linux/ethtool.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/mii.h>
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/platform_device.h>
#include "ftmac100.h"

Go to the source code of this file.

Data Structures

struct  ftmac100_descs
 
struct  ftmac100
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define DRV_NAME   "ftmac100"
 
#define DRV_VERSION   "0.2"
 
#define RX_QUEUE_ENTRIES   128 /* must be power of 2 */
 
#define TX_QUEUE_ENTRIES   16 /* must be power of 2 */
 
#define MAX_PKT_SIZE   1518
 
#define RX_BUF_SIZE   2044 /* must be smaller than 0x7ff */
 
#define INT_MASK_ALL_ENABLED
 
#define INT_MASK_ALL_DISABLED   0
 
#define MACCR_ENABLE_ALL
 

Functions

 module_init (ftmac100_init)
 
 module_exit (ftmac100_exit)
 
 MODULE_AUTHOR ("Po-Yu Chuang <[email protected]>")
 
 MODULE_DESCRIPTION ("FTMAC100 driver")
 
 MODULE_LICENSE ("GPL")
 

Variables

struct ftmac100_descs __attribute__
 

Macro Definition Documentation

#define DRV_NAME   "ftmac100"

Definition at line 37 of file ftmac100.c.

#define DRV_VERSION   "0.2"

Definition at line 38 of file ftmac100.c.

#define INT_MASK_ALL_DISABLED   0

Definition at line 98 of file ftmac100.c.

#define INT_MASK_ALL_ENABLED
Value:
FTMAC100_INT_NORXBUF | \
FTMAC100_INT_XPKT_OK | \
FTMAC100_INT_XPKT_LOST | \
FTMAC100_INT_RPKT_LOST | \
FTMAC100_INT_AHB_ERR | \
FTMAC100_INT_PHYSTS_CHG)

Definition at line 90 of file ftmac100.c.

#define MACCR_ENABLE_ALL
Value:
FTMAC100_MACCR_RCV_EN | \
FTMAC100_MACCR_XDMA_EN | \
FTMAC100_MACCR_RDMA_EN | \
FTMAC100_MACCR_CRC_APD | \
FTMAC100_MACCR_FULLDUP | \
FTMAC100_MACCR_RX_RUNT | \
FTMAC100_MACCR_RX_BROADPKT)

Definition at line 163 of file ftmac100.c.

#define MAX_PKT_SIZE   1518

Definition at line 43 of file ftmac100.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 22 of file ftmac100.c.

#define RX_BUF_SIZE   2044 /* must be smaller than 0x7ff */

Definition at line 44 of file ftmac100.c.

#define RX_QUEUE_ENTRIES   128 /* must be power of 2 */

Definition at line 40 of file ftmac100.c.

#define TX_QUEUE_ENTRIES   16 /* must be power of 2 */

Definition at line 41 of file ftmac100.c.

Function Documentation

MODULE_AUTHOR ( "Po-Yu Chuang <[email protected]>"  )
MODULE_DESCRIPTION ( "FTMAC100 driver )
module_exit ( ftmac100_exit  )
module_init ( ftmac100_init  )
MODULE_LICENSE ( "GPL"  )

Variable Documentation