#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/compiler.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/vmalloc.h>
#include <linux/ioport.h>
#include <linux/pci.h>
#include <linux/mm.h>
#include <linux/highmem.h>
#include <linux/list.h>
#include <linux/dma-mapping.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/ethtool.h>
#include <linux/crc32.h>
#include <linux/random.h>
#include <linux/mii.h>
#include <linux/ip.h>
#include <linux/tcp.h>
#include <linux/mutex.h>
#include <linux/firmware.h>
#include <net/checksum.h>
#include <linux/atomic.h>
#include <asm/io.h>
#include <asm/byteorder.h>
#include <asm/uaccess.h>
#include "cassini.h"
Go to the source code of this file.
|
| MODULE_AUTHOR ("Adrian Sun ([email protected])") |
|
| MODULE_DESCRIPTION ("Sun Cassini(+) ethernet driver") |
|
| MODULE_LICENSE ("GPL") |
|
| MODULE_FIRMWARE ("sun/cassini.bin") |
|
| module_param (cassini_debug, int, 0) |
|
| MODULE_PARM_DESC (cassini_debug,"Cassini bitmapped debugging message enable value") |
|
| module_param (link_mode, int, 0) |
|
| MODULE_PARM_DESC (link_mode,"default link mode") |
|
| module_param (linkdown_timeout, int, 0) |
|
| MODULE_PARM_DESC (linkdown_timeout,"min reset interval in sec. for PCS linkdown issue; disabled if not positive") |
|
| MODULE_DEVICE_TABLE (pci, cas_pci_tbl) |
|
| module_init (cas_init) |
|
| module_exit (cas_cleanup) |
|
#define CAS_1000MB_MIN_FRAME 255 |
#define CAS_DEF_MSG_ENABLE |
Value:
NETIF_MSG_PROBE | \
NETIF_MSG_LINK | \
NETIF_MSG_TIMER | \
NETIF_MSG_IFDOWN | \
NETIF_MSG_IFUP | \
NETIF_MSG_RX_ERR | \
NETIF_MSG_TX_ERR)
Definition at line 145 of file cassini.c.
#define CAS_LINK_FAST_TIMEOUT (1) |
#define CAS_LINK_TIMEOUT (22*HZ/10) |
#define cas_lock_all_save |
( |
|
cp, |
|
|
|
flags |
|
) |
| |
Value:
spin_lock_irqsave(&xxxcp->lock,
flags); \
cas_lock_tx(xxxcp); \
} while (0)
Definition at line 268 of file cassini.c.
#define CAS_NUM_STAT_KEYS ARRAY_SIZE(ethtool_cassini_statnames) |
#define CAS_REG_LEN ARRAY_SIZE(ethtool_register_table) |
#define CAS_TX_TIMEOUT (HZ) |
#define cas_unlock_all_restore |
( |
|
cp, |
|
|
|
flags |
|
) |
| |
Value:
cas_unlock_tx(xxxcp); \
spin_unlock_irqrestore(&xxxcp->lock,
flags); \
} while (0)
Definition at line 289 of file cassini.c.
#define DEFAULT_LINKDOWN_TIMEOUT 5 |
#define DRV_MODULE_NAME "cassini" |
#define DRV_MODULE_RELDATE "21 May 2008" |
#define DRV_MODULE_VERSION "1.6" |
#define pr_fmt |
( |
|
fmt | ) |
KBUILD_MODNAME ": " fmt |
#define RX_COPY_ALWAYS 0 /* if 0, use frags */ |
#define RX_COPY_MIN 64 /* copy a little to make upper layers happy */ |
#define RX_DONT_BATCH 0 /* if 1, don't batch flows */ |
#define RX_USED_ADD |
( |
|
x, |
|
|
|
y |
|
) |
| |
#define RX_USED_SET |
( |
|
x, |
|
|
|
y |
|
) |
| |
#define STOP_TRIES_PHY 1000 |
#define USE_CSMA_CD_PROTO /* standard CSMA/CD */ |
#define USE_HP_WORKAROUND |
#define USE_PAGE_ORDER /* specify to allocate large rx pages */ |
#define VPD_FOUND_MAC 0x01 |
#define VPD_FOUND_PHY 0x02 |
MODULE_DEVICE_TABLE |
( |
pci |
, |
|
|
cas_pci_tbl |
|
|
) |
| |
module_exit |
( |
cas_cleanup |
| ) |
|
MODULE_FIRMWARE |
( |
"sun/cassini.bin" |
| ) |
|
module_param |
( |
cassini_debug |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
link_mode |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
linkdown_timeout |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
link_mode |
, |
|
|
"default link mode" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
linkdown_timeout |
, |
|
|
"min reset interval in sec. for PCS linkdown issue; disabled if not positive" |
|
|
) |
| |