Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ftgmac100.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/module.h>
#include <linux/netdevice.h>
#include <linux/phy.h>
#include <linux/platform_device.h>
#include <net/ip.h>
#include "ftgmac100.h"

Go to the source code of this file.

Data Structures

struct  ftgmac100_descs
 
struct  ftgmac100
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define DRV_NAME   "ftgmac100"
 
#define DRV_VERSION   "0.7"
 
#define RX_QUEUE_ENTRIES   256 /* must be power of 2 */
 
#define TX_QUEUE_ENTRIES   512 /* must be power of 2 */
 
#define MAX_PKT_SIZE   1518
 
#define RX_BUF_SIZE   PAGE_SIZE /* must be smaller than 0x3fff */
 
#define INT_MASK_ALL_ENABLED
 
#define MACCR_ENABLE_ALL
 

Functions

 module_init (ftgmac100_init)
 
 module_exit (ftgmac100_exit)
 
 MODULE_AUTHOR ("Po-Yu Chuang <[email protected]>")
 
 MODULE_DESCRIPTION ("FTGMAC100 driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define DRV_NAME   "ftgmac100"

Definition at line 38 of file ftgmac100.c.

#define DRV_VERSION   "0.7"

Definition at line 39 of file ftgmac100.c.

#define INT_MASK_ALL_ENABLED
Value:
FTGMAC100_INT_XPKT_ETH | \
FTGMAC100_INT_XPKT_LOST | \
FTGMAC100_INT_AHB_ERR | \
FTGMAC100_INT_PHYSTS_CHG | \
FTGMAC100_INT_RPKT_BUF | \
FTGMAC100_INT_NO_RXBUF)

Definition at line 86 of file ftgmac100.c.

#define MACCR_ENABLE_ALL
Value:
FTGMAC100_MACCR_RXDMA_EN | \
FTGMAC100_MACCR_TXMAC_EN | \
FTGMAC100_MACCR_RXMAC_EN | \
FTGMAC100_MACCR_FULLDUP | \
FTGMAC100_MACCR_CRC_APD | \
FTGMAC100_MACCR_RX_RUNT | \
FTGMAC100_MACCR_RX_BROADPKT)

Definition at line 164 of file ftgmac100.c.

#define MAX_PKT_SIZE   1518

Definition at line 44 of file ftgmac100.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 22 of file ftgmac100.c.

#define RX_BUF_SIZE   PAGE_SIZE /* must be smaller than 0x3fff */

Definition at line 45 of file ftgmac100.c.

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

Definition at line 41 of file ftgmac100.c.

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

Definition at line 42 of file ftgmac100.c.

Function Documentation

MODULE_AUTHOR ( "Po-Yu Chuang <[email protected]>"  )
MODULE_DESCRIPTION ( "FTGMAC100 driver )
module_exit ( ftgmac100_exit  )
module_init ( ftgmac100_init  )
MODULE_LICENSE ( "GPL"  )